@font-face {
  font-family: "Allura";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/allura-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Allura";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/allura-latin-ext-400-normal.woff2") format("woff2");
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --ink: #102743;
  --ink-soft: #526273;
  --gold: #b8893d;
  --gold-dark: #8e672c;
  --cream: #f7f2e9;
  --paper: #fffdf9;
  --line: #ded8cd;
  --white: #ffffff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

section[id] {
  scroll-margin-top: 96px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Avenir Next", Avenir, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

.section-shell {
  width: min(1240px, calc(100% - 56px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 88px;
  padding: 14px max(28px, calc((100vw - 1240px) / 2));
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  border-bottom: 1px solid rgba(16, 39, 67, 0.12);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  justify-self: start;
}

.brand-logo {
  display: block;
  width: 184px;
  height: auto;
}

.brand .fx-billboard-spin__inner {
  animation-name: fx-billboard-logo;
}

@keyframes fx-billboard-logo {
  0% { transform: rotateY(0deg); }
  100% { transform: rotateY(360deg); }
}

.brand-mark {
  display: grid;
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(184, 137, 61, 0.45);
  border-radius: 50%;
  color: var(--gold-dark);
  font: 500 20px/1 Georgia, serif;
}

.brand-copy {
  display: grid;
  gap: 3px;
}

.brand-copy strong {
  font: 600 13px/1.2 Georgia, serif;
  letter-spacing: 0.12em;
  white-space: nowrap;
}

.brand-copy small {
  color: var(--gold-dark);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.2em;
}

.brand-copy .brand-colegiada {
  color: var(--ink-soft);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 34px;
  font-size: 13px;
  font-weight: 600;
}

.desktop-nav a {
  position: relative;
  padding-block: 10px;
}

.desktop-nav a::after {
  position: absolute;
  right: 0;
  bottom: 2px;
  left: 0;
  height: 1px;
  background: var(--gold);
  content: "";
  transform: scaleX(0);
  transition: transform 180ms ease;
}

.desktop-nav a:hover::after,
.desktop-nav a:focus-visible::after {
  transform: scaleX(1);
}

.header-cta {
  justify-self: end;
  padding: 13px 19px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  transition: background 180ms ease, color 180ms ease;
}

.header-cta:hover,
.header-cta:focus-visible {
  background: var(--ink);
  color: var(--white);
}

.nav-toggle {
  display: none;
  padding: 10px 8px;
  background: none;
  border: 0;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 27px;
  height: 3px;
  margin: 5px 0;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 300ms ease, opacity 300ms ease;
}

.nav-toggle.is-open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.nav-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.is-open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.header-wa {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: #25d366;
  border-radius: 999px;
  color: var(--white);
  font-size: 11px;
  font-weight: 800;
}

.header-wa svg {
  flex: 0 0 auto;
}

.mobile-nav {
  position: absolute;
  top: 100%;
  right: 0;
  left: 0;
  display: none;
  padding: 8px 22px 16px;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 18px 34px rgba(16, 39, 67, 0.1);
}

.mobile-nav a {
  padding: 15px 2px;
  border-bottom: 1px solid var(--line);
  font: 500 17px/1.3 Georgia, serif;
  animation: nav-item-in 320ms ease both;
}

.mobile-nav a:nth-child(2) { animation-delay: 60ms; }
.mobile-nav a:nth-child(3) { animation-delay: 120ms; }
.mobile-nav a:nth-child(4) { animation-delay: 180ms; }

.mobile-nav a:last-child {
  border-bottom: 0;
}

@keyframes nav-item-in {
  0% {
    opacity: 0;
    transform: translateY(-8px);
  }

  100% {
    opacity: 1;
    transform: none;
  }
}

.hero {
  position: relative;
  overflow: hidden;
  background: var(--paper);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: url("../assets/FondoCS.jpg") no-repeat right bottom;
  background-size: auto 106%;
}

/* Degradado del color de fondo sobre la foto: mismo efecto que una máscara,
   pero compatible con todos los navegadores (Safari incluido). */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, var(--paper) 28%, rgba(255, 253, 249, 0.55) 55%, rgba(255, 253, 249, 0) 75%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  align-items: center;
  min-height: 720px;
  padding-block: 72px 76px;
}

/* Mosaico de la foto del hero: funciona en todas las resoluciones. El contenedor
   que pinta la foto cambia según el ancho (.hero, o .hero-inner a partir de 1600px),
   así que el alto y el ancho del mosaico los calcula main.js leyendo el background-size. */
.hero.fx-hide-photo::before,
.hero-inner.fx-hide-photo::before {
  opacity: 0;
}

.hero-mosaic {
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 0;
  display: grid;
  pointer-events: none;
}

.hero-mosaic span {
  background-image: url("../assets/FondoCS.jpg");
  background-repeat: no-repeat;
  opacity: 0;
  transform: scale(0.55);
  animation: fx-tile-in 0.74s cubic-bezier(0.22, 0.85, 0.3, 1) forwards;
}

.hero-tag {
  position: absolute;
  right: 330px;
  bottom: 38px;
  z-index: 3;
  display: grid;
  gap: 4px;
  padding: 14px 20px;
  background: rgba(255, 253, 249, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-left: 3px solid var(--gold);
  border-radius: 8px;
  box-shadow: 0 14px 34px rgba(16, 39, 67, 0.16);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.hero-tag-name {
  font: 600 13px/1 Georgia, serif;
  letter-spacing: 0.12em;
}

.hero-tag small {
  color: var(--gold-dark);
  font-size: 10.5px;
  letter-spacing: 0.05em;
}

.hero-copy {
  max-width: 660px;
}

@media (min-width: 1600px) {
  .hero::before,
  .hero::after {
    display: none;
  }

  .hero-inner {
    position: relative;
    min-height: 720px;
    padding-block: 44px;
  }

  .hero-inner::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background: url("../assets/FondoCS.jpg") no-repeat right bottom;
    background-size: auto 100%;
  }

  /* Degradado que funde la foto por ambos lados (sustituye a la máscara) */
  .hero-inner::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(90deg,
      var(--paper) calc(100% - 760px),
      rgba(255, 253, 249, 0) calc(100% - 430px),
      rgba(255, 253, 249, 0) calc(100% - 250px),
      var(--paper) 100%);
  }

  .hero-copy {
    position: relative;
    z-index: 2;
  }

  .services {
    padding-block: 72px 130px;
  }
}

@keyframes fx-tile-in {
  100% {
    opacity: 1;
    transform: scale(1.004);
  }
}

.eyebrow {
  margin: 0 0 20px;
  color: var(--gold-dark);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.19em;
}

.hero h1,
.section-heading h2 {
  margin: 0;
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  font-weight: 500;
  letter-spacing: -0.045em;
}

.hero h1 {
  max-width: 760px;
  font-size: clamp(56px, 6.3vw, 94px);
  line-height: 0.97;
  text-wrap: balance;
}

.hero-intro {
  max-width: 600px;
  margin: 30px 0 0;
  color: var(--ink-soft);
  font-size: 18px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 0 23px;
  border: 1px solid var(--ink);
  border-radius: 6px;
  font-size: 13px;
  font-weight: 750;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button-primary {
  background: var(--ink);
  color: var(--white);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  background: var(--cream);
}

.hero-note {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 46px;
}

.mini-seal {
  display: grid;
  width: 37px;
  height: 37px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(184, 137, 61, 0.5);
  border-radius: 50%;
  color: var(--gold-dark);
}

.hero-note p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.5;
}

.hero-note strong {
  color: var(--ink);
  font-size: 13px;
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 0 max(28px, calc((100vw - 1240px) / 2));
  background: var(--ink);
  color: var(--white);
}

.trust-strip > div {
  display: flex;
  min-height: 112px;
  align-items: center;
  gap: 19px;
  padding: 20px 34px;
  border-right: 1px solid rgba(255, 255, 255, 0.18);
}

.trust-strip > div:last-child {
  border-right: 0;
}

.trust-icon {
  color: #d5b679;
}

.trust-icon svg {
  display: block;
  width: 30px;
  height: 30px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.fx-billboard-spin {
  display: inline-block;
  perspective: 2400px;
  perspective-origin: 50% 50%;
}

.fx-billboard-spin__inner {
  position: relative;
  display: block;
  transform-style: preserve-3d;
  transform-origin: 50% 50%;
  animation: fx-billboard 7s linear infinite;
  will-change: transform;
}

.fx-billboard-spin__face {
  display: block;
  backface-visibility: hidden;
}

.fx-billboard-spin__face--back {
  position: absolute;
  inset: 0;
  transform: rotateY(180deg);
}

@keyframes fx-billboard {
  0% { transform: rotateY(0deg); filter: brightness(1); }
  25% { filter: brightness(0.7); }
  50% { transform: rotateY(180deg); filter: brightness(1); }
  75% { filter: brightness(0.7); }
  100% { transform: rotateY(360deg); filter: brightness(1); }
}

@property --fx-angle {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

.fx-border-beam {
  position: relative;
  isolation: isolate;
}

.fx-border-beam::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  padding: 4px;
  background: conic-gradient(from var(--fx-angle),
    transparent 0 68%,
    #d8b478 84%,
    transparent 92% 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  animation: fx-border-beam 4s linear infinite;
}

@keyframes fx-border-beam {
  100% { --fx-angle: 360deg; }
}

.trust-strip p,
.trust-strip small {
  display: grid;
  margin: 0;
}

.trust-strip strong {
  font: 500 15px/1.3 Georgia, serif;
}

.trust-strip small {
  margin-top: 5px;
  color: rgba(255, 255, 255, 0.64);
  font-size: 10px;
  letter-spacing: 0.08em;
}

.services {
  padding-block: 118px 130px;
}

.section-heading {
  max-width: 720px;
  margin: 0 auto 52px;
  text-align: center;
}

.section-heading h2 {
  font-size: clamp(40px, 5vw, 65px);
  line-height: 1.05;
}

.section-heading > p:last-child {
  max-width: 540px;
  margin: 22px auto 0;
  color: var(--ink-soft);
  line-height: 1.7;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.service-card {
  min-height: 295px;
  padding: 30px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transition: background 900ms ease, transform 200ms ease;
}

.service-card.is-highlight {
  background: var(--cream);
}

.service-card:hover {
  z-index: 1;
  background: var(--cream);
  transform: translateY(-4px);
}

.service-icon {
  color: var(--gold-dark);
}

.service-icon svg {
  display: block;
  width: 34px;
  height: 34px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-card h3 {
  max-width: 280px;
  margin: 42px 0 13px;
  font: 500 25px/1.15 "Iowan Old Style", Georgia, serif;
  letter-spacing: -0.02em;
}

.service-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.65;
}

.service-card a {
  display: inline-flex;
  gap: 14px;
  margin-top: 22px;
  border-bottom: 1px solid var(--gold);
  color: var(--ink);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.about {
  overflow: hidden;
  background: var(--cream);
  border-block: 1px solid var(--line);
}

.about-inner {
  position: relative;
  display: grid;
  grid-template-columns: 0.35fr 1.15fr 0.8fr;
  gap: clamp(36px, 6vw, 92px);
  align-items: center;
  padding-block: 118px;
}

.about-kicker {
  align-self: start;
  color: rgba(184, 137, 61, 0.22);
  font: italic 150px/0.8 Georgia, serif;
  letter-spacing: -0.1em;
}

.about-copy h2,
.process-heading h2,
.faq-intro h2,
.contact-inner h2 {
  margin: 0;
  font-family: "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  font-weight: 500;
  letter-spacing: -0.04em;
}

.about-copy h2 {
  max-width: 680px;
  font-size: clamp(43px, 4.6vw, 65px);
  line-height: 1.04;
}

.about-copy > p:not(.eyebrow) {
  max-width: 670px;
  margin: 24px 0 0;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.8;
}

.underline-host {
  position: relative;
}

.u-line {
  position: absolute;
  height: 4px;
  background: linear-gradient(90deg, var(--gold-dark), #d8b478 60%, var(--gold));
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left center;
  transition-property: transform;
  transition-timing-function: ease-out;
  pointer-events: none;
}

.underline-host.u-on .u-line {
  transform: scaleX(1);
}

.text-link {
  display: inline-flex;
  gap: 16px;
  margin-top: 30px;
  padding-bottom: 5px;
  border-bottom: 1px solid var(--gold);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.credentials-card {
  padding: 30px;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: 0 24px 60px rgba(16, 39, 67, 0.08);
}

.credentials-card > p {
  margin: 0 0 22px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
  color: var(--gold-dark);
  font: italic 20px/1.2 Georgia, serif;
}

.credentials-card dl {
  display: grid;
  gap: 18px;
  margin: 0;
}

.credentials-card dl > div {
  display: grid;
  grid-template-columns: 0.75fr 1fr;
  gap: 18px;
}

.credentials-card dt {
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.credentials-card dd {
  margin: 0;
  font: 500 14px/1.4 Georgia, serif;
}

.process {
  display: grid;
  grid-template-columns: 0.75fr 1.5fr;
  gap: clamp(50px, 9vw, 140px);
  padding-block: 130px;
}

.process-heading h2 {
  max-width: 450px;
  font-size: clamp(43px, 4.4vw, 62px);
  line-height: 1.05;
}

.process-list {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.process-list li {
  display: grid;
  grid-template-columns: 70px 0.8fr 1fr;
  gap: 24px;
  align-items: center;
  min-height: 155px;
  border-bottom: 1px solid var(--line);
}

.process-list span {
  color: var(--gold-dark);
  font: italic 18px/1 Georgia, serif;
}

.process-list h3 {
  margin: 0;
  font: 500 24px/1.2 Georgia, serif;
}

.process-list p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.7;
}

.ai-note {
  background: var(--cream);
  border-top: 1px solid var(--line);
}

.ai-note-inner {
  display: flex;
  align-items: center;
  gap: 22px;
  padding-block: 26px;
}

.ai-note-seal {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  flex: 0 0 auto;
  border: 1px solid rgba(184, 137, 61, 0.5);
  border-radius: 50%;
  color: var(--gold-dark);
}

.ai-note-seal svg {
  display: block;
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ai-note p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.6;
}

.ai-note strong {
  color: var(--ink);
}

.faq-section {
  background: var(--cream);
  border-block: 1px solid var(--line);
}

.faq-inner {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: clamp(50px, 9vw, 140px);
  padding-block: 120px;
}

.faq-intro h2 {
  font-size: clamp(43px, 4.4vw, 61px);
  line-height: 1.05;
}

.faq-intro > p:last-child {
  max-width: 360px;
  margin-top: 24px;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.7;
}

.faq-list details {
  margin-bottom: 14px;
  padding: 0 26px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 3px solid transparent;
  box-shadow: 0 14px 34px rgba(16, 39, 67, 0.06);
  transition: border-color 400ms ease, transform 400ms ease;
}

.faq-list details[open] {
  border-left-color: var(--gold);
  transform: translateX(6px);
}

.faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  padding: 22px 0;
  cursor: pointer;
  font: 500 18px/1.4 Georgia, serif;
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary span {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  border: 1px solid rgba(184, 137, 61, 0.5);
  border-radius: 50%;
  color: var(--gold-dark);
  font: 300 20px/1 Arial, sans-serif;
  transition: transform 300ms ease, background 300ms ease;
}

.faq-list details[open] summary span {
  transform: rotate(45deg);
  background: rgba(184, 137, 61, 0.12);
}

.faq-list details p {
  max-width: 650px;
  margin: -4px 46px 22px 0;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.75;
}

.contact-section {
  background: var(--ink);
  color: var(--white);
}

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 0.8fr;
  gap: clamp(60px, 10vw, 160px);
  padding-block: 110px;
}

.contact-inner .eyebrow {
  color: #d5b679;
}

.contact-inner h2 {
  max-width: 680px;
  font-size: clamp(48px, 5.5vw, 76px);
  line-height: 1.02;
}

.contact-copy > p {
  margin: 32px 0;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.75;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button-light {
  background: var(--white);
  border-color: var(--white);
  color: var(--ink);
}

.button-outline-light {
  border-color: rgba(255, 255, 255, 0.5);
  color: var(--white);
}

.contact-copy address {
  margin-top: 38px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 11px;
  font-style: normal;
  line-height: 1.8;
  letter-spacing: 0.05em;
}

.signature {
  margin: 30px 0 0;
  color: var(--white);
  font-family: "Allura", cursive;
  font-size: clamp(36px, 3.2vw, 52px);
  line-height: 1.15;
}

.fx-mask-wipe {
  display: block;
  overflow: visible;
}

.fx-mask-wipe__inner {
  display: block;
  animation: fx-wipe 2.4s cubic-bezier(0.22, 0.85, 0.3, 1) both;
  animation-play-state: paused;
}

.signature.is-inview .fx-mask-wipe__inner {
  animation-play-state: running;
}

@keyframes fx-wipe {
  0% {
    clip-path: inset(0px 100% 0px 0px);
    transform: translateX(-14px);
  }

  100% {
    clip-path: inset(0px);
    transform: none;
  }
}

.footer {
  display: grid;
  grid-template-columns: auto auto auto 1fr auto;
  align-items: center;
  gap: clamp(22px, 3.5vw, 52px);
  min-height: 150px;
}

.footer-ga {
  width: 120px;
  height: auto;
}

.footer-sb {
  width: 130px;
  height: auto;
}

.footer-brand {
  flex-direction: column;
  gap: 9px;
  text-align: center;
}

.footer-brand .brand-copy {
  justify-items: center;
}

.footer > p {
  color: var(--ink-soft);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-align: center;
}

.footer > div {
  display: flex;
  justify-content: flex-end;
  gap: 22px;
  font-size: 11px;
  font-weight: 700;
}

.whatsapp-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 11px 16px 11px 12px;
  background: #25d366;
  border: none;
  border-radius: 999px;
  box-shadow: 0 12px 30px rgba(13, 61, 42, 0.24);
  color: var(--white);
  font-size: 11px;
  font-weight: 800;
}

.whatsapp-float svg {
  display: block;
  flex: 0 0 auto;
}

/* ===== Widget del asistente virtual ===== */
#asistente {
  position: fixed;
  right: 20px;
  bottom: 86px;
  z-index: 60;
  display: none;
}

#asistente.on {
  display: block;
}

.as-panel {
  display: flex;
  flex-direction: column;
  width: min(380px, calc(100vw - 32px));
  height: min(560px, calc(100vh - 120px));
  overflow: hidden;
  background: #efeae2;
  border-radius: 14px;
  box-shadow: 0 24px 70px rgba(16, 39, 67, 0.35);
}

.as-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: var(--ink);
  color: var(--white);
}

.as-avatar {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  background: var(--paper);
  border: 1px solid rgba(184, 137, 61, 0.5);
  border-radius: 50%;
  color: var(--gold-dark);
  font: 600 13px/1 Georgia, serif;
}

.as-who {
  line-height: 1.25;
}

.as-who b {
  display: block;
  font-size: 14px;
}

.as-who small {
  font-size: 10.5px;
  opacity: 0.8;
}

.as-close {
  margin-left: auto;
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.12);
  border: 0;
  border-radius: 50%;
  color: var(--white);
  font-size: 19px;
  cursor: pointer;
}

.as-chat {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 14px 12px;
  overflow-y: auto;
}

.as-msg {
  max-width: 84%;
  padding: 8px 11px;
  border-radius: 9px;
  font-size: 13px;
  line-height: 1.45;
  white-space: pre-wrap;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
}

.as-msg.bot {
  align-self: flex-start;
  background: var(--white);
  border-top-left-radius: 2px;
}

.as-msg.cli {
  align-self: flex-end;
  background: #d9fdd3;
  border-top-right-radius: 2px;
}

.as-msg.sys {
  align-self: center;
  background: #fdf3d7;
  box-shadow: none;
  color: #6b5b1e;
  font-size: 11.5px;
  text-align: center;
}

.as-flag {
  display: inline-block;
  width: 19px;
  height: 13px;
  margin-right: 5px;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.12);
  vertical-align: -2px;
}

.as-typing {
  display: none;
  padding: 2px 14px 6px;
  color: #666;
  font-size: 11px;
}

.as-typing.on {
  display: block;
}

.as-pending {
  display: none;
  flex-wrap: wrap;
  gap: 6px;
  padding: 8px 10px 0;
  background: #f0f0f0;
}

.as-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  padding: 5px 8px;
  background: var(--white);
  border: 1px solid #ddd;
  border-radius: 999px;
  font-size: 11px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.as-chip button {
  width: 16px;
  height: 16px;
  padding: 0;
  background: #e3e3e3;
  border: 0;
  border-radius: 50%;
  font-size: 11px;
  line-height: 1;
  cursor: pointer;
}

.as-foot {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px;
  background: #f0f0f0;
}

.as-attach {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  place-items: center;
  background: none;
  border: 0;
  border-radius: 50%;
  color: #54656f;
  cursor: pointer;
}

.as-attach:hover {
  background: #e4e4e4;
}

.as-attach.off {
  opacity: 0.4;
}

.as-attach svg {
  width: 21px;
  height: 21px;
}

.as-input {
  flex: 1;
  min-height: 40px;
  max-height: 90px;
  padding: 10px 12px;
  border: 0;
  border-radius: 20px;
  font-family: inherit;
  font-size: 13px;
  outline: none;
  resize: none;
}

.as-send {
  width: 42px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: #00a884;
  color: var(--white);
  font-size: 17px;
  cursor: pointer;
}

.as-send:disabled {
  opacity: 0.5;
}

@media (max-width: 720px) {
  #asistente {
    right: 10px;
    bottom: 76px;
    left: 10px;
  }

  .as-panel {
    width: 100%;
    height: min(540px, calc(100vh - 100px));
    margin-inline: auto;
  }
}

.legal-line {
  padding: 16px 28px;
  background: var(--cream);
  border-top: 1px solid var(--line);
  text-align: center;
}

.legal-line p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 9px;
  letter-spacing: 0.08em;
}

.legal-line a {
  border-bottom: 1px solid var(--gold);
  font-weight: 700;
}

.legal-header {
  grid-template-columns: 1fr auto;
}

.legal-back {
  white-space: nowrap;
}

.legal-page {
  max-width: 780px;
  padding-block: 70px 90px;
}

.legal-page h1 {
  margin: 0 0 10px;
  font-family: "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  font-weight: 500;
  font-size: clamp(38px, 4.5vw, 58px);
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.legal-page h2 {
  margin: 40px 0 10px;
  font: 500 21px/1.3 Georgia, serif;
}

.legal-page p,
.legal-page li {
  margin: 0 0 12px;
  color: var(--ink-soft);
  font-size: 14.5px;
  line-height: 1.8;
}

.legal-page ul {
  margin: 0 0 12px;
  padding-left: 20px;
}

.legal-page li {
  margin-bottom: 6px;
}

.legal-page strong {
  color: var(--ink);
}

.legal-updated {
  margin-top: 44px;
  font-size: 12px;
  font-style: italic;
}

@media (max-width: 960px) {
  .site-header {
    grid-template-columns: auto 1fr auto;
    gap: 10px;
  }

  .desktop-nav {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  /* Con el menú hamburguesa a la vista ya está el botón verde de la cabecera:
     el flotante sobra y tapa contenido. */
  .whatsapp-float {
    display: none;
  }

  .header-cta {
    display: none;
  }

  .header-wa {
    display: flex;
    justify-self: end;
  }

  .mobile-nav:not([hidden]) {
    display: grid;
  }

  .hero h1 {
    font-size: clamp(48px, 7vw, 68px);
  }

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

  .about-inner {
    grid-template-columns: 0.9fr 0.7fr;
  }

  .about-kicker {
    display: none;
  }

  .process,
  .faq-inner {
    grid-template-columns: 0.65fr 1.35fr;
    gap: 60px;
  }

  .process-list li {
    grid-template-columns: 48px 1fr;
    padding-block: 28px;
  }

  .process-list p {
    grid-column: 2;
  }

  .contact-inner {
    grid-template-columns: 1fr;
  }

  .footer {
    grid-template-columns: auto auto 1fr auto;
  }

  .footer > p {
    display: none;
  }

  .footer-ga {
    width: 100px;
  }

  .footer-sb {
    justify-self: center;
    width: 95px;
  }
}

@media (max-width: 720px) {
  .section-shell {
    width: min(100% - 32px, 620px);
  }

  .site-header {
    min-height: 74px;
    padding-inline: 16px;
  }

  section[id] {
    scroll-margin-top: 82px;
  }

  .brand-logo {
    width: 136px;
  }

  .hero-tag {
    right: auto;
    left: 50%;
    bottom: 20px;
    width: max-content;
    max-width: calc(100vw - 40px);
    padding: 10px 16px;
    transform: translateX(-50%);
  }

  .header-wa {
    width: 46px;
    height: 46px;
    justify-content: center;
    padding: 0;
    border-radius: 50%;
  }

  .header-wa svg {
    width: 23px;
    height: 23px;
  }

  .header-wa-label {
    display: none;
  }

  .hero::before {
    background-size: auto 42%;
  }

  .hero::after {
    background: linear-gradient(180deg, var(--paper) 56%, rgba(255, 253, 249, 0) 74%);
  }

  .hero-inner {
    min-height: auto;
    padding-block: 28px 400px;
  }

  .hero h1 {
    font-size: clamp(48px, 14.5vw, 72px);
  }

  .hero-intro {
    font-size: 16px;
  }

  .hero-actions {
    display: grid;
  }

  .trust-strip {
    grid-template-columns: 1fr;
    padding-inline: 22px;
  }

  .trust-strip > div {
    min-height: 88px;
    padding: 18px 6px;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  }

  .trust-strip > div:last-child {
    border-bottom: 0;
  }

  .services {
    padding-block: 86px 92px;
  }

  .section-heading {
    text-align: left;
  }

  .section-heading h2 {
    font-size: 45px;
  }

  .section-heading > p:last-child {
    margin-left: 0;
  }

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

  .service-card {
    min-height: 270px;
  }

  .mini-contact {
    flex-direction: column;
    text-align: center;
  }

  .about-inner,
  .process,
  .faq-inner {
    grid-template-columns: 1fr;
  }

  .about-inner {
    padding-block: 86px;
  }

  .about-copy h2,
  .process-heading h2,
  .faq-intro h2 {
    font-size: 44px;
  }

  .credentials-card {
    padding: 24px;
  }

  .process,
  .faq-inner {
    gap: 44px;
    padding-block: 88px;
  }

  .process-list li {
    grid-template-columns: 42px 1fr;
  }

  .contact-inner {
    padding-block: 86px;
  }

  .contact-inner h2 {
    font-size: 49px;
  }

  .contact-actions {
    display: grid;
  }

  .footer {
    grid-template-columns: 1fr;
    justify-items: center;
    padding-block: 38px;
    text-align: center;
  }

  .footer > div {
    justify-content: center;
  }

  .footer-brand {
    justify-self: center;
  }

  .whatsapp-float {
    right: 12px;
    bottom: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .fx-billboard-spin__inner,
  .fx-border-beam::before {
    animation: none;
  }

  .fx-mask-wipe__inner {
    animation: none;
    clip-path: none;
    transform: none;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
