/* Colores, radios y sombras */
:root {
  --blue: #0B60C7;
  --navy: #0A1E4A;
  --mist: #E6EEFA;
  --paper: #F7F6F2;
  --gold: #C6A15B;
  --muted: #4c5d73;
  --line: #dce3ec;
  --radius: 24px;
  --white: white;
  --white-alt: #fff;
  --color-ffffff30: #ffffff30;
  --color-0a1e4a18: #0a1e4a18;
  --blue-hover: #084eaa;
  --color-0b60c73d: #0b60c73d;
  --color-ffffffed: #ffffffed;
  --color-0a1e4a08: #0a1e4a08;
  --color-f7f6f2fc: #f7f6f2fc;
  --color-f7f6f2f0: #f7f6f2f0;
  --color-f7f6f2a8: #f7f6f2a8;
  --color-f7f6f208: #f7f6f208;
  --hero-text: #324961;
  --color-ffffffef: #ffffffef;
  --color-ffffff99: #ffffff99;
  --color-0a1e4a14: #0a1e4a14;
  --color-0a1e4a38: #0a1e4a38;
  --color-ffffff80: #ffffff80;
  --color-e3e7ed: #e3e7ed;
  --color-0a1e4a03: #0a1e4a03;
  --color-0a1e4a0c: #0a1e4a0c;
  --color-0a1e4a20: #0a1e4a20;
  --review-text: #34475e;
  --color-ffffff15: #ffffff15;
  --color-ffffff06: #ffffff06;
  --color-ffffff04: #ffffff04;
  --footer-text: #d6dfef;
  --color-ffffff24: #ffffff24;
  --color-0a1e4a66: #0a1e4a66;
  --color-f7f6f2eb: #f7f6f2eb;
  --color-f7f6f280: #f7f6f280;
  --color-ffffffb8: #ffffffb8;
  --color-f7f6f2f5: #f7f6f2f5;
  --color-f7f6f2dc: #f7f6f2dc;
  --color-f7f6f230: #f7f6f230;
  --color-f7f6f2f7: #f7f6f2f7;
  --color-f7f6f2cf: #f7f6f2cf;
  --color-f7f6f22b: #f7f6f22b;
  --color-f7f6f200: #f7f6f200;
  --color-0a1e4a35: #0a1e4a35;
  --radius-pill: 100px;
  --radius-circle: 50%;
  --radius-floating: 20px;
  --radius-icon: 14px;
  --radius-review: 22px;
  --radius-dialog: 24px;
  --radius-floating-mobile: 18px;
  --shadow-button: 0 8px 24px var(--color-0a1e4a18);
  --shadow-header: 0 4px 30px var(--color-0a1e4a08);
  --shadow-floating: 0 14px 50px var(--color-0a1e4a14);
  --shadow-service: 0 4px 20px var(--color-0a1e4a03);
  --shadow-service-hover: 0 16px 36px var(--color-0a1e4a0c);
  --shadow-closing: 0 0 0 60px var(--color-ffffff06),0 0 0 120px var(--color-ffffff04);
  --shadow-mobile-book: 0 6px 28px var(--color-0a1e4a35);
}

/* Base */
@view-transition {
  navigation: auto;
}

* {
  box-sizing: border-box;
}

html {
  scroll-padding-top: 104px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--navy);
  font: 400 18px/1.6 'Hanken Grotesk',sans-serif;
}

body:has(dialog[open]) {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
  object-fit: cover;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  cursor: pointer;
}

button,a {
  -webkit-tap-highlight-color: transparent;
}

a:focus-visible,button:focus-visible,[tabindex]:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 5px;
}

footer a:focus-visible,.closing a:focus-visible {
  outline-color: var(--white);
}

svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

h1,h2,h3,p,figure {
  margin: 0;
}

h1,h2,h3 {
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -.045em;
}

h2 {
  font-size: clamp(36px,3.6vw,54px);
}

p {
  color: var(--muted);
}

.wrap {
  width: min(1248px,calc(100% - 96px));
  margin-inline: auto;
}

.section {
  padding-block: 104px;
}

.eyebrow {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--blue);
  margin-bottom: 22px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 26px;
  min-height: 54px;
  padding: 14px 25px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  background: var(--blue);
  color: var(--white-alt);
  font-size: 17px;
  font-weight: 600;
  position: relative;
  overflow: hidden;
  transition: transform .25s,box-shadow .25s,background .25s;
}

.button:after {
  content: '';
  position: absolute;
  inset: -50%;
  background: linear-gradient(110deg,transparent 40%,var(--color-ffffff30) 50%,transparent 60%);
  transform: translateX(-100%) rotate(10deg);
  transition: transform .65s;
  pointer-events: none;
}

.button:hover:after {
  transform: translateX(100%) rotate(10deg);
}

.button:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-button);
  background: var(--blue-hover);
}

.button span {
  font-size: 22px;
  line-height: 1;
}

.outline {
  border-color: var(--color-0b60c73d);
  color: var(--blue);
  background: transparent;
}

.outline:hover {
  background: var(--mist);
}

.white {
  background: var(--white);
  color: var(--blue);
}

.white:hover {
  background: var(--mist);
}

.skip {
  position: fixed;
  z-index: 100;
  left: 16px;
  top: 10px;
  background: var(--white);
  padding: 12px;
  transform: translateY(-180%);
}

.skip:focus {
  transform: none;
}

/* Header */
.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 30;
  transition: background .3s,box-shadow .3s;
}

.header-inner {
  width: min(1344px,calc(100% - 64px));
  margin: auto;
  min-height: 104px;
  display: flex;
  align-items: center;
  gap: 28px;
  transition: min-height .3s;
}

.header.scrolled {
  background: var(--color-ffffffed);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-header);
}

.header.scrolled .header-inner {
  min-height: 80px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.symbol {
  width: 44px;
  height: 48px;
  object-fit: contain;
}

.wordmark {
  width: 135px;
  height: 40px;
  object-fit: contain;
}

.brand>span {
  width: 1px;
  height: 31px;
  background: currentColor;
  opacity: .2;
}

.desktop-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-left: auto;
  font-size: 17px;
}

.desktop-nav a {
  transition: color .2s;
}

.desktop-nav a:hover {
  color: var(--blue);
}

/* Header */
.header-cta {
  padding-inline: 22px;
  gap: 16px;
}

.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  width: 44px;
  height: 44px;
  padding: 10px;
}

.menu-toggle span {
  display: block;
  height: 2px;
  background: var(--navy);
  margin: 6px 0;
}

/* Portada */
.hero {
  position: relative;
  min-height: min(920px,100svh);
  min-height: max(760px,94svh);
  display: flex;
  align-items: center;
  isolation: isolate;
  overflow: clip;
  background: var(--mist);
}

.hero-image,.hero-veil {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.hero-image {
  overflow: hidden;
  will-change: transform;
}

.hero-photo {
  width: 100%;
  height: 100%;
  object-position: 76% 42%;
  will-change: transform;
}

.hero-veil {
  background: linear-gradient(90deg,var(--color-f7f6f2fc) 0%,var(--color-f7f6f2f0) 26%,var(--color-f7f6f2a8) 48%,var(--color-f7f6f208) 75%);
}

.hero-content {
  padding-top: 100px;
  padding-bottom: 90px;
}

.hero h1 {
  font-size: clamp(48px,5.4vw,78px);
  max-width: 660px;
  line-height: 1.02;
  margin-bottom: 28px;
}

.hero-intro {
  max-width: 485px;
  font-size: 20px;
  line-height: 1.65;
  margin-bottom: 32px;
  color: var(--hero-text);
}

.hero-secondary {
  display: inline-flex;
  margin-left: 24px;
  align-items: center;
  gap: 16px;
  font-size: 17px;
  color: var(--navy);
}

.hero-secondary:hover {
  color: var(--blue);
}

.dot {
  display: inline-block;
  background: var(--blue);
  width: 7px;
  height: 7px;
  border-radius: var(--radius-circle);
  margin-right: 8px;
  vertical-align: middle;
}

.floating-card {
  position: absolute;
  right: 7%;
  bottom: 15%;
  background: var(--color-ffffffef);
  backdrop-filter: blur(16px);
  border: 1px solid var(--color-ffffff99);
  border-radius: var(--radius-floating);
  padding: 22px 30px;
  box-shadow: var(--shadow-floating);
  display: grid;
  gap: 3px;
  transform: rotate(-3deg);
}

.floating-card>span:last-child {
  font-size: 17px;
  color: var(--muted);
}

.stars {
  color: var(--blue);
  letter-spacing: 3px;
  font-size: 19px;
}

/* Portada */
.hero-scroll {
  position: absolute;
  bottom: 28px;
  left: 50%;
  display: grid;
  place-items: center;
  border: 1px solid var(--color-0a1e4a38);
  border-radius: var(--radius-circle);
  width: 42px;
  height: 42px;
  background: var(--color-ffffff80);
}

/* Pilares */
.pillars {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  padding-block: 40px;
  border-bottom: 1px solid var(--line);
}

.pillars>div {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.pillars>div+div {
  border-left: 1px solid var(--line);
}

.pillars svg {
  color: var(--blue);
}

/* Servicios */
.section-heading {
  text-align: center;
  max-width: 740px;
  margin: 0 auto 48px;
}

.section-heading>p:last-child {
  margin: 24px auto 0;
  max-width: 590px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 20px;
}

.service-card {
  border: 1px solid var(--color-e3e7ed);
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-service);
  transition: transform .3s,box-shadow .3s;
}

.service-card:hover {
  transform: translateY(-7px);
  box-shadow: var(--shadow-service-hover);
}

.service-photo {
  height: 180px;
  overflow: hidden;
}

.service-photo img {
  width: 100%;
  height: 100%;
  transition: transform .65s;
}

.service-card:hover img {
  transform: scale(1.06);
}

.service-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  height: calc(100% - 180px);
}

.icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  background: var(--mist);
  border-radius: var(--radius-icon);
  color: var(--blue);
  margin-bottom: 24px;
  transition: transform .3s;
}

.service-card:hover .icon {
  transform: rotate(-8deg);
}

.service-card h3 {
  font-size: 25px;
  letter-spacing: -.025em;
  line-height: 1.18;
  margin-bottom: 18px;
}

.service-card p {
  font-size: 17px;
  line-height: 1.65;
  margin-bottom: 26px;
}

.card-bottom {
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  font-size: 17px;
}

.card-bottom strong {
  font-weight: 600;
}

.card-bottom a {
  color: var(--blue);
}

.card-bottom a:hover {
  text-decoration: underline;
}

.center {
  text-align: center;
  margin-top: 40px;
}

/* Cifras */
.figures {
  background: var(--mist);
  padding: 50px 0;
}

.figures-grid {
  display: grid;
  grid-template-columns: repeat(4,1fr);
}

.figures p {
  display: grid;
  text-align: center;
  color: var(--navy);
  gap: 10px;
}

.figures p+p {
  border-left: 1px solid var(--color-0a1e4a20);
}

.figures strong {
  font-weight: 500;
  font-size: 64px;
  line-height: 1.1;
  letter-spacing: -.055em;
}

.figure-dot {
  color: var(--blue);
}

/* Cifras */
.figures p>span {
  font-size: 17px;
}

/* Reseñas */
.testimonials {
  background: var(--white-alt);
}

.review-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 44px;
}

.review-heading h2 {
  max-width: 950px;
}

.review-heading p:last-child {
  margin-top: 24px;
}

.pause {
  flex-shrink: 0;
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: var(--radius-pill);
  padding: 12px 18px;
  font-size: 17px;
  color: var(--navy);
}

.pause:hover {
  background: var(--mist);
}

.marquee-clip {
  overflow: clip;
}

.review-window {
  overflow: hidden;
  padding: 8px 0 24px;
}

.review-track,.review-set {
  display: flex;
  width: max-content;
}

.review-set {
  flex-shrink: 0;
  padding-right: 20px;
  gap: 20px;
}

.review-track {
  animation: reviews-marquee 50s linear infinite;
  will-change: transform;
}

.review-window:is(:focus-within,.is-paused) .review-track {
  animation-play-state: paused;
}

/* Empresas y colegios (B2B) */
.b2b {
  background: var(--navy);
  color: var(--white);
  position: relative;
  overflow: clip;
}

.b2b-grid {
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(0,1.05fr);
  gap: 64px;
  align-items: start;
}

.b2b .eyebrow {
  color: var(--footer-text);
}

.b2b h2 {
  margin-bottom: 24px;
}

.b2b-copy>p {
  color: var(--footer-text);
  font-size: 18px;
  max-width: 560px;
}

.b2b-tags {
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.b2b-tags li {
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--color-ffffff24);
  color: var(--white);
  font-size: 15px;
  font-weight: 500;
}

.b2b-steps {
  list-style: none;
  counter-reset: paso;
  padding: 0;
  margin: 32px 0 36px;
  display: grid;
  gap: 14px;
}

.b2b-steps li {
  counter-increment: paso;
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 14px;
  align-items: baseline;
  color: var(--footer-text);
}

.b2b-steps li:before {
  content: counter(paso);
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: var(--radius-circle);
  border: 1px solid var(--color-ffffff24);
  color: var(--white);
  font-size: 14px;
  font-weight: 600;
}

.b2b-steps strong {
  color: var(--white);
  font-weight: 600;
}

.b2b-cards {
  list-style: none;
  padding: 0;
  margin: 56px 0 0;
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 16px;
}

/* Formulario de cotización */
.b2b-form {
  background: var(--white);
  color: var(--navy);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow-floating);
}

.b2b-form h3 {
  font-size: 30px;
}

.b2b-form-note {
  font-size: 15px;
  margin: 8px 0 24px;
}

.b2b-fields {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.b2b-fields label {
  display: grid;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
}

.b2b-fields .b2b-wide {
  grid-column: 1/-1;
}

.b2b-fields input,.b2b-fields select,.b2b-fields textarea {
  width: 100%;
  min-height: 48px;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-icon);
  background: var(--paper);
  color: var(--navy);
  font: inherit;
  font-size: 16px;
  font-weight: 400;
  transition: border-color .2s,background .2s;
}

.b2b-fields textarea {
  resize: vertical;
}

.b2b-fields input:focus,.b2b-fields select:focus,.b2b-fields textarea:focus {
  outline: 2px solid var(--blue);
  outline-offset: 1px;
  border-color: var(--blue);
  background: var(--white);
}

.b2b-form .button {
  width: 100%;
  border: 0;
  cursor: pointer;
  font-family: inherit;
}

.b2b-form .button:disabled {
  opacity: .65;
  cursor: wait;
}

.b2b-status:empty {
  display: none;
}

.b2b-status {
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: var(--radius-icon);
  font-size: 15px;
  background: var(--mist);
  color: var(--navy);
}

.b2b-status.ok {
  background: #e3f4ea;
  color: #14532d;
}

.b2b-status.error {
  background: #fdecec;
  color: #8a1c1c;
}

.b2b-legal {
  margin-top: 16px;
  font-size: 13px;
}

.b2b-legal a {
  color: var(--blue);
  text-decoration: underline;
}

.b2b-cards li {
  display: grid;
  grid-template-columns: 52px 1fr;
  column-gap: 20px;
  row-gap: 4px;
  padding: 26px 28px;
  border-radius: var(--radius-review);
  background: var(--color-ffffff06);
  border: 1px solid var(--color-ffffff15);
}

.b2b-cards svg {
  grid-row: span 2;
  width: 52px;
  height: 52px;
  padding: 13px;
  border-radius: var(--radius-icon);
  background: var(--blue);
  color: var(--white);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.b2b-cards h3 {
  font-size: 22px;
  letter-spacing: -.02em;
  color: var(--white);
}

.b2b-cards p {
  color: var(--footer-text);
  font-size: 16px;
}

@media(max-width:1000px) {
  .b2b-grid,.b2b-cards {
    grid-template-columns: 1fr;
  }

  .b2b-grid {
    gap: 44px;
  }
}

@media(max-width:600px) {
  .b2b-cards li {
    grid-template-columns: 44px 1fr;
    column-gap: 16px;
    padding: 22px 20px;
  }

  .b2b-cards svg {
    width: 44px;
    height: 44px;
    padding: 10px;
  }

  .b2b-form {
    padding: 26px 20px;
  }

  .b2b-fields {
    grid-template-columns: 1fr;
  }
}

/* Adaptación · @media(hover:hover) */
@media(hover:hover) {
  .review-window:hover .review-track {
    animation-play-state: paused;
  }

}

/* Animaciones */
@keyframes reviews-marquee {
  from {
    transform: translate3d(0,0,0);
  }

  to {
    transform: translate3d(-50%,0,0);
  }

}

.review-card {
  width: 360px;
  padding: 30px;
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: var(--radius-review);
  display: flex;
  flex-direction: column;
  user-select: text;
}

.review-card figcaption {
  display: flex;
  gap: 12px;
  align-items: center;
  font-weight: 600;
  font-size: 17px;
  margin-bottom: 20px;
  min-height: 42px;
}

.avatar {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-circle);
  background: var(--mist);
  color: var(--blue);
  flex-shrink: 0;
}

.review-card blockquote {
  margin: 18px 0 0;
  font-size: 19px;
  line-height: 1.6;
  color: var(--review-text);
}

/* Ubicación */
.location {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 80px;
  align-items: center;
}

.location-photo {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  height: 590px;
  background: var(--mist);
}

.location-photo img {
  width: 100%;
  height: 100%;
  object-position: 50% 50%;
}

.location-photo>span {
  position: absolute;
  bottom: 24px;
  left: 24px;
  right: 24px;
  width: fit-content;
  max-width: calc(100% - 48px);
  font-size: 17px;
  background: var(--color-ffffffed);
  border-radius: var(--radius-pill);
  padding: 12px 22px;
}

.location-copy h2 {
  margin-bottom: 28px;
}

.location-copy address {
  font-style: normal;
  font-size: 20px;
}

.location-copy dl {
  margin: 28px 0;
}

.location-copy dt {
  font-weight: 600;
  margin-top: 18px;
}

.location-copy dd {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 17px;
}

.location-copy a:not(.button):hover {
  text-decoration: underline;
}

/* CTA WhatsApp */
.closing {
  position: relative;
  overflow: clip;
  background: var(--blue);
  text-align: center;
  padding: 80px 0 88px;
  color: var(--white);
}

.closing:after {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  border: 1px solid var(--color-ffffff15);
  border-radius: var(--radius-circle);
  right: -260px;
  top: -220px;
  box-shadow: var(--shadow-closing);
  pointer-events: none;
}

.closing h2 {
  font-size: clamp(38px,4.5vw,66px);
  margin-bottom: 32px;
}

.gold-rule {
  display: block;
  width: 48px;
  height: 3px;
  background: var(--gold);
  margin: 0 auto 26px;
}

/* Footer */
.footer {
  position: relative;
  overflow: clip;
  background: var(--navy);
  color: var(--white-alt);
  padding-top: 72px;
}

.footer>.wrap {
  position: relative;
}

.footer-symbol {
  position: absolute;
  right: -90px;
  bottom: -110px;
  width: 450px;
  opacity: .1;
  pointer-events: none;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 90px;
  padding-bottom: 64px;
}

.footer-about p {
  max-width: 370px;
  margin-top: 22px;
  font-size: 17px;
  color: var(--footer-text);
}

.footer-about p+p {
  margin-top: 12px;
}

.footer h3 {
  font-size: 19px;
  letter-spacing: 0;
  margin-bottom: 24px;
}

.footer nav>a,.footer-contact>a {
  display: block;
  color: var(--footer-text);
  font-size: 17px;
  margin-bottom: 12px;
}

.footer a:hover {
  color: var(--white-alt);
  text-decoration: underline;
}

.footer-bottom {
  border-top: 1px solid var(--color-ffffff24);
  padding: 25px 0;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  color: var(--footer-text);
  font-size: 17px;
}

/* Botón agendar móvil */
.mobile-book {
  display: none;
}

/* Menú móvil */
dialog {
  width: min(560px,calc(100% - 32px));
  max-height: calc(100svh - 32px);
  border: 0;
  border-radius: var(--radius-dialog);
  padding: 24px;
  background: var(--paper);
  color: var(--navy);
}

dialog::backdrop {
  background: var(--color-0a1e4a66);
  backdrop-filter: blur(8px);
}

.menu-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.menu-close {
  border: 0;
  background: var(--mist);
  color: var(--navy);
  width: 44px;
  height: 44px;
  border-radius: var(--radius-circle);
  display: grid;
  place-items: center;
  padding: 0;
}

.menu-close svg {
  width: 20px;
  height: 20px;
}

/* Menú móvil */
dialog nav {
  display: grid;
  gap: 18px;
  padding: 28px 0 4px;
}

dialog nav>a:not(.button) {
  padding: 5px 0;
  font-size: 22px;
}

/* Portada */
.hero-word {
  display: inline-block;
}

.hero-start .hero-photo {
  animation: photo-in .95s cubic-bezier(.2,.6,.3,1) both;
}

.hero-start .floating-card {
  animation: card-in .7s .18s both;
}

.motion-ready .reveal.is-entering {
  animation: reveal-in .65s both;
  animation-delay: var(--delay,0ms);
}

.motion-ready .location-photo.is-entering {
  animation: mask-in .85s both;
}

/* Animaciones */
@keyframes photo-in {
  from {
    transform: scale(1.08);
  }

  to {
    transform: scale(1);
  }

}

@keyframes card-in {
  from {
    opacity: 0;
    transform: translateY(22px) rotate(0);
  }

  to {
    opacity: 1;
    transform: translateY(0) rotate(-3deg);
  }

}

@keyframes reveal-in {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: none;
  }

}

@keyframes mask-in {
  from {
    clip-path: inset(12% 8% 12% 8% round 40px);
    opacity: .4;
  }

  to {
    clip-path: inset(0 round 24px);
    opacity: 1;
  }

}

.lenis.lenis-smooth {
  scroll-behavior: auto!important;
}

.lenis.lenis-stopped {
  overflow: hidden;
}

/* Adaptación · @media(min-width:1600px) */
@media(min-width:1600px) {
  .hero-veil {
    background: linear-gradient(90deg,var(--paper) 0%,var(--color-f7f6f2eb) 29%,var(--color-f7f6f280) 48%,transparent 75%);
  }

}

/* Adaptación · @media(max-width:1200px) */
@media(max-width:1200px) {
  .desktop-nav {
    gap: 16px;
  }

  .header-inner {
    gap: 20px;
    width: calc(100% - 48px);
  }

  .wordmark {
    width: 112px;
  }

  .symbol {
    width: 36px;
  }

  .header-cta {
    padding-inline: 18px;
    gap: 10px;
  }

  .service-grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }

  .service-photo {
    height: 210px;
  }

  .service-body {
    height: calc(100% - 210px);
  }

  .location {
    gap: 48px;
  }

  .footer-grid {
    gap: 48px;
  }

  .hero h1 {
    max-width: 590px;
    font-size: 66px;
  }

}

/* Adaptación · @media(max-width:1000px) */
@media(max-width:1000px) {
  .desktop-nav,.header-cta {
    display: none;
  }

  .menu-toggle {
    display: block;
    margin-left: auto;
  }

  .header {
    background: var(--color-ffffffb8);
    backdrop-filter: blur(10px);
  }

  .header-inner {
    min-height: 88px;
  }

  .hero h1 {
    font-size: 60px;
    max-width: 550px;
  }

  .hero-veil {
    background: linear-gradient(90deg,var(--color-f7f6f2f5) 0%,var(--color-f7f6f2dc) 35%,var(--color-f7f6f230) 100%);
  }

  .hero-intro {
    max-width: 450px;
  }

  .floating-card {
    right: 5%;
    bottom: 6%;
    padding: 16px 22px;
  }

  .hero-scroll {
    display: none;
  }

  .pillars>div {
    gap: 10px;
    font-size: 17px;
  }

  .review-heading {
    display: block;
  }

  .pause {
    margin-top: 24px;
  }

  .location {
    gap: 32px;
  }

  .location-photo {
    height: 560px;
  }

  .footer-grid {
    grid-template-columns: 1.3fr 1fr;
    gap: 40px;
  }

  .footer-contact {
    grid-column: 2;
    grid-row: 1 / span 2;
  }

  .footer-about {
    grid-column: 1;
  }

  .footer nav {
    grid-column: 1;
  }

  .wrap {
    width: calc(100% - 64px);
  }

}

/* Adaptación · @media(max-width:600px) */
@media(max-width:600px) {
  body {
    font-size: 17px;
  }

  .wrap {
    width: calc(100% - 32px);
  }

  .section {
    padding-block: 64px;
  }

  .header-inner {
    width: calc(100% - 32px);
    min-height: 76px;
  }

  .header.scrolled .header-inner {
    min-height: 66px;
  }

  .brand {
    gap: 9px;
  }

  .wordmark {
    width: 120px;
    height: 34px;
  }

  .symbol {
    width: 35px;
    height: 38px;
  }

  .hero {
    min-height: 890px;
    min-height: max(850px,100svh);
    align-items: flex-start;
  }

  .hero-image {
    inset: 0;
  }

  .hero-photo {
    object-position: 66% center;
  }

  .hero-veil {
    background: linear-gradient(180deg,var(--paper) 0%,var(--color-f7f6f2f7) 24%,var(--color-f7f6f2cf) 43%,var(--color-f7f6f22b) 68%,var(--color-f7f6f200) 100%);
  }

  .hero-content {
    padding-top: 126px;
    padding-bottom: 200px;
  }

  .hero .eyebrow {
    margin-bottom: 20px;
  }

  .hero h1 {
    font-size: clamp(42px,11.8vw,60px);
    max-width: 440px;
    margin-bottom: 22px;
    line-height: 1.04;
  }

  .hero-intro {
    font-size: 18px;
    line-height: 1.6;
    max-width: 390px;
    margin-bottom: 26px;
  }

  .hero-secondary {
    display: flex;
    width: fit-content;
    margin: 18px 0 0 6px;
  }

  .floating-card {
    right: 20px;
    bottom: 42px;
    padding: 16px 22px;
    border-radius: var(--radius-floating-mobile);
  }

  .floating-card strong {
    font-size: 17px;
  }

  .pillars {
    padding: 28px 0;
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .pillars>div {
    justify-content: flex-start;
    padding-left: 20px;
    font-size: 18px;
  }

  .pillars>div+div {
    border: 0;
  }

  .section-heading {
    text-align: left;
    margin-bottom: 30px;
  }

  .section-heading>p:last-child {
    margin-top: 20px;
  }

  .eyebrow {
    margin-bottom: 18px;
  }

  .service-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .service-photo {
    height: 210px;
  }

  .service-body {
    height: auto;
    padding: 24px;
  }

  .service-card h3 {
    font-size: 29px;
    max-width: 300px;
  }

  .service-card p {
    margin-bottom: 24px;
  }

  .service-card .icon {
    margin-bottom: 18px;
  }

  .card-bottom {
    margin-top: 0;
  }

  .center {
    margin-top: 30px;
  }

  .figures {
    padding: 40px 0;
  }

  .figures-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px 0;
  }

  .figures p+p {
    border: 0;
  }

  .figures p:nth-child(even) {
    border-left: 1px solid var(--color-0a1e4a20);
  }

  .figures strong {
    font-size: 52px;
  }

  .figures p>span {
    font-size: 17px;
  }

  .review-heading {
    margin-bottom: 28px;
  }

  .review-card {
    width: calc(100vw - 48px);
    padding: 24px;
  }

  .review-set {
    gap: 16px;
    padding-right: 16px;
  }

  .review-card blockquote {
    font-size: 18px;
  }

  .location {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .location-photo {
    height: 340px;
  }

  .location-photo>span {
    left: 16px;
    bottom: 16px;
    padding: 10px 16px;
    max-width: calc(100% - 32px);
  }

  .location-copy address {
    font-size: 19px;
  }

  .closing {
    padding: 64px 0;
  }

  .closing h2 {
    font-size: 42px;
  }

  .closing h2 br {
    display: none;
  }

  .footer {
    padding-top: 52px;
    padding-bottom: 96px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 36px;
    padding-bottom: 36px;
  }

  .footer-contact,.footer nav,.footer-about {
    grid-column: auto;
    grid-row: auto;
  }

  .footer-about p {
    max-width: 100%;
  }

  .footer-bottom {
    display: grid;
    gap: 16px;
    font-size: 17px;
  }

  .footer-symbol {
    right: -120px;
    bottom: 100px;
    width: 340px;
  }

  .mobile-book {
    display: flex;
    position: fixed;
    z-index: 25;
    bottom: max(16px,env(safe-area-inset-bottom));
    left: 50%;
    transform: translateX(-50%);
    width: max-content;
    max-width: calc(100% - 32px);
    box-shadow: var(--shadow-mobile-book);
    font-size: 17px;
  }

  .mobile-book:hover {
    transform: translate(-50%,-3px);
  }

  dialog .brand .wordmark {
    width: 112px;
  }

}

/* Adaptación · @media(prefers-reduced-motion:reduce) */
@media(prefers-reduced-motion:reduce) {
  *,*:before,*:after {
    animation: none!important;
    transition: none!important;
    scroll-behavior: auto!important;
  }

  .hero-photo,.hero-image,.hero-word,.floating-card,.reveal {
    opacity: 1!important;
    clip-path: none!important;
  }

  .hero-photo,.hero-image,.hero-word,.reveal {
    transform: none!important;
  }

}

@media(prefers-reduced-motion:reduce) {
  .review-track {
    width: 100%;
    will-change: auto;
  }

  .review-set {
    width: min(1248px,calc(100% - 32px));
    margin-inline: auto;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(min(100%,300px),1fr));
    gap: 20px;
  }

  .review-card {
    width: 100%;
    min-width: 0;
  }

  .review-set[aria-hidden="true"],.pause {
    display: none;
  }

}

/* Páginas internas con el diseño de la portada (empresas.html) */
.page-intro{padding-top:176px;padding-bottom:8px}.page-intro>*{max-width:880px}
.page-intro h1{font-size:clamp(44px,5.6vw,80px);margin:14px 0 20px}
.page-intro>p:last-child{font-size:20px;max-width:640px}
.page-intro+.b2b{margin-top:56px}
@media(max-width:600px){.page-intro{padding-top:120px}.page-intro>p:last-child{font-size:17px}.page-intro+.b2b{margin-top:32px}}
/* En tablet también se oculta el botón del header: mostrar el botón fijo de agendar */
@media(max-width:1000px){.mobile-book{display:flex;position:fixed;z-index:25;bottom:max(16px,env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);width:max-content;max-width:calc(100% - 32px);box-shadow:var(--shadow-mobile-book);font-size:17px}.mobile-book:hover{transform:translate(-50%,-3px)}}

/* Botón flotante: aparece al pasar el botón de la portada */
@media(max-width:1000px){.mobile-book{transition:opacity .25s ease,transform .25s ease}.mobile-book.is-hidden{opacity:0;pointer-events:none;transform:translate(-50%,16px)}}
