/* Huascar — diseño original. Ajusta estos tokens para cambiar la marca. */
:root {
    --accent: #ffcc00;
    --ink: #161819;
    --muted: #65696c;
    --soft: #f5f5f3;
    --line: #e4e5e2;
    --container: 1200px;
    --header: 88px
}
.brand-logo {
    display: block;
    width: 200px;
    max-width: 100%;
    height: 65px;
    object-fit: contain;
}

*,
*::before,
*::after {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header) + 20px)
}

body {
    margin: 0;
    color: var(--ink);
    background: #fff;
    font: 16px/1.7 Arial, Helvetica, sans-serif
}

body.modal-open {
    overflow: hidden
}

img {
    display: block;
    max-width: 100%;
    object-fit: cover
}

a {
    color: inherit;
    text-decoration: none
}

button,
input {
    font: inherit
}

button,
a,
input,
summary {
    -webkit-tap-highlight-color: transparent
}

button {
    cursor: pointer
}

button {
    color: inherit
}

button:disabled {
    opacity: .35;
    cursor: default
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
    outline: 3px solid #aa8400;
    outline-offset: 5px
}

button {
    border: 0
}

h1,
h2,
h3,
p {
    margin: 0
}

h1,
h2,
h3 {
    line-height: 1.15
}

h2 {
    font-size: clamp(2rem, 3.8vw, 3.35rem);
    font-weight: 800;
    letter-spacing: -1.8px
}

h2 span {
    position: relative
}

h2 span::after {
    content: "";
    display: block;
    position: absolute;
    background: var(--accent);
    height: 7px;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: -1
}

h3 {
    font-size: 1.4rem;
    font-weight: 750;
    letter-spacing: -.4px
}

p {
    color: var(--muted)
}

.container {
    width: min(var(--container), calc(100% - 64px));
    margin-inline: auto
}

.section {
    padding: 112px 0
}

.soft {
    background: var(--soft)
}

.section-head {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 36px;
    margin-bottom: 50px
}

.section-head h2 {
    isolation: isolate
}

.section-note {
    max-width: 360px
}

.eyebrow {
    display: flex;
    align-items: center;
    gap: 13px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    font-size: .85rem;
    color: var(--ink);
    margin-bottom: 20px
}

.eyebrow::before {
    content: "";
    display: block;
    width: 30px;
    height: 3px;
    background: var(--accent)
}

.eyebrow.light {
    color: #fff
}

.eyebrow.light span {
    display: none
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--accent);
    color: var(--ink);
    font-weight: 700;
    font-size: .95rem;
    padding: 17px 30px;
    min-height: 58px;
    position: relative;
    overflow: hidden;
    transition: background .25s, color .25s, transform .25s
}

.button:hover {
    background: var(--ink);
    color: white;
    transform: translateY(-2px)
}

.button.black {
    background: var(--ink);
    color: #fff
}

.button.black:hover {
    background: #303438
}

.text-link {
    display: inline-block;
    background: none;
    font-size: .9rem;
    font-weight: 700;
    border-bottom: 1px solid currentColor;
    padding: 0 0 3px;
    transition: color .2s
}

.text-link:hover {
    color: #8b6b00
}

.skip-link {
    position: fixed;
    left: 15px;
    top: -100px;
    background: var(--accent);
    padding: 12px;
    z-index: 200
}

.skip-link:focus {
    top: 10px
}

/* Cabecera */
.topbar {
    background: #f7f7f7;
    min-height: 48px;
    font-size: .85rem
}

.topbar .container {
    display: flex;
    gap: 30px;
    align-items: center;
    min-height: 48px;
    flex-wrap: wrap
}

.topbar b {
    margin-right: 5px
}

.schedule {
    margin-left: auto
}

.header {
    position: sticky;
    top: 0;
    background: white;
    z-index: 40;
    border-bottom: 1px solid var(--line);
    transition: box-shadow .3s
}

.header.scrolled {
    box-shadow: 0 6px 24px #00000012
}

.nav-shell {
    max-width: 1560px;
    margin: auto;
    min-height: var(--header);
    display: flex;
    align-items: center;
    gap: 36px;
    padding: 0 32px
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 2.1rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -1px;
    flex-shrink: 0
}

.brand-mark {
    width: 34px;
    height: 36px;
    display: grid;
    place-items: center;
    background: var(--accent);
    font-size: 1.6rem;
    font-weight: 900;
    letter-spacing: 0
}

.brand-dot {
    color: #b58d00
}

.header nav {
    display: flex;
    gap: 30px;
    margin-left: auto;
    align-items: center
}

.header nav a {
    font-weight: 600;
    font-size: .95rem;
    position: relative;
    padding: 31px 0
}

.header nav a::after {
    content: "";
    position: absolute;
    bottom: 22px;
    left: 0;
    right: 100%;
    height: 3px;
    background: var(--accent);
    transition: right .3s
}

.header nav a:hover::after,
.header nav a.active::after {
    right: 0
}

.nav-actions {
    display: flex;
    gap: 14px;
    align-items: center;
    margin-left: 18px
}

.icon-button {
    background: none;
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center
}

.icon-button svg {
    width: 25px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5
}

.menu-toggle {
    display: none;
    gap: 5px;
    align-content: center
}

.menu-toggle span {
    display: block;
    height: 2px;
    background: var(--ink);
    width: 24px;
    transition: transform .2s, opacity .2s
}

.menu-toggle[aria-expanded=true] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg)
}

.menu-toggle[aria-expanded=true] span:nth-child(2) {
    opacity: 0
}

.menu-toggle[aria-expanded=true] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg)
}

/* Hero con transición de imagen y contenido */
.hero {
    height: min(780px, calc(100svh - 136px));
    min-height: 620px;
    background: var(--ink);
    color: #fff;
    position: relative;
    overflow: hidden
}

.hero-slides,
.hero-slide,
.hero-overlay {
    position: absolute;
    inset: 0
}

.hero-slide {
    opacity: 0;
    visibility: hidden;
    transition: opacity .9s, visibility .9s
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 1
}

.hero-image {
    position: absolute;
    width: 100%;
    height: 100%;
    object-position: center;
    transform: scale(1.07);
    transition: transform 7s linear
}

.hero-slide.active .hero-image {
    transform: scale(1)
}

.hero-overlay {
    background: linear-gradient(90deg, #080b0deb 0%, #080b0dab 45%, #080b0d20 100%)
}

.hero-overlay::after {
    content: "";
    position: absolute;
    top: -50%;
    left: -150px;
    width: 430px;
    height: 180%;
    background: #0002;
    transform: rotate(-35deg)
}

.hero-content {
    position: relative;
    display: flex;
    height: 100%;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding-bottom: 40px
}

.hero h1,
.hero h2 {
    font-size: clamp(2.5rem, 5.2vw, 4.6rem);
    font-weight: 850;
    letter-spacing: -2px;
    line-height: 1.08;
    max-width: 830px;
    color: #fff
}

.hero em {
    font-style: normal;
    color: var(--accent)
}

.hero-content>p:not(.eyebrow) {
    color: #e1e3e4;
    font-size: 1.1rem;
    max-width: 510px;
    margin: 28px 0 34px
}

.hero-slide.active .hero-content>* {
    animation: hero-enter .8s both
}

.hero-slide.active .hero-content h1,
.hero-slide.active .hero-content h2 {
    animation-delay: .12s
}

.hero-slide.active .hero-content>p:not(.eyebrow) {
    animation-delay: .23s
}

.hero-slide.active .hero-content .button {
    animation-delay: .35s
}

.hero-bottom {
    position: absolute;
    bottom: 30px;
    left: 0;
    right: 0;
    z-index: 4;
    display: flex;
    justify-content: space-between;
    align-items: center
}

.hero-pagination {
    display: flex;
    gap: 12px;
    align-items: center
}

.dot {
    padding: 0;
    width: 28px;
    height: 4px;
    background: #ffffff70;
    transition: background .2s, width .2s
}

.dot.active {
    background: var(--accent);
    width: 52px
}

.pause {
    background: none;
    color: #fff;
    min-width: 44px;
    min-height: 44px
}

.arrows {
    display: flex;
    gap: 12px;
    flex-shrink: 0
}

.arrow {
    width: 52px;
    height: 52px;
    background: white;
    border: 1px solid #dedede;
    font-size: 1.6rem;
    transition: background .25s, color .25s
}

.arrow:hover:not(:disabled) {
    background: var(--accent);
    color: var(--ink);
    border-color: var(--accent)
}

.arrow.dark {
    background: #202426;
    color: #fff;
    border-color: #202426
}

/* Contenido */
.features {
    padding: 42px 0;
    border-bottom: 1px solid var(--line)
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 34px
}

.feature-grid article {
    display: flex;
    align-items: flex-start;
    gap: 20px
}

.feature-grid h3 {
    font-size: 1.12rem;
    margin-bottom: 12px
}

.feature-grid p {
    font-size: .9rem;
    line-height: 1.6
}

.feature-icon {
    font-size: 2.35rem;
    font-weight: 900;
    color: transparent;
    -webkit-text-stroke: 1px #a98a10;
    line-height: 1
}

.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 90px;
    align-items: center
}

.split h2 {
    isolation: isolate
}

.about-visual {
    position: relative;
    padding: 0 52px 70px 0;
    min-width: 0
}

.about-main {
    width: 100%;
    height: 500px;
    object-position: 45%
}

.about-small {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 52%;
    height: 260px;
    border: 10px solid #fff
}

.visual-label {
    position: absolute;
    left: -20px;
    bottom: 10px;
    background: var(--accent);
    padding: 24px;
    display: flex;
    gap: 14px;
    align-items: center
}

.visual-label strong {
    font-size: 3.5rem;
    line-height: 1
}

.visual-label span {
    font-size: .9rem;
    font-weight: 700;
    line-height: 1.4
}

.body-copy {
    margin: 26px 0
}

.check-list {
    list-style: none;
    padding: 0;
    margin: 24px 0
}

.check-list li {
    margin: 9px 0;
    font-weight: 600
}

.check-list li::before {
    content: "✓";
    display: inline-block;
    margin-right: 15px;
    color: #8b6b00
}

.quality {
    margin: 25px 0 30px
}

.quality>div:first-child {
    display: flex;
    justify-content: space-between;
    font-size: .9rem
}

.progress {
    margin-top: 12px;
    background: #eee;
    height: 6px;
    overflow: hidden
}

.progress span {
    display: block;
    height: 100%;
    width: 0;
    background: var(--accent);
    transition: width 1.6s cubic-bezier(.2, .7, .2, 1)
}

.quality small {
    display: block;
    color: var(--muted);
    font-size: .75rem;
    margin-top: 6px
}

.carousel {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    padding-bottom: 10px;
    overscroll-behavior-x: contain
}

.carousel::-webkit-scrollbar {
    display: none
}

.card {
    background: #fff;
    min-width: 0;
    transition: transform .3s, box-shadow .3s
}

.service {
    flex: 0 0 calc((100% - 48px)/3);
    scroll-snap-align: start
}

.image-wrap {
    position: relative;
    overflow: hidden
}

.image-wrap img {
    width: 100%;
    height: 245px;
    transition: transform .65s
}

.card:hover .image-wrap img {
    transform: scale(1.06)
}

.card-body {
    padding: 32px;
    position: relative
}

.card-body h3 {
    margin-bottom: 15px;
    max-width: 90%
}

.card-body p {
    font-size: .95rem;
    margin-bottom: 22px
}

.card-number {
    position: absolute;
    right: 22px;
    top: 24px;
    color: #ddd;
    font-size: 2.6rem;
    font-weight: 800;
    line-height: 1
}

.card:hover {
    box-shadow: 0 12px 26px #0000000c
}

.banner {
    position: relative;
    background: #151819;
    color: #fff;
    padding: 105px 0;
    overflow: hidden
}

.banner-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, #090d0edb, #090d0e87), url('../img/hero.jpg') center/cover
}

.banner-inner {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 35px
}

.banner h2 {
    font-size: clamp(2.4rem, 4vw, 3.7rem);
    margin-bottom: 34px
}

.banner h2 span {
    color: var(--accent)
}

.play-button {
    position: relative;
    display: grid;
    place-items: center;
    width: 94px;
    height: 94px;
    background: var(--accent);
    border-radius: 50%;
    flex-shrink: 0;
    font-size: 1.5rem
}

.play-button::before,
.play-button::after {
    content: "";
    position: absolute;
    inset: 0;
    border: 1px solid #ffcc0088;
    border-radius: 50%;
    animation: pulse 2.8s infinite
}

.play-button::after {
    animation-delay: 1.4s
}

.goal-visual {
    position: relative;
    padding-left: 25px;
    padding-bottom: 35px
}

.goal-visual::before {
    content: "";
    position: absolute;
    inset: 50px 50px 0 0;
    background: var(--accent)
}

.goal-visual img {
    position: relative;
    width: 100%;
    height: 480px
}

.goal-caption {
    position: absolute;
    bottom: 0;
    right: 0;
    background: var(--ink);
    color: #fff;
    padding: 24px 35px
}

.goal-caption span {
    color: var(--accent);
    font-size: .8rem;
    letter-spacing: 3px;
    display: block;
    margin-bottom: 8px
}

.goal-caption b {
    font-size: 1.35rem;
    line-height: 1.2
}

details {
    padding: 16px 0;
    border-bottom: 1px solid var(--line)
}

summary {
    font-weight: 700;
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px
}

summary::-webkit-details-marker {
    display: none
}

summary::after {
    content: "+";
    font-size: 1.6rem
}

details[open] summary::after {
    content: "−"
}

details p {
    padding-top: 12px;
    font-size: .95rem
}

.partners {
    padding: 42px 0;
    border-block: 1px solid var(--line);
    overflow: hidden
}

.marquee {
    display: flex;
    width: max-content;
    animation: marquee 32s linear infinite
}

.marquee-set {
    display: flex;
    gap: 80px;
    align-items: center;
    padding-right: 80px
}

.marquee span {
    font-weight: 850;
    font-size: 1.5rem;
    color: #8b8e8f;
    letter-spacing: 2px
}

.partners:hover .marquee {
    animation-play-state: paused
}

.project-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px
}

.project {
    position: relative;
    height: 480px;
    overflow: hidden;
    background: var(--ink);
    color: #fff
}

.project img {
    width: 100%;
    height: 100%;
    transition: transform .7s
}

.project:hover img {
    transform: scale(1.055)
}

.project::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(transparent 25%, #000b)
}

.project-info {
    position: absolute;
    bottom: 35px;
    left: 35px;
    right: 35px;
    z-index: 1;
    transform: translateY(7px);
    transition: transform .3s
}

.project:hover .project-info {
    transform: translateY(0)
}

.project-info span {
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 1.3px;
    font-size: .8rem
}

.project-info h3 {
    font-size: 1.9rem;
    margin: 13px 0 17px
}

.project-info button {
    color: white
}

.project-cta {
    border-bottom: 1px solid var(--ink);
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 30px;
    padding: 10px 0 18px;
    font-weight: 700;
    font-size: 1.15rem
}

.project-cta span {
    font-size: 2rem
}

.stats {
    background: var(--accent);
    padding: 65px 0 20px
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr)
}

.stats-grid>div {
    text-align: center;
    border-right: 1px solid #0003
}

.stats-grid>div:last-child {
    border: 0
}

.stats strong {
    font-size: clamp(2.5rem, 4.7vw, 4.2rem);
    line-height: 1.2;
    letter-spacing: -2px
}

.stats p {
    color: var(--ink);
    font-weight: 600;
    margin-top: 8px
}

.stats .demo-caption {
    font-size: .75rem;
    font-weight: 400;
    text-align: center;
    margin-top: 32px;
    opacity: .75
}

.testimonial-track .quote-card {
    flex: 0 0 calc((100% - 24px)/2);
    scroll-snap-align: start
}

.quote-card {
    background: #fff;
    padding: 36px
}

.quote-symbol {
    font-family: Georgia, serif;
    color: #bd9500;
    font-size: 5rem;
    line-height: .8
}

.quote-card>p {
    font-size: 1.15rem;
    line-height: 1.75;
    color: var(--ink);
    margin: 20px 0 30px
}

.quote-person {
    display: flex;
    gap: 17px;
    align-items: center
}

.avatar {
    background: var(--accent);
    width: 55px;
    height: 55px;
    display: grid;
    place-items: center;
    font-weight: 800;
    border-radius: 50%;
    flex-shrink: 0
}

.quote-person small {
    display: block;
    font-size: .8rem;
    color: var(--muted);
    line-height: 1.5
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px
}

.blog {
    border: 1px solid var(--line)
}

.tag {
    position: absolute;
    bottom: 0;
    left: 0;
    background: var(--accent);
    padding: 5px 18px;
    font-size: .8rem;
    font-weight: 600
}

.blog .card-body {
    padding: 25px
}

.blog h3 {
    max-width: 100%;
    font-size: 1.4rem;
    line-height: 1.35
}

.blog .meta {
    font-size: .8rem;
    margin-bottom: 15px
}

.contact-band {
    background: var(--accent);
    padding: 65px 0
}

.contact-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 70px;
    align-items: center
}

.contact-band h2 {
    font-size: clamp(2rem, 3vw, 2.9rem)
}

.contact-band .eyebrow::before {
    background: var(--ink)
}

.contact-band label {
    display: block;
    font-weight: 600;
    margin-bottom: 10px
}

.email-row {
    display: flex;
    background: white;
    padding: 6px
}

.email-row input {
    width: 100%;
    min-width: 0;
    flex: 1;
    border: 0;
    padding: 10px 15px;
    border-radius: 0
}

.email-row .button {
    padding: 14px 22px
}

.contact-band form p {
    color: #393200;
    font-size: .8rem;
    margin-top: 10px
}

.footer {
    background: #151819;
    color: #fff;
    padding: 70px 0 0
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr .7fr 1fr .6fr;
    gap: 55px
}

.footer h3 {
    font-size: 1.15rem;
    margin-bottom: 22px
}

.footer p {
    color: #b4b7b8;
    margin: 20px 0;
    font-size: .9rem
}

.footer-grid>div>a:not(.brand) {
    display: block;
    color: #b4b7b8;
    font-size: .9rem;
    margin: 7px 0;
    overflow-wrap: anywhere
}

.footer a:hover {
    color: var(--accent)
}

.socials {
    display: flex;
    gap: 10px
}

.socials a {
    border: 1px solid #ffffff30;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    font-weight: 700
}

.footer-bottom {
    border-top: 1px solid #ffffff20;
    margin-top: 55px;
    padding: 25px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    font-size: .8rem;
    color: #b4b7b8
}

.back-top {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 35;
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    background: white;
    border-radius: 50%;
    font-size: 1.5rem;
    box-shadow: 0 4px 20px #0002;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity .2s, transform .2s, visibility .2s
}

.back-top.visible {
    opacity: 1;
    visibility: visible;
    transform: none
}

.back-top svg {
    position: absolute;
    inset: 0;
    width: 48px;
    height: 48px;
    fill: none;
    stroke: var(--accent);
    stroke-width: 3;
    transform: rotate(-90deg)
}

.back-top circle {
    stroke-dasharray: 132;
    stroke-dashoffset: 132
}

/* Diálogos nativos: foco contenido y cierre con Escape */
dialog {
    border: 0;
    color: var(--ink);
    padding: 0
}

dialog::backdrop {
    background: #000b;
    backdrop-filter: blur(4px)
}

.modal {
    width: min(700px, calc(100% - 32px));
    max-height: 85svh;
    padding: 55px;
    overflow: auto
}

.modal[open] {
    animation: modal-enter .25s
}

.modal h2 {
    font-size: 2rem;
    margin-bottom: 25px;
    letter-spacing: -1px
}

.modal h3 {
    margin: 25px 0 10px
}

.modal p {
    margin: 15px 0
}

.modal img {
    width: 100%;
    height: 260px;
    margin: 22px 0
}

.close-button {
    position: absolute;
    right: 12px;
    top: 8px;
    width: 42px;
    height: 42px;
    background: transparent;
    font-size: 2rem;
    line-height: 1
}

.modal .eyebrow {
    margin-bottom: 15px
}

.search-modal input {
    display: block;
    width: 100%;
    padding: 15px;
    border: 1px solid var(--line);
    margin: 15px 0
}

.search-modal label {
    font-size: .9rem
}

.search-result {
    display: block;
    border-bottom: 1px solid var(--line);
    padding: 13px 0;
    font-weight: 600
}

.search-result:hover {
    color: #967400
}

.drawer {
    margin: 0 0 0 auto;
    width: min(430px, 100%);
    height: 100svh;
    max-height: 100svh;
    padding: 65px 40px
}

.drawer[open] {
    animation: drawer-enter .3s
}

.drawer h2 {
    font-size: 2.5rem;
    margin: 55px 0 25px
}

.drawer h3 {
    margin-top: 30px
}

.drawer p {
    margin: 15px 0
}

.drawer>a:not(.brand) {
    display: block;
    margin: 12px 0;
    overflow-wrap: anywhere
}

.drawer .button {
    margin-top: 30px !important
}

.video-modal {
    width: min(900px, calc(100% - 32px))
}

.video-modal iframe,
.video-modal video {
    width: 100%;
    aspect-ratio: 16/9;
    border: 0;
    display: block;
    background: #000
}

/* Animaciones progresivas: el contenido sigue visible sin JavaScript. */
.js .reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity .8s, transform .8s
}

.js .reveal.in-view {
    opacity: 1;
    transform: none
}

.feature-grid .reveal:nth-child(2),
.blog-grid .reveal:nth-child(2) {
    transition-delay: .1s
}

.feature-grid .reveal:nth-child(3),
.blog-grid .reveal:nth-child(3) {
    transition-delay: .2s
}

@keyframes hero-enter {
    from {
        opacity: 0;
        transform: translateY(35px)
    }

    to {
        opacity: 1;
        transform: none
    }
}

@keyframes pulse {
    to {
        transform: scale(1.7);
        opacity: 0
    }
}

@keyframes marquee {
    to {
        transform: translateX(-50%)
    }
}

@keyframes modal-enter {
    from {
        opacity: 0;
        transform: translateY(20px)
    }

    to {
        opacity: 1;
        transform: none
    }
}

@keyframes drawer-enter {
    from {
        transform: translateX(100%)
    }

    to {
        transform: none
    }
}

/* Tablet */
@media(min-width:1600px) {

    .hero h1,
    .hero h2 {
        font-size: 5rem
    }
}

@media(max-width:1150px) {
    .nav-shell {
        gap: 25px;
        padding: 0 24px
    }

    .header nav {
        gap: 18px
    }

    .nav-actions {
        margin-left: 0;
        gap: 6px
    }

    .brand {
        font-size: 1.85rem
    }

    .split {
        gap: 45px
    }

    .section {
        padding: 85px 0
    }

    .footer-grid {
        gap: 30px
    }

    .card-body {
        padding: 25px
    }

    .hero {
        min-height: 590px
    }

    .feature-grid {
        gap: 24px
    }

    .feature-grid article {
        gap: 12px
    }
}

@media(max-width:950px) {
    :root {
        --header: 76px
    }

    .container {
        width: calc(100% - 48px)
    }

    .topbar .container {
        gap: 20px
    }

    .schedule {
        display: none
    }

    .header nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        padding: 12px 24px 22px;
        border-bottom: 1px solid var(--line);
        max-height: calc(100svh - var(--header));
        overflow: auto;
        box-shadow: 0 15px 20px #0001
    }

    .header nav.open {
        display: flex;
        flex-direction: column;
        gap: 0;
        align-items: stretch
    }

    .header nav a {
        padding: 13px 4px
    }

    .header nav a::after {
        bottom: 7px;
        right: 100%
    }

    .header nav a.active::after {
        right: 90%
    }

    .nav-actions {
        margin-left: auto
    }

    .menu-toggle {
        display: grid
    }

    .hero {
        height: 670px;
        min-height: 570px
    }

    .hero h1,
    .hero h2 {
        font-size: 3.7rem
    }

    .feature-grid {
        grid-template-columns: 1fr
    }

    .feature-grid article {
        gap: 24px;
        max-width: 680px
    }

    .feature-icon {
        width: 55px;
        flex-shrink: 0
    }

    .split {
        grid-template-columns: 1fr;
        gap: 55px
    }

    .about-visual {
        max-width: 630px;
        margin-inline: auto;
        width: 100%
    }

    .about-main {
        height: 460px
    }

    .service {
        flex-basis: calc((100% - 24px)/2)
    }

    .goal-visual {
        max-width: 650px;
        width: 100%
    }

    .blog-grid {
        grid-template-columns: repeat(2, 1fr)
    }

    .blog:last-child {
        grid-column: 1/-1;
        max-width: calc((100% - 24px)/2)
    }

    .project {
        height: 400px
    }

    .project-info {
        left: 25px;
        right: 25px;
        bottom: 25px
    }

    .project-info h3 {
        font-size: 1.5rem
    }

    .contact-inner {
        grid-template-columns: 1fr;
        gap: 32px
    }

    .contact-inner form {
        max-width: 680px
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px
    }

    .section-head {
        gap: 24px
    }

    .section-note {
        max-width: 240px;
        font-size: .9rem
    }

    .stats-grid {
        gap: 25px 0
    }

    .stats strong {
        font-size: 3.1rem
    }
}

/* Teléfonos */
@media(max-width:600px) {
    :root {
        --header: 70px
    }

    .container {
        width: calc(100% - 36px)
    }

    .topbar {
        display: none
    }

    .nav-shell {
        padding: 0 18px;
        gap: 10px
    }

    .brand {
        font-size: 1.8rem
    }

    .brand-mark {
        width: 30px;
        height: 32px;
        font-size: 1.4rem
    }

    .nav-actions {
        gap: 2px
    }

    .icon-button {
        width: 34px
    }

    .nav-actions #drawer-open {
        display: none
    }

    .hero {
        height: calc(100svh - 70px);
        min-height: 590px;
        max-height: 780px
    }

    .hero-content {
        padding-bottom: 70px
    }

    .hero h1,
    .hero h2 {
        font-size: clamp(2.2rem, 9.3vw, 3.3rem);
        letter-spacing: -1.2px;
        line-height: 1.13
    }

    .hero-content>p:not(.eyebrow) {
        font-size: 1rem;
        max-width: 340px;
        margin: 23px 0 28px
    }

    .hero .eyebrow {
        font-size: .72rem;
        letter-spacing: 1.5px;
        margin-bottom: 25px
    }

    .hero-overlay {
        background: linear-gradient(90deg, #090d0eeb, #090d0e75)
    }

    .hero-bottom {
        bottom: 22px
    }

    .arrow {
        width: 44px;
        height: 44px;
        font-size: 1.3rem
    }

    .arrows {
        gap: 8px
    }

    .features {
        padding: 35px 0
    }

    .feature-grid {
        gap: 30px
    }

    .section {
        padding: 66px 0
    }

    h2 {
        font-size: 2.1rem;
        letter-spacing: -1px
    }

    h3 {
        font-size: 1.25rem
    }

    .eyebrow {
        font-size: .76rem;
        letter-spacing: 1.5px;
        margin-bottom: 16px
    }

    .section-head {
        align-items: start;
        flex-direction: column;
        margin-bottom: 30px;
        gap: 22px
    }

    .section-head .arrows {
        align-self: flex-end;
        margin-top: -5px
    }

    .section-note {
        max-width: none
    }

    .about-visual {
        padding: 0 25px 70px 0
    }

    .about-main {
        height: 350px
    }

    .about-small {
        height: 190px;
        border-width: 6px
    }

    .visual-label {
        left: 0;
        padding: 17px;
        bottom: 0
    }

    .visual-label strong {
        font-size: 2.7rem
    }

    .visual-label span {
        font-size: .8rem
    }

    .split {
        gap: 40px
    }

    .body-copy {
        margin: 22px 0
    }

    .check-list li {
        font-size: .9rem
    }

    .button {
        padding: 15px 24px;
        font-size: .9rem;
        min-height: 54px
    }

    .service {
        flex-basis: 90%;
        max-width: 390px
    }

    .image-wrap img {
        height: 220px
    }

    .card-body {
        padding: 27px
    }

    .banner {
        padding: 75px 0
    }

    .banner-inner {
        align-items: flex-start;
        flex-direction: column;
        gap: 35px
    }

    .banner h2 {
        font-size: 2.5rem
    }

    .play-button {
        width: 70px;
        height: 70px;
        align-self: flex-end;
        margin-right: 18px
    }

    .goal-visual {
        padding-left: 15px;
        padding-bottom: 25px
    }

    .goal-visual img {
        height: 330px
    }

    .goal-caption {
        padding: 20px 24px
    }

    .goal-caption b {
        font-size: 1.15rem
    }

    .partners {
        padding: 30px 0
    }

    .marquee-set {
        gap: 45px;
        padding-right: 45px
    }

    .marquee span {
        font-size: 1.15rem
    }

    .project-grid {
        grid-template-columns: 1fr;
        gap: 24px
    }

    .project {
        height: 380px
    }

    .project-info h3 {
        font-size: 1.7rem
    }

    .project-cta {
        font-size: 1rem;
        gap: 20px
    }

    .stats {
        padding: 45px 0 18px
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px 0
    }

    .stats-grid>div:nth-child(2) {
        border: 0
    }

    .stats strong {
        font-size: 3rem
    }

    .stats p {
        font-size: .9rem
    }

    .testimonial-track .quote-card {
        flex-basis: 100%;
        padding: 28px
    }

    .quote-card>p {
        font-size: 1.05rem
    }

    .blog-grid {
        grid-template-columns: 1fr
    }

    .blog:last-child {
        grid-column: auto;
        max-width: none
    }

    .contact-band {
        padding: 50px 0
    }

    .email-row {
        flex-direction: column;
        gap: 6px;
        padding: 8px
    }

    .email-row input {
        min-height: 48px
    }

    .footer {
        padding-top: 55px
    }

    .footer-grid {
        gap: 35px 25px
    }

    .footer-grid>div:first-child {
        grid-column: 1/-1
    }

    .footer-grid>div:last-child {
        grid-column: 1/-1
    }

    .footer-grid h3 {
        margin-bottom: 15px
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        margin-top: 35px;
        gap: 15px
    }

    .back-top {
        right: 14px;
        bottom: 14px
    }

    .modal {
        padding: 50px 24px 30px
    }

    .modal h2 {
        font-size: 1.75rem
    }

    .modal img {
        height: 210px
    }

    .drawer {
        padding: 65px 28px
    }

    .quote-person small {
        font-size: .75rem
    }
}

@media(prefers-reduced-motion:reduce) {
    html {
        scroll-behavior: auto
    }

    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important
    }

    .js .reveal {
        opacity: 1;
        transform: none
    }

    .marquee {
        transform: none
    }

    .hero-image {
        transform: none
    }
}