/* Dirección: limpia, clínica y cercana. Variación 4/10, movimiento 3/10,
   densidad 3/10. HTML y CSS nativos. Tema blanco solicitado por el cliente.
   Capas: contenido 0; header 20; WhatsApp 30; menú dentro del header;
   dialog usa la top layer nativa. Botones 10px, paneles 24px, círculos de marca. */
:root {
  /* Colores, radios y velocidad de animaciones compartidos en todo el sitio.
     Cambia aquí la paleta general o el redondeo de tarjetas/botones. */
  --navy: #20324d;
  --ink: #1d1d1b;
  --muted: #606a77;
  --magenta: #9c0750;
  --line: #e4e8ed;
  --soft: #f5f7f9;
  --white: #fff;
  --radius: 24px;
  --header-height: 88px;
  --ease-premium: cubic-bezier(0.22, 1, 0.36, 1);
  --duration-fast: 180ms;
  --duration-medium: 280ms;
  color-scheme: light;
  font-family: "Outfit", "Century Gothic", sans-serif;
  color: var(--ink);
  background: var(--white);
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-size: 17px;
  line-height: 1.7;
}

body.modal-open {
  overflow: hidden;
}

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

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

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}

button {
  border: 0;
  background: none;
}

img {
  max-width: 100%;
  vertical-align: middle;
}

button img,
a img {
  flex-shrink: 0;
}

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

h1,
h2,
h3 {
  color: var(--navy);
}

h1,
h2 {
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 1.13;
}

h2 {
  font-size: clamp(32px, 3.4vw, 46px);
}

h3 {
  font-weight: 500;
  font-size: 21px;
  line-height: 1.35;
}

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

address {
  font-style: normal;
  color: var(--muted);
}

:focus-visible {
  outline: 3px solid var(--magenta);
  outline-offset: 5px;
}

::selection {
  background: #e3e8ef;
  color: var(--navy);
}

.container {
  /* Ancho máximo del contenido y margen lateral en escritorio. */
  width: min(1200px, calc(100% - 96px));
  margin-inline: auto;
}

.section {
  /* Espacio vertical estándar entre secciones. */
  padding: 104px 0;
}

.eyebrow {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--navy);
  margin-bottom: 22px;
}

.button {
  /* Botón principal: modifica aquí su tamaño, color y redondeo global. */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 54px;
  padding: 14px 22px;
  border: 1px solid var(--navy);
  border-radius: 10px;
  background: var(--navy);
  color: white;
  font-weight: 500;
  font-size: 16px;
  line-height: 1.4;
  transition:
    background var(--duration-medium) var(--ease-premium),
    border-color var(--duration-medium) var(--ease-premium),
    transform var(--duration-fast) var(--ease-premium),
    box-shadow var(--duration-medium) var(--ease-premium);
}

.button:hover {
  background: #304965;
  box-shadow: 0 9px 22px #20324d20;
  transform: translateY(-2px);
}

.button:active {
  box-shadow: 0 3px 10px #20324d14;
  transform: translateY(0) scale(0.985);
}

.button-small {
  min-height: 44px;
  font-size: 14px;
  padding: 11px 16px;
}

.light-icon {
  filter: brightness(0) invert(1);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.text-link {
  /* Enlace de texto con flecha: usado para acciones secundarias. */
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--navy);
  font-size: 16px;
  font-weight: 500;
  padding: 6px 0;
  line-height: 1.5;
  transition: color var(--duration-fast) var(--ease-premium), transform var(--duration-fast) var(--ease-premium);
}

.text-link:hover {
  text-decoration: underline;
  text-underline-offset: 5px;
  transform: translateX(2px);
}

.text-link:active {
  transform: translateX(0) scale(0.985);
}

.text-link img {
  transition: transform var(--duration-fast) var(--ease-premium);
}

.text-link:hover img {
  transform: translateX(3px);
}

.icon-button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--soft);
  transition: background var(--duration-fast) var(--ease-premium), transform var(--duration-fast) var(--ease-premium);
}

.icon-button:hover {
  background: #e8edf2;
  transform: scale(1.04);
}

.icon-button:active {
  transform: scale(0.94);
}

.skip-link {
  position: fixed;
  top: -80px;
  left: 20px;
  padding: 12px 20px;
  background: var(--navy);
  color: white;
  z-index: 100;
}

.skip-link:focus {
  top: 12px;
}

.section-heading {
  max-width: 660px;
  margin-bottom: 48px;
}

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

@media (max-width: 1100px) {
.container {
    width: calc(100% - 64px);
  }
}

@media (max-width: 900px) {
:root {
    --header-height: 76px;
  }
}

@media (max-width: 900px) {
.section {
    padding: 80px 0;
  }
}

@media (max-width: 640px) {
.container {
    width: calc(100% - 40px);
  }
}

@media (max-width: 640px) {
:root {
    --header-height: 72px;
  }
}

@media (max-width: 640px) {
.section {
    padding: 64px 0;
  }
}

@media (max-width: 640px) {
.section-heading {
    margin-bottom: 34px;
  }
}

@media (max-width: 640px) {
.eyebrow {
    font-size: 9px;
    letter-spacing: 0.14em;
    margin-bottom: 18px;
  }
}

@media (max-width: 640px) {
h2 {
    font-size: 34px;
  }
}

@media (max-width: 640px) {
.section-heading > p:last-child {
    font-size: 14px;
    margin-top: 17px;
  }
}

@media (prefers-reduced-motion: reduce) {
*,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: #fffffff2;
  border-bottom: 1px solid #20324d0e;
  backdrop-filter: blur(16px);
}

.header-inner {
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

/* Logo en header */
.brand img {
  width: 78px;
  height: 78px;
  object-fit: contain;
}

.brand span {
  display: flex;
  flex-direction: column;
}

/* Letras principales en header */

.brand strong {
  font-weight: 500;
  color: var(--navy);
  font-size: 20px;
  letter-spacing: -0.025em;
  line-height: 1.3;
}

/* Letras secundarias en header */

.brand small {
  margin-top: 2px;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.navigation {
  display: flex;
  align-items: center;
  gap: 26px;
}

.navigation > a:not(.button),
.nav-contact {
  font-size: 15px;
  padding: 12px 0;
  white-space: nowrap;
  color: #485669;
  transition: color var(--duration-fast) var(--ease-premium), transform var(--duration-fast) var(--ease-premium);
}

.navigation > a[aria-current="location"] {
  color: var(--navy);
  text-decoration: underline;
  text-decoration-color: #9c075050;
  text-underline-offset: 8px;
}

.navigation > a:hover,
.nav-contact:hover {
  color: var(--navy);
  transform: translateY(-1px);
}

.navigation > a:active,
.nav-contact:active {
  transform: translateY(0) scale(0.985);
}

.nav-contact {
  display: flex;
  align-items: center;
  gap: 6px;
}

.menu-toggle {
  display: none;
}

@media (max-width: 1100px) {
.navigation {
    gap: 18px;
  }
}

/* Letras principales en header */

@media (max-width: 1100px) {
.brand strong {
    font-size: 18px;
  }
}

/* Letras secundarias en header */

@media (max-width: 1100px) {
.brand small {
    font-size: 12px;
  }
}

/* Logo en header */

@media (max-width: 1100px) {
.brand img {
    width: 68px;
    height: 68px;
  }
}

@media (max-width: 900px) {
.menu-toggle {
    display: grid;
  }
}

@media (max-width: 900px) {
.navigation {
    display: none;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: white;
    border-bottom: 1px solid var(--line);
    padding: 20px 32px 28px;
    box-shadow: 0 15px 20px #20324d08;
    flex-direction: column;
    align-items: stretch;
    gap: 3px;
  }
}

@media (max-width: 900px) {
.navigation.is-open {
    display: flex;
  }
}

@media (max-width: 900px) {
.navigation > a:not(.button),
  .nav-contact {
    font-size: 15px;
    padding: 13px 0;
  }
}

@media (max-width: 900px) {
.navigation .button {
    margin-top: 12px;
  }
}

@media (max-width: 900px) {
.nav-contact {
    justify-content: space-between;
  }
}

/* Letras principales en header */

@media (max-width: 900px) {
.brand strong {
    font-size: 18px;
  }
}

@media (max-width: 900px) {
.brand small {
    font-size: 10px;
  }
}

@media (max-width: 640px) {
.header-inner {
    gap: 10px;
  }
}

@media (max-width: 640px) {
.brand strong {
    font-size: 16px;
  }
}

@media (max-width: 640px) {
.brand small {
    font-size: 9px;
    letter-spacing: 0.15em;
  }
}

/* Logo en header */

@media (max-width: 640px) {
.brand img {
    width: 64px;
    height: 64px;
  }
}

@media (max-width: 640px) {
.navigation {
    top: 72px;
    padding: 16px 24px 24px;
  }
}

@media (prefers-reduced-transparency: reduce) {
.site-header {
    background: white;
    backdrop-filter: none;
  }
}

.site-footer {
  padding-bottom: 26px;
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 30px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding-top: 22px;
  gap: 15px;
}

.footer-bottom p {
  font-size: 11px;
}

.footer-bottom p span {
  margin: 0 10px;
}

.floating-whatsapp {
  position: fixed;
  bottom: 26px;
  right: 26px;
  z-index: 30;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--navy);
  display: grid;
  place-items: center;
  box-shadow: 0 5px 22px #20324d29;
  border: 3px solid white;
  transition: transform var(--duration-fast) var(--ease-premium), box-shadow var(--duration-medium) var(--ease-premium), background var(--duration-fast) var(--ease-premium);
}

.floating-whatsapp:hover {
  background: #304965;
  box-shadow: 0 10px 28px #20324d35;
  transform: translateY(-4px) scale(1.035);
}

.floating-whatsapp:active {
  transform: translateY(-1px) scale(0.95);
}

@media (max-width: 640px) {
.footer-top {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
    padding-bottom: 25px;
  }
}

@media (max-width: 640px) {
.footer-top > .text-link {
    margin-left: 11px;
    font-size: 13px;
  }
}

@media (max-width: 640px) {
.footer-bottom {
    display: block;
    padding: 20px 10px 38px;
  }
}

@media (max-width: 640px) {
.footer-bottom p {
    font-size: 10px;
    margin-bottom: 8px;
  }
}

@media (max-width: 640px) {
.footer-bottom p span {
    margin: 0 4px;
  }
}

@media (max-width: 640px) {
.floating-whatsapp {
    right: 18px;
    bottom: 18px;
    width: 51px;
    height: 51px;
  }
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 112px;
}

@media (prefers-reduced-motion: no-preference) {
.reveal-ready {
    opacity: 0;
    transform: translateY(18px);
    transition:
      opacity 0.65s,
      transform 0.65s;
  }
}

@media (prefers-reduced-motion: no-preference) {
.reveal-ready.is-visible {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: no-preference) {
@keyframes enter {
    from {
      opacity: 0;
      transform: translateY(14px);
    }
    to {
      opacity: 1;
      transform: none;
    }
  }
}

@media (max-width: 640px) {
html {
    scroll-padding-top: 92px;
  }
}

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

@media (prefers-reduced-motion: reduce) {
.reveal-ready {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .navigation.is-open {
    animation: menu-enter var(--duration-medium) var(--ease-premium) both;
    transform-origin: top right;
  }

  @keyframes menu-enter {
    from {
      opacity: 0;
      transform: translateY(-10px) scale(0.985);
    }
    to {
      opacity: 1;
      transform: translateY(0) scale(1);
    }
  }
}

/* Legibilidad reforzada para lectura cómoda en teléfonos. */
.page-load-status {
  position: fixed;
  z-index: 1000;
  left: 50%;
  bottom: max(20px, env(safe-area-inset-bottom));
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 15px;
  border: 1px solid #d8e1eb;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 10px 30px #20324d20;
  color: var(--navy);
  font-size: 14px;
  line-height: 1.3;
  transform: translateX(-50%);
  transition: opacity 180ms ease-out;
  pointer-events: none;
}

.page-load-status[hidden] { display: none; }
.page-load-status.is-finishing { opacity: 0; }
.page-load-status__indicator {
  width: 14px;
  height: 14px;
  border: 2px solid #d6deea;
  border-top-color: var(--magenta);
  border-radius: 50%;
  animation: load-spin 700ms linear infinite;
}

@keyframes load-spin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  .page-load-status__indicator { animation: none; border-color: var(--magenta); }
  .page-load-status { transition: none; }
}

@media (max-width: 640px) {
  body {
    font-size: 18px;
    line-height: 1.72;
  }

  .section-heading > p:last-child,
  .text-link,
  .footer-top > .text-link {
    font-size: 16px;
  }

  .button {
    font-size: 16px;
  }

  .footer-bottom p {
    font-size: 12px;
  }
}
