/* =============================================
   SMILEY HERO GALLERY v6.0
   ============================================= */

/* ── Wrapper principal ── */
.smiley-hero-gallery {
    position: relative;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 24px;
}

/* ── Contenedor con borde blanco ── */
.smiley-hero-container {
    position: relative;
    width: 100%;
    background: #000;
    border: 24px solid #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,.15);
    display: flex;
    flex-direction: column;
}

/* ── Área de video 16:9 ── */
.smiley-hero-main {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #000;
}

/* ── Wrap del iframe YouTube ── */
.smiley-hero-video-wrap {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}
.smiley-hero-video-wrap iframe {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    border: none;
}

/* ── Overlay gradiente ── */
.smiley-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0) 35%, rgba(0,0,0,.65) 100%);
    pointer-events: none;
    z-index: 2;
}

/* ── Contenedor de textos ── */
.smiley-hero-textos {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding: 0 40px 50px;
    pointer-events: none;
    text-align: center;
    gap: 0;
}

/* ── Wrap relativo para los grupos ── */
.smiley-titulos-wrap {
    position: relative;
    width: 100%;
    /* altura mínima para que no salte el layout al cambiar texto */
    min-height: 5em;
    margin-bottom: 14px;
}

/* ── Grupo título + subtítulo ── */
.smiley-texto-group {
    position: absolute;
    width: 100%;
    left: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity .6s ease, transform .6s ease;
}
.smiley-texto-group.activo {
    opacity: 1;
    transform: translateY(0);
}

/* ── Título ── */
.smiley-titulo {
    font-size: clamp(16px, 2.6vw, 36px);
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
    margin: 0;
    text-shadow: 0 2px 12px rgba(0,0,0,.9);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ── Subtítulo ── */
.smiley-subtitulo {
    font-size: clamp(13px, 1.8vw, 22px);
    font-weight: 500;
    color: rgba(255,255,255,.9);
    line-height: 1.4;
    margin: 0;
    text-shadow: 0 1px 8px rgba(0,0,0,.9);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ── Dots indicadores ── */
.smiley-hero-dots {
    display: flex;
    gap: 10px;
    justify-content: center;
}
.smiley-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,.4);
    transition: background .3s ease, transform .3s ease;
}
.smiley-dot.activo {
    background: #fff;
    transform: scale(1.3);
}

/* ── Sin video ── */
.smiley-hero-no-video {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f3f4f6;
    color: #4a5568;
    font-size: 18px;
    text-align: center;
    padding: 20px;
}

/* ── Barra del CTA ── */
.smiley-hero-cta-container {
    flex: 0 0 auto;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    padding: 12px 20px;
}

/* ── Botón CTA — color inyectado inline desde PHP ── */
.smiley-hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 32px;
    /* background y color vienen inline desde PHP */
    font-size: 16px;
    font-weight: 700;
    text-decoration: none !important;
    border-radius: 50px;
    transition: opacity .25s ease, transform .25s ease, box-shadow .25s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,.2);
    white-space: nowrap;
}
.smiley-hero-cta:hover {
    opacity: .85;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,.25);
    /* color se mantiene del inline — no hardcodeado aquí */
}
.smiley-hero-cta svg {
    transition: transform .3s ease;
    flex-shrink: 0;
}
.smiley-hero-cta:hover svg {
    transform: translateX(5px);
}

/* ── Responsive 768px ── */
@media (max-width: 768px) {
    .smiley-hero-gallery      { padding: 16px; }
    .smiley-hero-container    { border-width: 16px; border-radius: 16px; }
    .smiley-hero-textos       { padding: 0 20px 40px; }
    .smiley-titulos-wrap      { min-height: 6em; }
    .smiley-hero-cta-container{ height: 60px; }
    .smiley-hero-cta          { font-size: 14px; padding: 10px 24px; }
}

/* ── Responsive 480px ── */
@media (max-width: 480px) {
    .smiley-hero-gallery      { padding: 10px; }
    .smiley-hero-container    { border-width: 12px; border-radius: 12px; }
    .smiley-hero-textos       { padding: 0 15px 30px; }
    .smiley-titulos-wrap      { min-height: 7em; }
    .smiley-hero-cta-container{ height: 55px; }
    .smiley-hero-cta          { font-size: 13px; padding: 9px 20px; }
}
