/* ==========================================================================
   HERO EDOS — carrusel curvo de cursos (inspirado en "inside of a cylinder")
   ========================================================================== */

.hero-reel {
    --hr-ink: #0F1B2D;
    --hr-sub: #5A6275;
    --hr-badge: #DDF4EF;
    --hr-note: var(--turquoise-dark);
    position: relative;
    overflow: hidden;
    padding: 40px 0 40px;
    background:
        radial-gradient(ellipse 60% 45% at 50% 0%, rgba(0, 191, 166, 0.10), transparent 70%),
        linear-gradient(180deg, #F4FAF8 0%, var(--bg-light) 100%);
    text-align: center;
}

.hr-stage {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ---- Copy ---- */
.hr-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    border-radius: var(--radius-full);
    background: var(--hr-badge);
    color: var(--navy);
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 500;
}

.hr-badge i { color: var(--turquoise-dark); }

.hr-title {
    margin: 20px auto 0;
    max-width: 1150px;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: clamp(38px, 5vw, 72px);
    line-height: 1.06;
    letter-spacing: -0.035em;
    color: var(--hr-ink);
}

.hr-line { display: block; }
.hr-line + .hr-line { letter-spacing: -0.022em; color: var(--navy); }

.hr-sub {
    margin: 20px auto 0;
    max-width: 620px;
    font-size: clamp(1rem, 1.35vw, 1.2rem);
    line-height: 1.6;
    color: var(--hr-sub);
}

/* ---- Notas manuscritas ---- */
.hr-note {
    position: absolute;
    font-family: 'Caveat', cursive;
    font-weight: 600;
    font-size: 1.7rem;
    line-height: 0.95;
    color: var(--hr-note);
    pointer-events: none;
}

.hr-note svg {
    display: block;
    overflow: visible;
}

.hr-note path {
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.hr-note-slash { left: 9%; top: 290px; }
.hr-note-right { right: 0; top: 215px; text-align: left; }
.hr-note-right span { display: block; transform: rotate(14deg); transform-origin: left center; }
.hr-note-right svg { margin: 14px 0 0 -18px; }

/* ---- Banda del carrusel ---- */
.hr-band {
    position: relative;
    margin-top: 16px;
    height: 380px;
    overflow: hidden;
    cursor: grab;
    touch-action: pan-y;
    user-select: none;
    -webkit-user-select: none;
}

.hr-band.is-dragging { cursor: grabbing; }

/* Sin JS: fila con scroll horizontal normal */
.hr-track {
    display: flex;
    gap: 20px;
    height: 100%;
    padding: 0 24px;
    overflow-x: auto;
}

.hr-band.is-curved .hr-track {
    display: block;
    padding: 0;
    overflow: visible;
}

.hr-card {
    position: relative;
    flex: 0 0 200px;
    display: block;
    overflow: hidden;
    border-radius: 15px;
    background: var(--navy);
    color: var(--white);
    -webkit-tap-highlight-color: transparent;
}

.hr-band.is-curved .hr-card {
    position: absolute;
    top: 0;
    left: 0;
    border-radius: 0;
    will-change: transform, clip-path;
}

.hr-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
    transition: transform 0.5s ease;
}

.hr-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 55%, rgba(7, 28, 54, 0.78) 100%);
    pointer-events: none;
}

.hr-card:hover img { transform: scale(1.05); }

.hr-card:focus-visible {
    outline: none;
}

.hr-card:focus-visible::after {
    box-shadow: inset 0 0 0 3px var(--turquoise);
}

.hr-card-label {
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: calc(var(--inset, 0px) + 12px);
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    font-family: var(--font-heading);
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1.2;
    text-align: left;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
}

.hr-card-title { max-width: 100%; }

.hr-card-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 9px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.22);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 600;
    text-shadow: none;
}

/* ---- CTA ---- */
.hr-cta {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 22px;
    flex-wrap: wrap;
    margin-top: 20px;
    padding: 0 24px;
}

.hr-cta-ring {
    display: inline-flex;
    padding: 7px;
    border: 1.5px dashed var(--turquoise-dark);
    border-radius: var(--radius-full);
}

.hr-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    border-radius: var(--radius-full);
    background: var(--navy);
    color: var(--white);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    transition: background 0.25s ease, transform 0.25s ease;
}

.hr-cta-btn:hover {
    background: var(--navy-light);
    transform: translateY(-2px);
}

.hr-cta-wa {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--navy);
}

.hr-cta-wa i { font-size: 1.35rem; color: #25D366; }
.hr-cta-wa:hover { color: var(--turquoise-dark); }

.hr-note-cta {
    position: static;
    display: inline-flex;
    align-items: flex-end;
    gap: 2px;
    order: -1;
}

.hr-note-cta span { transform: rotate(-12deg); display: inline-block; }

/* ---- Entrada ---- */
@media (prefers-reduced-motion: no-preference) {
    .hero-reel .hr-in,
    .hero-reel .hr-line,
    .hero-reel .hr-band,
    .hero-reel .hr-cta-ring,
    .hero-reel .hr-note {
        animation: hr-rise 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
        animation-delay: var(--d, 0s);
    }

    .hero-reel .hr-badge { animation-name: hr-pop; }
    .hero-reel .hr-line { animation-name: hr-blur-rise; animation-duration: 0.9s; }
    .hero-reel .hr-cta-ring { animation-name: hr-scale; }
    .hero-reel .hr-note { animation-name: hr-fade; }

    .hero-reel .hr-note path {
        stroke-dasharray: 1;
        stroke-dashoffset: 1;
        animation: hr-draw 1s ease forwards;
        animation-delay: calc(var(--d, 0s) + 0.15s);
    }
}

@keyframes hr-rise { from { opacity: 0; transform: translateY(36px); } }
@keyframes hr-pop { from { opacity: 0; transform: scale(0.8); } }
@keyframes hr-scale { from { opacity: 0; transform: scale(0.7); } }
@keyframes hr-fade { from { opacity: 0; } }
@keyframes hr-blur-rise { from { opacity: 0; transform: translateY(28px); filter: blur(12px); } }
@keyframes hr-draw { to { stroke-dashoffset: 0; } }

/* ---- Responsive ---- */
@media (max-width: 1100px) {
    .hr-note-slash,
    .hr-note-right { display: none; }
}

@media (max-width: 820px) {
    .hero-reel { padding: 36px 0 36px; }
    .hr-badge { font-size: 0.8rem; padding: 7px 14px; }
    .hr-title { margin-top: 18px; font-size: clamp(30px, 8.4vw, 52px); }
    .hr-sub { margin-top: 16px; font-size: 0.98rem; }
    .hr-band { height: 280px; margin-top: 18px; }
    .hr-card-title { display: none; }
    .hr-card-label { left: 8px; bottom: calc(var(--inset, 0px) + 8px); }
    .hr-cta { margin-top: 18px; gap: 14px; flex-direction: column; }
    .hr-note-cta { order: 0; font-size: 1.45rem; }
}
