:root {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
}

section {
    scroll-margin-top: 100px;
}

.brand-link {
    align-items: center;
    display: inline-flex;
    flex: 0 0 auto;
    height: 5.5rem;
}

.brand-logo {
    display: block;
    height: 5.5rem;
    object-fit: contain;
    width: 14rem;
}

.nav-strip {
    flex: 1 1 auto;
    justify-content: center;
    min-width: 0;
    padding: 0 1rem;
    white-space: nowrap;
}

.nav-link {
    border-radius: 999px;
    color: #18312f;
    display: inline-flex;
    font-size: 0.875rem;
    font-weight: 700;
    padding: 0.66rem 0.78rem;
    transition: background-color 180ms ease, color 180ms ease;
}

.nav-link:hover,
.nav-link:focus-visible {
    background: #f4fbf8;
    color: #12614f;
    outline: none;
}

.dropdown-menu {
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(18, 97, 79, 0.12);
    border-radius: 1rem;
    box-shadow: 0 24px 80px rgba(18, 97, 79, 0.16);
    display: grid;
    gap: 0.2rem;
    left: 0;
    min-width: 17rem;
    opacity: 0;
    padding: 0.55rem;
    pointer-events: none;
    position: absolute;
    top: calc(100% + 0.5rem);
    transform: translateY(8px);
    transition: opacity 160ms ease, transform 160ms ease;
}

.dropdown-menu-right {
    left: auto;
    right: 0;
}

.dropdown-menu a {
    border-radius: 0.75rem;
    color: #18312f;
    font-size: 0.9rem;
    font-weight: 650;
    padding: 0.72rem 0.85rem;
}

.dropdown-menu a:hover,
.dropdown-menu a:focus-visible {
    background: #f4fbf8;
    color: #12614f;
    outline: none;
}

[data-dropdown].is-open .dropdown-menu,
[data-dropdown]:hover .dropdown-menu,
[data-dropdown]:focus-within .dropdown-menu {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.mobile-panel {
    display: none;
}

.mobile-panel.is-open {
    display: block;
}

.mobile-link {
    border-radius: 0.9rem;
    color: #18312f;
    font-weight: 750;
    padding: 0.85rem 1rem;
}

.mobile-link:hover,
.mobile-link:focus-visible {
    background: #f4fbf8;
    color: #12614f;
    outline: none;
}

.hero-shell {
    min-height: 760px;
    position: relative;
}

.hero-shell::after {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.84) 62%, #fff 100%);
    bottom: -1px;
    content: "";
    height: 38%;
    left: 0;
    pointer-events: none;
    position: absolute;
    right: 0;
    z-index: 1;
}

.hero-image {
    filter: saturate(1.02);
    inset: 0;
    object-fit: cover;
    object-position: center;
    position: absolute;
}

.hero-overlay {
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.94) 0%, rgba(255, 255, 255, 0.82) 34%, rgba(255, 255, 255, 0.2) 72%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.62) 0%, rgba(255, 255, 255, 0) 42%);
    inset: 0;
    position: absolute;
}

.section-kicker {
    color: #12614f;
    font-size: 0.78rem;
    font-weight: 850;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.soft-band {
    background:
        radial-gradient(circle at 12% 0%, rgba(35, 152, 120, 0.1), transparent 28rem),
        linear-gradient(180deg, #f4fbf8 0%, #fff 100%);
}

.topic-pill {
    align-items: center;
    background: #f4fbf8;
    border: 1px solid rgba(18, 97, 79, 0.1);
    border-radius: 999px;
    color: #12614f;
    display: inline-flex;
    font-size: 0.78rem;
    font-weight: 750;
    padding: 0.42rem 0.68rem;
}

.image-slot {
    align-items: center;
    aspect-ratio: 16 / 10;
    background:
        linear-gradient(135deg, rgba(35, 152, 120, 0.12), rgba(239, 111, 97, 0.1)),
        #f8fcfa;
    border: 1px dashed rgba(18, 97, 79, 0.28);
    border-radius: 0.85rem;
    color: #12614f;
    display: grid;
    justify-items: center;
    min-height: 10rem;
    overflow: hidden;
    padding: 1.25rem;
    text-align: center;
}

.image-slot.is-compact {
    aspect-ratio: 4 / 3;
    min-height: 8rem;
}

.image-slot i {
    height: 2rem;
    width: 2rem;
}

.image-slot span {
    display: block;
    font-size: 0.78rem;
    font-weight: 850;
    letter-spacing: 0.14em;
    margin-top: 0.7rem;
    text-transform: uppercase;
}

.field {
    border: 1px solid rgba(18, 97, 79, 0.16);
    border-radius: 0.9rem;
    color: #18312f;
    font-size: 0.95rem;
    padding: 0.9rem 1rem;
    width: 100%;
}

.field:focus {
    border-color: #239878;
    box-shadow: 0 0 0 4px rgba(35, 152, 120, 0.12);
    outline: none;
}

@media (max-width: 768px) {
    .brand-logo {
        height: 4.25rem;
        width: 10rem;
    }

    .hero-shell {
        min-height: 700px;
    }

    .hero-image {
        object-position: 58% center;
    }

    .hero-overlay {
        background:
            linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0.82) 44%, rgba(255, 255, 255, 0.36) 78%),
            linear-gradient(90deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.3));
    }
}

/* Scroll Reveal Animations */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform, opacity;
}

.scroll-reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Delays para efectos escalonados (staggered) */
.delay-100 {
    transition-delay: 100ms;
}

.delay-200 {
    transition-delay: 200ms;
}

.delay-300 {
    transition-delay: 300ms;
}

.delay-400 {
    transition-delay: 400ms;
}

.delay-500 {
    transition-delay: 500ms;
}

/* Transición para el botón Volver Arriba */
#back-to-top.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}