/*
 * hero-drsebagh.css
 * Hero fullscreen con animación de palabras estilo DrSebagh
 * plasticalomas.com · Dr. Ilich Ríos
 *
 * Cargar en functions.php junto a design-system.css
 */

/* ─── CONTENEDOR PRINCIPAL ─────────────────────────────── */
.plx-hero {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 580px;
    max-height: 900px;
    overflow: hidden;
    background: var(--color-heading);
}

/* ─── IMAGEN — LADO DERECHO ────────────────────────────── */
.plx-hero__image-wrap {
    position: absolute;
    inset: 0;
    right: 0;
    left: 38%;        /* imagen ocupa el 62% derecho */
    z-index: 1;
}

.plx-hero__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    filter: grayscale(100%) contrast(1.05);
    display: block;
}

.plx-hero__img-placeholder {
    width: 100%;
    height: 100%;
    background: #1a2a36;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.plx-hero__img-placeholder span {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 14px;
    color: rgba(250,248,244,0.25);
    letter-spacing: 0.06em;
}

.plx-hero__img-placeholder small {
    font-size: 11px;
    color: rgba(250,248,244,0.15);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* ─── OVERLAY GRADIENTE ────────────────────────────────── */
.plx-hero__overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(
        to right,
        rgba(14,30,42,0.92) 0%,
        rgba(14,30,42,0.75) 38%,
        rgba(14,30,42,0.35) 60%,
        rgba(14,30,42,0.05) 100%
    );
}

/* ─── LÍNEA DORADA LATERAL ─────────────────────────────── */
.plx-hero__gold-line {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 0;
    background: var(--color-gold);
    z-index: 4;
    animation: plxLineGrow 0.7s cubic-bezier(0.16,1,0.3,1) 0.1s forwards;
}

/* ─── CONTENIDO ────────────────────────────────────────── */
.plx-hero__content {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 52px;        /* deja espacio al credential strip */
    width: 52%;
    z-index: 3;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 56px 0 56px;
}

/* KICKER */
.plx-hero__kicker {
    font-family: var(--font-sans);
    font-size: 10px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-gold);
    margin-bottom: 24px;
    opacity: 0;
    transform: translateY(10px);
    animation: plxFadeUp 0.6s ease 0.15s forwards;
}

/* ─── HEADLINE CON ANIMACIÓN PALABRA A PALABRA ─────────── */
.plx-hero__headline {
    font-family: var(--font-serif);
    font-weight: 300;
    color: var(--color-cream);
    line-height: 1.08;
    margin-bottom: 28px;
    /* el font-size lo controla JS según viewport */
    font-size: clamp(36px, 4.5vw, 60px);
}

/*
 * Cada .plx-word es un span generado por hero-drsebagh.js
 * Vive dentro de un .plx-line que tiene overflow:hidden
 * → la palabra "emerge" desde abajo sin verse fuera del contenedor
 */
.plx-line {
    overflow: hidden;
    display: block;
    line-height: 1.15;
}

.plx-word {
    display: inline-block;
    opacity: 0;
    transform: translateY(105%);
    animation: plxWordUp 0.7s cubic-bezier(0.16,1,0.3,1) forwards;
    white-space: pre;   /* preserva espacios entre palabras */
}

.plx-hero__headline em {
    font-style: italic;
    color: var(--color-cream);    /* mismo color — la itálica es suficiente */
}

/* CUERPO */
.plx-hero__body {
    font-size: 14px;
    line-height: 1.85;
    color: rgba(250,248,244,0.55);
    max-width: 360px;
    margin-bottom: 36px;
    opacity: 0;
    transform: translateY(12px);
    animation: plxFadeUp 0.6s ease 0.95s forwards;
}

/* ─── BOTONES ───────────────────────────────────────────── */
.plx-hero__actions {
    display: flex;
    gap: 16px;
    align-items: center;
    opacity: 0;
    transform: translateY(10px);
    animation: plxFadeUp 0.6s ease 1.1s forwards;
}

.plx-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-sans);
    font-size: 10px;
    font-weight: 400;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
    border: none;
    outline: none;
}

.plx-btn--primary {
    background: var(--color-cream);
    color: var(--color-heading);
    padding: 14px 30px;
}
.plx-btn--primary:hover {
    opacity: 0.88;
    color: var(--color-heading);
}

.plx-btn--ghost {
    background: transparent;
    color: rgba(250,248,244,0.6);
    padding: 13px 28px;
    border: 0.5px solid rgba(139,111,71,0.5);
    transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}
.plx-btn--ghost:hover {
    background: var(--color-gold);
    color: var(--color-cream);
    border-color: var(--color-gold);
}

/* ─── CREDENTIAL STRIP ─────────────────────────────────── */
.plx-hero__strip {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 4;
    height: 56px;
    background: rgba(14,30,42,0.88);
    border-top: 0.5px solid rgba(214,211,203,0.12);
    display: flex;
    align-items: center;
    padding: 0 56px;
    gap: 40px;
    overflow-x: auto;
    opacity: 0;
    animation: plxFadeUp 0.5s ease 1.35s forwards;
}

/* Ocultar scrollbar del strip en mobile */
.plx-hero__strip::-webkit-scrollbar { display: none; }
.plx-hero__strip { -ms-overflow-style: none; scrollbar-width: none; }

.plx-hero__strip-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(250, 248, 244, 0.70);
    white-space: nowrap;
    flex-shrink: 0;
}

.plx-hero__strip-dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--color-gold);
    flex-shrink: 0;
}

/* ─── SCROLL INDICATOR ─────────────────────────────────── */
.plx-hero__scroll {
    position: absolute;
    right: 36px;
    bottom: 72px;
    z-index: 4;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    opacity: 0;
    animation: plxFadeUp 0.5s ease 1.55s forwards;
}

.plx-hero__scroll span {
    font-size: 9px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(250,248,244,0.2);
    writing-mode: vertical-rl;
}

.plx-hero__scroll-line {
    width: 0.5px;
    height: 36px;
    background: rgba(250,248,244,0.18);
    animation: plxScrollPulse 2s ease-in-out 2s infinite;
}

/* ─── KEYFRAMES ────────────────────────────────────────── */
@keyframes plxFadeUp {
    to { opacity: 1; transform: translateY(0); }
}

@keyframes plxWordUp {
    to { opacity: 1; transform: translateY(0); }
}

@keyframes plxLineGrow {
    from { height: 0; }
    to   { height: 110px; }
}

@keyframes plxScrollPulse {
    0%, 100% { opacity: 0.18; transform: scaleY(1); }
    50%       { opacity: 0.55; transform: scaleY(1.3); }
}

/* ─── RESPONSIVE ───────────────────────────────────────── */
@media (max-width: 1024px) {
    .plx-hero__content { width: 60%; padding: 0 40px; }
    .plx-hero__image-wrap { left: 45%; }
    .plx-hero__strip { gap: 24px; padding: 0 40px; }
}

@media (max-width: 768px) {
    .plx-hero {
        height: auto;
        min-height: 100vh;
        max-height: none;
    }

    /* En mobile: imagen arriba (50vh), texto abajo */
    .plx-hero__image-wrap {
        left: 0;
        bottom: auto;
        top: 0;
        height: 50vh;
    }

    .plx-hero__overlay {
        background: linear-gradient(
            to bottom,
            rgba(14,30,42,0.05) 0%,
            rgba(14,30,42,0.6) 45%,
            rgba(14,30,42,0.97) 70%,
            rgba(14,30,42,1) 100%
        );
    }

    .plx-hero__content {
        width: 100%;
        top: 40vh;
        bottom: 56px;
        padding: 32px 24px 20px;
        justify-content: flex-start;
    }

    .plx-hero__headline {
        font-size: clamp(32px, 8vw, 44px);
    }

    .plx-hero__body { max-width: 100%; }

    .plx-hero__gold-line { display: none; }

    .plx-hero__strip {
        gap: 20px;
        padding: 0 24px;
        height: 48px;
    }

    /* Ocultar scroll indicator en mobile */
    .plx-hero__scroll { display: none; }

    /* ── KICKER — cintilla glassmorphism ── */
    .plx-hero__kicker {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        background: rgba(255, 255, 255, 0.07);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border: 0.5px solid rgba(255, 255, 255, 0.12);
        border-radius: 2px;
        padding: 8px 14px;
        box-shadow:
            inset 0 1px 0 rgba(255, 255, 255, 0.1),
            0 4px 16px rgba(0, 0, 0, 0.2);
        /* Resetear estilos desktop */
        color: rgba(250, 248, 244, 0.85);
        letter-spacing: 0.14em;
        font-size: 9px;
        margin-bottom: 18px;
        opacity: 1;
        transform: none;
        animation: none;
    }

    /* Punto dorado con glow */
    .plx-hero__kicker::before {
        content: '';
        width: 5px;
        height: 5px;
        border-radius: 50%;
        background: var(--color-gold);
        box-shadow: 0 0 6px rgba(139, 111, 71, 0.7);
        flex-shrink: 0;
        display: block;
    }

    /* Botón ghost también con efecto glass en mobile */
    .plx-btn--ghost {
        background: rgba(255, 255, 255, 0.05) !important;
        backdrop-filter: blur(8px) !important;
        -webkit-backdrop-filter: blur(8px) !important;
        border: 0.5px solid rgba(255, 255, 255, 0.15) !important;
        color: rgba(250, 248, 244, 0.65) !important;
        width: 100%;
        justify-content: center;
        padding: 13px 28px !important;
    }
    .plx-btn--ghost:hover {
        background: var(--color-gold) !important;
        border-color: var(--color-gold) !important;
        color: var(--color-cream) !important;
    }
}

@media (max-width: 480px) {
    .plx-hero__actions { flex-direction: column; align-items: flex-start; gap: 12px; }
    .plx-hero__strip-item:nth-child(n+3) { display: none; } /* solo 2 creds en xs */
}


/* ─── BARRA DE REDES SOCIALES ──────────────────────────── */
.plx-social {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 52px; /* respeta el credential strip */
    width: 52px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
    z-index: 4;
    border-left: 0.5px solid rgba(214, 211, 203, 0.1);
}

/* Líneas decorativas doradas */
.plx-social::before,
.plx-social::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 0.5px;
}

.plx-social::before {
    top: 0;
    height: 60px;
    background: linear-gradient(to bottom, transparent, rgba(139, 111, 71, 0.35));
}

.plx-social::after {
    bottom: 0;
    height: 60px;
    background: linear-gradient(to top, transparent, rgba(139, 111, 71, 0.35));
}

/* Cada enlace */
.plx-social__link {
    width: 52px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(250, 248, 244, 0.45);
    text-decoration: none;
    position: relative;
    transition: color 0.25s ease, background 0.25s ease;
}

.plx-social__link:hover {
    color: var(--color-gold);
    background: rgba(139, 111, 71, 0.07);
}

/* Iconos SVG */
.plx-social__link svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    display: block;
    flex-shrink: 0;
}

/* WhatsApp y YouTube usan fill */
.plx-social__link--fill svg {
    stroke: none;
    fill: currentColor;
}

/* Tooltip — aparece a la izquierda en hover */
.plx-social__link::before {
    content: attr(data-label);
    position: absolute;
    right: 58px;
    background: rgba(14, 30, 42, 0.92);
    color: rgba(250, 248, 244, 0.65);
    font-family: var(--font-sans);
    font-size: 10px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 5px 10px;
    white-space: nowrap;
    opacity: 0;
    transform: translateX(8px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    pointer-events: none;
    border-left: 1.5px solid var(--color-gold);
}

.plx-social__link:hover::before {
    opacity: 1;
    transform: translateX(0);
}

/* Ocultar en mobile */
@media (max-width: 768px) {
    .plx-social {
        display: none;
    }
}
