/* ========================================
   NeuroCareVet — Base y variables globales
   ======================================== */

:root {
  --ink: #2d2b2a;
  --muted: #66625d; /* oscurecido para cumplir contraste AA sobre header y fondos claros */
  --cream: #faf8f4;
  --sand: #eee7dc;
  --gold: #d7b83e;
  --gold-deep: #7a6216; /* oscurecido para cumplir contraste AA en textos pequeños */
  --rose: #c7a699;
  --line: #ded8cf;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: "DM Sans", sans-serif;
  font-size: 16px;
  line-height: 1.55;
  overflow-x: hidden;
}

a {
  color: inherit;
}

::selection {
  background: rgba(215, 184, 62, 0.35);
}

/* Palabras destacadas en cursiva dorada dentro de los títulos */
.hero h1 em,
.section h2 em {
  font-style: italic;
  font-weight: 600;
  color: var(--gold-deep);
}

.warning h2 em {
  color: #dfc55c;
}

/* ========================================
   Barra de progreso de lectura
   ======================================== */

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 50;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--rose));
  transform: scaleX(0);
  transform-origin: left;
}

/* ========================================
   Componentes reutilizables
   ======================================== */

.button {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 16px 28px;
  border: 1px solid var(--ink);
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition:
    background 0.25s ease,
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.button:hover {
  background: #3f3937;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(45, 43, 42, 0.18);
}

/* La flecha se desplaza al pasar el cursor */
.button-arrow {
  display: inline-block;
  transition: transform 0.3s var(--ease-out);
}

.button:hover .button-arrow {
  transform: translate(3px, -3px);
}

/* Brillo que recorre el botón */
.button-shine::after {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 60%;
  height: 100%;
  background: linear-gradient(110deg, transparent, rgba(255, 255, 255, 0.28), transparent);
  transform: skewX(-20deg);
  animation: shine 4.5s ease-in-out infinite;
}

@keyframes shine {
  0%, 60% { left: -120%; }
  100% { left: 160%; }
}

.button-small {
  padding: 11px 15px;
  font-size: 0.8rem;
}

.button-rose {
  background: var(--rose);
  border-color: var(--rose);
  border-radius: 100px;
  color: var(--ink);
}

.button-rose:hover {
  background: #b59385;
  border-color: #b59385;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 10px;
  color: var(--gold-deep);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
}

/* Punto dorado que "late" junto al eyebrow del hero */
.pulse-dot {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
}

.pulse-dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--gold);
  animation: pulse 2.2s ease-out infinite;
}

@keyframes pulse {
  0% { transform: scale(1); opacity: 0.7; }
  100% { transform: scale(3.2); opacity: 0; }
}

.text-link {
  position: relative;
  padding-bottom: 4px;
  font-weight: 600;
  text-decoration: none;
}

.text-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--gold);
  transform-origin: right;
  transition: transform 0.4s var(--ease-out);
}

.text-link:hover::after {
  transform: scaleX(0.35);
}

.text-link span {
  display: inline-block;
  color: var(--gold-deep);
  animation: nudge 2s ease-in-out infinite;
}

@keyframes nudge {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(4px); }
}

.section {
  position: relative;
  padding: 110px clamp(24px, 8vw, 130px);
}

.section-heading {
  max-width: 620px;
}

.hero h1,
.section h2 {
  margin: 0;
  font-family: "Playfair Display", serif;
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.section h2 {
  font-size: clamp(2.25rem, 4vw, 3.7rem);
}

/* ========================================
   Animaciones de entrada
   ======================================== */

/* Al cargar la página (hero) */
.load-in {
  opacity: 0;
  animation: rise 1s var(--ease-out) forwards;
  animation-delay: var(--d, 0s);
}

@keyframes rise {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Al hacer scroll */
.is-loaded .reveal {
  opacity: 0;
  transform: translateY(36px);
  transition:
    opacity 0.9s var(--ease-out),
    transform 0.9s var(--ease-out);
  transition-delay: var(--d, 0s);
}

.is-loaded .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ========================================
   Encabezado y navegación
   ======================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  min-height: 74px;
  padding: 10px clamp(24px, 6vw, 92px);
  border-bottom: 1px solid rgba(222, 216, 207, 0.6);
  background: rgba(250, 248, 244, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition:
    background 0.3s ease,
    box-shadow 0.3s ease,
    padding 0.3s ease;
}

/* Header más compacto al bajar */
.site-header.is-scrolled {
  padding-top: 4px;
  padding-bottom: 4px;
  background: rgba(250, 248, 244, 0.8);
  box-shadow: 0 8px 30px rgba(45, 43, 42, 0.06);
}

.brand img {
  display: block;
  width: 170px;
  transition: width 0.3s ease;
}

.site-header.is-scrolled .brand img {
  width: 140px;
}

.site-header nav {
  display: flex;
  gap: 28px;
}

.site-header nav a {
  position: relative;
  padding: 4px 0;
  color: var(--muted);
  font-size: 0.9rem;
  text-decoration: none;
  transition: color 0.25s ease;
}

/* Subrayado dorado animado */
.site-header nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 1.5px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s var(--ease-out);
}

.site-header nav a:hover {
  color: var(--ink);
}

.site-header nav a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* ========================================
   Hero
   ======================================== */

.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;
  gap: 50px;
  min-height: 520px;
  padding: 42px clamp(24px, 8vw, 130px) 45px;
  overflow: hidden;
}

/* Manchas de color suaves que "respiran" */
.hero-glow {
  position: absolute;
  z-index: 0;
  border-radius: 50%;
  filter: blur(70px);
  pointer-events: none;
  animation: breathe 12s ease-in-out infinite alternate;
}

.hero-glow-one {
  top: -120px;
  right: 8%;
  width: 420px;
  height: 420px;
  background: rgba(215, 184, 62, 0.16);
}

.hero-glow-two {
  bottom: 60px;
  left: -120px;
  width: 360px;
  height: 360px;
  background: rgba(199, 166, 153, 0.2);
  animation-delay: -6s;
}

@keyframes breathe {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(30px, 20px) scale(1.12); }
}

.hero-copy,
.hero-visual,
.hero-bottom {
  position: relative;
  z-index: 1;
}

.hero-copy {
  padding-top: 40px;
}

.hero h1 {
  max-width: 600px;
  font-size: clamp(2.8rem, 5vw, 5rem);
}

/* Palabra "experto" con subrayado que se dibuja */
.highlight {
  position: relative;
  display: inline-block;
  white-space: nowrap;
}

.highlight svg {
  position: absolute;
  left: 0;
  bottom: -0.08em;
  width: 100%;
  height: 0.28em;
  overflow: visible;
}

.highlight path {
  fill: none;
  stroke: var(--gold);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-dasharray: 220;
  stroke-dashoffset: 220;
  animation: draw 1.2s var(--ease-out) 1s forwards;
}

@keyframes draw {
  to { stroke-dashoffset: 0; }
}

.intro {
  max-width: 520px;
  margin: 36px 0 40px;
  color: var(--muted);
  font-size: 1.12rem;
}

/* ========================================
   Hero — acciones e información
   ======================================== */

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  margin: 0;
}

.hero-bottom {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 40px;
  padding-bottom: 0;
  border-top: 1px solid var(--line);
}

.quick-facts {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 55px;
  margin-top: 20px;
}

.quick-facts div {
  display: grid;
  gap: 3px;
  padding-left: 15px;
  border-left: 2px solid var(--gold);
  font-size: 0.85rem;
}

.quick-facts strong {
  font-weight: 600;
}

.quick-facts span {
  color: var(--muted);
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.hero-photo {
  --px: 0px;
  --py: 0px;
  position: relative;
  width: min(100%, 760px);
  margin-top: 70px;
}

.hero-photo img {
  position: relative;
  z-index: 2;
  display: block;
  width: 100%;
  height: auto;
  border-radius: 36px;
  object-fit: cover;
  transform: translate(var(--px), var(--py));
  transition: transform 0.6s var(--ease-out);
  box-shadow: 0 30px 60px rgba(45, 43, 42, 0.12);
}

/* Marco crema detrás de la foto */
.hero-photo::before {
  content: "";
  position: absolute;
  inset: -18px;
  z-index: 1;
  background: #f2ebe1;
  border-radius: 48px;
}

/* Anillo dorado punteado que gira lentamente */
.hero-photo::after {
  content: "";
  position: absolute;
  top: -55px;
  right: -55px;
  z-index: 0;
  width: 150px;
  height: 150px;
  border: 2px dashed rgba(215, 184, 62, 0.5);
  border-radius: 50%;
  animation: spin 30s linear infinite;
}

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

/* Tarjetas flotantes estilo vidrio */
.float-card {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px 12px 12px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 18px;
  background: rgba(250, 248, 244, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 18px 40px rgba(45, 43, 42, 0.14);
  font-size: 0.8rem;
  animation: float 6s ease-in-out infinite;
}

.float-card div {
  display: grid;
  line-height: 1.3;
}

.float-card span:not(.float-icon):not(.status-dot) {
  color: var(--muted);
  font-size: 0.75rem;
}

.float-card-top {
  top: 28px;
  left: -40px;
}

.float-card-bottom {
  right: -26px;
  bottom: 34px;
  animation-delay: -3s;
}

.float-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--ink);
}

.float-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: var(--gold);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.status-dot {
  position: relative;
  width: 10px;
  height: 10px;
  margin: 0 4px 0 6px;
  border-radius: 50%;
  background: #7fb08a;
}

.status-dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #7fb08a;
  animation: pulse 2s ease-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ========================================
   Cinta animada (marquee)
   ======================================== */

.marquee {
  overflow: hidden;
  padding: 22px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--sand);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.marquee-track {
  display: flex;
  align-items: center;
  gap: 34px;
  width: max-content;
  padding-right: 34px; /* mantiene el bucle sin saltos */
  animation: marquee 38s linear infinite;
}

.marquee:hover .marquee-track {
  animation-play-state: paused;
}

.marquee span {
  font-family: "Playfair Display", serif;
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  font-style: italic;
  white-space: nowrap;
  color: var(--ink);
}

/* Separador: pequeño nodo como los del logo */
.marquee i {
  flex: none;
  width: 10px;
  height: 10px;
  border: 2px solid var(--gold);
  border-radius: 50%;
}

@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* ========================================
   Servicios
   ======================================== */

.services {
  background: var(--cream);
  padding-top: 90px;
}

.services .section-heading {
  max-width: 760px;
}

.section-intro {
  max-width: 560px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.6;
}

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

.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 290px;
  padding: 30px 30px 32px;
  border-right: 1px solid var(--line);
  transition: background-color 0.4s ease;
}

/* Línea dorada que crece en la parte superior */
.service-card::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s var(--ease-out);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card:first-child {
  padding-left: 0;
}

.service-card:last-child {
  border-right: 0;
}

.service-card:hover {
  background: rgba(244, 238, 230, 0.55);
}

/* Número grande en contorno */
.number {
  font-family: "Playfair Display", serif;
  font-size: 3rem;
  font-weight: 700;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px #c9ac3a;
  transition:
    color 0.4s ease,
    transform 0.5s var(--ease-out);
}

.service-card:hover .number {
  color: var(--gold);
  transform: translateY(-4px);
}

.service-card h3 {
  margin: 34px 0 14px;
  font-family: "Playfair Display", serif;
  font-size: 1.65rem;
  line-height: 1.15;
  letter-spacing: -0.02em;
  transition: transform 0.5s var(--ease-out);
}

.service-card:hover h3 {
  transform: translateX(6px);
}

.service-card p {
  max-width: 310px;
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

/* ========================================
   Señales de alerta
   ======================================== */

.warning {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 45px;
  overflow: hidden;
  background:
    radial-gradient(circle at 85% 15%, rgba(215, 184, 62, 0.12), transparent 45%),
    var(--ink);
  color: #fff;
}

.warning > * {
  position: relative;
  z-index: 1;
}

/* Líneas neuronales que se dibujan */
.neural-lines {
  position: absolute;
  left: -20px;
  bottom: 30px;
  z-index: 0;
  width: min(380px, 60vw);
  opacity: 0.22;
  pointer-events: none;
}

.neural-lines path,
.neural-lines circle {
  fill: none;
  stroke: var(--gold);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.neural-lines path {
  stroke-dasharray: 320;
  stroke-dashoffset: 320;
  animation: draw 3.5s ease-in-out infinite alternate;
}

.neural-lines path:nth-child(2) { animation-delay: 0.4s; }
.neural-lines path:nth-child(3) { animation-delay: 0.8s; }
.neural-lines path:nth-child(4) { animation-delay: 1.2s; }

.warning .eyebrow {
  color: #dfc55c;
}

.warning h2 {
  max-width: 520px;
  font-size: clamp(2.8rem, 5vw, 4.6rem);
}

.warning ul {
  margin: 0;
  padding: 0;
  border-top: 1px solid #ffffff4d;
  list-style: none;
}

.warning li {
  position: relative;
  padding: 20px 0;
  border-bottom: 1px solid #ffffff4d;
  transition:
    padding-left 0.4s var(--ease-out),
    color 0.3s ease;
}

/* Barra dorada al pasar el cursor */
.warning li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 0;
  height: 2px;
  background: var(--gold);
  transform: translateY(-50%);
  transition: width 0.4s var(--ease-out);
}

.warning li:hover {
  padding-left: 28px;
}

.warning li:hover::before {
  width: 16px;
}

.warning-number {
  color: var(--gold);
  margin-right: 8px;
  font-size: 0.85em;
}

.warning .note {
  font-size: 0.9rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.72);
}

.note {
  grid-column: 1 / -1;
  margin: 0;
  color: #d4d0cc;
  font-size: 0.8rem;
}

/* ========================================
   Especialista
   ======================================== */

.specialist {
  display: grid;
  grid-template-columns: 0.85fr 1fr;
  align-items: center;
  gap: clamp(45px, 9vw, 160px);
  background: #f1e9df;
}

.portrait-stage {
  position: relative;
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
}

/* Anillo dorado que rodea la foto y gira */
.portrait-ring {
  position: absolute;
  inset: -22px;
  border: 1.5px dashed rgba(165, 138, 40, 0.55);
  border-radius: 50%;
  animation: spin 40s linear infinite;
}

.portrait-ring::before {
  content: "";
  position: absolute;
  top: 10%;
  right: 10%;
  width: 14px;
  height: 14px;
  border: 2px solid var(--gold);
  border-radius: 50%;
  background: #f1e9df;
}

.portrait-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(45, 43, 42, 0.12);
}

.portrait-wrap img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease-out);
}

.portrait-stage:hover .portrait-wrap img {
  transform: scale(1.04);
}

/* Sello circular */
.portrait-badge {
  position: absolute;
  left: -6px;
  bottom: 18px;
  display: grid;
  place-content: center;
  width: 104px;
  height: 104px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-family: "Playfair Display", serif;
  font-size: 0.95rem;
  font-style: italic;
  line-height: 1.05;
  text-align: center;
  box-shadow: 0 16px 34px rgba(45, 43, 42, 0.25);
  animation: float 6s ease-in-out infinite;
}

.portrait-badge span:nth-child(2) {
  color: var(--gold);
}

.specialist-copy h2 {
  font-size: clamp(2.8rem, 5vw, 4.8rem);
}

.specialist-copy .role {
  margin: 6px 0 28px;
  color: var(--ink);
  font-size: 1.15rem;
  font-weight: 600;
}

.specialist-copy > p:not(.role) {
  max-width: 450px;
  margin-bottom: 28px;
  font-size: 1.08rem;
}

/* ========================================
   Contacto y pie de página
   ======================================== */

.contact {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 80px;
}

.contact h2 {
  margin-bottom: 17px;
}

.contact p {
  max-width: 490px;
  margin-bottom: 28px;
  font-size: 1.05rem;
}

.contact address {
  display: grid;
  align-content: start;
  gap: 5px;
  padding: 10px 0 10px 35px;
  border-left: 2px solid var(--gold);
  font-style: normal;
}

.contact address strong {
  margin-top: 13px;
}

.contact address strong:first-child {
  margin-top: 0;
}

.contact address span,
.contact address a {
  color: var(--muted);
  text-decoration: none;
}

.contact address a {
  transition: color 0.25s ease;
}

.contact address a:hover {
  color: var(--gold-deep);
}

footer {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 32px clamp(24px, 8vw, 130px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.8rem;
}

footer img {
  width: 105px;
}

footer a {
  margin-left: auto;
  transition: color 0.25s ease;
}

footer a:hover {
  color: var(--gold-deep);
}

/* ========================================
   Botón flotante de WhatsApp
   ======================================== */

.whatsapp-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 30;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--ink);
  box-shadow: 0 14px 30px rgba(45, 43, 42, 0.28);
  opacity: 0;
  transform: translateY(20px) scale(0.9);
  pointer-events: none;
  transition:
    opacity 0.4s ease,
    transform 0.4s var(--ease-out),
    background 0.25s ease;
}

.whatsapp-float.is-visible {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.whatsapp-float:hover {
  background: #3f3937;
  transform: translateY(-3px);
}

.whatsapp-float svg {
  width: 26px;
  height: 26px;
  fill: var(--gold);
}

/* Anillo que late alrededor */
.whatsapp-float::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 2px solid var(--gold);
  border-radius: 50%;
  animation: pulse-ring 2.6s ease-out infinite;
}

@keyframes pulse-ring {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(1.6); opacity: 0; }
}

/* ========================================
   Diseño responsive
   ======================================== */

@media (max-width: 820px) {
  .site-header nav {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    padding-top: 55px;
  }

  .hero-visual {
    width: 100%;
    max-width: 550px;
    margin: 0 auto;
  }

  .hero-photo {
    margin-top: 20px;
  }

  .float-card-top {
    left: -10px;
  }

  .float-card-bottom {
    right: -10px;
  }

  .quick-facts {
    margin-top: 40px;
  }

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

  .service-grid article:nth-child(2) {
    border-right: 0;
  }

  .service-grid article:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .service-grid article:nth-child(3) {
    padding-left: 0;
  }

  .warning,
  .specialist,
  .contact {
    grid-template-columns: 1fr;
  }

  .section {
    padding-top: 75px;
    padding-bottom: 75px;
  }

  .portrait-stage {
    max-width: 380px;
  }

  .contact {
    gap: 40px;
  }
}

@media (max-width: 560px) {
  .site-header {
    padding: 10px 18px;
  }

  .brand img,
  .site-header.is-scrolled .brand img {
    width: 120px;
  }

  .site-header > .button {
    padding: 11px 16px;
    font-size: 0.78rem;
  }

  .button-small {
    padding: 10px;
    font-size: 0.7rem;
  }

  .hero {
    padding: 40px 24px;
  }

  .hero h1 {
    font-size: 2.6rem;
    margin-bottom: 24px;
  }

  .float-card {
    padding: 9px 14px 9px 9px;
    font-size: 0.72rem;
  }

  .float-card-top {
    top: -14px;
    left: -6px;
  }

  .float-card-bottom {
    right: -6px;
    bottom: -18px;
  }

  .float-icon {
    width: 32px;
    height: 32px;
  }

  .hero-photo::after {
    width: 100px;
    height: 100px;
    top: -35px;
    right: -30px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }

  .quick-facts {
    flex-direction: column;
    gap: 17px;
  }

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

  .service-grid article,
  .service-grid article + article {
    padding: 25px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .service-grid article:last-child {
    border-bottom: 0;
  }

  .service-card {
    min-height: auto;
  }

  .warning {
    gap: 27px;
  }

  .portrait-stage {
    max-width: 290px;
  }

  .portrait-badge {
    width: 84px;
    height: 84px;
    font-size: 0.8rem;
  }

  .contact address {
    padding-left: 22px;
  }

  footer {
    flex-wrap: wrap;
    gap: 13px;
  }

  footer p {
    order: 3;
    width: 100%;
  }

  .whatsapp-float {
    right: 16px;
    bottom: 16px;
    width: 52px;
    height: 52px;
  }
}

#servicios {
  scroll-margin-top: 70px;
}

#especialista {
  scroll-margin-top: 70px;
}

#contacto {
  scroll-margin-top: 20px;
}

/* ========================================
   Modal de agendamiento
   ======================================== */

.booking-trigger {
  font-family: inherit;
  cursor: pointer;
}

.booking-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.25s ease,
    visibility 0.25s ease;
}

.booking-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.booking-overlay {
  position: absolute;
  inset: 0;
  background: rgba(45, 43, 42, 0.68);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
}

.booking-dialog {
  position: relative;
  z-index: 2;
  width: min(1180px, 96vw);
  max-height: 94vh;
  overflow: hidden;
  background: var(--cream);
  border-radius: 26px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.24);
  transform: translateY(15px) scale(0.98);
  transition: transform 0.35s var(--ease-out);
}

.booking-modal.is-open .booking-dialog {
  transform: translateY(0) scale(1);
}

.booking-close {
  position: absolute;
  top: 20px;
  right: 22px;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--cream);
  color: var(--ink);
  font-family: inherit;
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
  transition:
    background 0.2s ease,
    transform 0.3s ease;
}

.booking-close:hover {
  background: var(--sand);
  transform: rotate(90deg);
}

.booking-heading {
  padding: 32px 80px 22px 38px;
  border-bottom: 1px solid var(--line);
}

.booking-heading h2 {
  max-width: 650px;
  margin: 0;
  font-family: "Playfair Display", serif;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.booking-heading > p:last-child {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.booking-calendar {
  width: 100%;
  background: #fff;
}

.booking-frame {
  display: block;
  width: 100%;
  height: min(680px, 70vh);
  border: 0;
}

body.booking-open {
  overflow: hidden;
}

@media (max-width: 700px) {
  .booking-modal {
    padding: 0;
    align-items: stretch;
  }

  .booking-dialog {
    width: 100%;
    height: 100dvh;
    max-height: none;
    border-radius: 0;
  }

  .booking-heading {
    padding: 25px 65px 18px 22px;
  }

  .booking-heading h2 {
    font-size: 1.8rem;
  }

  .booking-close {
    top: 16px;
    right: 16px;
  }

  .booking-frame {
    height: calc(100dvh - 155px);
  }
}

/* ========================================
   Accesibilidad: menos movimiento
   ======================================== */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .load-in,
  .is-loaded .reveal {
    opacity: 1;
    transform: none;
  }

  .highlight path {
    stroke-dashoffset: 0;
  }
}
