/* ==========================================================================
   HOJA DE ESTILOS GENERALES Y TEMATIZACIÓN INSTITUCIONAL - CUITZEO
   ========================================================================== */

/* 1. VARIABLES GLOBALES DE MARCA */
:root {
    --guinda-cuitzeo: #911A3A;
    --guinda-dark: #6E122A;
    --rosa-cuitzeo: #C83182;
    --rosa-hover: #A02265;
    --dorado-cuitzeo: #C5A059;
    --dorado-light: #E0C182;
    --gris-cuitzeo: #ADADAD;
    --gris-bg: #F8F9FA;
    --dark-card: #4A0B1E;
}

/* 2. REGLAS GENERALES Y TIPOGRAFÍA */
body {
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #333333;
    overflow-x: hidden;
    background-color: var(--gris-bg);
}

.leading-relaxed {
    line-height: 1.7;
}

.max-w-700 {
    max-width: 700px;
}

.fs-7 {
    font-size: 0.875rem !important;
}

.fs-8 {
    font-size: 0.78rem !important;
}

/* 3. CLASES DE COLOR INSTITUCIONALES */
.bg-guinda {
    background-color: var(--guinda-cuitzeo) !important;
}

.bg-dark-card {
    background-color: var(--dark-card) !important;
}

.bg-rosa {
    background-color: var(--rosa-cuitzeo) !important;
}

.bg-dorado {
    background-color: var(--dorado-cuitzeo) !important;
}

.text-guinda {
    color: var(--guinda-cuitzeo) !important;
}

.text-rosa {
    color: var(--rosa-cuitzeo) !important;
}

.text-dorado {
    color: var(--dorado-cuitzeo) !important;
}

/* BORDES PERSONALIZADOS */
.border-guinda {
    border: 2px solid var(--guinda-cuitzeo) !important;
}

.border-dorado {
    border: 2px solid var(--dorado-cuitzeo) !important;
}

.border-dorado-sm {
    border: 1px solid var(--dorado-cuitzeo) !important;
}

.border-gold-opacity {
    border-color: rgba(197, 160, 89, 0.3) !important;
}

/* 4. BOTONES INSTITUCIONALES */
.btn-guinda {
    background-color: var(--guinda-cuitzeo);
    color: #ffffff;
    border: none;
    transition: all 0.3s ease;
}

.btn-guinda:hover {
    background-color: var(--guinda-dark);
    color: #ffffff;
    transform: translateY(-2px);
}

.btn-rosa {
    background-color: var(--rosa-cuitzeo);
    color: #ffffff;
    border: none;
    transition: all 0.3s ease;
}

.btn-rosa:hover {
    background-color: var(--rosa-hover);
    color: #ffffff;
    transform: translateY(-2px);
}

.btn-outline-gold {
    border: 1.5px solid var(--dorado-cuitzeo);
    color: var(--dorado-cuitzeo);
    background: transparent;
    transition: all 0.3s ease;
}

.btn-outline-gold:hover {
    background-color: var(--dorado-cuitzeo);
    color: #1a1a1a;
}

.btn-gold-action {
    background-color: var(--dorado-cuitzeo);
    color: #1a1a1a;
    border: none;
    transition: all 0.3s ease;
}

.btn-gold-action:hover {
    background-color: var(--dorado-light);
    color: #1a1a1a;
}

/* 5. HERO HEADER CON VIDEO DE FONDO */
.hero-cuitzeo {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background-color: var(--guinda-dark);
}

.hero-video-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: 0;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(145, 26, 58, 0.85) 0%, rgba(44, 27, 11, 0.8) 100%);
    z-index: 1;
}

/* 6. ESTILOS DE FOTO E INSIGNIA DE PRESIDENCIA */
.president-img-frame img {
    height: 480px;
    width: 100%;
    object-fit: cover;
}

.w-85 {
    width: 85% !important;
}

/* 7. TARJETAS DE TRÁMITES Y SERVICIOS (EFECTOS ANIMADOS) */
.card-service-cuitzeo {
    transition: all 0.35s cubic-bezier(0.165, 0.84, 0.44, 1);
    background-color: #ffffff;
}

.card-service-cuitzeo .icon-box {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.35s ease, background-color 0.35s ease;
}

.card-service-cuitzeo:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(145, 26, 58, 0.18) !important;
    border-bottom: 3px solid var(--rosa-cuitzeo) !important;
}

.card-service-cuitzeo:hover .icon-box {
    transform: scale(1.1) rotate(5deg);
    background-color: var(--rosa-cuitzeo) !important;
}

/* 8. TARJETAS DE ENLACEN EXTERNOS (EFECTOS ANIMADOS) */
.card-external-cuitzeo {
    transition: all 0.35s ease;
    background-color: #ffffff;
}

.card-external-cuitzeo:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12) !important;
    border-bottom: 3px solid var(--dorado-cuitzeo) !important;
}

.card-external-cuitzeo i {
    transition: transform 0.35s ease;
}

.card-external-cuitzeo:hover i {
    transform: scale(1.15);
}

/* 9. CONTROLADOR DE ANIMACIONES AL SCROLL */
.animate-on-scroll {
    opacity: 0;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.animated {
    opacity: 1;
}

/* ==========================================================================
   ESTILOS DE FONDO DIFUMINADO PARA SECCIÓN DE TRÁMITES Y SERVICIOS
   ========================================================================== */
.section-tramites-cuitzeo {
    position: relative;
    background-color: #f8f9fa;
    z-index: 1;
}

/* Fondo con imagen, opacidad visible y efecto difuminado */
.section-tramites-cuitzeo::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../img/fondo1.webp');
    /* Ruta desde /css a /img */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.45;
    /* Mayor opacidad para que resalte la imagen */
    filter: blur(3px);
    /* Difuminado tenue */
    z-index: -1;
    transform: scale(1.03);
    /* Evita bordes blancos por el blur */
}

/* Máscara de gradiente tenue para mantener la legibilidad */
.tramites-gradient-mask {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(248, 249, 250, 0.4) 0%, rgba(255, 255, 255, 0.6) 50%, rgba(248, 249, 250, 0.4) 100%);
    z-index: 0;
}

/* Ajuste de contraste y efecto cristal para las tarjetas */
.section-tramites-cuitzeo .card-service-cuitzeo {
    background-color: rgba(255, 255, 255, 0.92) !important;
    backdrop-filter: blur(6px);
}

/* ==========================================================================
   ESTILOS DE FONDO DIFUMINADO PARA SECCIÓN DE AVISOS AL PÚBLICO
   ========================================================================== */
.section-avisos-cuitzeo {
    position: relative;
    background-color: #ffffff;
    z-index: 1;
}

/* Inserción de la imagen de fondo con difuminado (blur) */
.section-avisos-cuitzeo::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../img/fondo2.png');
    /* Ruta desde /css a /img */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.35;
    /* Opacidad idónea para resaltar la imagen */
    filter: blur(3px);
    /* Desenfoque sutil */
    z-index: -1;
    transform: scale(1.03);
    /* Evita bordes recortados por el blur */
}

/* Tarjeta contenedora de texto con efecto cristal esmerilado */
.bg-white-translucent {
    background-color: rgba(255, 255, 255, 0.90) !important;
    backdrop-filter: blur(6px);
    border: 1px solid rgba(197, 160, 89, 0.3) !important;
}

/* ==========================================================================
   ESTILOS SECCIÓN ENLACES EXTERNOS CON FONDO GUINDA DIFUMINADO (LAGO)
   ========================================================================== */
.section-enlaces-cuitzeo {
    position: relative;
    background-color: var(--guinda-dark, #6E122A);
    z-index: 1;
}

/* Inserción de img/lago1.jpeg con filtro blur y tintado guinda */
.section-enlaces-cuitzeo::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(135deg, rgba(145, 26, 58, 0.82) 0%, rgba(110, 18, 42, 0.88) 100%),
        url('../img/lago1.jpeg');
    /* Ruta relativa hacia img/ */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: blur(3px);
    /* Difuminado suave del paisaje del lago */
    z-index: -1;
    transform: scale(1.03);
    /* Previene bordes recortados por el desenfoque */
}

/* Ícono circular interno */
.icon-circle {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.35s ease;
}

.bg-rosa-light {
    background-color: rgba(200, 49, 130, 0.12);
}

/* Tarjetas traslúcidas estilo cristal blanco */
.card-external-cuitzeo {
    background-color: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(197, 160, 89, 0.3) !important;
    transition: all 0.35s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.card-external-cuitzeo:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3) !important;
    border-bottom: 3px solid var(--rosa-cuitzeo, #C83182) !important;
}

.card-external-cuitzeo:hover .icon-circle {
    background-color: var(--rosa-cuitzeo, #C83182);
    color: #ffffff !important;
    transform: scale(1.1) rotate(6deg);
}

/* ==========================================================================
   ESTILOS GENERALES DEL FOOTER INSTITUCIONAL - CUITZEO
   ========================================================================== */
.site-footer-cuitzeo {
    background: linear-gradient(180deg, #911A3A 0%, #4A0B1E 100%);
    border-top: 4px solid var(--dorado-cuitzeo, #C5A059);
}

.footer-logo-cuitzeo {
    max-height: 50px;
    width: auto;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4));
}

.footer-logo-pm {
    max-height: 42px;
    width: auto;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4));
}

/* Redes Sociales e Íconos */
.social-icon-btn {
    width: 38px;
    height: 38px;
    font-size: 1rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-icon-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.3);
}

/* Enlaces del Footer */
.footer-links a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: all 0.25s ease;
}

.footer-links a:hover {
    color: var(--dorado-cuitzeo, #C5A059);
    padding-left: 5px;
}