/* =========================
   RESPONSIVE HERO
========================= */

@media (max-width: 768px) {

    .hero {
        min-height: 50vh;
        padding-top: 40px;
    }

    .hero-title {
        font-size: 36px;
    }

    .hero-title span {
        font-size: 26px;
    }

    .hero-pretitle {
        font-size: 11px;
    }

    .hero-date {
        font-size: 13px;
        letter-spacing: 3px;
    }
}

/* =========================
   RESPONSIVE NAVBAR
========================= */


@media (max-width: 768px) {

    .ul_link {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }

    .navbar {
        padding: 20px;
    }

}

@media (max-width: 768px) {
    .navbar {
        padding: 20px !important; /* Mantiene el logo y menú en los bordes */
    }
    
    .navbar.scrolled {
        padding: 12px 20px !important; /* Un poco más pequeña al scroll en móvil */
    }

    /* Aseguramos que el contenido no se meta debajo del navbar fixed */
    body {
        padding-top: 80px; 
    }
}

/* =========================
   RESPONSIVE HERO
========================= */

/* Accesibilidad */
@media (prefers-reduced-motion: reduce) {
    .hero-pretitle,
    .hero-title,
    .hero-divider,
    .hero-date {
        transition: none !important;
        transform: none !important;
        opacity: 1 !important;
    }
}

@media (max-width: 768px) {
    .countdown {
        gap: 16px;
    }

    .countdown-item span {
        font-size: 22px;
    }
}

/* =========================
   RESPONSIVE NUESTRA HISTORIA
========================= */

@media (max-width: 768px) {

    /* Sección general */
    .section {
        padding: 60px 24px;
    }

    /* Título */
    .section-title {
        font-size: 28px;
        margin-bottom: 24px;
        line-height: 1.2;
    }


    /* Texto principal */
    .historia-text {
        font-size: 15px;
        line-height: 1.7;
        margin-bottom: 20px;
        padding: 0 6px; /* aire lateral extra */
    }

    /* Contenedor mapa */
    .historia-mapa {
        padding: 0 10px;
        margin-top: 20px;
    }

}

/* small screens: ocupar más ancho, seguir centrado */
@media (max-width:600px){
  .modal-content{
    width: 96%;
    max-width: 560px;
    padding: 8px;
    max-height: calc(100dvh - 32px);
  }
  .modal-content img{
    max-height: calc(100dvh - 140px);
  }
  .modal-close{ top:6px; right:6px; font-size:16px; }
}

/* bigger hit area on small screens */
@media (max-width:600px){
  :root{ --point-size: var(--point-size-touch); }
}

/* =========================
   RESPONSIVE EL DESTINO
========================= */

@media (max-width: 768px) {

    /* Sección general */
    .como-llegar {
        padding: 70px 24px;
    }

    /* Título */
    .como-llegar h1 {
        font-size: 30px;
        margin-bottom: 50px;
    }

    /* Bloques ceremonia */
    .ceremonia-flex,
    .ceremonia-flex-2 {
        flex-direction: column;
        gap: 40px;
        margin-left: 0;

    }

    /* Imagen */
    .img-ceremonia img:first-child {
        max-width: 100%;
    }

    /* Textos */
    .flex-como-llegar {
        gap: 30px;
    }

    .text-ceremonia,
    .text-ceremonia-2 {
        transform: none;
        opacity: 1;
        transition: none;
    }

    /* Títulos internos */
    .text-ceremonia h2,
    .text-ceremonia-2 h2 {
        font-size: 24px;
        margin-bottom: 20px;
    }

    .text-ceremonia h2 span,
    .text-ceremonia-2 h2 span {
        font-size: 34px;
    }

    /* Iconos + texto */
    .flex-icon-iglesia {
        gap: 8px;
    }

    .flex-column-icons {
        padding: 0;
    }

    /* Mensaje recordatorio */
    .mensaje-recordatorio {
        font-size: 14px;
        gap: 10px;

    }

    .faq-container h1 {
        margin-top: -20px;
    }

}

/* --- Ajuste footer para móviles --- */
@media (max-width: 600px) {
    .footer-phones {
        flex-direction: column;
        gap: 10px;
    }
    
    .footer-section h3 {
        font-size: 1.6rem;
    }
}

@media (max-width: 768px) {
    .btn-confirmacion {
        padding: 10px 24px;
        font-size: 12px;
    }
    .hero-button-container {
        margin-top: 20px;
    }
}