﻿/* En tu CSS global (por ejemplo, en skytile.css o donde lo uses) */
@font-face {
    font-family: 'Ethnocentric';
    src: url('/fonts/Ethnocentric Rg.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}


/* ===================== Full-bleed ===================== */
.full-bleed {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

/* ===================== Vars ===================== */
:root {
    --curveH: clamp(60px, 10vw, 140px); /* alto del svg curvo */
    --overlap: clamp(20px, 6vw, 120px); /* cuánto se monta el título sobre la curva */
}

/* ===================== HERO ===================== */
.hero-fly {
    position: relative;
    min-height: 70vh;
    background: #000;
    overflow: hidden;
    isolation: isolate;
}

/* Fondo (iframe Vimeo en cover) */
.hero-bg {
    position: absolute;
    inset: 0;
    z-index: -2;
    overflow: hidden;
}

    .hero-bg iframe {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%,-50%);
        pointer-events: none;
        border: 0;
    }
/* Ventana más ancha que 16:9 => ancho 100vw, alto relativo */
@media (min-aspect-ratio: 16/9) {
    .hero-bg iframe {
        width: 100vw;
        height: 56.25vw;
    }
    /* 9/16 */
}
/* Ventana más alta/estrecha que 16:9 => alto 100vh, ancho relativo */
@media (max-aspect-ratio: 16/9) {
    .hero-bg iframe {
        height: 100vh;
        width: 177.78vh;
    }
    /* 16/9 */
}

/* Overlay */
.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: -1;
}

/* Contenido (título negro + botón) */
.hero-content {
    position: absolute;
    inset: 0;
    display: grid;
    align-items: center;
    padding-inline: clamp(16px, 4vw, 64px);
}

.hero-inner {
    width: min(1400px, 100%);
    margin-inline: auto;
}

.hero-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    transform: translateY(6vh);
}

.hero-title {
    font-family: 'Ethnocentric', sans-serif;
    letter-spacing: .06em;
    line-height: .95;
    color: #fff;
    font-weight: 700;
    text-shadow: 0 6px 22px rgba(0,0,0,.45);
    font-size: clamp(40px, 1vw, 90px);
    margin: 0;
    white-space: nowrap;
}

/* Botón lima */
.cta-lime {
    display: inline-block;
    background: #d1f053;
    color: #000;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .04em;
    border: 0;
    /*border-radius: 999px;*/
    padding: clamp(10px, 1.3vw, 16px) clamp(18px, 2.2vw, 28px);
    cursor: pointer;
    box-shadow: 0 10px 22px rgba(0,0,0,.25);
    transform: translateZ(0);
    transition: filter .2s ease, transform .15s ease;
    text-decoration: none;
    white-space: nowrap;
}

    .cta-lime:hover {
        filter: brightness(0.95);
        transform: translateY(-1px);
    }

    .cta-lime:active {
        transform: translateY(0);
    }

/* Curva inferior (queda debajo del título) */
.curve-sep {
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    line-height: 0;
    overflow: hidden;
    z-index: 1; /* debajo de la sección blanca */
}

    .curve-sep svg {
        display: block;
        width: 100%;
        height: var(--curveH);
    }

    .curve-sep path {
        fill: #fff;
    }

/* ===== Sección inferior blanca ===== */
.hero-below {
    background: #fff;
    color: #111;
    /* sin márgenes negativos: movemos SOLO el título */
    padding: clamp(40px, 8vw, 120px) clamp(18px, 6vw, 80px) clamp(40px, 8vw, 80px);
    text-align: center;
    position: relative;
    z-index: 2; /* por encima del svg */
}

/* Título montado sobre la curva */
.below-title {
    font-family: "Bebas Neue", system-ui, sans-serif;
    font-size: clamp(30px, 4.5vw, 54px);
    font-weight: 800;
    margin: 6px 0 10px 0;
    position: relative;
    z-index: 3; /* por si acaso */
    top: calc(-1 * var(--overlap)); /* lo sube encima de la curva */
    margin-bottom: calc(-1 * var(--overlap) + 10px); /* compensa el flujo */
}

.below-text {
    font-size: clamp(16px, 1.4vw, 20px);
    line-height: 1.8;
    max-width: 1100px;
    margin: 0 auto 10px auto;
}

.cta-link {
    margin-top: 6px;
    background: none;
    border: none;
    color: #000;
    font-weight: 900;
    letter-spacing: .06em;
    text-transform: uppercase;
    cursor: pointer;
    border-bottom: 2px solid #000;
    padding: 4px 6px;
    text-decoration: none;
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
    .hero-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        transform: translateY(0);
    }

    .cta-lime {
        padding: 12px 22px;
    }

    .hero-title {
        white-space: normal;
    }
    /* en móvil, montamos menos el título para no tapar */
    :root {
        --overlap: clamp(12px, 5vw, 60px);
    }
}

@media (max-width: 640px) {
    .hero-fly {
        min-height: 58vh;
    }

    .curve-sep svg {
        height: 80px;
    }
}
