/* ========================================
   SMILEY HERO VIDEO — Reutilizable
   Video en loop + texto anclado abajo,
   sin tarjeta. Solo el video cambia entre
   landings; el patrón de texto/CTA se repite.
   ======================================== */

:root {
    --shv-green:      #33cc33;
    --shv-green-dark: #22aa22;
    --shv-gold:       #d4a017;
}

@keyframes shv-fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

.shv-hero {
    position: relative;
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    margin-top: -30px !important;
    min-height: 580px;
    height: 76vh;
    max-height: 720px;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
}

/* Quitar el espacio en blanco que algunos temas dejan
   antes del primer bloque de contenido de la página */
.entry-content > *:first-child,
.entry-content > .shv-hero:first-child,
main > *:first-child,
.content-area > *:first-child,
article > *:first-child {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.shv-video {
    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: 1;
}

.shv-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0) 35%, rgba(0,0,0,0.32) 70%, rgba(0,0,0,0.62) 100%);
    z-index: 2;
    pointer-events: none;
}

.shv-container {
    position: relative;
    z-index: 3;
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 40px;
}

.shv-content {
    max-width: 620px;
    padding-bottom: 48px;
    animation: shv-fadeInUp 0.7s ease-out;
    font-family: 'Poppins', sans-serif;
}

.shv-subtitulo {
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: #ffffff;
    margin: 0 0 14px 0;
    text-shadow: 0 2px 10px rgba(0,0,0,0.75), 0 1px 3px rgba(0,0,0,0.6);
}

.shv-titulo {
    max-width: 560px;
    font-size: clamp(30px, 4.2vw, 48px);
    font-weight: 600;
    letter-spacing: -0.3px;
    color: #ffffff;
    line-height: 1.22;
    margin: 0 0 28px 0;
    text-shadow: 0 3px 18px rgba(0,0,0,0.65), 0 1px 4px rgba(0,0,0,0.55);
}

.shv-cta {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: var(--shv-green);
    color: #ffffff;
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    font-weight: 600;
    padding: 16px 36px;
    border-radius: 50px;
    text-decoration: none;
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
}

.shv-cta:hover {
    background: var(--shv-green-dark);
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.35);
}

.shv-cta-icon { width: 22px; height: 22px; fill: #ffffff; flex-shrink: 0; }

@media (max-width: 992px) {
    .shv-hero      { min-height: 480px; height: 64vh; }
    .shv-container { padding: 0 28px; }
    .shv-content   { padding-bottom: 36px; }
}

@media (max-width: 768px) {
    .shv-hero      { height: 55vh; min-height: 420px; }
    .shv-content   { max-width: 100%; padding-bottom: 32px; }
    .shv-cta       { width: 100%; justify-content: center; }
}

@media (max-width: 420px) {
    .shv-titulo    { font-size: 24px; }
    .shv-hero      { min-height: 400px; }
}
