/*
 * HOME NUEVA — IMAGIC FILMS
 * Archivo: /wp-content/themes/buddyx-child/css/home.css
 * Reescrito desde cero. Limpio. Sin shortcodes. Sin conflictos.
 * Tipografía: Poppins (headings) / Inter (body)
 * Colores: #000 negro | #fff blanco | #CC8E03 gold | #1d1d1f texto
 */


/* =============================================================================
   RESET LAYOUT BUDDYX — Fix crítico full-width para front-page.php
   BuddyX usa display:grid en #page (2 columnas) y overflow:hidden que recorta.
   Forzamos layout lineal 100% en la home.
============================================================================= */

body.home #page,
body.home .site {
    display: block !important;
    grid-template-columns: none !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
    padding: 0 !important;
    margin: 0 !important;
}

body.home .site-header-wrapper {
    width: 100% !important;
    max-width: 100% !important;
    display: block !important;
    box-sizing: border-box !important;
}

body.home #imagic-home-main,
body.home .imagic-home {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
}

body.home #colophon,
body.home .site-footer {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

/* Secciones full-bleed */
.ih-hero,
.ih-catalogo,
.ih-area-dark {
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
}

/* =============================================================================
   RESET LOCAL — solo para .imagic-home
============================================================================= */

.imagic-home,
.imagic-home * {
    box-sizing: border-box;
}

body.home .entry-content,
body.home main,
body.home .site-main {
    padding: 0 !important;
    margin: 0 !important;
    max-width: none !important;
}

/* =============================================================================
   HEADER STICKY — baja con el scroll en páginas públicas
   Transparente en top, negro sólido al hacer scroll
============================================================================= */

body:not(.imagic-cliente-page) .site-header-wrapper {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    z-index: 1000 !important;
    transition: box-shadow 0.3s ease !important;
    background-color: #000000 !important;
}

/* Compensar el header fijo — empujar el contenido hacia abajo */
body:not(.imagic-cliente-page) #page {
    padding-top: 0 !important;
}

/* Páginas internas (no home, no cliente): compensar header fixed */
body:not(.imagic-cliente-page):not(.home) #page {
    padding-top: 112px !important;
}

body.admin-bar:not(.imagic-cliente-page):not(.home) #page {
    padding-top: 144px !important;
}

body.home .ih-hero {
    margin-top: 0 !important;
}

/* Admin bar compensa el sticky */
body.admin-bar:not(.imagic-cliente-page) .site-header-wrapper {
    top: 32px !important;
}

@media screen and (max-width: 782px) {
    body.admin-bar:not(.imagic-cliente-page) .site-header-wrapper {
        top: 46px !important;
    }
}




/* =============================================================================
   VARIABLES LOCALES
============================================================================= */

.imagic-home {
    --ih-gold:       #CC8E03;
    --ih-gold-light: #D9A41A;
    --ih-black:      #000000;
    --ih-dark:       #111111;
    --ih-white:      #ffffff;
    --ih-text:       #1d1d1f;
    --ih-text-light: #6b7280;
    --ih-border:     rgba(255,255,255,0.12);
    --ih-radius:     12px;
    --ih-radius-lg:  24px;
    --ih-gap:        clamp(40px, 6vw, 80px);
    --ih-container:  1200px;
    --ih-font-head:  'Poppins', -apple-system, sans-serif;
    --ih-font-body:  'Inter', -apple-system, sans-serif;
}


/* =============================================================================
   CONTENEDOR BASE
============================================================================= */

.ih-container {
    width: 90%;
    max-width: var(--ih-container);  /* 1200px */
    margin-left: auto;
    margin-right: auto;
}

.ih-container--narrow {
    max-width: var(--ih-container);  /* igual que el base — bordes consistentes */
    text-align: center;
}


/* =============================================================================
   TIPOGRAFÍA COMPARTIDA
============================================================================= */

.imagic-home .ih-eyebrow {
    display: inline-block;
    font-family: var(--ih-font-body) !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    letter-spacing: 0.12em !important;
    text-transform: uppercase !important;
    color: var(--ih-gold) !important;
    margin-bottom: 12px !important;
}

.imagic-home .ih-eyebrow--light {
    color: var(--ih-gold) !important;
}

.imagic-home .ih-title-gold {
    font-family: var(--ih-font-head) !important;
    font-size: clamp(2rem, 4.5vw, 3.2rem) !important;
    font-weight: 700 !important;
    line-height: 1.1 !important;
    letter-spacing: -0.02em !important;
    background: linear-gradient(135deg, #CC8E03 0%, #D9A41A 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    margin: 0 0 24px !important;
}

.imagic-home .ih-title-white {
    font-family: var(--ih-font-head) !important;
    font-size: clamp(1.6rem, 3vw, 2.4rem) !important;
    font-weight: 700 !important;
    line-height: 1.1 !important;
    letter-spacing: -0.02em !important;
    color: var(--ih-white) !important;
    margin: 0 0 16px !important;
}

.imagic-home .ih-title-dark {
    font-family: var(--ih-font-head) !important;
    font-size: clamp(1.8rem, 4vw, 3rem) !important;
    font-weight: 700 !important;
    line-height: 1.1 !important;
    letter-spacing: -0.02em !important;
    color: var(--ih-text) !important;
    margin: 0 0 40px !important;
}


/* =============================================================================
   BOTONES
============================================================================= */

.imagic-home .ih-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--ih-font-body) !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    text-decoration: none !important;
    border-radius: 100px !important;
    padding: 14px 28px !important;
    transition: all 0.2s ease !important;
    cursor: pointer !important;
    border: 2px solid transparent !important;
    line-height: 1 !important;
}

.imagic-home .ih-btn--primary {
    background: var(--ih-gold) !important;
    color: var(--ih-white) !important;
    border-color: var(--ih-gold) !important;
}
.imagic-home .ih-btn--primary:hover {
    background: var(--ih-gold-light) !important;
    border-color: var(--ih-gold-light) !important;
    transform: translateY(-1px) !important;
}

.imagic-home .ih-btn--ghost {
    background: transparent !important;
    color: var(--ih-white) !important;
    border-color: rgba(255,255,255,0.5) !important;
}
.imagic-home .ih-btn--ghost:hover {
    border-color: var(--ih-white) !important;
    background: rgba(255,255,255,0.08) !important;
}

.imagic-home .ih-btn--outline-dark {
    background: transparent !important;
    color: var(--ih-text) !important;
    border-color: var(--ih-text) !important;
}
.imagic-home .ih-btn--outline-dark:hover {
    background: var(--ih-text) !important;
    color: var(--ih-white) !important;
}

.imagic-home .ih-btn--outline-light {
    background: transparent !important;
    color: var(--ih-white) !important;
    border-color: rgba(255,255,255,0.4) !important;
}
.imagic-home .ih-btn--outline-light:hover {
    border-color: var(--ih-white) !important;
    background: rgba(255,255,255,0.1) !important;
}

.imagic-home .ih-btn--gold {
    background: var(--ih-gold) !important;
    color: var(--ih-white) !important;
    border-color: var(--ih-gold) !important;
}
.imagic-home .ih-btn--gold:hover {
    background: var(--ih-gold-light) !important;
    border-color: var(--ih-gold-light) !important;
    transform: translateY(-1px) !important;
}

.imagic-home .ih-btn--large {
    font-size: 17px !important;
    padding: 18px 40px !important;
}

.imagic-home .ih-btn--full {
    width: 100% !important;
}


/* =============================================================================
   SECCIÓN 1 — VIDEO HERO
============================================================================= */

.ih-hero {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 560px;
    max-height: 900px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--ih-black);
}

.ih-hero__video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.ih-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0.35) 0%,
        rgba(0,0,0,0.55) 100%
    );
    z-index: 2;
}

.ih-hero__content {
    position: relative;
    z-index: 3;
    text-align: center;
    padding: 0 24px;
    max-width: 960px;
    animation: ihFadeUp 0.9s ease-out both;
}

.ih-hero__title {
    font-family: var(--ih-font-head) !important;
    font-size: clamp(2.2rem, 5.5vw, 4.2rem) !important;
    font-weight: 700 !important;
    line-height: 1.1 !important;
    letter-spacing: -0.025em !important;
    color: var(--ih-white) !important;
    text-shadow: 0 2px 20px rgba(0,0,0,0.5) !important;
    margin: 0 0 48px !important;
}

.ih-hero__sub {
    font-family: var(--ih-font-body) !important;
    font-size: clamp(1rem, 2vw, 1.2rem) !important;
    font-weight: 400 !important;
    color: rgba(255,255,255,0.85) !important;
    margin: 0 0 36px !important;
    letter-spacing: 0 !important;
}

.ih-hero__btns {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

@keyframes ihFadeUp {
    from { opacity: 0; transform: translateY(28px); }
    to   { opacity: 1; transform: translateY(0); }
}


/* =============================================================================
   SECCIÓN 2 — INTRO (fondo blanco)
============================================================================= */

.ih-intro {
    background: var(--ih-white);
    padding: var(--ih-gap) 0;
}

.ih-intro__text {
    font-family: var(--ih-font-body) !important;
    font-size: 19px !important;
    font-weight: 400 !important;
    line-height: 1.75 !important;
    color: var(--ih-text-light) !important;
    margin: 0 0 32px !important;
    letter-spacing: 0 !important;
}

/* Negritas del texto intro — color más oscuro que el cuerpo */
.ih-intro__text b,
.ih-intro__text strong {
    font-weight: 700 !important;
    color: var(--ih-text) !important;
}

/* Último párrafo — mismo margen que h2→p (40px) para equilibrar espacio con botón */
.ih-intro .ih-intro__text:last-of-type {
    margin-bottom: 40px !important;
}


/* =============================================================================
   SECCIÓN 3 — CATÁLOGO (fondo negro)
============================================================================= */

.ih-catalogo {
    background: var(--ih-black);
    padding: var(--ih-gap) 0;
    overflow: hidden;
}

.ih-catalogo__sub {
    font-family: var(--ih-font-body) !important;
    font-size: 16px !important;
    color: rgba(255,255,255,0.55) !important;
    margin: 0 0 clamp(32px, 4vw, 56px) !important;
    text-align: center !important;
    letter-spacing: 0 !important;
}

.ih-catalogo .ih-container {
    text-align: center;
}

/* Carrusel */
.ih-carrusel {
    position: relative;
    width: 90%;
    max-width: var(--ih-container);  /* 1200px — igual que todos los contenedores */
    margin: 0 auto;
    /* sin overflow aquí — está en __viewport */
}

/* Viewport — el único que tiene overflow:hidden */
.ih-carrusel__viewport {
    width: 100%;
    overflow: hidden;
    border-radius: 4px;
    /* Asegura que el último poster se vea completo */
    padding-right: 0;
}

.ih-carrusel__track {
    display: flex;
    gap: 28px;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    align-items: stretch;
    will-change: transform;
}

/* Poster individual — 3 visibles exactos con gap incluido */
.ih-poster {
    flex: 0 0 calc(33.333% - 19px);
    border-radius: var(--ih-radius);
    overflow: hidden;
    position: relative;
    background: #1a1a1a;
    aspect-ratio: 2/3;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Borde dorado encima de la imagen — pseudo-elemento sobre overflow:hidden */
.ih-poster::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--ih-radius);
    border: 1px solid rgba(204, 142, 3, 0.45);
    pointer-events: none;
    z-index: 4;
}

.ih-poster:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 48px rgba(0,0,0,0.6);
}

.ih-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.ih-poster:hover img {
    transform: scale(1.04);
}

.ih-poster__info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px 16px 16px;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.ih-poster:hover .ih-poster__info {
    opacity: 1;
}

.ih-poster__titulo {
    font-family: var(--ih-font-head) !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    color: var(--ih-white) !important;
    letter-spacing: 0 !important;
}

/* Poster CTA */
.ih-poster--cta {
    background: #111;
    border: 1px solid rgba(255,255,255,0.1);
    cursor: default;
}

.ih-poster--cta:hover {
    transform: none;
    box-shadow: none;
}

/* CTA card — link envuelve todo el inner */
.ih-poster__cta-link {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    height: 100% !important;
    padding: 24px 20px !important;
    text-align: center !important;
    text-decoration: none !important;
    color: inherit !important;
}

.ih-poster__cta-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 24px 20px;
    text-align: center;
}

.ih-poster__cta-icon {
    font-size: 32px;
    margin-bottom: 12px;
}

.ih-poster__cta-text {
    font-family: var(--ih-font-head) !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    color: var(--ih-white) !important;
    margin: 0 0 6px !important;
    letter-spacing: 0 !important;
}

.ih-poster__cta-sub {
    font-family: var(--ih-font-body) !important;
    font-size: 13px !important;
    color: rgba(255,255,255,0.5) !important;
    margin: 0 0 20px !important;
    letter-spacing: 0 !important;
}

/* Formulario CTA catálogo */
.ih-cta-form {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ih-cta-form input {
    width: 100% !important;
    background: rgba(255,255,255,0.08) !important;
    border: 1px solid rgba(255,255,255,0.15) !important;
    border-radius: 8px !important;
    padding: 10px 14px !important;
    font-family: var(--ih-font-body) !important;
    font-size: 13px !important;
    color: var(--ih-white) !important;
    outline: none !important;
    transition: border-color 0.2s !important;
}

.ih-cta-form input::placeholder {
    color: rgba(255,255,255,0.35) !important;
}

.ih-cta-form input:focus {
    border-color: var(--ih-gold) !important;
    background: rgba(255,255,255,0.12) !important;
}

.ih-cta-form__legal {
    font-family: var(--ih-font-body) !important;
    font-size: 11px !important;
    color: rgba(255,255,255,0.3) !important;
    margin: 2px 0 0 !important;
    letter-spacing: 0 !important;
}

.ih-cta-form__ok p {
    font-family: var(--ih-font-body) !important;
    font-size: 14px !important;
    color: var(--ih-gold) !important;
    margin: 0 !important;
}

/* Botones del carrusel — fuera del área de posters */
.ih-carrusel__btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.25);
    color: var(--ih-white);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    backdrop-filter: blur(8px);
    flex-shrink: 0;
}

.ih-carrusel__btn:hover {
    background: var(--ih-gold);
    border-color: var(--ih-gold);
    transform: translateY(-50%) scale(1.05);
}

/* Los botones están FUERA del viewport — posicionados con margen negativo */
.ih-carrusel__btn--prev {
    left: -56px;
}
.ih-carrusel__btn--next {
    right: -56px;
}

.ih-carrusel__btn:disabled {
    opacity: 0.25;
    cursor: not-allowed;
    pointer-events: none;
}

/* Dots */
.ih-carrusel__dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 28px;
}

.ih-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255,255,255,0.25);
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
}

.ih-dot.active {
    background: var(--ih-gold);
    width: 20px;
    border-radius: 3px;
}

.ih-catalogo__link {
    text-align: center;
    margin-top: 40px;
}


/* =============================================================================
   SECCIÓN 4 — PROCESO (fondo blanco)
============================================================================= */

.ih-proceso {
    background: var(--ih-white);
    padding: var(--ih-gap) 0;
}

.ih-proceso .ih-container {
    text-align: center;
}

.ih-proceso__sub {
    font-family: var(--ih-font-body) !important;
    font-size: 19px !important;
    font-weight: 400 !important;
    line-height: 1.75 !important;
    color: var(--ih-text-light) !important;
    text-align: center !important;
    letter-spacing: 0 !important;
    margin: 0 0 clamp(40px, 5vw, 64px) !important;
}

/* Grid de 3 pasos centrados */
.ih-pasos {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    text-align: left;
    margin-bottom: 48px;
    justify-content: center !important;
}

/* Variante explícita 3 columnas */
.ih-pasos--3 {
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-left: auto;
    margin-right: auto;
}

.ih-paso {
    padding: 28px 24px;
    border-radius: var(--ih-radius);
    border: none;
    background: #ffffff;
    box-shadow: none;
}

/* Primer y último paso sin padding lateral exterior — alinear con bordes del container */
.ih-pasos--3 .ih-paso:first-child {
    padding-left: 0;
}
.ih-pasos--3 .ih-paso:last-child {
    padding-right: 0;
}

/* .ih-paso:hover {
    box-shadow: none;
    transform: translateY(-4px);
} Quitar movimiento servicios home*/

/* Punto decorativo — grande, dorado */
.ih-paso__dot {
    font-size: 16px !important;
    font-weight: 700 !important;
    color: var(--ih-gold) !important;
    line-height: 1 !important;
    margin-bottom: 14px !important;
    display: block !important;
    text-align: center !important;
}

.ih-paso__titulo {
    font-family: var(--ih-font-head) !important;
    font-size: 17px !important;
    font-weight: 600 !important;
    color: var(--ih-text) !important;
    margin: 0 0 12px !important;
    line-height: 1.4 !important;
    text-align: center !important;
}

.ih-paso__desc {
    font-family: var(--ih-font-body) !important;
    font-size: 16px !important;
    font-weight: 400 !important;
    color: var(--ih-text-light) !important;
    line-height: 1.75 !important;
    margin: 0 !important;
    letter-spacing: 0 !important;
    text-align: center !important;
    word-spacing: normal !important;
}

.ih-paso__titulo {
    text-align: center !important;
}

.ih-proceso__cta {
    margin-top: 16px;
}


/* =============================================================================
   SECCIÓN 5 — ÁREA DARK (fondo negro)
============================================================================= */

.ih-area-dark {
    background: var(--ih-black);
    padding: var(--ih-gap) 0;
}

/* Bloque área promo */
.ih-area-promo {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(40px, 6vw, 80px);
    align-items: center;
    margin-bottom: clamp(48px, 6vw, 80px);
}

.ih-area-promo__desc {
    font-family: var(--ih-font-body) !important;
    font-size: 19px !important;
    color: rgba(255,255,255,0.6) !important;
    line-height: 1.75 !important;
    margin: 0 0 24px !important;
    letter-spacing: 0 !important;
}

.ih-area-promo__lista {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 0 32px !important;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ih-area-promo__lista li {
    font-family: var(--ih-font-body) !important;
    font-size: 19px !important;
    color: rgba(255,255,255,0.75) !important;
    padding-left: 20px !important;
    position: relative !important;
    letter-spacing: 0 !important;
}

.ih-area-promo__lista li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--ih-gold);
    font-size: 19px;
}

/* Próximas fechas */
.ih-area-promo__visual {
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
}

.ih-proximas-fechas {
    background: #111;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 16px;
    overflow: hidden;
    width: 100%;
    max-width: 360px;
    padding: 24px;
    box-shadow: 0 32px 64px rgba(0,0,0,0.5);
}

.ih-fechas-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.ih-fechas-icon {
    font-size: 18px;
}

.ih-fechas-titulo {
    font-family: var(--ih-font-head) !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    color: var(--ih-white) !important;
    text-transform: uppercase !important;
    letter-spacing: 0.08em !important;
}

.ih-fecha-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.ih-fecha-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.ih-fecha-cal {
    flex: 0 0 44px;
    background: var(--ih-gold);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 6px 4px;
    min-width: 44px;
}

.ih-fecha-dia {
    font-family: var(--ih-font-head) !important;
    font-size: 20px !important;
    font-weight: 800 !important;
    color: var(--ih-white) !important;
    line-height: 1 !important;
    display: block !important;
}

.ih-fecha-mes {
    font-family: var(--ih-font-body) !important;
    font-size: 10px !important;
    font-weight: 600 !important;
    color: rgba(255,255,255,0.85) !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    display: block !important;
}

.ih-fecha-texto {
    font-family: var(--ih-font-body) !important;
    font-size: 13px !important;
    font-weight: 400 !important;
    color: rgba(255,255,255,0.75) !important;
    line-height: 1.4 !important;
}

/* Slider apoyos — velocidad reducida para pocos logos */
.ih-apoyos__track {
    animation-duration: 25s;
}

/* Separador */
.ih-sep {
    border: none;
    border-top: 1px solid rgba(255,255,255,0.1);
    margin: 0 0 clamp(40px, 5vw, 64px);
}

/* Slider festivales — CSS puro, sin JS */
.ih-festivales__titulo {
    font-family: var(--ih-font-head) !important;
    font-size: 23px !important;
    font-weight: 600 !important;
    color: var(--ih-white) !important;
    text-align: center !important;
    margin: 0 0 32px !important;
    letter-spacing: 0 !important;
}

.ih-festivales__slider {
    position: relative;
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent, black 12%, black 88%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 12%, black 88%, transparent);
}

.ih-festivales__track {
    display: flex;
    gap: 32px;
    align-items: center;
    animation: ihSliderLoop 50s linear infinite;
    width: max-content;
}

.ih-festivales__slider:hover .ih-festivales__track {
    animation-play-state: paused;
}

.ih-festivales__logo-wrap {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 48px;
}

.ih-festivales__logo-wrap img {
    max-height: 48px;
    max-width: 120px;
    width: auto;
    object-fit: contain;
    filter: brightness(0) invert(1);
    opacity: 0.5;
    transition: opacity 0.2s ease, filter 0.2s ease;
}

.ih-festivales__logo-wrap:hover img {
    opacity: 0.9;
    filter: brightness(0) invert(1) sepia(1) saturate(2) hue-rotate(5deg);
}

@keyframes ihSliderLoop {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}


/* =============================================================================
   APOYOS — dos columnas estáticas
============================================================================= */

.ih-apoyos-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(32px, 5vw, 64px);
    padding-top: clamp(32px, 4vw, 48px);
    margin-top: clamp(32px, 4vw, 48px);
    border-top: 1px solid rgba(255,255,255,0.1);
}

.ih-apoyos-col__titulo {
    font-family: var(--ih-font-body) !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    color: rgba(255,255,255,0.55) !important;
    margin: 0 0 24px !important;
}

.ih-apoyos-col__logos {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 24px;
}

/* Columna derecha — alineada a la derecha */
.ih-apoyos-grid .ih-apoyos-col:last-child {
    text-align: right;
}
.ih-apoyos-grid .ih-apoyos-col:last-child .ih-apoyos-col__logos {
    justify-content: flex-end;
}

.ih-apoyo-logo {
    max-height: 80px;
    max-width: 220px;
    width: auto;
    object-fit: contain;
    filter: brightness(0) invert(1);
    opacity: 1;
    transition: none;
}

.ih-apoyo-logo:hover {
    opacity: 1;
}

@media (max-width: 640px) {
    .ih-apoyos-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}


/* =============================================================================
   FOOTER — negro con letras blancas
   Afecta al footer del tema BuddyX en todas las páginas públicas
============================================================================= */

/* Footer negro — máxima especificidad para ganar al tema padre */
html body:not(.imagic-cliente-page) .site-footer,
html body:not(.imagic-cliente-page) footer.site-footer,
html body:not(.imagic-cliente-page) #colophon,
html body:not(.imagic-cliente-page) .site-footer .site-info,
html body:not(.imagic-cliente-page) .site-footer .site-footer-wrapper,
html body:not(.imagic-cliente-page) .site-footer .footer-inner,
html body:not(.imagic-cliente-page) .site-footer .container {
    background: #000000 !important;
    background-color: #000000 !important;
}

html body:not(.imagic-cliente-page) #colophon {
    border-top: 1px solid rgba(255,255,255,0.08) !important;
}

html body:not(.imagic-cliente-page) .site-footer *,
html body:not(.imagic-cliente-page) #colophon * {
    color: rgba(255,255,255,0.6) !important;
}

html body:not(.imagic-cliente-page) .site-footer a,
html body:not(.imagic-cliente-page) #colophon a {
    color: rgba(255,255,255,0.6) !important;
    text-decoration: none !important;
}

html body:not(.imagic-cliente-page) .site-footer a:hover,
html body:not(.imagic-cliente-page) #colophon a:hover {
    color: #CC8E03 !important;
}


/* =============================================================================
   RESPONSIVE
============================================================================= */

/* Tablet — 1024px */
@media (max-width: 1024px) {
    .ih-pasos,
    .ih-pasos--3 {
        grid-template-columns: repeat(2, 1fr);
    }

    .ih-area-promo {
        grid-template-columns: 1fr;
    }

    .ih-area-promo__visual {
        order: -1;
    }

    .ih-poster {
        flex: 0 0 200px;
    }
}

/* Mobile — 768px */
@media (max-width: 768px) {
    .ih-hero {
        height: 90vh;
        min-height: 480px;
    }

    .ih-hero__title {
        font-size: clamp(1.8rem, 7vw, 2.8rem) !important;
    }

    .ih-hero__btns {
        flex-direction: column;
        align-items: center;
    }

    .ih-hero__btns .ih-btn {
        width: 100%;
        max-width: 280px;
    }

    .ih-pasos,
    .ih-pasos--3 {
        grid-template-columns: 1fr;
    }

    .ih-carrusel {
        padding: 0 44px;
    }

    .ih-poster {
        flex: 0 0 180px;
    }

    .ih-poster--cta {
        flex: 0 0 220px;
    }

    .ih-mockup-content {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Mobile pequeño — 480px */
@media (max-width: 480px) {
    .ih-carrusel {
        padding: 0 36px;
    }

    .ih-poster {
        flex: 0 0 150px;
    }

    .ih-poster--cta {
        flex: 0 0 190px;
    }

    .ih-carrusel__btn {
        width: 36px;
        height: 36px;
    }
}

/* Accesibilidad */
@media (prefers-reduced-motion: reduce) {
    .ih-festivales__track {
        animation: none;
    }
    .ih-hero__content {
        animation: none;
    }
    .ih-carrusel__track {
        transition: none;
    }
}


/* =============================================================================
   HEADER STICKY — siempre visible, sombra al hacer scroll
============================================================================= */

body:not(.imagic-cliente-page) .site-header-wrapper.ih-header-scrolled {
    box-shadow: 0 2px 20px rgba(0,0,0,0.4) !important;
}