@layer reset, base, components, utilities, motion;

@layer reset {
  *, *::before, *::after { box-sizing: border-box; }
  html { scroll-behavior: smooth; }
  body, h1, h2, h3, p, ul, ol, figure { margin: 0; }
  ul, ol { padding: 0; list-style: none; }
  img { display: block; max-width: 100%; }
  button, input, textarea { font: inherit; }
  button, a { -webkit-tap-highlight-color: transparent; }
}

@layer base {
  :root {
    --blue-day: #0073CB;
    --blue-night: #00215E;
    --blue-night-2: #001843;
    --blue-ice: #EAF4FC;
    --blue-pale: #F4F8FC;
    --black: #000000;
    --gray-metal: #53565A;
    --gray-luminous: #BBBBBB;
    --gray-line: #D9E0E7;
    --white: #FFFFFF;
    --warm-white: #FCFCFB;
    --ink: #111820;
    --max-width: 1240px;
    --gutter: clamp(1.25rem, 4vw, 4rem);
    --radius-sm: 10px;
    --radius-md: 18px;
    --shadow-blue: 0 18px 50px rgba(0, 33, 94, .12);
    --shadow-soft: 0 14px 34px rgba(0, 33, 94, .08);
    --font-display: 'Merriweather Sans', sans-serif;
    --font-body: 'Merriweather Sans', sans-serif;
  }

  body {
    background: var(--warm-white);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 300;
    line-height: 1.65;
    overflow-x: hidden;
  }

  ::selection { background: var(--blue-day); color: var(--white); }
  :focus-visible { outline: 3px solid var(--blue-day); outline-offset: 4px; }
  a { color: inherit; text-decoration: none; }
  p { max-width: 68ch; text-wrap: pretty; }
  h1, h2, h3 { color: inherit; font-family: var(--font-display); font-weight: 800; letter-spacing: -.035em; line-height: 1.06; text-wrap: balance; }
  h1 { font-size: clamp(3.15rem, 7vw, 6.6rem); max-width: 9ch; }
  h2 { font-size: clamp(2.8rem, 4vw, 3.5rem); line-height: 1.1; max-width: none; }
  h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); letter-spacing: -.025em; }
  .container { width: min(100% - (var(--gutter) * 2), var(--max-width)); margin-inline: auto; }
  .section-white, .section-light, .section-soft, .section-dark { position: relative; }
  .intro-grid > *, .section-heading > *, .services-grid > *, .benefits-grid > *, .ai-grid > *, .method-layout > *, .web-grid > *, .agency-grid > *, .faq-grid > *, .contact-grid > * { min-width: 0; }
  .section-white { background: var(--white); }
  .section-light { background: var(--warm-white); }
  .section-soft { background: var(--blue-pale); }
  .section-dark { background: var(--blue-night); color: var(--white); }
  .eyebrow { color: var(--blue-day); font-family: var(--font-display); font-size: .73rem; font-weight: 300; letter-spacing: .2em; line-height: 1.4; }
  .eyebrow-light { color: #8DCAEF; }
  .lead-copy { font-size: clamp(1.12rem, 1.7vw, 1.34rem); line-height: 1.55; }
  .keyword-accent { color: var(--blue-day); }
  .keyword-accent-light { color: #8DCAEF; }
  .seo-emphasis { color: var(--blue-night); font-weight: 800; }
  .section-dark .seo-emphasis { color: #8DCAEF; }
  .skip-link { position: fixed; left: 1rem; top: -5rem; z-index: 100; background: var(--blue-day); color: var(--white); padding: .75rem 1rem; border-radius: var(--radius-sm); font-weight: 300; }
  .skip-link:focus { top: 1rem; }
}

@layer components {
  .site-header { position: absolute; z-index: 10; width: 100%; color: var(--white); }
  .header-inner { align-items: center; display: flex; justify-content: space-between; min-height: 6.6rem; gap: 2rem; }
  .brand { align-items: center; display: inline-flex; width: 8.7rem; }
  .brand img { height: auto; width: 100%; }
  .nav-button { display: none; }
  .desktop-nav { display: flex; gap: clamp(1.25rem, 3vw, 2.75rem); margin-inline-start: auto; }
  .desktop-nav a { color: rgba(255,255,255,.84); font-family: var(--font-display); font-size: .78rem; font-weight: 300; letter-spacing: .09em; text-transform: uppercase; transition: color .25s ease; }
  .desktop-nav a:hover { color: var(--white); }
  .mobile-nav-top, .mobile-nav-close, .mobile-nav-intro, .mobile-nav-footer, .mobile-nav-arrow { display: none; }

  .button { align-items: center; border: 1px solid transparent; border-radius: 0; cursor: pointer; display: inline-flex; font-family: var(--font-display); font-size: .75rem; font-weight: 300; justify-content: center; letter-spacing: .12em; min-height: 3.25rem; padding: .85rem 1.35rem; text-align: center; transition: background-color .25s ease, border-color .25s ease, color .25s ease, transform .25s ease, box-shadow .25s ease; }
  .button:hover { transform: translateY(-2px); }
  .button-primary { background: var(--blue-day); box-shadow: 0 12px 26px rgba(0,115,203,.25); color: var(--white); }
  .button-primary:hover { background: #0066B4; box-shadow: 0 16px 30px rgba(0,115,203,.35); }
  .button-small { min-height: 2.65rem; padding-inline: 1rem; }
  .button-large { min-height: 3.65rem; padding-inline: 1.55rem; }
  .button-outline { align-items: center; background: transparent; border: 1px solid; border-radius: 0; display: inline-flex; font-family: var(--font-display); font-size: .75rem; font-weight: 300; gap: .7rem; justify-content: center; letter-spacing: .12em; min-height: 3.35rem; padding: .85rem 1.25rem; text-align: center; text-transform: uppercase; transition: background-color .25s ease, border-color .25s ease, color .25s ease, transform .25s ease, box-shadow .25s ease; }
  .button-outline-dark { border-color: var(--blue-day); color: var(--blue-day); }
  .button-outline-dark:hover, .button-outline-dark:focus-visible { background: var(--blue-day); border-color: var(--blue-day); color: var(--white); }
  .button-outline-light { border-color: rgba(255,255,255,.62); color: var(--white); }
  .button-outline-light:hover, .button-outline-light:focus-visible { background: var(--white); border-color: var(--white); color: var(--blue-night); }
  .button-outline:hover, .button-outline:focus-visible { transform: translateY(-2px); }
  .button-outline span { transition: transform .25s ease; }
  .button-outline:hover span, .button-outline:focus-visible span { transform: translateX(4px); }
  .button-light { background: var(--white); color: var(--blue-night); }
  .button-light:hover { background: #DCEFFF; }

  .hero { aspect-ratio: 1920 / 934; min-height: 0; overflow: hidden; padding: 7.6rem 0 4.5rem; }
  .hero-media, .hero-overlay, .ai-media, .ai-overlay { inset: 0; position: absolute; }
  .hero-media { background-image: url('img/hero-2026-conde.jpg'); background-position: center; background-size: cover; opacity: .82; }
  .hero-overlay { background: linear-gradient(90deg, rgba(0,33,94,.88) 0%, rgba(0,33,94,.63) 52%, rgba(0,33,94,.26) 100%); opacity: .5; }
  .hero-grid { align-items: center; display: grid; min-height: 570px; position: relative; z-index: 1; }
  .hero-copy { align-self: center; }
  .hero-copy .eyebrow { margin-bottom: 1.5rem; }
  .hero-copy { max-width: 45rem; }
  .hero-copy h1 { font-size: clamp(3.5rem, 5.5vw, 4.375rem); line-height: 1.1; margin-bottom: 1.8rem; max-width: 11ch; }
  .hero-lead { color: rgba(255,255,255,.88); font-size: clamp(1.2rem, 2vw, 1.55rem); line-height: 1.45; max-width: 29ch; }
  .hero-note { border-left: 2px solid rgba(141,202,239,.7); color: rgba(255,255,255,.62); font-size: .82rem; line-height: 1.45; margin-top: 1.7rem; padding-left: .85rem; }
  .scroll-cue { align-items: center; bottom: 2.25rem; color: rgba(255,255,255,.68); display: flex; font-family: var(--font-display); font-size: .68rem; font-weight: 300; gap: .65rem; left: 50%; letter-spacing: .2em; position: absolute; transform: translateX(-50%); z-index: 2; }
  .scroll-cue span { border: 1px solid var(--blue-day); border-radius: 50%; height: 1.5rem; position: relative; width: 1.5rem; }
  .scroll-cue span::after { border-bottom: 1px solid var(--blue-day); border-right: 1px solid var(--blue-day); content: ''; height: .35rem; left: .52rem; position: absolute; top: .42rem; transform: rotate(45deg); width: .35rem; }

  .intro { padding: clamp(8rem, 13vw, 12rem) 0; }
  .intro-grid { align-items: center; display: grid; gap: clamp(2rem, 4vw, 4rem); grid-template-columns: minmax(9rem, 1fr) minmax(0, 3.6fr); }
  .intro-media { align-self: center; max-width: 18rem; }
  .intro-media img { height: auto; mix-blend-mode: multiply; width: 100%; }
  .intro-content { max-width: 65rem; }
  .intro-content .eyebrow { margin-bottom: 2.25rem; }
  .intro-content h2 { margin-bottom: 3rem; max-width: 100%; }
  .intro-content .lead-copy { max-width: 62ch; }
  .intro-content p + p { color: var(--gray-metal); margin-top: 1.7rem; max-width: 56ch; }
  .intro-content > p:not(.eyebrow) + p { max-width: 72ch; }

  .services { padding: clamp(7rem, 12vw, 11rem) 0; }
  .section-heading { align-items: end; display: grid; gap: 1px; grid-template-columns: minmax(0, 1fr); justify-content: space-between; margin-bottom: 5.5rem; }
  .section-heading .eyebrow { margin-bottom: 1.75rem; }
  .section-heading > div { grid-column: 1; max-width: 58rem; }
  .section-heading h2 { max-width: 100%; }
  .heading-aside { color: var(--gray-metal); font-size: 1.05rem; line-height: 1.5; max-width: 62ch; padding: 0 clamp(1.5rem, 3vw, 2.7rem); }
  .section-heading .heading-aside { margin-top: 1.45rem; padding: 0; }
  .method-heading > div { max-width: 58rem; }
  .method-heading h2 { margin-bottom: 2.5rem; }
  .method-heading .lead-copy { color: var(--gray-metal); max-width: 62ch; }
  .services-grid { display: grid; gap: 1px; grid-template-columns: repeat(3, 1fr); }
  .service-card { background: var(--blue-pale); border-top: 4px solid var(--gray-line); display: flex; flex-direction: column; min-height: 39rem; padding: clamp(1.5rem, 3vw, 2.7rem); position: relative; transition: background-color .3s ease, border-color .3s ease, transform .3s ease; }
  .service-card:hover { background: var(--blue-ice); border-color: var(--blue-day); transform: translateY(-6px); z-index: 1; }
  .service-card-featured { background: var(--blue-night); border-color: var(--blue-day); color: var(--white); }
  .service-card-featured:hover { background: var(--blue-night-2); }
  .service-card-top { align-items: center; display: flex; justify-content: space-between; margin-bottom: 4.25rem; }
  .service-number { color: var(--blue-day); font-family: var(--font-display); font-size: .83rem; font-weight: 300; }
  .service-tag { color: var(--gray-metal); font-family: var(--font-display); font-size: .62rem; font-weight: 300; letter-spacing: .16em; }
  .service-card-featured .service-tag { color: #8DCAEF; }
  .service-card h3 { font-size: clamp(1.7rem, 2.8vw, 2.45rem); margin-bottom: 1.6rem; max-width: 10ch; }
  .service-card p { color: var(--gray-metal); max-width: 31ch; }
  .service-card-featured p { color: rgba(255,255,255,.76); }
  .service-list { border-top: 1px solid var(--gray-line); margin-top: 2rem; padding-top: 1.1rem; }
  .service-card-featured .service-list { border-color: rgba(255,255,255,.2); }
  .service-list li { color: var(--gray-metal); font-size: .88rem; padding: .28rem 0 .28rem 1rem; position: relative; }
  .service-list li::before { background: var(--blue-day); content: ''; height: 4px; left: 0; position: absolute; top: .8rem; width: 4px; }
  .service-card-featured .service-list li { color: rgba(255,255,255,.78); }
  .card-link { align-self: stretch; font-size: .72rem; justify-content: center; margin-top: auto; text-align: center; }
  .service-card-featured .card-link { color: #8DCAEF; }
  .card-link span { font-size: 1.2rem; padding-left: .45rem; }

  .benefits { padding: clamp(7rem, 12vw, 10.5rem) 0; }
  .benefits-grid { align-items: center; display: grid; gap: clamp(4rem, 9vw, 9rem); grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
  .benefits-media { position: relative; }
  .benefits-media img { box-shadow: var(--shadow-blue); height: auto; width: 100%; }
  .benefits-content .eyebrow { margin-bottom: 1.75rem; }
  .benefits-content h2 { margin-bottom: 2.5rem; max-width: 100%; }
  .benefits-content .lead-copy { color: var(--gray-metal); margin-bottom: 2.8rem; }
  .benefit-list { border-top: 1px solid var(--gray-line); }
  .benefit-item { align-items: start; border-bottom: 1px solid var(--gray-line); display: grid; gap: 1rem; grid-template-columns: 2rem 1fr; padding: 1.1rem 0; }
  .benefit-item > span { color: var(--blue-day); font-family: var(--font-display); font-size: .78rem; font-weight: 300; padding-top: .2rem; }
  .benefit-item h3 { font-size: 1rem; letter-spacing: -.01em; margin-bottom: .25rem; }
  .benefit-item p { color: var(--gray-metal); font-size: .88rem; line-height: 1.45; }

  .ai-section { overflow: hidden; padding: clamp(8rem, 13vw, 12rem) 0; }
  .ai-media { background-image: url('img/54251-optimized.jpg'); background-position: center; background-size: cover; opacity: .42; }
  @supports (background-image: image-set(url('img/54251.webp') type('image/webp'))) {
    .ai-media { background-image: image-set(url('img/54251.webp') type('image/webp') 1x, url('img/54251-optimized.jpg') type('image/jpeg') 1x); }
  }
  .ai-overlay { background: linear-gradient(100deg, rgba(0,33,94,.98) 0%, rgba(0,33,94,.9) 47%, rgba(0,33,94,.56) 100%); }
  .ai-grid { display: grid; gap: clamp(4rem, 8vw, 9rem); grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); position: relative; z-index: 1; }
  .ai-copy .eyebrow { margin-bottom: 2rem; }
  .ai-copy h2 { margin-bottom: 2.8rem; max-width: 100%; }
  .ai-copy .lead-copy { color: rgba(255,255,255,.88); }
  .ai-copy > p:not(.eyebrow) + p { color: rgba(255,255,255,.72); margin-top: 1.7rem; }
  .ai-principles { align-self: center; border-top: 1px solid rgba(255,255,255,.28); }
  .principle { border-bottom: 1px solid rgba(255,255,255,.28); display: grid; gap: 1.25rem; grid-template-columns: 2rem minmax(0, 1fr); padding: 1.65rem 0; }
  .principle span { color: #8DCAEF; font-family: var(--font-display); font-size: .78rem; font-weight: 300; }
  .principle h3 { font-size: 1.2rem; margin-bottom: .55rem; }
  .principle p { color: rgba(255,255,255,.68); font-size: .88rem; line-height: 1.5; }

  .method { padding: clamp(7rem, 12vw, 11rem) 0; }
  .method-layout { align-items: start; display: grid; gap: clamp(4rem, 9vw, 9rem); grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); }
  .method-image { position: relative; }
  .method-image img { box-shadow: var(--shadow-soft); height: auto; width: 100%; }
  .method-steps { border-top: 1px solid var(--gray-line); }
  .method-step { border-bottom: 1px solid var(--gray-line); display: grid; gap: 1.25rem; grid-template-columns: 2.2rem 1fr; padding: 1.55rem 0; }
  .step-number { color: var(--blue-day); font-family: var(--font-display); font-size: .8rem; font-weight: 300; }
  .method-step h3 { font-size: 1.25rem; margin-bottom: .35rem; }
  .method-step p { color: var(--gray-metal); font-size: .92rem; line-height: 1.5; }

  .web-section { padding: clamp(7rem, 12vw, 10rem) 0; }
  .web-grid { align-items: center; display: grid; gap: clamp(4rem, 9vw, 9rem); grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); }
  .web-copy .eyebrow { margin-bottom: 1.75rem; }
  .web-copy h2 { margin-bottom: 2.6rem; max-width: 100%; }
  .web-copy .lead-copy { color: var(--gray-metal); }
  .check-list { border-top: 1px solid var(--gray-line); margin-top: 2rem; padding-top: .8rem; }
  .check-list li { border-bottom: 1px solid var(--gray-line); color: var(--ink); font-size: .9rem; padding: .75rem 0 .75rem 1.35rem; position: relative; }
  .check-list li::before { border-bottom: 1px solid var(--blue-day); border-right: 1px solid var(--blue-day); content: ''; height: .42rem; left: .1rem; position: absolute; top: 1rem; transform: rotate(45deg); width: .25rem; }
  .web-collage { align-self: center; position: relative; }
  .web-collage .web-image { aspect-ratio: 4 / 5; box-shadow: var(--shadow-blue); display: block; height: auto; margin-inline: auto; max-width: 32rem; object-fit: cover; width: 100%; }

  .agency { padding: clamp(7rem, 12vw, 11rem) 0; }
  .agency-grid { align-items: center; display: grid; gap: clamp(4rem, 9vw, 9rem); grid-template-columns: minmax(0, .83fr) minmax(0, 1.17fr); }
  .agency-photo { position: relative; }
  .agency-photo img { box-shadow: var(--shadow-blue); height: auto; width: 100%; }
  .agency-copy .eyebrow { margin-bottom: 1.75rem; }
  .agency-copy h2 { margin-bottom: 2.6rem; max-width: 100%; }
  .agency-copy > p:not(.eyebrow) + p { color: var(--gray-metal); margin-top: 1.7rem; }
  .agency-facts { border-top: 1px solid var(--gray-line); display: grid; gap: 1rem; grid-template-columns: repeat(3, 1fr); margin-top: 3.5rem; padding-top: 1.5rem; }
  .agency-facts strong { color: var(--blue-night); display: block; font-family: var(--font-display); font-size: 1.15rem; }
  .agency-facts span { color: var(--gray-metal); display: block; font-size: .75rem; margin-top: .2rem; }

  .faq { padding: clamp(7rem, 12vw, 10rem) 0; }
  .faq-grid { display: grid; gap: clamp(4rem, 9vw, 9rem); grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .faq-intro .eyebrow { margin-bottom: 1.75rem; }
  .faq-intro h2 { margin-bottom: 2.4rem; max-width: 100%; }
  .faq-intro > p:not(.eyebrow) { color: var(--gray-metal); max-width: 45ch; }
  .faq-list { border-top: 1px solid var(--gray-line); }
  details { border-bottom: 1px solid var(--gray-line); }
  summary { cursor: pointer; font-family: var(--font-display); font-size: 1.05rem; font-weight: 300; list-style: none; padding: 1.25rem 2.7rem 1.25rem 0; position: relative; }
  summary::-webkit-details-marker { display: none; }
  summary::after { color: var(--blue-day); content: '+'; font-family: var(--font-body); font-size: 1.45rem; font-weight: 300; position: absolute; right: .2rem; top: 1rem; }
  details[open] summary::after { content: '−'; }
  details p { color: var(--gray-metal); font-size: .92rem; line-height: 1.55; padding: 0 2.5rem 1.3rem 0; }

  .contact { overflow: hidden; padding: clamp(7rem, 12vw, 11rem) 0; }
  .contact-shape { border: 1px solid rgba(141,202,239,.16); border-radius: 50%; height: 38rem; position: absolute; right: -11rem; top: -10rem; width: 38rem; }
  .contact-shape::after { border: 1px solid rgba(141,202,239,.12); border-radius: 50%; content: ''; inset: 4rem; position: absolute; }
  .contact-grid { display: grid; gap: clamp(3rem, 6vw, 6rem); grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); position: relative; z-index: 1; }
  .contact-copy .eyebrow { margin-bottom: 1.75rem; }
  .contact-copy h2 { margin-bottom: 2.6rem; max-width: 100%; }
  .contact-copy .lead-copy { color: rgba(255,255,255,.78); }
  .contact-stack { display: grid; gap: 1px; }
  .contact-panel { background: var(--white); color: var(--ink); padding: clamp(1.5rem, 4vw, 2.5rem); }
  .contact-panel-heading { align-items: center; color: var(--gray-metal); display: flex; font-family: var(--font-display); font-size: .68rem; font-weight: 300; justify-content: space-between; letter-spacing: .14em; margin-bottom: 1rem; }
  .contact-dot { background: var(--blue-day); border-radius: 50%; height: .5rem; width: .5rem; }
  .contact-details { background: rgba(255,255,255,.06); border: 1px solid rgba(141,202,239,.2); color: var(--white); padding: 1.5rem clamp(1.5rem, 4vw, 2.5rem); }
  .contact-details .contact-panel-heading { color: rgba(255,255,255,.65); }
  .contact-details-grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .contact-line { align-items: start; border-top: 1px solid var(--gray-line); display: flex; flex-direction: column; gap: .18rem; padding: .85rem 0; }
  .contact-line span { color: var(--gray-metal); font-family: var(--font-display); font-size: .62rem; font-weight: 300; letter-spacing: .14em; }
  .contact-line strong { color: var(--blue-night); font-family: var(--font-display); font-size: 1rem; font-weight: 300; }
  .contact-details .contact-line { border-color: rgba(255,255,255,.2); }
  .contact-details .contact-line span { color: #8DCAEF; }
  .contact-details .contact-line strong { color: var(--white); font-size: .82rem; line-height: 1.35; overflow-wrap: anywhere; }
  .contact-map-link { text-decoration: none; }
  .contact-form { display: grid; gap: .8rem; margin-top: .5rem; }
  .form-fields-grid { display: grid; gap: .85rem 1rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form-field { display: grid; gap: .38rem; min-width: 0; }
  .form-field-full { grid-column: 1 / -1; }
  .contact-form label { color: var(--gray-metal); font-family: var(--font-display); font-size: .72rem; font-weight: 300; margin-top: .3rem; }
  .contact-form label span { color: var(--gray-metal); font-size: .68rem; }
  .contact-form input, .contact-form select, .contact-form textarea { background: var(--blue-pale); border: 1px solid transparent; border-radius: 0; color: var(--ink); font: inherit; min-height: 3rem; padding: .75rem; resize: vertical; width: 100%; }
  .contact-form select { appearance: auto; cursor: pointer; }
  .contact-form textarea { min-height: 8rem; }
  .contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { background: var(--white); border-color: var(--blue-day); outline: none; }
  .contact-form .button { border: 0; justify-self: start; margin-top: .65rem; }
  .form-note { color: var(--gray-metal); font-size: .72rem; line-height: 1.35; }

  .site-footer { background: var(--black); color: var(--white); padding: 3rem 0 1.25rem; }
  .footer-top { align-items: end; border-bottom: 1px solid rgba(255,255,255,.18); display: grid; gap: 2rem; grid-template-columns: 1fr 1.2fr 1fr; padding-bottom: 2.5rem; }
  .brand-footer { width: 8.7rem; }
  .footer-top p { color: rgba(255,255,255,.6); font-size: .85rem; line-height: 1.45; max-width: 27ch; }
  .footer-links { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: flex-end; }
  .footer-links a { color: rgba(255,255,255,.72); font-family: var(--font-display); font-size: .69rem; font-weight: 300; letter-spacing: .08em; text-transform: uppercase; }
  .footer-links a:hover { color: var(--white); }
  .footer-bottom { color: rgba(255,255,255,.42); display: flex; font-size: .72rem; justify-content: space-between; padding-top: 1.2rem; }
}

@media (min-width: 901px) {
  .method-image { position: sticky; top: clamp(5rem, 10vh, 8rem); }
}

@layer utilities {
  .reveal { opacity: 1; transform: none; }
  @media (prefers-reduced-motion: no-preference) {
    .reveal { animation: enter-up .8s cubic-bezier(.22, .8, .24, 1) both; animation-timeline: view(); animation-range: entry 0% cover 24%; }
    .reveal-delay-1 { animation-delay: .08s; }
    .reveal-delay-2 { animation-delay: .16s; }
    .reveal-delay-3 { animation-delay: .24s; }
    .reveal-delay-4 { animation-delay: .32s; }
  }
}

@layer motion {
  @media (prefers-reduced-motion: no-preference) {
    /* Los bloques que contienen H2 quedan estáticos; el movimiento se concentra en cada título. */
    .intro-content.reveal,
    .section-heading.reveal,
    .benefits-content.reveal,
    .ai-copy.reveal,
    .web-copy.reveal,
    .agency-copy.reveal,
    .faq-intro.reveal,
    .contact-copy.reveal {
      animation: none;
    }

    @supports (animation-timeline: scroll()) {
      body:not(.thank-you-body)::before {
        background: var(--blue-day);
        content: '';
        height: 2px;
        inset: 0 auto auto 0;
        pointer-events: none;
        position: fixed;
        transform: scaleX(0);
        transform-origin: 0 50%;
        width: 100%;
        z-index: 50;

        animation: page-progress linear both;
        animation-timeline: scroll(root block);
      }
    }

    @supports (animation-timeline: view()) {
      .intro-content h2,
      .section-heading h2,
      .benefits-content h2,
      .ai-copy h2,
      .web-copy h2,
      .agency-copy h2,
      .faq-intro h2,
      .contact-copy h2 {
        animation: h2-fade-up linear both;
        animation-range: entry 0% cover 35%;
        animation-timeline: view();
      }

      .benefits-media img,
      .method-image img,
      .agency-photo img,
      .web-collage .web-image {
        animation: photo-enter linear both;
        animation-range: entry 0% cover 40%;
        animation-timeline: view();
        transform-origin: center;
      }

      .hero-media {
        animation: hero-depth linear both;
        animation-range: cover exit;
        animation-timeline: view();
        transform-origin: center;
      }

    }
  }

  @keyframes page-progress {
    to { transform: scaleX(1); }
  }

  @keyframes hero-depth {
    from { transform: scale(1.015); }
    to { transform: scale(1); }
  }

  @keyframes h2-fade-up {
    from {
      opacity: 0;
      transform: translateY(1.5rem);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  @keyframes photo-enter {
    from {
      opacity: .8;
      transform: scale(1.035);
    }
    to {
      opacity: 1;
      transform: scale(1);
    }
  }
  @keyframes enter-up { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: translateY(0); } }
  @supports not (animation-timeline: view()) {
    .reveal { animation: fallback-fade .7s ease both; }
    .reveal-delay-1 { animation-delay: .08s; }
    .reveal-delay-2 { animation-delay: .16s; }
    .reveal-delay-3 { animation-delay: .24s; }
    .reveal-delay-4 { animation-delay: .32s; }
  }
  @keyframes fallback-fade { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
  @media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
  }
}

@media (max-width: 1400px) {
  .hero { aspect-ratio: auto; min-height: auto; padding-bottom: 7.5rem; }
}

@media (max-width: 900px) {
  .desktop-nav { gap: 1rem; }
  .desktop-nav a { font-size: .68rem; }
  .hero-grid { gap: 3.5rem; grid-template-columns: 1fr; }
  .hero { aspect-ratio: auto; min-height: auto; padding-bottom: 7.5rem; }
  .hero-copy h1 { max-width: 12ch; }
  .section-heading { grid-template-columns: 1fr; }
  .section-heading > div, .heading-aside { grid-column: auto; padding: 0; }
  .services-grid { grid-template-columns: 1fr; }
  .service-card { min-height: auto; padding-bottom: 2.5rem; }
  .service-card .card-link { margin-top: 2rem; }
  .benefits-grid, .method-layout, .web-grid, .agency-grid, .faq-grid, .contact-grid { gap: 3.5rem; grid-template-columns: 1fr; }
  .benefits-media { max-width: 42rem; }
  .ai-grid { grid-template-columns: 1fr; }
  .ai-principles { max-width: 40rem; }
  .web-collage { max-width: 44rem; }
  .agency-photo { max-width: 30rem; }
  .faq-intro > p:not(.eyebrow) { max-width: 45ch; }
  .contact-details-grid { gap: 1rem; }
}

@media (max-width: 680px) {
  /* Mobile: approximately 5% of additional breathing room per side. */
  :root { --gutter: clamp(1.8rem, 10vw, 2.5rem); }
  h1 { font-size: clamp(2.35rem, 9.5vw, 3.45rem); line-height: 1.01; }
  h2 { font-size: clamp(1.8rem, 7.2vw, 2.65rem); line-height: 1.04; }
  h3 { font-size: clamp(1.15rem, 5.2vw, 1.45rem); line-height: 1.12; }
  .site-header { position: absolute; }
  .header-inner { gap: .55rem; min-height: 5.5rem; }
  .brand { width: 7.2rem; }
  .nav-button { align-items: center; cursor: pointer; display: flex; flex-direction: column; gap: 5px; height: 2.75rem; justify-content: center; margin-inline-start: auto; width: 2.75rem; }
  .nav-button span { background: var(--white); display: block; height: 1px; transition: transform .2s ease, opacity .2s ease; width: 1.45rem; }
  .nav-button:focus-visible { outline: 3px solid var(--blue-day); outline-offset: 4px; }
  .desktop-nav { align-items: stretch; background: rgba(0, 0, 0, .98); border: 0; box-shadow: none; display: none; flex-direction: column; gap: 0; inset: 0; margin-inline-start: 0; overflow-y: auto; padding: 1.45rem var(--gutter) 1.35rem; position: fixed; z-index: 20; }
  .desktop-nav:target { display: flex; }
  .mobile-nav-top { align-items: center; display: flex; justify-content: space-between; }
  .mobile-nav-brand { display: inline-flex !important; width: 7.2rem; }
  .mobile-nav-brand img { height: auto; width: 100%; }
  .mobile-nav-close { align-items: center; color: var(--white) !important; display: flex; height: 2.75rem; justify-content: center; padding: 0 !important; width: 2.75rem; }
  .mobile-nav-close-icon { display: block; height: 1.5rem; position: relative; transform: rotate(45deg); width: 1.5rem; }
  .mobile-nav-close-icon::before, .mobile-nav-close-icon::after { background: rgba(255,255,255,.9); content: ""; height: 1px; left: 50%; position: absolute; top: 50%; transform: translate(-50%, -50%); width: 1.65rem; }
  .mobile-nav-close-icon::after { transform: translate(-50%, -50%) rotate(90deg); }
  .mobile-nav-intro { border-bottom: 1px solid rgba(255,255,255,.52); color: rgba(255,255,255,.62); display: block; font-family: var(--font-display); font-size: .68rem; letter-spacing: .26em; margin-top: 2.7rem; padding-bottom: 1.2rem; }
  .desktop-nav > a:not(.mobile-nav-close) { align-items: center; border-bottom: 1px solid rgba(255,255,255,.18); color: var(--white); display: flex; font-size: clamp(.875rem, 3.85vw, 1.4rem); font-weight: 300; justify-content: space-between; letter-spacing: .02em; line-height: 1; padding: 1.42rem 0; text-transform: uppercase; }
  .desktop-nav a:hover, .desktop-nav a:focus-visible { background: rgba(141, 202, 239, .12); color: var(--white); }
  .desktop-nav > a:not(.mobile-nav-close):hover, .desktop-nav > a:not(.mobile-nav-close):focus-visible { background: transparent; }
  .mobile-nav-arrow { display: block; height: .7rem; margin-right: .2rem; position: relative; width: 1.5rem; }
  .mobile-nav-arrow::before { background: rgba(255,255,255,.72); content: ""; height: 1px; left: 0; position: absolute; top: 50%; transform: translateY(-50%); width: 1.25rem; }
  .mobile-nav-arrow::after { border-right: 1px solid rgba(255,255,255,.72); border-top: 1px solid rgba(255,255,255,.72); content: ""; height: .42rem; position: absolute; right: .08rem; top: 50%; transform: translateY(-50%) rotate(45deg); width: .42rem; }
  .mobile-nav-footer { border-top: 1px solid rgba(255,255,255,.18); display: flex; flex-direction: column; gap: 1.35rem; margin-top: auto; padding-top: 1.25rem; }
  .mobile-nav-email { align-items: center; color: rgba(255,255,255,.7) !important; display: flex !important; font-family: var(--font-display) !important; font-size: .78rem !important; justify-content: space-between; letter-spacing: .13em !important; padding: 0 !important; text-transform: none !important; }
  .mobile-nav-email span { color: var(--white); font-size: 1.2rem; }
  .mobile-nav-cta { color: var(--blue-night) !important; font-size: .78rem; justify-content: space-between; min-height: 3.7rem; padding-inline: 1.2rem; width: 100%; }
  .mobile-nav-cta span { font-size: 1.3rem; }
  .header-cta { display: none; }
  .hero { aspect-ratio: auto; min-height: 100vh; min-height: 100svh; min-height: 100dvh; padding-top: 8.2rem; }
  .hero-grid { min-height: auto; }
  .hero-copy h1 { font-size: clamp(2.35rem, 9.5vw, 3.45rem); line-height: 1.01; margin-bottom: 1.25rem; max-width: 11ch; }
  .hero-lead { font-size: 1.13rem; }
  .hero-note { display: none; }
  .scroll-cue { bottom: 1.4rem; }
  .intro-grid { grid-template-columns: 1fr; }
  .intro-media { display: none; }
  .section-heading { align-items: start; gap: 1.25rem; margin-bottom: 2.5rem; }
  .section-heading h2 { max-width: 13ch; }
  .heading-aside { max-width: 36ch; }
  .service-card-top { margin-bottom: 2.5rem; }
  .card-link { align-self: stretch; }
  .benefits-media img { min-height: 16rem; object-fit: cover; }
  .ai-section { padding-bottom: 6rem; }
  .web-collage { min-height: auto; }
  .web-collage .web-image { max-width: 32rem; }
  .agency-facts { gap: .5rem; }
  .agency-facts strong { font-size: .95rem; }
  .agency-facts span { font-size: .67rem; }
  .contact-panel { padding: 1.3rem; }
  .contact-details { padding: 1.3rem; }
  .form-fields-grid, .contact-details-grid { grid-template-columns: 1fr; }
  .form-field-full { grid-column: auto; }
  .contact-form .button { justify-self: stretch; }
  .footer-top { align-items: start; grid-template-columns: 1fr; }
  .footer-links { justify-content: start; }
  .footer-bottom { flex-direction: column; gap: .4rem; }
}


/* Thank-you confirmation */
.thank-you-body { background: var(--blue-night); }
.thank-you-page { min-height: 100svh; overflow: hidden; position: relative; }
.thank-you-shape { border: 1px solid rgba(141,202,239,.16); border-radius: 50%; height: 42rem; position: absolute; right: -12rem; top: -14rem; width: 42rem; }
.thank-you-shape::after { border: 1px solid rgba(141,202,239,.12); border-radius: 50%; content: ''; inset: 4rem; position: absolute; }
.thank-you-content { display: flex; flex-direction: column; justify-content: center; min-height: 100svh; padding-bottom: 5rem; padding-top: 5rem; position: relative; z-index: 1; }
.thank-you-brand { margin-bottom: clamp(5rem, 12vw, 10rem); width: 10rem; }
.thank-you-content h1 { color: var(--white); max-width: 11ch; }
.thank-you-lead { color: rgba(255,255,255,.8); font-size: clamp(1.1rem, 1.8vw, 1.45rem); line-height: 1.55; margin-top: 2rem; max-width: 38ch; }
.thank-you-meta { color: rgba(255,255,255,.64); margin-top: 1.25rem; max-width: 42ch; }
.thank-you-meta strong { color: #8DCAEF; font-weight: 800; }
.thank-you-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 3rem; }
.thank-you-actions .button { min-width: 14rem; }
@media (max-width: 680px) {
  .thank-you-content { padding-bottom: 3rem; padding-top: 3rem; }
  .thank-you-brand { margin-bottom: 5rem; width: 8rem; }
  .thank-you-content h1 { font-size: clamp(2.4rem, 10vw, 3.5rem); line-height: 1.04; }
  .thank-you-actions { flex-direction: column; }
  .thank-you-actions .button { width: 100%; }
}


/* Inline form feedback */
  .form-status { border-left: 3px solid var(--blue-day); display: grid; gap: .35rem; font-size: .78rem; line-height: 1.45; margin-top: .65rem; padding: .85rem 1rem; white-space: pre-line; }
.form-status[hidden] { display: none; }
.form-status strong { color: var(--blue-night); font-family: var(--font-display); font-size: .78rem; font-weight: 800; letter-spacing: .02em; }
.form-status span { color: var(--gray-metal); }
.form-status.is-pending { background: var(--blue-pale); border-color: var(--gray-metal); }
.form-status.is-success { background: #EAF7F0; border-color: #27824A; }
.form-status.is-success strong { color: #176534; }
.form-status.is-error { background: #FFF2F0; border-color: #B42318; }
.form-status.is-error strong { color: #8A1C13; }
.form-status a { color: var(--blue-day); font-weight: 800; }
.contact-form .button:disabled { cursor: wait; opacity: .65; }
.thank-you-card { background: rgba(255,255,255,.06); border: 1px solid rgba(141,202,239,.22); max-width: 46rem; padding: clamp(2rem, 5vw, 4rem); }
.thank-you-card h1 { font-size: clamp(2.7rem, 5.5vw, 5rem); line-height: 1.04; max-width: 12ch; }
.thank-you-card .thank-you-lead { max-width: 42ch; }
.thank-you-brand { margin-bottom: 3rem; }
@media (max-width: 680px) {
  .thank-you-card { padding: 1.5rem; }
  .thank-you-card h1 { font-size: clamp(2.35rem, 10vw, 3.5rem); }
  .thank-you-brand { margin-bottom: 2.5rem; }
}
