/* ============================================================
   HERO — Dark, dramatic, agency-grade
   ============================================================ */

.hero {
    position: relative;
    width: 100%;
    min-height: calc(100vh - 70px);
    display: flex;
    align-items: center;
    background: var(--ink);          /* #070D1B — deep navy */
    overflow: hidden;
    padding: 5rem 0 4rem;
}

/* ── Subtle grid lines ─────────────────────────────────── */
.hero-bg-pattern {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(79, 70, 229, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(79, 70, 229, 0.05) 1px, transparent 1px);
    background-size: 72px 72px;
    z-index: 0;
    pointer-events: none;
}

/* ── Indigo glow — top right corner ───────────────────── */
.hero-orb--1 {
    position: absolute;
    top: -10%;
    right: -5%;
    width: 55vw;
    height: 55vw;
    background: radial-gradient(ellipse at 60% 40%,
        rgba(79, 70, 229, 0.22) 0%,
        rgba(79, 70, 229, 0.06) 40%,
        transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

/* ── Gold glow — bottom left ──────────────────────────── */
.hero-orb--2 {
    position: absolute;
    bottom: -15%;
    left: -8%;
    width: 40vw;
    height: 40vw;
    background: radial-gradient(ellipse at center,
        rgba(255, 204, 0, 0.09) 0%,
        transparent 65%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

/* Third orb — hide (we use only 2 clean glows) */
.hero-orb--3 { display: none; }

/* ── Container ─────────────────────────────────────────── */
.hero-container {
    max-width: 1220px;
    margin: 0 auto;
    padding: 0 2.5rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

/* ============================================================
   LEFT — CONTENT
   ============================================================ */
.hero-content { max-width: 600px; }

/* Eyebrow badge */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: rgba(255, 255, 255, 0.75);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 0.38rem 0.95rem;
    border-radius: 999px;
    margin-bottom: 1.5rem;
}

.hero-badge-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    background: var(--gold);
    border-radius: 50%;
    color: #000;
    flex-shrink: 0;
}

.hero-badge-flag { font-size: 1em; }

/* ── Main heading ─────────────────────────────────────── */
.hero-title {
    font-size: clamp(2.6rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.12;
    color: #FFFFFF;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
}

.hero-title-line { display: block; }

/* Gradient highlight on second line */
.hero-title-line--highlight {
    background: linear-gradient(135deg, var(--gold) 0%, #FFA500 60%, var(--gold) 100%);
    background-size: 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer-text 4s linear infinite;
}

@keyframes shimmer-text {
    0%   { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

/* ── Description ─────────────────────────────────────── */
.hero-description {
    font-size: 1.1rem;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.60);
    margin-bottom: 2.25rem;
    max-width: 500px;
}

/* ============================================================
   CTA BUTTONS
   ============================================================ */
.hero-cta-wrapper {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    margin-bottom: 3rem;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.9rem 1.7rem;
    border-radius: var(--r-full);
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.32s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Primary — Gold */
.hero-cta--primary {
    background: var(--gold);
    color: #000;
    box-shadow: 0 0 0 0 rgba(255, 204, 0, 0.4);
    animation: pulse-gold 2.8s ease-in-out infinite;
}

@keyframes pulse-gold {
    0%, 100% { box-shadow: 0 4px 24px rgba(255, 204, 0, 0.30), 0 0 0 0 rgba(255, 204, 0, 0.35); }
    50%       { box-shadow: 0 4px 36px rgba(255, 204, 0, 0.45), 0 0 0 10px rgba(255, 204, 0, 0); }
}

.hero-cta--primary:hover {
    background: var(--gold-dark);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 12px 32px rgba(255, 204, 0, 0.45);
}

/* Shine sweep */
.hero-cta-shine {
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.28) 50%, transparent 100%);
    animation: shine 3.5s ease-in-out infinite;
}

@keyframes shine {
    0%        { left: -100%; }
    50%, 100% { left: 100%; }
}

.hero-cta-text,
.hero-cta-icon-wrap { position: relative; z-index: 1; }

.hero-cta-icon-wrap {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.hero-cta-arrow { transition: transform 0.25s ease; }
.hero-cta--primary:hover .hero-cta-arrow { transform: translateX(4px); }

/* Secondary — ghost */
.hero-cta--secondary {
    background: transparent;
    color: rgba(255, 255, 255, 0.80);
    border: 1.5px solid rgba(255, 255, 255, 0.20);
}

.hero-cta--secondary:hover {
    border-color: rgba(255, 255, 255, 0.50);
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
}

.hero-cta--secondary i { transition: transform 0.25s ease; }
.hero-cta--secondary:hover i { transform: translateX(4px); }

/* ============================================================
   TRUST SIGNALS (below CTAs)
   ============================================================ */
.hero-trust-signals {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.25rem;
    padding-top: 1.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-trust-item {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.55);
}

.hero-trust-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 10px;
    color: var(--gold);
    flex-shrink: 0;
}

.hero-trust-divider {
    width: 1px;
    height: 22px;
    background: rgba(255, 255, 255, 0.10);
}

/* ============================================================
   RIGHT — MOCKUP
   ============================================================ */
.hero-media {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-mockup-wrapper {
    position: relative;
    width: 100%;
    max-width: 540px;
}

/* Glow behind mockup */
.hero-mockup-glow {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    height: 90%;
    background: radial-gradient(ellipse,
        rgba(79, 70, 229, 0.35) 0%,
        rgba(255, 204, 0, 0.10) 50%,
        transparent 72%);
    filter: blur(55px);
    border-radius: 50%;
    animation: glow-pulse 5s ease-in-out infinite;
    pointer-events: none;
}

@keyframes glow-pulse {
    0%, 100% { opacity: 0.8; transform: translate(-50%, -50%) scale(1); }
    50%       { opacity: 1;   transform: translate(-50%, -50%) scale(1.06); }
}

/* Image frame — sin borde, el mockup ya tiene su propio look */
.hero-mockup {
    position: relative;
    background: transparent;
}

/* mix-blend-mode: screen elimina el fondo negro de la imagen
   dejando solo los dispositivos visibles sobre el hero oscuro */
.hero-image {
    width: 100%;
    height: auto;
    display: block;
    mix-blend-mode: screen;
    animation: float-mockup 7s ease-in-out infinite;
}

@keyframes float-mockup {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-12px); }
}

/* Chips decorativos — ocultos, el mockup ya tiene su propia composición */
.hero-float { display: none; }

/* ── Scroll indicator ─────────────────────────────────── */
.hero-scroll {
    position: absolute;
    bottom: 1.75rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    z-index: 2;
}

.hero-scroll-mouse {
    width: 22px;
    height: 36px;
    border: 1.5px solid rgba(255, 255, 255, 0.20);
    border-radius: 11px;
    position: relative;
}

.hero-scroll-wheel {
    position: absolute;
    top: 7px;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 7px;
    background: var(--gold);
    border-radius: 2px;
    animation: scroll-wheel 1.6s ease-in-out infinite;
}

@keyframes scroll-wheel {
    0%, 100% { opacity: 1; top: 7px; }
    50%       { opacity: 0.3; top: 18px; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
    .hero { padding: 4rem 0 3rem; min-height: auto; }

    .hero-container {
        grid-template-columns: 1fr;
        gap: 3rem;
        padding: 0 2rem;
        text-align: center;
    }

    .hero-content { max-width: 100%; }
    .hero-badge { margin: 0 auto 1.25rem; }
    .hero-description { max-width: 100%; margin-left: auto; margin-right: auto; }
    .hero-cta-wrapper { justify-content: center; }
    .hero-trust-signals { justify-content: center; }

    .hero-media { order: 2; }
    .hero-mockup-wrapper { max-width: 420px; }

    .hero-orb--1 { width: 70vw; height: 70vw; }
    .hero-orb--2 { width: 50vw; height: 50vw; }
}

@media (max-width: 767px) {
    .hero { padding: 3rem 0 2.5rem; }

    .hero-container { padding: 0 1.25rem; gap: 2.5rem; }

    .hero-title { font-size: 2.1rem; margin-bottom: 1rem; }

    .hero-description { font-size: 0.95rem; margin-bottom: 1.75rem; }

    .hero-cta-wrapper { flex-direction: column; width: 100%; gap: 0.7rem; }

    .hero-cta { justify-content: center; width: 100%; padding: 0.85rem 1.5rem; }

    .hero-trust-signals { flex-direction: column; gap: 0.85rem; }
    .hero-trust-divider { width: 40px; height: 1px; }

    .hero-mockup-wrapper { max-width: 300px; }
    .hero-float { display: none; }
    .hero-scroll { display: none; }
}

@media (min-width: 1400px) {
    .hero-container { max-width: 1380px; gap: 6rem; }
    .hero-title { font-size: 4.5rem; }
    .hero-mockup-wrapper { max-width: 640px; }
}

/* ── Entrance animations ──────────────────────────────── */
.hero-content > * {
    opacity: 0;
    transform: translateY(22px);
    animation: hero-in 0.6s ease-out forwards;
}

.hero-badge         { animation-delay: 0.05s; }
.hero-title         { animation-delay: 0.15s; }
.hero-description   { animation-delay: 0.25s; }
.hero-cta-wrapper   { animation-delay: 0.35s; }
.hero-trust-signals { animation-delay: 0.45s; }

@keyframes hero-in {
    to { opacity: 1; transform: translateY(0); }
}

.hero-media {
    opacity: 0;
    transform: scale(0.92) translateX(20px);
    animation: hero-media-in 0.75s ease-out 0.2s forwards;
}

@keyframes hero-media-in {
    to { opacity: 1; transform: scale(1) translateX(0); }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    .hero-orb--1, .hero-orb--2, .hero-float,
    .hero-mockup-glow, .hero-scroll, .hero-cta-shine,
    .hero-content > *, .hero-media,
    .hero-title-line--highlight {
        animation: none;
        opacity: 1;
        transform: none;
    }
}

.hero-cta:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 3px;
}
