html {
    scroll-behavior: smooth;
}

body {
    min-width: 320px;
}

::selection {
    background: #c7d2fe;
    color: #1e1b4b;
}

/* En monitores grandes se amplía el encuadre de la fotografía, no el contenido. */
.hero-image {
    display: block;
}

.hero-image > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.hero-container {
    max-width: 1600px;
}

.hero-page.hero-page {
    height: 100vh;
    min-height: 100vh;
}

.hero-container.hero-container {
    height: 100%;
    min-height: 0;
}

@supports (height: 100dvh) {
    .hero-page.hero-page {
        height: 100dvh;
        min-height: 100dvh;
    }
}

.site-header {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 100;
    border-bottom: 1px solid transparent;
    background: transparent;
    transition: background-color 220ms ease, border-color 220ms ease, backdrop-filter 220ms ease;
}

.site-header.is-scrolled {
    border-color: rgb(255 255 255 / 0.09);
    background: rgb(5 8 9 / 0.76);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}
.site-header-inner {
    max-width: 1600px;
    transition: padding 220ms ease;
}

.site-header.is-scrolled .site-header-inner {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.hero-header-spacer {
    height: 3rem;
    flex: 0 0 auto;
}

.site-content {
    background:
        radial-gradient(circle at 88% 8%, rgb(66 122 75 / 0.09), transparent 24rem),
        #080d0e;
}

.content-container {
    max-width: 1440px;
}

.content-section {
    scroll-margin-top: 6rem;
}

.section-kicker {
    color: #77c51c;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.section-title {
    font-size: clamp(1.75rem, 3vw, 2.35rem);
    font-weight: 500;
    letter-spacing: -0.035em;
    line-height: 1.12;
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #77c51c;
    font-size: 0.875rem;
    font-weight: 500;
    transition: color 160ms ease;
}

.text-link:hover {
    color: #94dc3b;
}

.company-mark {
    display: flex;
    min-height: 3.5rem;
    align-items: center;
    justify-content: center;
    color: rgb(244 244 245 / 0.68);
    font-size: clamp(0.85rem, 1.25vw, 1.15rem);
    font-weight: 600;
    letter-spacing: -0.03em;
    text-align: center;
}

.company-mark small {
    display: block;
    font-size: 0.55em;
    font-weight: 500;
    letter-spacing: 0.04em;
}

.article-card,
.publication-card {
    border: 1px solid rgb(255 255 255 / 0.1);
    background: linear-gradient(145deg, rgb(20 27 29 / 0.88), rgb(10 15 16 / 0.88));
    box-shadow: 0 18px 40px rgb(0 0 0 / 0.12);
}

.article-card {
    overflow: hidden;
    border-radius: 1rem;
    transition: border-color 180ms ease, transform 180ms ease;
}

.article-card:hover {
    border-color: rgb(119 197 28 / 0.45);
    transform: translateY(-3px);
}

.article-card img {
    aspect-ratio: 1.85 / 1;
    width: 100%;
    object-fit: cover;
}

.publication-card {
    display: flex;
    min-height: 18rem;
    flex-direction: column;
    border-radius: 1rem;
    padding: 1.2rem;
}

.social-badge {
    display: grid;
    width: 2rem;
    height: 2rem;
    place-items: center;
    border-radius: 0.55rem;
    background: rgb(255 255 255 / 0.1);
    font-size: 0.85rem;
    font-weight: 700;
}

.publication-media {
    margin-top: 1rem;
    overflow: hidden;
    border: 1px solid rgb(255 255 255 / 0.07);
    border-radius: 0.75rem;
}

.publication-media img {
    aspect-ratio: 1.45 / 1;
    width: 100%;
    object-fit: cover;
}

.publication-actions {
    display: flex;
    gap: 1rem;
    margin-top: auto;
    padding-top: 1rem;
    color: rgb(228 228 231 / 0.7);
}

.video-section {
    padding: clamp(3.5rem, 8vw, 7rem) 0;
    animation: video-section-fade 420ms ease both;
}

.video-section-header {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 2rem;
}

.video-kicker {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #77c51c;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.video-kicker::before {
    width: 1rem;
    height: 2px;
    background: currentColor;
    content: '';
}

.video-section-description {
    max-width: 43rem;
    margin-top: 1.1rem;
    border-left: 2px solid #62b400;
    padding-left: 1rem;
    color: rgb(228 228 231 / 0.88);
    font-size: clamp(1rem, 1.6vw, 1.1rem);
    line-height: 1.7;
}

.video-channel-link {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 0.75rem;
    border: 1px solid #62b400;
    border-radius: 0.75rem;
    background: rgb(8 15 9 / 0.45);
    padding: 0.9rem 1.15rem;
    color: white;
    font-weight: 600;
    transition: background-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.video-channel-link:hover {
    background: #62b400;
    color: white;
    transform: translateY(-1px);
}

.video-layout {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(20rem, 2fr);
    aspect-ratio: 80 / 27;
    overflow: hidden;
    margin-top: clamp(2rem, 4vw, 3rem);
    border: 1px solid rgb(255 255 255 / 0.14);
    border-radius: 1rem;
    background: #080b0b;
}

.video-player-shell {
    position: relative;
    overflow: hidden;
    border-right: 1px solid rgb(255 255 255 / 0.12);
    background: #050505;
    aspect-ratio: 16 / 9;
}

.video-player-shell iframe {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 0;
    inset: 0;
    opacity: 1;
    transition: opacity 180ms ease, transform 180ms ease;
}

.video-player-shell.is-changing iframe {
    opacity: 0.22;
    transform: scale(1.01);
}

.video-playlist {
    display: flex;
    height: 100%;
    min-width: 0;
    min-height: 0;
    flex-direction: column;
    overflow: hidden;
    padding: 1.25rem;
}

.video-playlist-items {
    flex: 1 1 auto;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    padding-right: 0.3rem;
    scrollbar-color: rgb(119 197 28 / 0.55) transparent;
    scrollbar-width: thin;
}

.video-playlist-items::-webkit-scrollbar {
    width: 0.45rem;
}

.video-playlist-items::-webkit-scrollbar-thumb {
    border-radius: 1rem;
    background: rgb(119 197 28 / 0.45);
}

.video-playlist-heading {
    margin-bottom: 1rem;
    color: rgb(244 244 245);
    font-size: 1.15rem;
    font-weight: 600;
}

.video-item {
    position: relative;
    display: grid;
    width: 100%;
    grid-template-columns: 8.25rem minmax(0, 1fr);
    gap: 0.85rem;
    border: 1px solid transparent;
    border-radius: 0.7rem;
    background: transparent;
    padding: 0.45rem;
    color: rgb(228 228 231 / 0.92);
    cursor: pointer;
    text-align: left;
    transition: background-color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.video-item + .video-item {
    margin-top: 0.45rem;
}

.video-item:hover,
.video-item:focus-visible {
    border-color: rgb(255 255 255 / 0.16);
    background: rgb(255 255 255 / 0.05);
    outline: none;
}

.video-item[aria-pressed='true'] {
    border-color: #62b400;
    background: rgb(98 180 0 / 0.1);
}

.video-item[aria-pressed='true']::before {
    position: absolute;
    top: 0.7rem;
    bottom: 0.7rem;
    left: -1px;
    width: 3px;
    border-radius: 0 3px 3px 0;
    background: #77c51c;
    content: '';
}

.video-thumbnail {
    width: 100%;
    border-radius: 0.45rem;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.video-item-title {
    align-self: center;
    font-size: 0.92rem;
    font-weight: 500;
    line-height: 1.42;
}

.video-item[aria-pressed='true'] .video-item-title {
    color: #91dc36;
}

@keyframes video-section-fade {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1024px) {
    .video-layout {
        grid-template-columns: 1fr;
        aspect-ratio: auto;
    }

    .video-player-shell {
        border-right: 0;
        border-bottom: 1px solid rgb(255 255 255 / 0.12);
    }

    .video-playlist {
        max-height: 28rem;
    }
}

@media (max-width: 639px) {
    .video-section-header {
        align-items: start;
        flex-direction: column;
        gap: 1.5rem;
    }

    .video-channel-link {
        width: 100%;
        justify-content: center;
    }

    .video-playlist {
        max-height: 24rem;
        padding: 0.85rem;
    }

    .video-item {
        grid-template-columns: 6.5rem minmax(0, 1fr);
        gap: 0.7rem;
    }

    .video-item-title {
        font-size: 0.82rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .video-section,
    .video-player-shell iframe,
    .video-item,
    .video-channel-link {
        animation: none;
        transition: none;
    }
}

.whatsapp-float {
    position: fixed;
    right: clamp(1rem, 2.5vw, 1.75rem);
    bottom: clamp(1rem, 2.5vw, 1.75rem);
    z-index: 90;
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, #28d86b, #1fc760);
    padding: 0.95rem 1.35rem;
    color: white;
    font-size: 1rem;
    font-weight: 600;
    box-shadow: 0 14px 30px rgb(0 0 0 / 0.28), 0 0 24px rgb(37 211 102 / 0.16);
    transition: transform 180ms ease, background-color 180ms ease;
}

.whatsapp-float:hover {
    background: linear-gradient(135deg, #4ae582, #25d366);
    transform: translateY(-2px);
}

.whatsapp-float:focus-visible {
    outline: 2px solid white;
    outline-offset: 3px;
}

@media (max-width: 639px) {
    .whatsapp-float {
        width: auto;
        height: auto;
        justify-content: center;
        padding: 0.85rem 1.1rem;
    }
}

.site-footer {
    border-top: 1px solid rgb(119 197 28 / 0.32);
    background: #060a0b;
}

.site-footer-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: clamp(3.5rem, 7vw, 6rem) 1.5rem 1.75rem;
}

.site-footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(15rem, 1fr) minmax(15rem, 1fr);
    gap: clamp(2.5rem, 6vw, 6rem);
}

.footer-brand-lockup {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer-monogram {
    font-size: clamp(3.6rem, 5vw, 4.6rem);
    font-weight: 500;
    letter-spacing: -0.12em;
    line-height: 0.8;
}

.footer-brand-copy {
    border-left: 1px solid rgb(255 255 255 / 0.23);
    padding-left: 1rem;
}

.footer-brand-name {
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: 0.045em;
    text-transform: uppercase;
}

.footer-brand-role {
    margin-top: 0.3rem;
    color: rgb(212 212 216 / 0.8);
    font-size: 0.86rem;
}

.footer-copy {
    max-width: 31rem;
    color: rgb(212 212 216 / 0.88);
    line-height: 1.75;
}

.footer-brand-lockup + .footer-copy {
    margin-top: 2.25rem;
}

.footer-copy + .footer-copy {
    margin-top: 1.5rem;
}

.footer-section-title {
    color: #77c51c;
    font-size: 0.76rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.footer-focus-list {
    margin-top: 1.35rem;
}

.footer-focus-list li {
    border-bottom: 1px solid rgb(255 255 255 / 0.1);
    padding: 0.9rem 0;
    color: rgb(244 244 245 / 0.94);
}

.footer-social-list {
    display: grid;
    gap: 0.7rem;
    margin-top: 1.35rem;
}

.footer-social-link {
    display: grid;
    grid-template-columns: 2.85rem minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.85rem;
    border-radius: 0.75rem;
    color: rgb(244 244 245 / 0.94);
    outline: none;
    transition: color 160ms ease, background-color 160ms ease;
}

.footer-social-link:hover,
.footer-social-link:focus-visible {
    background: rgb(119 197 28 / 0.08);
    color: #91dc36;
}

.footer-social-icon {
    display: grid;
    width: 2.85rem;
    height: 2.85rem;
    place-items: center;
    border: 1px solid rgb(255 255 255 / 0.13);
    border-radius: 0.7rem;
    color: #77c51c;
}

.footer-external-icon {
    color: rgb(244 244 245 / 0.75);
    font-size: 1.1rem;
}

.footer-agenda-link {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    margin-top: 2rem;
    border: 1px solid #62b400;
    border-radius: 0.8rem;
    padding: 0.9rem 1.15rem;
    color: #91dc36;
    font-weight: 600;
    transition: background-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.footer-agenda-link:hover,
.footer-agenda-link:focus-visible {
    background: #62b400;
    color: white;
    outline: none;
    transform: translateY(-1px);
}

.site-footer-bottom {
    margin-top: clamp(3rem, 6vw, 5rem);
    border-top: 1px solid rgb(255 255 255 / 0.1);
    padding-top: 1.75rem;
    color: rgb(161 161 170);
    font-size: 0.9rem;
}

@media (max-width: 1024px) {
    .site-footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .site-footer-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 639px) {
    .site-footer-container {
        padding-right: 1.25rem;
        padding-left: 1.25rem;
    }

    .site-footer-grid {
        grid-template-columns: 1fr;
        gap: 2.75rem;
    }

    .site-footer-brand {
        grid-column: auto;
    }

    .footer-agenda-link {
        width: 100%;
        justify-content: center;
    }
}

@media (min-width: 640px) {
    .hero-header-spacer {
        height: 3.75rem;
    }
}

/* La composición base permanece intacta hasta 1920 px. */
@media (min-width: 1921px) {
    .hero-container {
        max-width: clamp(1600px, calc(75vw + 160px), 3040px);
    }

    .hero-image {
        --photo-shift: clamp(0px, calc(20vw - 384px), 360px);
        --photo-shift-negative: clamp(-360px, calc(384px - 20vw), 0px);
        inset: 0 var(--photo-shift-negative) 0 var(--photo-shift);
    }

    .site-header-inner {
        max-width: clamp(1600px, calc(75vw + 160px), 3040px);
    }
}

/* Modo compacto para laptops: no altera Full HD ni monitores mayores. */
@media (max-width: 1919px) and (max-height: 900px) {
    .hero-page,
    .hero-container {
        height: 100vh;
        min-height: 0;
    }

    @supports (height: 100dvh) {
        .hero-page,
        .hero-container {
            height: 100dvh;
        }
    }

    .hero-container.hero-container {
        padding-top: clamp(16px, calc(10vh - 60px), 32px);
        padding-bottom: clamp(16px, calc(10vh - 60px), 32px);
    }

    .hero-content.hero-content {
        padding-top: clamp(12px, calc(12vh - 76px), 32px);
        padding-bottom: clamp(12px, calc(12vh - 76px), 32px);
    }

    .hero-title.hero-title {
        font-size: clamp(2.75rem, 6.5vh, 3.6rem);
    }

    .hero-description.hero-description {
        margin-top: clamp(20px, calc(3.3vh - 6px), 24px);
        font-size: clamp(0.95rem, 2.1vh, 1.0625rem);
        line-height: clamp(1.5rem, 3.25vh, 1.75rem);
    }

    .hero-primary-cta.hero-primary-cta {
        margin-top: clamp(24px, calc(6.5vh - 26px), 32px);
        padding: clamp(11px, 1.5vh, 14px) 1.5rem;
        font-size: clamp(1rem, 2.05vh, 1.0625rem);
    }
}
@media (max-width: 767px) {
    .hero-page,
    .hero-container {
        height: 100vh;
        min-height: 0;
    }

    @supports (height: 100dvh) {
        .hero-page,
        .hero-container {
            height: 100dvh;
        }
    }

    .hero-container.hero-container {
        padding: clamp(1.25rem, 4.5vh, 2rem) clamp(1rem, 6vw, 1.5rem) clamp(1.25rem, 3vh, 1.5rem);
    }

    .header-cta.header-cta {
        display: none;
    }

    .hero-header.hero-header {
        align-items: center;
        gap: 0.25rem;
    }

    .brand-link.brand-link {
        gap: 0.375rem;
    }

    .brand-copy.brand-copy {
        display: block;
        padding-left: 0.5rem;
    }

    .brand-name.brand-name {
        font-size: clamp(0.8rem, 3.3vw, 0.9rem);
        line-height: 1.1;
        letter-spacing: 0.035em;
        white-space: nowrap;
    }

    .brand-role.brand-role {
        margin-top: 0.1875rem;
        font-size: clamp(0.6rem, 2.45vw, 0.68rem);
        line-height: 1.2;
        white-space: nowrap;
    }
    .hero-content.hero-content {
        align-items: flex-start;
        padding-top: clamp(1rem, 4vh, 2.25rem);
        padding-bottom: clamp(1rem, 3.5vh, 2rem);
    }

    .hero-copy.hero-copy {
        max-width: clamp(12rem, 55vw, 14rem);
    }

    .hero-title.hero-title {
        font-size: clamp(1.85rem, 8vw, 2rem);
    }

    .hero-description.hero-description {
        margin-top: clamp(0.875rem, 3.5vh, 1.25rem);
        font-size: clamp(0.875rem, 3.8vw, 0.975rem);
        line-height: clamp(1.35rem, 5.9vw, 1.55rem);
    }

    .hero-primary-cta.hero-primary-cta {
        margin-top: clamp(1.125rem, 3.5vh, 1.5rem);
        gap: 0.75rem;
        padding: 0.75rem 1.25rem;
        font-size: 0.95rem;
    }
}

/* Refinamiento mínimo para tablets pequeñas, sin alterar iPad Air/Pro. */
@media (min-width: 768px) and (max-width: 900px) {
    .hero-title.hero-title {
        font-size: clamp(3.375rem, calc(4.55vw + 1.19rem), 3.75rem);
    }

    .hero-copy.hero-copy {
        max-width: clamp(32rem, 60vw, 34rem);
    }

    .hero-image.hero-image {
        --tablet-photo-shift: clamp(1rem, calc(6vw - 30px), 1.5rem);
        --tablet-photo-shift-negative: clamp(-1.5rem, calc(30px - 6vw), -1rem);
        inset: 0 var(--tablet-photo-shift-negative) 0 var(--tablet-photo-shift);
    }
}
