/* ============================================================
   CONFIGURACIÓN DE FUENTES COMACA 2026
   ------------------------------------------------------------
   Para cambiar la tipografía del sitio, descomenta UN solo
   preset (bloque @import + :root) y comenta los demás.

   Variables controladas:
     --heading-font   → títulos (H1, H2, H3, display-*, etc.)
     --body-font      → texto corrido, párrafos, botones, menú
   ============================================================ */


/* === PRESET 1: Titillium Web + DM Sans (original del tema) ===
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Titillium+Web:wght@300;400;600;700;900&display=swap');
:root {
    --heading-font: "Titillium Web", sans-serif;
    --body-font: "DM Sans", sans-serif;
}
*/


/* === PRESET 2: Cinzel + Lato (clásico, estilo masónico / solemne) ===
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;500;600;700;900&family=Lato:wght@300;400;700;900&display=swap');
:root {
    --heading-font: "Cinzel", serif;
    --body-font: "Lato", sans-serif;
}
*/


/* === PRESET 3: Playfair Display + Inter (elegante / editorial) ===
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:wght@400;600;700;800;900&display=swap');
:root {
    --heading-font: "Playfair Display", serif;
    --body-font: "Inter", sans-serif;
}
*/


/* === PRESET 4: Montserrat + Open Sans (moderno / corporativo) === */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800;900&family=Open+Sans:wght@300;400;500;600;700&display=swap');
:root {
    --heading-font: "Montserrat", sans-serif;
    --body-font: "Open Sans", sans-serif;
}


/* === PRESET 5: Cormorant Garamond + Source Sans Pro (tradicional / distinguido) ===
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;600;700&family=Source+Sans+3:wght@300;400;500;600;700&display=swap');
:root {
    --heading-font: "Cormorant Garamond", serif;
    --body-font: "Source Sans 3", sans-serif;
}
*/


/* === PRESET 6: Oswald + Roboto (fuerte / impactante) ===
@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@300;400;500;600;700&family=Roboto:wght@300;400;500;700;900&display=swap');
:root {
    --heading-font: "Oswald", sans-serif;
    --body-font: "Roboto", sans-serif;
}
*/


/* ============================================================
   AJUSTES DE CONSISTENCIA DE FUENTES
   ------------------------------------------------------------
   Fuerza que los elementos listados abajo usen la tipografía
   body (la misma que los párrafos descriptivos) para que se
   vean unificados con el resto del contenido.
   ============================================================ */

.about-two-area-info-list-item,
.about-two-area-info-list-item-text,
.about-two-area-info-list-item-icon {
    font-family: var(--body-font);
}

.about-two-area-info-list-item-text {
    font-size: 18px;
    font-weight: 400;
    letter-spacing: 0;
}


/* ============================================================
   FORMULARIO DE INSCRIPCIÓN
   ============================================================ */

.comaca-form .comaca-input {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    padding: 12px 16px;
    font-size: 15px;
    border-radius: 6px;
    transition: border-color .2s ease, background .2s ease;
}

.comaca-form .comaca-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.comaca-form .comaca-input:focus {
    background: rgba(255, 255, 255, 0.06);
    border-color: #d4a017;
    box-shadow: 0 0 0 0.2rem rgba(212, 160, 23, 0.2);
    color: #fff;
    outline: none;
}

.comaca-form select.comaca-input option {
    background: #1f1f2e;
    color: #fff;
}

.comaca-form label.form-label {
    font-size: 14px;
    letter-spacing: 0.5px;
}

.comaca-form .alert-danger {
    background: rgba(220, 53, 69, 0.15);
    border: 1px solid rgba(220, 53, 69, 0.35);
    color: #ffb3ba;
    border-radius: 6px;
}

.comaca-form .alert-danger ul {
    margin: 6px 0 0 0;
    padding-left: 20px;
}


/* ============================================================
   GALERÍA — efectos dinámicos
   ------------------------------------------------------------
   - Ken Burns sutil (zoom lento continuo)
   - Hover: zoom + saturación + brillo
   - Cortina oscura al reposo, clara en hover
   Para probar otros presets, ver al final de este bloque.
   ============================================================ */

.gallery-two-thumb {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

.gallery-two-thumb img {
    display: block;
    width: 100%;
    height: auto;
    will-change: transform, filter;
    transition: transform .6s cubic-bezier(.2,.7,.3,1), filter .5s ease;
    animation: comacaKenBurns 18s ease-in-out infinite alternate;
}

@keyframes comacaKenBurns {
    0%   { transform: scale(1)    translate(0, 0); }
    100% { transform: scale(1.06) translate(-1.5%, -1.5%); }
}

/* overlay oscuro que se aclara en hover */
.gallery-two-thumb::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,0.55) 100%);
    opacity: 1;
    transition: opacity .4s ease;
    pointer-events: none;
    z-index: 1;
}

.gallery-two-thumb:hover::after {
    opacity: .35;
}

.gallery-two-thumb:hover img {
    animation-play-state: paused;
    transform: scale(1.1);
    filter: saturate(1.15) brightness(1.05);
}

/* asegura que los controles queden sobre el overlay */
.gallery-two-button {
    z-index: 2;
}

/*
  --- Variantes alternativas (descomenta UNA si quieres cambiar) ---

  // Variante A: solo hover zoom, sin Ken Burns
  // .gallery-two-thumb img { animation: none; }

  // Variante B: tilt sutil + zoom
  // .gallery-two-thumb img { animation: none; transition: transform .6s ease; }
  // .gallery-two-thumb:hover img { transform: scale(1.08) rotate(-1deg); }

  // Variante C: blanco y negro → color en hover
  // .gallery-two-thumb img { filter: grayscale(70%); }
  // .gallery-two-thumb:hover img { filter: grayscale(0%); transform: scale(1.06); }
*/


/* ============================================================
   CONTADOR — ajustes responsive
   ------------------------------------------------------------
   Desktop: 4 unidades en fila con separadores.
   Tablet:  4 unidades más compactas sin separadores.
   Mobile:  2x2 en grid, números ajustados y etiquetas centradas.
   ============================================================ */

.counter-two-area .counter-wrapper {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    text-align: center;
}

.counter-two-area .counter-text {
    margin-left: 0;
    margin-top: 4px;
    text-align: center;
    font-size: clamp(16px, 1.6vw, 22px);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.counter-two-area .counter-title {
    font-size: clamp(48px, 8vw, 110px);
    line-height: 1;
}

/* Ocultamos los separadores ":" en todos los tamaños */
.counter-two-area .counter-separator {
    display: none !important;
}

/* Como los ":" ya no están, cada bloque debe centrarse y ocupar
   el mismo ancho para que los 4 contadores queden distribuidos parejo */
.counter-two-area > .container > .d-flex > div {
    justify-content: center !important;
    flex: 1 1 0;
}

/* Mobile (<768px): grid 2x2, números más pequeños */
@media (max-width: 767.98px) {
    .counter-two-area > .container > .d-flex {
        display: grid !important;
        grid-template-columns: 1fr 1fr;
        gap: 24px 8px !important;
        justify-items: center;
    }
    .counter-two-area > .container > .d-flex > div {
        justify-content: center !important;
        width: 100%;
        padding: 0 !important;
    }
    .counter-two-area .counter-title {
        font-size: clamp(44px, 12vw, 64px);
    }
    .counter-two-area .counter-text {
        font-size: 14px;
        letter-spacing: 2px;
    }
    .counter-two-area {
        padding-top: 60px !important;
    }
}

/* Muy pequeño (<400px): ajusta aún más */
@media (max-width: 399.98px) {
    .counter-two-area .counter-title {
        font-size: 40px;
    }
    .counter-two-area .counter-text {
        font-size: 12px;
    }
}


/* ============================================================
   BANNER — video de fondo
   ============================================================ */

.banner-two-area .banner-two-area-wrapper {
    position: relative;
    overflow: hidden;
}

.banner-two-area .banner-two-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 0;
    pointer-events: none;
}

/* Overlay oscuro para que el texto siga siendo legible */
.banner-two-area .banner-two-video-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(12, 11, 28, 0.55) 0%,
        rgba(12, 11, 28, 0.35) 50%,
        rgba(12, 11, 28, 0.55) 100%
    );
    z-index: 1;
    pointer-events: none;
}

/* Contenido (títulos, fecha, info) por encima del video */
.banner-two-area .banner-two-area-wrapper > .row,
.banner-two-area .banner-two-area-wrapper .banner-two-area-info {
    position: relative;
    z-index: 2;
}


/* ============================================================
   LIGHTBOX DE GALERÍA — solo imagen, sin marco
   ============================================================ */

/* Fondo oscuro del overlay */
.comaca-mfp.mfp-bg,
.mfp-bg { background: rgba(0, 0, 0, 0.92) !important; opacity: 1; }

/* Imagen centrada sin marco ni padding extra */
.comaca-mfp .mfp-figure,
.comaca-mfp .mfp-figure::after,
.comaca-mfp .mfp-content,
.comaca-mfp .mfp-img {
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
}

.comaca-mfp .mfp-figure::after { display: none; }
.comaca-mfp .mfp-bottom-bar,
.comaca-mfp .mfp-title,
.comaca-mfp .mfp-counter { display: none !important; }

/* Tamaño máximo razonable de la imagen */
.comaca-mfp .mfp-img {
    max-height: 85vh !important;
    max-width: 92vw !important;
    height: auto !important;
    width: auto !important;
    margin: 0 auto !important;
}

/* Botón cerrar visible */
.comaca-mfp .mfp-close {
    color: #fff !important;
    font-size: 40px !important;
    opacity: 0.9;
    top: 8px;
    right: 8px;
}

/* Flechas de navegación */
.comaca-mfp .mfp-arrow {
    opacity: 0.8;
}
.comaca-mfp .mfp-arrow::before,
.comaca-mfp .mfp-arrow::after {
    border-color: transparent !important;
}
.comaca-mfp .mfp-arrow-left::after  { border-right-color: #fff !important; }
.comaca-mfp .mfp-arrow-right::after { border-left-color:  #fff !important; }
