/* =============================================================== */
/* ESTILOS PARA LA NUEVA VENTANA MODAL DE DETALLES (modal-style.css) */
/* =============================================================== */
.detail-modal {
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  display: none; /* Oculto por defecto */
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.detail-modal.is-open {
  display: flex;
  opacity: 1;
}

.detail-modal-content {
  background-color: #fff;
  color: #333;
  padding: 2rem 2.5rem;
  border-radius: 8px;
  position: relative;
  width: 90%;
  /* max-width: 800px; */
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(0.95);
  transition: transform 0.3s ease;
}

.detail-modal.is-open .detail-modal-content {
    transform: scale(1);
}

.detail-modal-close {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 2.5rem;
  font-weight: bold;
  color: #555;
  cursor: pointer;
  line-height: 1;
}

.detail-modal-close:hover {
    color: #000;
}

.detail-modal h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #1e40af; /* Azul de Engix */
    margin-bottom: 1rem;
}

.detail-modal .detail-main-image {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 1.5rem;
}

.detail-modal .detail-description {
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.detail-modal .detail-features {
    list-style-type: none;
    padding: 0;
    margin-bottom: 1.5rem;
}

.detail-modal .detail-features li {
    padding-left: 1.5rem;
    position: relative;
    margin-bottom: 0.5rem;
}

.detail-modal .detail-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #1e90ff;
    font-weight: bold;
}

.detail-modal .detail-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 10px;
}

.detail-modal .detail-gallery img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.detail-modal .detail-gallery img:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.project-tags .tag {
  background-color: #e0e7ff;
  color: #3730a3;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 600;
}

.detail-modal-actions-2 {
  padding: 20px 0px;
  float: right;
}