/* ============================================= */
/* ===== ESTILOS GENERALES (NAVBAR, CTA, ETC.) ===== */
/* ============================================= */
:root {
    --white-color: #FFFFFF;
    --text-dark-blue: #042a63;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', Arial, sans-serif;
  background: #fdfbf7;
  color: #343a40;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

/* ============================================= */
/* ===== HEADER Y NAVBAR (NUEVO)     ===== */
/* ============================================= */
header {
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
}

.navbar {
    background: white;
    height: 110px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 60px;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    height: 70px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.logo {
    position: relative;
    width: auto;
    height: 72px;
    display: flex;
    align-items: center;
    overflow: visible;
    flex: 0 0 auto;
}

.logo img {
    display: block;
    transition: opacity 250ms ease, transform 250ms ease;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
}

.logo img.logo--siglas {
    height: 72px;
    opacity: 1;
}

.logo img.logo--full {
    height: 44px;
    opacity: 0;
}

.navbar.scrolled .logo img.logo--siglas {
    opacity: 0;
}

.navbar.scrolled .logo img.logo--full {
    opacity: 1;
}

.nav-links {
    display: flex;
    gap: 30px;
    font-size: 15px;
    font-weight: 500;
    color: #444;
    flex: 1 1 auto;
    justify-content: center;
    align-items: center;
    list-style: none;
    padding-left: 0;
}

.nav-links a {
    position: relative;
    padding: 4px 0;
    text-decoration: none;
    color: inherit;
}

.nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 2px;
    background: #002b55;
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

/* ===== NUEVOS ESTILOS PARA BOTONES DE ACCIÓN (INICIA) ===== */

/* Contenedor para los nuevos botones de escritorio */
.navbar-actions-desktop {
  display: flex;
  flex-direction: row; /* Coloca los botones uno al lado del otro */
  gap: 10px; /* Espacio horizontal entre los botones */
  align-items: center; /* Centra los botones verticalmente */
  flex-shrink: 0; /* Evita que se encojan */
}

/* Botón "Iniciar Sesión" (Estilo Secundario - Outline) */
.cta-nav {
  display: inline-block;
  padding: 7px 20px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 999px;
  transition: all 0.25s ease;
  border: 1px solid var(--text-dark-blue);
  background: var(--white-color); /* Fondo blanco */
  color: var(--text-dark-blue); /* Texto azul */
  text-align: center;
  white-space: nowrap; 
  text-decoration: none;
}

.cta-nav:hover {
  background: #f8fafd; /* Azul pálido */
  border-color: var(--text-dark-blue);
  transform: translateY(-1px);
}

/* Botón "Pagos en Línea" (Estilo Principal - Sólido) */
.cta-nav.cta-nav--highlight {
  background: var(--text-dark-blue);
  border-color: var(--text-dark-blue);
  color: #fff;
}

.cta-nav.cta-nav--highlight:hover {
  background: #03214d; /* Azul más oscuro */
  border-color: #03214d;
}

/* ===== NUEVOS ESTILOS PARA BOTONES DE ACCIÓN (TERMINA) ===== */


.cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    background: #042a63;
    color: #fff;
    border-radius: 999px;
    font-weight: 700;
    transition: all 0.25s ease;
    box-shadow: 0 6px 18px rgba(4, 42, 99, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.05);
    text-decoration: none;
}

.cta:hover {
    transform: translateY(-3px) scale(1.02);
}

.nav-links__cta-mobile,
.hamburger-btn,
.overlay {
    display: none;
}
/* ============================================= */
/* ===== FIN DE HEADER Y NAVBAR (NUEVO) ===== */
/* ============================================= */

/* ============================================= */
/* ===== ESTILOS ESPECÍFICOS DE LA PÁGINA    ===== */
/* ============================================= */

/* SOLUCIÓN: El main solo aparta el espacio para la navbar, sin padding extra ni altura fija. */
main {
  padding-top: 110px;
}

/* SOLUCIÓN: El banner (hero) tiene su propio padding y ocupa el 100% del ancho. */
.policy-hero {
  background: #28306e;
  color: #ffffff;
  padding: 60px 40px;
  text-align: center;
}

.hero-content h1 {
  font-size: 3em;
  font-weight: 700;
  margin-bottom: 15px;
}

.hero-content p {
  font-size: 1.1em;
  color: rgba(255, 255, 255, 0.8);
  max-width: 650px;
  margin: 0 auto;
  line-height: 1.6;
}

.hero-content strong {
  color: #fff;
}

/* SOLUCIÓN: Este contenedor centra el resto del contenido. */
.policy-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 60px 20px;
}

.contact-highlight {
  background: linear-gradient(120deg, #eef3fb, #fbfdff);
  border: 1px solid #dbe6f5;
  border-left: 5px solid #042a63;
  padding: 30px;
  border-radius: 12px;
  margin-bottom: 50px;
  text-align: center;
}

.contact-content h3 {
  font-size: 1.8em;
  color: #042a63;
  margin-bottom: 15px;
}

.contact-content p {
  color: #333;
  line-height: 1.7;
  margin-bottom: 20px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.contact-email {
  display: inline-block;
  background: #042a63;
  color: #fff;
  padding: 12px 25px;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.contact-email:hover {
  background: #002b55;
  transform: scale(1.05);
}

.response-times {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  gap: 25px;
  color: #555;
  font-size: 0.9em;
}

.response-times span {
  background: #e9ecef;
  padding: 5px 12px;
  border-radius: 99px;
}

.accordion details {
  background: #ffffff;
  border-radius: 10px;
  margin-bottom: 15px;
  border: 1px solid #e9ecef;
  overflow: hidden;
}

.accordion summary {
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: 600;
  color: #042a63;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 15px;
}

.accordion summary::-webkit-details-marker {
  display: none;
}

.accordion summary::after {
  content: '\f0142';
  font-family: "Material Design Icons";
  margin-left: auto;
  font-size: 1.4em;
  transition: transform 0.3s ease;
}

.accordion details[open] summary::after {
  transform: rotate(180deg);
}

.details-content {
  padding: 0 25px 25px 25px;
  line-height: 1.8;
  color: #333;
}

.details-content ul {
  padding-left: 20px;
  margin-top: 15px;
}

.details-content li {
  margin-bottom: 10px;
}

.data-usage-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.usage-card {
  background: #f8f9fa;
  padding: 20px;
  border-radius: 8px;
  border: 1px solid #e9ecef;
}

.usage-card h4 {
  color: #042a63;
  margin-bottom: 8px;
}

.usage-card p {
  font-size: 0.95em;
  line-height: 1.6;
}

/* ============================================= */
/* ===== FOOTER REDISEÑADO                 ===== */
/* ============================================= */
.footer {
  background-color: #28306e;
  color: #adb5bd;
  padding: 80px 40px 30px 40px;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-about {
  max-width: 400px;
}

.footer-logo {
  max-height: 80px;
  margin-bottom: 20px;
}

.footer-description {
  font-size: 0.95em;
  line-height: 1.7;
}

.footer-social {
  text-align: right;
}

.footer-social p {
  margin-bottom: 15px;
  font-size: 1em;
  font-weight: 500;
  color: #f8f9fa;
}

/* 1. Convierte la columna entera en un contenedor flexible y la centra. */
.footer-column.footer-social {
  display: flex;
  flex-direction: column;
  align-items: center; /* Centra horizontalmente el título y la lista de iconos */
}

/* 2. Estilos para la lista de iconos. */
.social-icons {
  display: flex;
  justify-content: center; /* Asegura que los iconos estén centrados */
  gap: 30px;
  padding: 0;
  margin-top: 10px;
}

.social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: #adb5bd;
  transition: color 0.3s ease, transform 0.3s ease;
}

.social-icons a:hover {
  color: #ffffff;
  transform: scale(1.1);
}

.footer-divider {
  border: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.15);
  margin-bottom: 40px;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  margin-bottom: 50px;
}

.footer-column h3 {
  font-size: 1.1em;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 20px;
}

.footer-column ul li {
  margin-bottom: 12px;
}

.footer-column ul li a {
  color: #adb5bd;
  transition: color 0.3s, padding-left 0.3s;
}

.footer-column ul li a:hover {
  color: #ffffff;
  padding-left: 5px;
}

.contact-list li {
  display: flex;
  align-items: center;
  gap: 10px;
}

.contact-list i {
  font-size: 1.2em;
  color: #ffffff;
}

.contact-list span {
  color: #adb5bd;
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.footer-bottom p {
  font-size: 0.9em;
}

/* ============================================= */
/* ===== MODAL "PRÓXIMAMENTE"              ===== */
/* ============================================= */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    z-index: 9998;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.modal-overlay.hidden {
    opacity: 0;
    visibility: hidden;
}
.modal-overlay:not(.hidden) {
    opacity: 1;
    visibility: visible;
}
.modal-content-simple {
    background: #fff;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    text-align: center;
    max-width: 450px;
    width: 100%;
    position: relative;
    transform: scale(0.9);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}
.modal-overlay:not(.hidden) .modal-content-simple {
    transform: scale(1);
    opacity: 1;
}
.modal-content-simple .modal-close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 2.5rem;
    font-weight: 300;
    color: #aaa;
    background: transparent;
    border: none;
    cursor: pointer;
    line-height: 1;
}
.modal-content-simple .modal-close-btn:hover {
    color: #333;
}
.modal-content-simple i {
    font-size: 4rem;
    color: #042a63;
    margin-bottom: 15px;
}
.modal-content-simple h3 {
    font-size: 1.8rem;
    color: #0F172A;
    margin-bottom: 10px;
}
.modal-content-simple p {
    font-size: 1rem;
    color: #4a5568;
}

/* ============================================= */
/* ===== BOTÓN VOLVER ARRIBA (SCROLL TOP)  ===== */
/* ============================================= */
.scroll-to-top-btn {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 50px;
    height: 50px;
    background-color: #042a63;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease, background-color 0.3s ease;
}
.scroll-to-top-btn.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.scroll-to-top-btn:hover {
    background-color: #03306b;
}

/* ========================================================== */
/* ===== ESTILOS RESPONSIVE (NAVBAR, FOOTER Y PÁGINA) ===== */
/* ========================================================== */
@media (max-width: 1300px) {
    
    /* --- Reglas de Navbar (NUEVO) --- */
    main {
        padding-top: 0px; /* Ajuste para que el main no tenga padding en móvil */
    }

    .navbar {
      padding: 0 30px; /* Regla específica de PTD/T&C para mobile */
    }

    .hamburger-btn {
        display: flex;
        flex-direction: column;
        justify-content: space-around;
        width: 30px;
        height: 24px;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 0;
        z-index: 1001;
    }

    .hamburger-btn span {
        width: 100%;
        height: 3px;
        background-color: var(--text-dark-blue);
        border-radius: 5px;
        transition: all 0.3s ease-in-out;
    }

    .hamburger-btn.active span:nth-child(1) {
        transform: rotate(45deg) translate(7px, 7px);
    }

    .hamburger-btn.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger-btn.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        height: 100vh;
        padding: 120px 40px 40px 40px;
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        gap: 25px; /* Este 'gap' separa los enlaces de texto */
        background-color: #ffffff;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        transition: right 0.4s ease-in-out;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        font-size: 1.2rem;
        font-weight: 600;
        color: var(--text-dark-blue);
    }

    .nav-links a::after {
        display: none; /* Desactiva el subrayado en móvil */
    }

    /* Ocultamos los botones de escritorio */
    .navbar-actions-desktop {
        display: none;
    }

    .nav-links__cta-mobile {
        display: block;
        margin-top: 0; /* Reseteamos el margen */
        width: 100%;
    }
    
    /* --- INICIO DE LA CORRECCIÓN --- */
    .nav-links__cta-mobile + .nav-links__cta-mobile {
        margin-top: 10px; /* Cambiado de -15px a 10px */
    }

    .nav-links__cta-mobile .cta {
        color: #fff !important;
        width: 100%;
        padding: 14px 24px; /* Padding horizontal reducido */
        font-size: 1.1rem; /* Fuente ligeramente reducida */
        text-align: center; /* Asegura el centrado */
        /* Hacemos que ambos tengan borde para que midan lo mismo */
        border: 2px solid var(--text-dark-blue);
    }
    /* --- FIN DE LA CORRECCIÓN --- */


    /* Botón "Pagos en Línea" (Sólido) */
    .nav-links__cta-mobile .cta-mobile--highlight {
      background: var(--text-dark-blue);
      border-color: var(--text-dark-blue);
    }

    .nav-links__cta-mobile .cta-mobile--highlight:hover {
      background: #03214d;
      border-color: #03214d;
    }
    
    /* Botón "Iniciar Sesión" (Outline) */
    .nav-links__cta-mobile .cta:not(.cta-mobile--highlight) {
        background: var(--white-color);
        color: var(--text-dark-blue) !important;
        border: 2px solid var(--text-dark-blue);
    }
    
    .nav-links__cta-mobile .cta:not(.cta-mobile--highlight):hover {
        background: #f8fafd; /* Azul pálido */
    }

    .overlay {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 998;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.4s ease, visibility 0.4s ease;
    }

    .overlay.active {
        opacity: 1;
        visibility: visible;
    }

    body.no-scroll { /* Mantengo esto por si lo usa el JS */
      overflow: hidden;
    }
}

@media (max-width: 800px) {
  .footer-top {
    flex-direction: column;
    text-align: center;
  }

  .footer-social {
    text-align: center;
    margin-top: 20px;
  }

  .footer-links {
    text-align: center;
  }

  .contact-list li {
    justify-content: center;
  }
}

@media (max-width: 700px) {
  .navbar {
    height: 90px;
    padding: 0 20px;
  }

  .navbar.scrolled {
    height: 60px;
  }

  .logo {
    height: 56px;
  }

  .logo img.logo--siglas {
    height: 56px;
  }

  .logo img.logo--full {
    height: 38px;
  }

  main {
    padding-top: 90px;
  }

  .policy-hero {
    padding: 50px 20px;
  }

  .hero-content h1 {
    font-size: 2.2em;
  }

  .policy-container,
  .contact-highlight {
    padding: 25px;
  }

  .response-times {
    flex-direction: column;
    gap: 10px;
    align-items: center;
  }

  .data-usage-grid {
    grid-template-columns: 1fr;
  }
}