/* =====================================================================
   PATITAS VET · Base: identidad, tipografía y utilidades
   Colores tomados del logotipo oficial. El azul domina; el dorado es acento.
   ===================================================================== */

:root {
  /* Identidad (logotipo) */
  --azul: #729FC0;
  --azul-oscuro: #385D79;
  --oro: #A38C4C;
  --marfil: #F7F5F0;
  --blanco: #FFFFFF;
  --piedra: #D8D5CE;
  --carbon: #292D30;

  /* Derivados para profundidad y contraste accesible */
  --azul-profundo: #1E3446;   /* secciones oscuras */
  --azul-noche: #15222E;      /* portada y pie */
  --azul-tenue: #EAF1F6;      /* fondos de íconos */
  --oro-texto: #7E6A33;       /* dorado legible sobre fondos claros */
  --oro-claro: #C8B37A;       /* dorado legible sobre fondos oscuros */
  --texto: #3A3F44;
  --texto-suave: #5B6167;
  --linea: #E6E2D9;

  /* Tipografía */
  --f-titulo: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --f-sub: 'Montserrat', 'Segoe UI', system-ui, sans-serif;
  --f-texto: 'Lato', 'Segoe UI', system-ui, sans-serif;

  /* Forma y profundidad */
  --radio-s: 10px;
  --radio: 16px;
  --radio-l: 24px;
  --sombra-s: 0 1px 2px rgba(21, 34, 46, .05), 0 6px 18px rgba(21, 34, 46, .06);
  --sombra: 0 2px 6px rgba(21, 34, 46, .06), 0 18px 40px rgba(21, 34, 46, .10);
  --sombra-l: 0 4px 10px rgba(21, 34, 46, .08), 0 30px 60px rgba(21, 34, 46, .16);

  /* Ritmo */
  --ancho: 1220px;
  --gutter: clamp(16px, 4vw, 40px);
  --espacio-seccion: clamp(72px, 10vw, 128px);
  --alto-encabezado: 96px;
  --suave: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--alto-encabezado) - 8px); }
body {
  margin: 0;
  background: var(--blanco);
  color: var(--texto);
  font-family: var(--f-texto);
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--azul-oscuro); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--azul-profundo); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }
h1, h2, h3, h4 { margin: 0; color: var(--carbon); font-weight: 500; line-height: 1.15; }
p { margin: 0; }
[hidden] { display: none !important; }
::selection { background: var(--azul); color: var(--blanco); }

:focus-visible { outline: 2px solid var(--azul-oscuro); outline-offset: 3px; border-radius: 4px; }
.seccion--oscura :focus-visible, .hero :focus-visible, .atencion :focus-visible { outline-color: var(--oro-claro); }

/* ---------- Tipografía ---------- */
h1, h2 { font-family: var(--f-titulo); letter-spacing: -.01em; text-wrap: balance; }
h2 { font-size: clamp(2rem, 3.4vw, 3rem); }
h3 { font-family: var(--f-sub); font-weight: 600; font-size: 1.05rem; letter-spacing: .01em; }
h2 em, h1 em { font-style: italic; font-weight: 400; }

.ceja {
  display: inline-flex; align-items: center; gap: .7em;
  font-family: var(--f-sub); font-weight: 600; font-size: .74rem;
  letter-spacing: .24em; text-transform: uppercase; color: var(--oro-texto);
  margin-bottom: 1.1rem;
}
.ceja::before { content: ''; width: 28px; height: 1px; background: currentColor; opacity: .8; }
.ceja--claro { color: var(--oro-claro); }

.entradilla { font-size: 1.15rem; color: var(--texto); }

/* ---------- Layout ---------- */
.contenedor { width: 100%; max-width: calc(var(--ancho) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.seccion { position: relative; padding-block: var(--espacio-seccion); overflow: hidden; }
.seccion--marfil { background: var(--marfil); }
.seccion--oscura { background: var(--azul-profundo); color: rgba(255, 255, 255, .82); }
.seccion--oscura h2, .seccion--oscura h3 { color: var(--blanco); }

.cabecera-seccion { max-width: 720px; margin: 0 auto clamp(40px, 6vw, 64px); text-align: center; }
.cabecera-seccion .ceja::after { content: ''; width: 28px; height: 1px; background: currentColor; opacity: .8; }
.cabecera-seccion > p:last-child { color: var(--texto-suave); font-size: 1.1rem; }
.cabecera-seccion--claro > p:last-child { color: rgba(255, 255, 255, .75); }

/* Mármol muy discreto (fotografía real a baja intensidad) */
.marmol { position: relative; background-color: var(--marfil); isolation: isolate; }
.marmol::before {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: url('https://images.unsplash.com/photo-1566041510394-cf7c8fe21800?auto=format&fit=crop&w=1600&q=55') center / cover;
  opacity: .35;
}

/* ---------- Motivo del corazón ---------- */
.divisor { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 1.3rem 0 1.4rem; color: var(--oro); }
.divisor::before, .divisor::after { content: ''; height: 1px; width: 56px; background: linear-gradient(90deg, transparent, currentColor); }
.divisor::after { background: linear-gradient(270deg, transparent, currentColor); }
.divisor svg { width: 22px; height: 20px; stroke-width: 1.4; }
.divisor--claro { color: var(--oro-claro); }
.nosotros__texto .divisor { justify-content: flex-start; }
.nosotros__texto .divisor::before { display: none; }

.fondo-corazon {
  position: absolute; pointer-events: none; z-index: 0;
  width: min(760px, 90vw); height: auto; aspect-ratio: 100 / 92;
  left: -14%; top: 8%; color: var(--azul); opacity: .14; stroke-width: 1.2;
}
.fondo-corazon--derecha { left: auto; right: -12%; top: 12%; }
.fondo-corazon--suave { color: var(--azul); opacity: .16; left: auto; right: -16%; top: -6%; }

.detalle-corazon {
  position: absolute; top: 18px; right: 18px; width: 30px; height: 28px;
  color: var(--oro); opacity: .45; stroke-width: 1.3; transition: color .4s var(--suave), opacity .4s var(--suave), transform .5s var(--suave);
}

/* ---------- Botones ---------- */
.boton {
  --b-fondo: var(--azul-oscuro); --b-texto: var(--blanco); --b-borde: var(--azul-oscuro);
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 50px; padding: .85em 1.7em;
  font-family: var(--f-sub); font-weight: 600; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase;
  text-decoration: none; line-height: 1.2; text-align: center;
  color: var(--b-texto); background: var(--b-fondo); border: 1px solid var(--b-borde); border-radius: 999px;
  transition: background .3s var(--suave), color .3s var(--suave), border-color .3s var(--suave), transform .3s var(--suave), box-shadow .3s var(--suave);
}
.boton svg { width: 18px; height: 18px; flex: none; }
.boton:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(21, 34, 46, .18); color: var(--b-texto); }
.boton:active { transform: translateY(0); }
.boton--primario:hover { --b-fondo: var(--azul-profundo); --b-borde: var(--azul-profundo); }
.boton--oro { --b-fondo: var(--oro-claro); --b-texto: var(--azul-noche); --b-borde: var(--oro-claro); }
.boton--oro:hover { --b-fondo: #D6C390; --b-borde: #D6C390; }
.boton--contorno { --b-fondo: transparent; --b-texto: var(--azul-oscuro); --b-borde: var(--azul-oscuro); }
.boton--contorno:hover { --b-fondo: var(--azul-oscuro); --b-texto: var(--blanco); }
.boton--contorno-claro { --b-fondo: transparent; --b-texto: var(--blanco); --b-borde: rgba(255, 255, 255, .55); }
.boton--contorno-claro:hover { --b-fondo: var(--blanco); --b-texto: var(--azul-noche); --b-borde: var(--blanco); }
.boton--whatsapp { --b-fondo: #1A7F4F; --b-texto: var(--blanco); --b-borde: #1A7F4F; }
.boton--whatsapp:hover { --b-fondo: #146640; --b-borde: #146640; }
.boton--bloque { width: 100%; }
.boton--texto {
  min-height: 0; padding: 0; background: none; border: 0; border-radius: 0; color: var(--azul-oscuro);
  letter-spacing: .12em; gap: .5em;
}
.boton--texto:hover { transform: none; box-shadow: none; color: var(--azul-profundo); }
.boton--texto svg { transition: transform .3s var(--suave); }
.boton--texto:hover svg { transform: translateX(4px); }

/* ---------- Estado «por confirmar» (solo vista previa) ---------- */
.pendiente {
  display: inline-flex; align-items: center; gap: .4em;
  font-family: var(--f-sub); font-size: .64rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--oro-texto); background: rgba(255, 255, 255, .92); border: 1px dashed var(--oro);
  padding: .35em .8em; border-radius: 999px; line-height: 1.2; white-space: nowrap;
}
.pendiente--oscuro { color: var(--oro-claro); background: rgba(21, 34, 46, .6); border-color: var(--oro-claro); }
.texto-pendiente { color: var(--texto-suave); font-style: italic; }
.sin-configurar { cursor: help; }

/* ---------- Animaciones de entrada ---------- */
.js .revelar { opacity: 0; transform: translateY(22px); transition: opacity .9s var(--suave), transform .9s var(--suave); }
.js .revelar.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js .revelar { opacity: 1; transform: none; }
}

/* ---------- Utilidades ---------- */
.saltar {
  position: fixed; left: 16px; top: -100px; z-index: 1000; padding: .7em 1.2em; border-radius: 8px;
  background: var(--azul-noche); color: var(--blanco); font-family: var(--f-sub); font-weight: 600; text-decoration: none;
}
.saltar:focus { top: 16px; color: var(--blanco); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
