/* hero-reel.css — hero con carrusel curvo de proyectos */
.hero.hero-reel {
    max-width: none;
    margin: 28px 0 0;
    padding: 0 0 56px;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.hero-reel__copy {
    position: relative;
    z-index: 2;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 4%;
}

.hero-reel__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5em;
    padding: 0.45em 1.1em;
    border-radius: 999px;
    background: var(--c-lime);
    color: var(--text-dark);
    font-weight: 700;
    font-size: 0.95rem;
    box-shadow: 3px 3px 0 var(--border-color);
}

.hero-reel__title {
    margin: 1.4rem 0 0;
    font-size: clamp(2.4rem, 4.6vw, 4.4rem);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -0.04em;
    color: var(--text-dark);
}
.hero-reel__title .hr-line { display: block; white-space: nowrap; }
.hero-reel__title .animated-pill { padding: 0.02em 0.32em; line-height: 1.05; border: 1.5px solid var(--border-color); box-shadow: 3px 3px 0 var(--border-color); }

.hero-reel__sub {
    max-width: 620px;
    margin: 1.4rem auto 0;
    font-size: 1.2rem;
    line-height: 1.6;
    color: var(--text-gray);
}

/* Banda de tarjetas */
.hero-reel__band {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 420px;
    margin-top: 36px;
    display: flex;
    gap: 22px;
    padding: 0 5%;
    overflow-x: auto;
    touch-action: pan-y;
    user-select: none;
    -webkit-user-select: none;
}
.hero-reel__band.is-live {
    display: block;
    padding: 0;
    overflow: visible;
    cursor: grab;
}
.hero-reel__band.is-grabbing { cursor: grabbing; }
.hero-reel__band.is-grabbing .reel-card { pointer-events: none; }

.reel-layer { position: absolute; inset: 0; pointer-events: none; overflow: visible; }
.reel-layer--shadow { z-index: 0; }
.reel-layer--shadow path { fill: var(--border-color); }
.reel-layer--line { z-index: 3; }
.reel-layer--line path { fill: none; stroke: var(--border-color); stroke-width: 1.5px; }

.reel-card {
    position: relative;
    flex: 0 0 170px;
    height: 300px;
    display: block;
    overflow: hidden;
    border-radius: 15px;
    background: #1a1a1a;
    color: var(--text-dark);
    text-decoration: none;
    -webkit-user-drag: none;
}
.is-live .reel-card {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    border-radius: 0;
    will-change: transform, clip-path;
}
.reel-card img,
.reel-card__video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    -webkit-user-drag: none;
    pointer-events: none;
}
.reel-card__video { opacity: 0; transition: opacity 0.4s ease; }
.reel-card.has-video .reel-card__video { opacity: 1; }

.reel-card__label {
    position: absolute;
    left: 12px;
    bottom: calc(var(--inset, 0px) + 12px);
    max-width: calc(100% - 24px);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 11px 5px 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.78);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    border: 1.5px solid var(--border-color);
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: background 0.2s ease;
}
.reel-card__label::before {
    content: '';
    flex: 0 0 auto;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--c-yellow) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M5 11 11 5M6 5h5v5' fill='none' stroke='%23121212' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat;
    border: 1px solid var(--border-color);
}
.reel-card[data-video]::after { content: none; }
.reel-card:hover .reel-card__label,
.reel-card:focus-visible .reel-card__label { background: var(--c-yellow); }
.reel-card:focus-visible { outline: 3px solid var(--c-purple); outline-offset: -3px; }

/* CTA */
.hero-reel__cta {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 34px;
}
.hero-reel__primary { position: relative; display: inline-flex; flex-direction: column; align-items: center; }
.hero-reel__ring {
    display: inline-flex;
    padding: 7px;
    border-radius: 999px;
    border: 1.5px dashed var(--c-purple);
}
.hero-reel__cta .btn-hero-primary,
.hero-reel__cta .btn-hero-secondary { border: 1.5px solid var(--border-color); }

/* Notas a mano */
.hero-note {
    position: absolute;
    z-index: 2;
    font-family: 'Caveat', cursive;
    font-weight: 600;
    color: var(--c-purple);
    line-height: 1;
    pointer-events: none;
    white-space: nowrap;
}
.hero-note svg { position: absolute; overflow: visible; }
.hero-note path { fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

.hero-note--latest {
    top: 292px;
    right: 5%;
    font-size: 1.9rem;
    transform: rotate(10deg);
    text-align: left;
}
.hero-note--latest svg { left: -10px; top: 70px; width: 120px; height: 90px; }

.hero-note--free {
    font-size: 1.65rem;
    right: calc(100% + 18px);
    top: 18px;
    transform: rotate(-12deg);
}
.hero-note--free svg { right: -40px; top: -18px; width: 46px; height: 26px; }

.hero-doodle {
    position: absolute;
    z-index: 2;
    left: 11%;
    top: 330px;
    width: 34px;
    height: 34px;
    color: var(--c-pink);
    pointer-events: none;
}
.hero-doodle path { fill: none; stroke: var(--text-dark); stroke-width: 2.4; stroke-linecap: round; }

/* Entrada */
@media (prefers-reduced-motion: no-preference) {
    .hero-reel [data-enter] { animation: heroEnter 0.75s cubic-bezier(.2, .8, .2, 1) both; animation-delay: var(--d, 0s); }
    .hero-reel .hr-line[data-enter] { animation-name: heroLine; }
    .hero-reel__badge[data-enter] { animation-name: heroPop; }
    .hero-note path, .hero-doodle path {
        stroke-dasharray: 260;
        stroke-dashoffset: 260;
        animation: heroDraw 1s ease forwards;
        animation-delay: var(--d, 1.3s);
    }
}
@keyframes heroEnter { from { opacity: 0; transform: translateY(26px); } }
@keyframes heroLine { from { opacity: 0; transform: translateY(30px); filter: blur(10px); } }
@keyframes heroPop { from { opacity: 0; transform: scale(0.6); } }
@keyframes heroDraw { to { stroke-dashoffset: 0; } }
.hero-note[data-enter] { animation-name: heroFade !important; }
@keyframes heroFade { from { opacity: 0; } }

@media (max-width: 1100px) {
    .hero-note--latest, .hero-doodle { display: none; }
}

@media (max-width: 820px) {
    .hero.hero-reel { margin: 12px 0 0 !important; padding: 0 0 40px !important; }
    .hero-reel__badge { font-size: 0.8rem; }
    .hero-reel__title { font-size: clamp(1.9rem, 8.4vw, 3.4rem); margin-top: 1rem; }
    .hero-reel__title .hr-line { white-space: normal; }
    .hero-reel__sub { font-size: 1rem; }
    .hero-reel__band { margin-top: 24px; height: 256px; }
    .reel-card { flex-basis: 110px; height: 190px; }
    .reel-card__label { left: 8px; bottom: calc(var(--inset, 0px) + 8px); font-size: 0.62rem; padding: 3px 8px 3px 4px; }
    .reel-card__label::before { width: 12px; height: 12px; background-size: 9px; }
    .hero-reel__cta { margin-top: 26px; flex-direction: column; }
    .hero-note--free { position: static; transform: rotate(-6deg); margin-bottom: 4px; }
    .hero-note--free svg { display: none; }
}
