/* informacion-extra.css - Estilos para los modales "Acerca de" y "Cómo funciona" */

/* ============================================ */
/* MODALES DE INFORMACIÓN */
/* ============================================ */

.modal-info-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(6px);
  z-index: 10000;
  justify-content: center;
  align-items: center;
  animation: fadeInOverlay 0.3s ease;
}

.modal-info-overlay.active {
  display: flex;
}

@keyframes fadeInOverlay {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.modal-info-container {
  background: white;
  border-radius: 16px;
  width: 90%;
  max-width: 760px;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  animation: slideUp 0.35s ease;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ===== HEADER ===== */
.modal-info-header {
  padding: 20px 28px;
  background: linear-gradient(135deg, #0a3d4f 0%, #1a7a94 100%);
  color: white;
  border-radius: 16px 16px 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 10;
}

.modal-info-header h2 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 1px;
}

.modal-info-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.3);
  background: transparent;
  color: white;
  font-size: 20px;
  font-weight: 300;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.modal-info-close:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.6);
  transform: rotate(90deg);
}

/* ===== BODY ===== */
.modal-info-body {
  padding: 30px 28px;
}

.modal-info-body p {
  color: #2d3e50;
  line-height: 1.7;
  font-size: 1rem;
  margin: 10px 0;
}

.modal-info-body .intro-text {
  font-size: 1.05rem;
  color: #1a4a5a;
  background: #f0f7fa;
  padding: 16px 20px;
  border-radius: 10px;
  border-left: 4px solid #46b5a5;
  margin-bottom: 20px;
}

/* ===== LISTAS PRINCIPALES ===== */
.modal-info-body ul {
  margin: 8px 0 12px 0;
  padding-left: 0;
  list-style: none;
}

.modal-info-body ul li {
  color: #2d3e50;
  line-height: 1.7;
  font-size: 0.98rem;
  margin: 10px 0;
  padding-left: 24px;
  position: relative;
}

.modal-info-body ul li::before {
  content: "▸";
  position: absolute;
  left: 4px;
  color: #1a7a94;
  font-weight: 700;
}

.modal-info-body ul li strong {
  color: #0a3d4f;
}

/* ===== LISTAS ANIDADAS (sub-elementos) ===== */
.modal-info-body ul ul {
  margin: 4px 0 6px 0;
  padding-left: 0;
  list-style: none;
}

.modal-info-body ul ul li {
  font-size: 0.94rem;
  margin: 4px 0;
  padding-left: 28px;
  color: #3d5a6a;
}

.modal-info-body ul ul li::before {
  content: "◦";
  color: #46b5a5;
  font-size: 1.1rem;
  left: 10px;
}

/* ===== TERCER NIVEL (sub-sub-elementos) ===== */
.modal-info-body ul ul ul {
  margin: 2px 0 4px 0;
  padding-left: 0;
  list-style: none;
}

.modal-info-body ul ul ul li {
  font-size: 0.92rem;
  margin: 2px 0;
  padding-left: 32px;
  color: #4d6a7a;
}

.modal-info-body ul ul ul li::before {
  content: "▪";
  color: #8ab4c4;
  font-size: 0.9rem;
  left: 14px;
}

/* ===== DESTACAR BOTONES EN EL TEXTO ===== */
.modal-info-body strong {
  color: #0a3d4f;
}

.modal-info-body .btn-text {
  display: inline-block;
  background: #e8edf0;
  padding: 1px 10px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.9em;
  color: #0a3d4f;
}

/* ============================================ */
/* BLOQUE DE PRESENTACIÓN */
/* ============================================ */

.bloque-presentacion {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  margin: 0 0 24px 0;
  padding: 0;
  background: transparent;
  border: none;
}

.presentacion-foto {
  width: 100%;
  max-width: 500px;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  flex-shrink: 0;
  margin: 0 auto;
}

.presentacion-foto img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.presentacion-texto {
  text-align: center;
  padding: 0 10px;
}

.presentacion-nombre {
  font-size: 1.8rem;
  font-weight: 700;
  color: #1a7a94;
  margin-bottom: 4px;
}

.presentacion-descripcion {
  font-size: 1.1rem;
  color: #3d5a6a;
}

@media (max-width: 600px) {
  .presentacion-foto {
    max-width: 200px;
    border-radius: 50%;
  }

  .presentacion-nombre {
    font-size: 1.4rem;
  }

  .presentacion-descripcion {
    font-size: 1rem;
  }
}

@media (max-width: 400px) {
  .presentacion-foto {
    width: 80%;
    height: 80%;
  }

  .presentacion-nombre {
    font-size: 1.2rem;
  }

  .presentacion-descripcion {
    font-size: 0.95rem;
  }
}

/* ============================================ */
/* ENLACES DENTRO DEL TEXTO */
/* ============================================ */

.modal-info-body .modal-info-link {
  color: #1a7a94;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  transition: color 0.2s ease;
}

.modal-info-body .modal-info-link:hover {
  color: #0a3d4f;
}

.modal-info-body a.modal-info-link {
  color: #1a7a94;
  text-decoration: underline;
}

.modal-info-body a.modal-info-link:hover {
  color: #0a3d4f;
}

/* ============================================ */
/* DIVISORES */
/* ============================================ */

.modal-info-divider {
  border: none;
  border-top: 2px solid #e8edf0;
  margin: 24px 0;
}

/* ============================================ */
/* TÍTULOS DENTRO DEL BODY */
/* ============================================ */

.modal-info-body h3 {
  color: #0a3d4f;
  font-size: 1.2rem;
  margin: 20px 0 12px 0;
}

.modal-info-body h4 {
  color: #1a7a94;
  font-size: 1.05rem;
  margin: 16px 0 8px 0;
}

/* ============================================ */
/* FOOTER */
/* ============================================ */

.modal-info-footer {
  padding: 16px 28px 24px;
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  border-top: 1px solid #e8edf0;
  background: #fafcfd;
  border-radius: 0 0 16px 16px;
}

.btn-modal-info {
  padding: 12px 24px;
  border: none;
  border-radius: 20px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #0a3d4f 0%, #1a7a94 100%);
  color: white;
}

.btn-modal-info:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(26, 122, 148, 0.35);
}

/* Botón pequeño centrado */
.btn-modal-info {
  padding: 12px 28px;
  border: none;
  border-radius: 30px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  background: linear-gradient(135deg, #0a3d4f 0%, #1a7a94 100%);
  color: white;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
}

.btn-modal-info:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(26, 122, 148, 0.35);
}

/* ============================================ */
/* SCROLLBAR */
/* ============================================ */

.modal-info-container::-webkit-scrollbar {
  width: 8px;
}

.modal-info-container::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 0 0 16px 16px;
}

.modal-info-container::-webkit-scrollbar-thumb {
  background: #46b5a5;
  border-radius: 4px;
}

.modal-info-container::-webkit-scrollbar-thumb:hover {
  background: #35967f;
}

/* ============================================ */
/* RESPONSIVE */
/* ============================================ */

@media (max-width: 600px) {
  .modal-info-container {
    width: 95%;
    max-height: 90vh;
  }

  .modal-info-header {
    padding: 16px 20px;
  }

  .modal-info-header h2 {
    font-size: 1.2rem;
  }

  .modal-info-body {
    padding: 20px 16px;
  }

  .modal-info-body ul li {
    padding-left: 20px;
    font-size: 0.94rem;
  }

  .modal-info-body ul ul li {
    padding-left: 24px;
    font-size: 0.9rem;
  }

  .modal-info-body ul ul ul li {
    padding-left: 28px;
    font-size: 0.88rem;
  }

  .modal-info-footer {
    padding: 14px 16px 20px;
    flex-direction: column;
    align-items: center;
  }

  .btn-modal-info {
    width: auto;
    justify-content: center;
  }

  /* Bloque de presentación responsive */
  .bloque-presentacion {
    flex-direction: column-reverse;
    text-align: center;
    padding: 20px 16px;
    gap: 16px;
  }

  .presentacion-foto {
    width: 80%;
    height: 80%;
  }

  .presentacion-saludo {
    font-size: 1.2rem;
  }

  .presentacion-nombre {
    font-size: 1.3rem;
  }

  .presentacion-descripcion {
    font-size: 0.95rem;
  }
}

@media (max-width: 400px) {
  .modal-info-body {
    padding: 16px 12px;
  }

  .modal-info-body ul li {
    padding-left: 16px;
    font-size: 0.9rem;
  }

  .modal-info-body ul ul li {
    padding-left: 20px;
    font-size: 0.87rem;
  }

  .modal-info-body ul ul ul li {
    padding-left: 24px;
    font-size: 0.85rem;
  }

  .bloque-presentacion {
    padding: 16px 12px;
  }

  .presentacion-foto {
    width: 80px;
    height: 80px;
    min-width: 80px;
  }

  .presentacion-nombre {
    font-size: 1.1rem;
  }

  .presentacion-saludo {
    font-size: 1rem;
  }

  .presentacion-descripcion {
    font-size: 0.85rem;
  }
}

/* ============================================ */
/* RESPONSIVE - Modales de información */
/* ============================================ */

@media (max-width: 768px) {
  .modal-info-container {
    width: 95%;
    max-height: 90vh;
  }

  .modal-info-header {
    padding: 14px 18px;
  }

  .modal-info-header h2 {
    font-size: 1.1rem;
  }

  .modal-info-body {
    padding: 16px 14px;
  }

  .modal-info-body p {
    font-size: 0.9rem;
  }

  .modal-info-footer {
    padding: 12px 14px 16px;
    flex-direction: column;
    align-items: center;
  }

  @media (max-width: 768px) {
    .modal-info-footer .btn-modal-info {
      width: 100%;
      justify-content: center;
      font-size: 1.1rem;
      padding: 16px 20px;
      min-height: 52px;
    }

    .btn-modal-info-small {
      width: 100%;
      justify-content: center;
    }

    .presentacion-foto {
      width: 80%;
      max-width: 300px;
      height: auto;
      aspect-ratio: 1 / 1;
      border-radius: 50%;
    }

    .presentacion-nombre {
      font-size: 1.3rem;
    }

    .presentacion-descripcion {
      font-size: 0.95rem;
    }
  }
}

@media (max-width: 480px) {
  .modal-info-header {
    padding: 10px 14px;
  }

  .modal-info-header h2 {
    font-size: 1rem;
  }

  .modal-info-body {
    padding: 12px 10px;
  }

  .modal-info-body p {
    font-size: 0.85rem;
  }

  .modal-info-body ul li {
    font-size: 0.85rem;
    padding-left: 16px;
  }

  .modal-info-body ul ul li {
    font-size: 0.8rem;
    padding-left: 20px;
  }

  .modal-info-body ul ul ul li {
    font-size: 0.78rem;
    padding-left: 24px;
  }

  .modal-info-footer {
    padding: 10px 12px 14px;
  }

  .btn-modal-info {
    font-size: 0.8rem;
    padding: 6px 12px;
  }

  .btn-modal-info-small {
    font-size: 0.75rem;
    padding: 4px 12px;
  }

  .presentacion-nombre {
    font-size: 1.1rem;
  }

  .presentacion-descripcion {
    font-size: 0.85rem;
  }

  .modal-info-close {
    width: 28px;
    height: 28px;
    font-size: 16px;
  }
}
