/* ==========================================================================
   ESTILOS HERO HEADER CON VIDEO Y REVEAL (COAHUAYANA)
   ========================================================================== */

.coahuayana-hero {
    min-height: 520px;
    height: 65vh;
    background-color: #807b48;
    /* Color de respaldo mientras carga el video */
}

/* VIDEO FULL-COVER */
.hero-video-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: 0;
}

/* OVERLAY CON TONO OLIVO/MARRÓN Y OPACIDAD */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(110, 105, 55, 0.75) 0%, rgba(80, 75, 38, 0.85) 100%);
    z-index: 1;
}

/* TAMAÑO ESCUDO */
.hero-escudo-img {
    max-height: 280px;
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.25));
}

/* LOGO SIEMPRE CONTIGO Y ANIMACIÓN COLOR REVEAL (DERECHA A IZQUIERDA) */
.hero-siempre-img {
    max-height: 220px;
    filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.2));
}

.reveal-logo-wrapper {
    position: relative;
    display: inline-block;
    overflow: hidden;
}

/* CAPA DE REVELADO DE COLOR QUE SE DESPLAZA DE DERECHA A IZQUIERDA */
.reveal-logo-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background-color: #fca500;
    /* Mismo color del menú */
    animation: colorRevealRightToLeft 1.4s cubic-bezier(0.77, 0, 0.175, 1) forwards;
    z-index: 3;
}

@keyframes colorRevealRightToLeft {
    0% {
        width: 100%;
    }

    100% {
        width: 0%;
    }
}

/* FRANJA DIVISORIA AMARILLA EN LA PARTE INFERIOR */
.hero-bottom-divider {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 24px;
    background-color: #fca500;
    /* Mismo amarillo/mostaza del menú */
    z-index: 4;
}

/* TARJETA FLOTANTE CON EL LOGO (IMAGEN 2) */
.hero-floating-card {
    position: absolute;
    bottom: -18px;
    left: 15px;
    background-color: #ffffff;
    padding: 16px 32px;
    border-radius: 18px;
    border-bottom-right-radius: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35) !important;
}

.floating-card-logo {
    height: 75px;
    width: auto;
    object-fit: contain;
}

/* AJUSTES RESPONSIVE */
@media (max-width: 768px) {
    .coahuayana-hero {
        height: auto;
        min-height: 480px;
    }

    .hero-escudo-img {
        max-height: 200px;
    }

    .hero-siempre-img {
        max-height: 160px;
    }

    .hero-floating-card {
        left: 50%;
        transform: translateX(-50%);
        padding: 12px 24px;
    }

    .floating-card-logo {
        height: 55px;
    }
}
/* TARJETA FLOTANTE CON ESQUINAS PERSONALIZADAS Y SOMBRA INFERIOR */
.hero-floating-card {
    position: absolute;
    bottom: -18px;
    left: 15px;
    background-color: #ffffff;
    padding: 16px 32px;

    /* ESQUINAS: Top-Left | Top-Right | Bottom-Right | Bottom-Left */
    border-radius: 20px 0px 20px 0px !important;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    z-index: 5;

    /* SOMBRA ENFOCADA ABAJO: Offset-X Offset-Y Blur Spread Color */
    box-shadow: 0px 14px 25px -4px rgba(0, 0, 0, 0.45) !important;
}

/* ==========================================================================
   SECCIÓN BIENVENIDA Y ANIMACIÓN POR SCROLL
   ========================================================================== */

/* CONTENEDOR CON IMAGEN DE FONDO */
.bienvenida-section {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 500px;
}

/* CARD SEMITRANSPARENTE (GLASSMORPHISM) */
.bienvenida-card {
    background: rgba(255, 255, 255, 0.65) !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.4) !important;
}

/* ANIMACIONES ACTIVADAS AL SCROLLEAR */
.reveal-on-scroll {
    opacity: 0;
    transition: all 0.9s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: transform, opacity;
}

.scroll-slide-left {
    transform: translateX(-80px);
}

.reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateX(0);
}

/* ==========================================================================
   ESTILOS SECCIÓN MENSAJE DEL PRESIDENTE Y MARCO MODERNO
   ========================================================================== */

/* MARCO CONTENEDOR NOVEDOSO CON GEOMETRÍA */
.presidente-frame-wrapper {
    position: relative;
    max-width: 380px;
    padding: 20px 20px 0px 20px;
}

/* FONDO TEXTURIZADO Y DORADO DETRÁS DE LA FOTO */
.presidente-bg-pattern {
    position: absolute;
    top: 0;
    right: 15px;
    width: 82%;
    height: 85%;
    background-color: #d1b15c;
    background-image: radial-gradient(rgba(255, 255, 255, 0.25) 2px, transparent 2px);
    background-size: 14px 14px;
    border-radius: 12px;
    z-index: 1;
}

/* ACENTOS EN CUADRO BLANCOS/CORTE GEOMÉTRICO */
.square-accent {
    position: absolute;
    background-color: #ffffff;
    z-index: 3;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.top-right-square {
    top: 15px;
    right: 0;
    width: 35px;
    height: 35px;
    border-radius: 6px;
}

.bottom-left-square {
    bottom: 50px;
    left: 5px;
    width: 40px;
    height: 40px;
    border-radius: 6px;
}

/* FOTOGRAFÍA EN PRIMER PLANO CON CORTE */
.presidente-img {
    position: relative;
    z-index: 2;
    border-radius: 12px;
    filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.2));
    object-fit: cover;
}

/* REGLA DE ANIMACIÓN DESDE LA DERECHA EN SCROLL */
.scroll-slide-right {
    transform: translateX(80px);
}

/* ==========================================================================
   ESTILOS SECCIÓN MENÚ CIUDADANO (TROPICAL / CARDS ELEVATION)
   ========================================================================== */
/* ==========================================================================
   ESTILOS SECCIÓN MENÚ CIUDADANO CON FONDO Y DIFUMINADO SUAVE
   ========================================================================== */

.menu-ciudadano-section {
    position: relative;
    background-image: linear-gradient(180deg,
            rgba(254, 249, 195, 0.92) 0%,
            /* Tono crema/amarillo superior de transición */
            rgba(255, 255, 255, 0.82) 40%,
            /* Difuminado suave centro */
            rgba(255, 253, 245, 0.95) 100%
            /* Difuminado inferior */
        ), url('../img/fondo2.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: scroll;
}

.tracking-wider {
    letter-spacing: 1px;
}

/* TARJETAS INTERACTIVAS CON ELEVACIÓN Y BORDE BRILLANTE */
.card-ciudadano {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(4px);
    transition: all 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
    z-index: 1;
    border: 2px solid rgba(254, 215, 170, 0.5) !important;
}

/* EFECTO HOVER IMPACTANTE EN AMARILLO BRILLANTE */
.card-ciudadano:hover {
    transform: translateY(-12px) scale(1.02);
    background-color: #fffdf0 !important;
    border-color: #ffb700 !important;
    /* Amarillo vibrante */
    box-shadow: 0 16px 35px rgba(255, 183, 0, 0.45), 0 0 15px rgba(255, 208, 0, 0.3) !important;
}

.card-ciudadano:hover .card-title-hover {
    color: #b47200 !important;
}

.card-ciudadano:hover .card-icon-wrapper {
    background-color: #ffd000 !important;
    color: #000000 !important;
    transform: scale(1.15) rotate(8deg);
    box-shadow: 0 6px 15px rgba(255, 183, 0, 0.5);
}

.card-ciudadano:hover .bg-watermark {
    color: rgba(255, 183, 0, 0.18);
    transform: scale(1.25) rotate(-12deg);
}

.card-ciudadano:hover .btn-card-action {
    color: #b47200 !important;
    font-weight: 800 !important;
}

/* ==========================================================================
   ESTILOS SECCIÓN SLIDER TURÍSTICO (VISITA COAHUAYANA)
   ========================================================================== */

.slider-turismo-section {
    min-height: 550px;
    height: 70vh;
    display: flex;
    align-items: center;
    background-color: #1a2e1e;
    /* Color base oscuro */
}

/* CAROUSEL TRANSICIÓN RÁPIDA DE 0.5 SEG */
#turismoCarousel .carousel-item {
    transition: transform 0.5s ease-in-out, opacity 0.5s ease-in-out !important;
}

.object-fit-cover {
    object-fit: cover;
}

/* OVERLAY TRANSLÚCIDO SOBRE LAS FOTOS */
.turismo-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.2) 100%);
    z-index: 1;
}

/* DIVISOR DE ONDA SUPERIOR */
.top-wave-divider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    z-index: 3;
}

.top-wave-divider svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 60px;
}

/* ESCUDO Y MARCA */
.turismo-escudo-img {
    max-height: 260px;
    filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.4));
}

/* CARD SEMITRANSPARENTE (GLASSMORPHISM) */
/* AJUSTE DE TAMAÑO DE LOGOS EN LA TARJETA TURISMO */
.img-visita-brand {
    max-height: 200px;
    /* Aumentado de 80px a 115px */
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.img-siempre-brand {
    max-height: 250px;
    /* Aumentado de 65px a 90px */
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

/* AJUSTE DEL PADDING DE LA TARJETA PARA DARLES MÁS ESPACIO */
.card-turismo-glass {
    background: rgba(255, 255, 255, 0.72) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.5) !important;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25) !important;
    padding: 2.5rem 2rem !important;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .slider-turismo-section {
        height: auto;
        min-height: 500px;
    }

    .turismo-escudo-img {
        max-height: 180px;
    }

    .card-turismo-glass {
        padding: 24px !important;
    }
}

/* Sección Redes Sociales con Imagen de Fondo y Difuminado Oscuro */
.social-section {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 60px 20px;
    
    /* Configuración de la imagen de fondo */
    background: url('img/fondo3.jpeg') no-repeat center center / cover;
    overflow: hidden;
}

/* Capa de Difuminado Oscuro (Overlay + Blur) sobre el fondo */
.social-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(8, 4, 12, 0.75); /* Oscurece la imagen */
    backdrop-filter: blur(5px);        /* Aplica el difuminado al fondo */
    z-index: 1;
}

/* Tarjeta Principal con Transparencia Oscura y Borde Neón */
.social-card {
    position: relative;
    z-index: 2; /* Para que quede por encima del difuminado de fondo */
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 850px;
    padding: 30px;
    
    /* Fondo oscuro transparente estilo Glassmorphism */
    background: rgba(15, 8, 25, 0.65);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    
    border: 2px solid #7429ec;
    border-radius: 16px;
    box-shadow: 0 0 25px rgba(116, 41, 236, 0.6);
    transition: transform 0.4s ease, box-shadow 0.4s ease, background 0.4s ease;
}

/* Animación de Levantamiento al pasar el ratón */
.social-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 35px rgba(116, 41, 236, 0.9);
    background: rgba(15, 8, 25, 0.75);
}

/* Contenido de Texto */
.social-info {
    flex: 1;
    min-width: 280px;
    margin-right: 25px;
}

.social-title {
    color: #ffd700; /* Amarillo */
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 15px;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.4);
}

.social-text {
    color: #ffeb3b; /* Amarillo brillante */
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 25px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

.social-text strong {
    color: #ffffff;
}


/* ==========================================================================
   ESTILOS SECCIÓN REDES SOCIALES / FACEBOOK CON FONDO DIFUMINADO
   ========================================================================== */

.social-section {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 550px;
}

/* OVERLAY OSCURO OPACO */
.social-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.82) 0%, rgba(30, 41, 59, 0.88) 100%);
    z-index: 1;
}

/* CARD GLASSMORPHISM PARA EL TEXTO */
.card-social-glass {
    background: rgba(255, 255, 255, 0.12) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

/* BOTÓN ESTILO FACEBOOK / COAHUAYANA */
.btn-facebook {
    display: inline-flex;
    align-items: center;
    background-color: #1877f2;
    color: #ffffff !important;
    font-size: 15px;
    border: none;
    transition: all 0.3s ease;
    box-shadow: 0 6px 18px rgba(24, 119, 242, 0.4) !important;
}

.btn-facebook:hover {
    background-color: #ffb700 !important; /* Amarillo de Coahuayana en hover */
    color: #000000 !important;
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 10px 22px rgba(255, 183, 0, 0.4) !important;
}

/* CONTENEDOR DEL FEED DE FACEBOOK */
.facebook-wrapper {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    border: 3px solid rgba(255, 255, 255, 0.3);
    transition: transform 0.3s ease;
}

.facebook-wrapper:hover {
    transform: translateY(-5px);
}

/* AJUSTES RESPONSIVOS */
@media (max-width: 991.98px) {
    .card-social-glass {
        text-align: center;
    }
    .facebook-wrapper iframe {
        width: 100% !important;
        max-width: 360px;
    }
}

/* ==========================================================================
   ESTILOS SECCIÓN CONTACTO Y BUZÓN CIUDADANO (DEGRADADO NEGRO-AMARILLO)
   ========================================================================== */

.contacto-section {
    /* Degradado de arriba hacia abajo: Negro arriba -> Amarillo/Mostaza abajo */
    background: linear-gradient(180deg, #111827 0%, #1f2937 40%, #d97706 85%, #fca500 100%);
    min-height: 600px;
}

/* CARDS GLASSMORPHISM SOBRE EL FONDO OSCURO */
.card-contacto-glass {
    background: rgba(255, 255, 255, 0.08) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
}

/* CONTENEDOR DEL FORMULARIO */

.form-iframe-container {
    width: 100%;
    height: auto;
    overflow: hidden; /* Elimina cualquier barra de desplazamiento interna */
}

.form-iframe-container iframe {
    width: 100%;
    border: none;
    display: block;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .form-iframe-container {
        max-height: 700px;
    }
}


/* ==========================================================================
   ESTILOS SECCIÓN ¿CÓMO LLEGAR? Y MARCO ÚNICO DE MAPA
   ========================================================================== */

.como-llegar-section {
    background: linear-gradient(180deg, #fffdf5 0%, #fef3c7 60%, #fff7ed 100%);
}

/* TARJETA INFORMATIVA */
.card-llegar-info {
    background: #ffffff;
    border: 2px solid rgba(252, 165, 0, 0.25) !important;
}

.accent-corner-ribbon {
    position: absolute;
    top: 0;
    right: 0;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, transparent 50%, #fca500 50%);
    border-top-right-radius: 12px;
}

/* ICONOS CIRCULARES */
.icon-atractivo {
    width: 42px;
    height: 42px;
    font-size: 18px;
    flex-shrink: 0;
}

.bg-amber-light {
    background-color: #fef3c7;
}

.bg-emerald-light {
    background-color: #dcfce7;
}

/* BOTÓN RUTA */
.btn-route-hover {
    transition: all 0.3s ease;
}

.btn-route-hover:hover {
    background-color: #ffb700 !important;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(252, 165, 0, 0.35) !important;
}

/* MARCO ÚNICO Y ELEGANTE PARA EL MAPA */
.map-frame-wrapper {
    padding: 15px;
}

/* RECUADROS DORADOS / VERDES TRASEROS QUE SIMULAN EL FRAME DE DISEÑO */
.map-bg-accent-1 {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 85%;
    height: 90%;
    background-color: #fca500;
    border-radius: 24px;
    z-index: 0;
    opacity: 0.85;
}

.map-bg-accent-2 {
    position: absolute;
    bottom: -10px;
    left: -10px;
    width: 75%;
    height: 80%;
    background-color: #15803d; /* Verde tropical institucional */
    border-radius: 24px;
    z-index: 0;
    opacity: 0.25;
}

.map-container-card {
    z-index: 1;
    transition: transform 0.4s ease;
}

.map-container-card:hover {
    transform: translateY(-5px);
}

.map-chip-badge {
    backdrop-filter: blur(8px);
    background: rgba(17, 24, 39, 0.85) !important;
}

