/* ============================================================
   VetJVL — vetjvl.css
   Landing: deep teal hero panel, light page, real clinic photos.
   Palette: #113A5D · #1F6F8B · #3CD3C1 · #C8FFF4 · #E9ECEF
   ============================================================ */

@font-face {
  font-family: 'Manrope';
  src: url('/public/fonts/Manrope-latin.woff2') format('woff2');
  font-weight: 400 800;
  font-display: swap;
}

:root {
  --azul: #113A5D;
  --azul-medio: #164c70;
  --teal: #1F6F8B;
  --menta: #3CD3C1;
  --menta-hondo: #2bbfae;
  --menta-clara: #C8FFF4;
  --gris: #E9ECEF;
  --gris-2: #f4f6f7;
  --linea: #d7dfe4;
  --tinta: #0d2a44;          /* ~14:1 on white */
  --tinta-2: #3b566d;        /* ~7.6:1 on white */
  --sobre-azul: #ffffff;
  --sobre-azul-2: #cfe7ef;   /* ~9:1 on #113A5D */
  --radio: 28px;
  --ancho: 1240px;
  --hueco: clamp(16px, 2.4vw, 24px);
  --curva: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; -webkit-text-size-adjust: 100%; }
body {
  background: var(--gris);
  color: var(--tinta);
  font: 400 1.0625rem/1.6 'Manrope', 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: .2em; }
::selection { background: var(--menta); color: var(--azul); }
:focus-visible { outline: 3px solid var(--menta); outline-offset: 3px; border-radius: 4px; }
html { scrollbar-color: #9fb3c2 var(--gris); }

.saltar { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--menta); color: var(--azul); padding: 10px 14px; font-weight: 800; border-radius: 8px; }
.saltar:focus { top: 12px; }

/* ── Buttons ─────────────────────────────────────────────── */
.boton {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 0 28px; border: 0; border-radius: 999px; cursor: pointer;
  font: 800 1.02rem/1 'Manrope', sans-serif; text-decoration: none; white-space: nowrap;
  transition: background-color .2s var(--curva), box-shadow .2s var(--curva), transform .2s var(--curva), color .2s;
}
.boton:active { transform: translateY(1px); }
.boton-menta { background: var(--menta); color: var(--azul); box-shadow: 0 10px 24px -12px rgba(60, 211, 193, .8); }
.boton-menta:hover { background: var(--menta-hondo); }
.boton-borde { background: #fff; color: var(--azul); box-shadow: inset 0 0 0 1.5px var(--linea); }
.boton-borde:hover { box-shadow: inset 0 0 0 1.5px var(--azul); }
.boton-claro { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px rgba(200, 255, 244, .6); }
.boton-claro:hover { background: rgba(255, 255, 255, .08); }
.boton-chico { min-height: 44px; padding: 0 22px; font-size: .95rem; }

/* ── Hero ────────────────────────────────────────────────── */
.hero { padding: var(--hueco); }
.hero-marco {
  position: relative; overflow: hidden;
  max-width: 1400px; margin: 0 auto;
  border-radius: var(--radio);
  background: linear-gradient(135deg, var(--azul) 0%, var(--azul-medio) 45%, var(--teal) 100%);
  color: var(--sobre-azul);
  box-shadow: 0 2px 6px rgba(13, 42, 68, .10), 0 26px 50px -18px rgba(13, 42, 68, .38), 0 60px 90px -44px rgba(13, 42, 68, .45);
}
.nav { display: flex; align-items: center; gap: 32px; padding: 20px clamp(20px, 3vw, 40px); }
.nav-marca { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.nav-marca { gap: 14px; }
.nav-marca img { height: 92px; width: auto; margin: -16px 0; } /* negative margin: bigger logo without a taller bar */
/* Wordmark as text: the logo file's navy "Vet" disappears on the navy hero */
.marca-texto { font-size: 2.6rem; font-weight: 800; letter-spacing: -.02em; line-height: 1; color: var(--sobre-azul); }
.marca-texto span { color: var(--menta); }
.nav-links { display: flex; gap: 6px; }
.nav-links a { color: var(--sobre-azul-2); text-decoration: none; font-weight: 700; font-size: .98rem; padding: 10px 12px; border-radius: 8px; transition: color .2s, background-color .2s; }
.nav-links a:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.nav-precios { display: none; color: #fff; font-weight: 700; text-decoration: none; padding: 10px; }
.nav .boton { margin-left: auto; }

.hero-cuerpo {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(28px, 4vw, 56px);
  padding: clamp(28px, 4vw, 56px) 0 0 clamp(20px, 4.5vw, 64px);
  align-items: start;
}
.hero-texto { padding-bottom: clamp(40px, 6vw, 80px); display: flex; flex-direction: column; gap: 24px; }
.hero h1 {
  font-size: clamp(2.6rem, 5vw, 4.4rem); line-height: 1.02; font-weight: 800; letter-spacing: -.035em;
  text-wrap: balance;
}
.hero-sub { font-size: clamp(1.05rem, 1.4vw, 1.25rem); color: var(--sobre-azul-2); max-width: 34rem; line-height: 1.55; }

.registro { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; max-width: 36rem; margin-top: 4px; }
.registro-etiqueta { font-weight: 700; font-size: .98rem; color: #fff; }
.registro-fila { display: flex; gap: 10px; flex-wrap: wrap; }
.registro-campo {
  flex: 1 1 280px; min-width: 0; display: flex; align-items: center; min-height: 54px;
  background: #fff; border-radius: 999px; padding: 0 18px 0 20px;
  box-shadow: inset 0 0 0 2px transparent; transition: box-shadow .2s;
}
.registro-campo:focus-within { box-shadow: inset 0 0 0 2px var(--menta); }
.registro-campo input {
  flex: 1; min-width: 0; width: 0; border: 0; outline: none; background: transparent; /* width:0 drops the input's intrinsic size so the row can shrink */
  font: 800 1.05rem/1 'Manrope', sans-serif; color: var(--tinta);
}
.registro-campo input::placeholder { color: #6b8193; font-weight: 600; }
.registro-sufijo { font-size: .88rem; font-weight: 600; color: var(--tinta-2); white-space: nowrap; }
.registro-estado { font-size: .95rem; color: var(--menta-clara); font-weight: 600; min-height: 1.6em; }
.registro-estado[data-tono="ok"] { color: var(--menta-clara); }
.registro-estado[data-tono="ok"]::before { content: '✓ '; }
.registro-estado[data-tono="error"] { color: #ffd2cc; }

.hero-visual { position: relative; align-self: stretch; min-height: 560px; }
.hero-foto {
  position: absolute; right: 0; top: 0; width: 88%; height: 78%;
  object-fit: cover; object-position: 50% 35%;
  border-radius: 22px 0 0 22px;
  box-shadow: -10px 18px 44px -14px rgba(4, 22, 40, .6);
}
.panel {
  position: absolute; left: 0; bottom: 0; width: min(520px, 82%);
  background: #fff; color: var(--tinta);
  border-radius: 18px 18px 0 0; padding: 20px 22px 16px;
  box-shadow: 0 -2px 6px rgba(4, 22, 40, .12), 0 -18px 54px -14px rgba(4, 22, 40, .7);
  display: grid; gap: 14px;
}
.panel-cabeza { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.panel-cabeza b { font-size: 1.08rem; font-weight: 800; }
.panel-cabeza span { font-size: .85rem; color: var(--tinta-2); }
.panel-cifras { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.panel-cifras div { border: 1px solid var(--linea); border-radius: 12px; padding: 10px 12px; display: grid; }
.panel-cifras span { font-size: .78rem; font-weight: 700; color: var(--tinta-2); line-height: 1.3; }
.panel-cifras b { font-size: 1.6rem; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.panel-cifras .cifra-oscura { background: var(--azul); border-color: var(--azul); }
.panel-cifras .cifra-oscura span { color: var(--menta-clara); }
.panel-cifras .cifra-oscura b { color: #fff; }
.panel-agenda { list-style: none; display: grid; gap: 4px; }
.panel-agenda li { display: grid; grid-template-columns: 56px 1fr; gap: 10px; font-size: .92rem; padding: 7px 10px; border-radius: 8px; }
.panel-agenda time { font-weight: 800; color: var(--teal); font-variant-numeric: tabular-nums; }
.panel-agenda .es-ahora { background: #e3faf6; }
.panel-agenda .es-ahora time { color: #0b6b5f; }
.panel figcaption, .nota-ejemplo { font-size: .74rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #5b7489; }

.aviso {
  position: absolute; left: 15%; top: 22px;
  display: flex; gap: 12px; align-items: center;
  background: #fff; color: var(--tinta); border-radius: 16px; padding: 12px 16px 12px 12px;
  box-shadow: 0 2px 6px rgba(4, 22, 40, .14), 0 22px 46px -14px rgba(4, 22, 40, .65);
  font-size: .9rem; line-height: 1.4;
  animation: asomar 1s var(--curva) .6s both;
}
.aviso b { display: block; }
.aviso-icono { width: 38px; height: 38px; border-radius: 12px; background: #dff5ea; color: #1f8f5a; display: grid; place-items: center; flex: none; }
@keyframes asomar { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ── Sections ────────────────────────────────────────────── */
.funciones, .precios, .cierre { max-width: var(--ancho); margin: 0 auto; padding: clamp(64px, 9vw, 112px) var(--hueco) 0; }
.titulo-seccion {
  font-size: clamp(2rem, 3.6vw, 3.1rem); line-height: 1.05; font-weight: 800; letter-spacing: -.03em;
  color: var(--azul); max-width: 20ch; text-wrap: balance;
}

.fila {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px);
  align-items: center; margin-top: clamp(40px, 6vw, 72px);
}
.fila > img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 24px; }
.fila-invertida > img { order: 2; }
.fila-texto { display: grid; gap: 16px; }
.fila-texto h3 { font-size: clamp(1.5rem, 2.4vw, 2.1rem); line-height: 1.12; font-weight: 800; letter-spacing: -.02em; color: var(--azul); text-wrap: balance; }
.fila-texto > p { color: var(--tinta-2); font-size: 1.08rem; max-width: 34rem; }

.ficha, .ticket { background: #fff; border-radius: 16px; padding: 16px 18px; display: grid; gap: 10px; max-width: 30rem; box-shadow: 0 1px 0 var(--linea); }
.ficha div, .ticket div { display: flex; justify-content: space-between; gap: 16px; font-size: .98rem; }
.ficha dt, .ticket dt { color: var(--tinta-2); font-weight: 600; }
.ficha dd, .ticket dd { font-weight: 800; text-align: right; font-variant-numeric: tabular-nums; }
.ticket .total { border-top: 1px dashed var(--linea); padding-top: 10px; }

.globo {
  position: relative; max-width: 30rem; background: #dff3e6; color: #0f2a1b;
  border-radius: 16px 16px 16px 4px; padding: 14px 16px 26px; font-size: 1rem; line-height: 1.5;
}
.globo time { position: absolute; right: 12px; bottom: 7px; font-size: .75rem; color: #3d6a50; }

.modulos { margin-top: clamp(48px, 6vw, 80px); background: #fff; border-radius: 24px; padding: clamp(22px, 3vw, 32px); display: grid; gap: 14px; }
.modulos p { font-weight: 800; color: var(--azul); }
.modulos ul { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; }
.modulos li { background: var(--gris-2); color: var(--tinta); font-weight: 700; font-size: .95rem; padding: 9px 16px; border-radius: 999px; }

/* ── Prices ──────────────────────────────────────────────── */
.precios-cabeza { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 18px; margin-bottom: 32px; }
.ciclo { display: inline-flex; gap: 4px; padding: 4px; background: #fff; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--linea); }
.ciclo-op { min-height: 44px; padding: 0 18px; border: 0; border-radius: 999px; background: transparent; color: var(--tinta-2); font: 700 .95rem 'Manrope', sans-serif; cursor: pointer; }
.ciclo-op[aria-pressed="true"] { background: var(--azul); color: #fff; }

.planes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.plan { position: relative; background: #fff; border-radius: 24px; padding: 30px 28px; display: flex; flex-direction: column; gap: 18px; }
.plan h3 { font-size: 1.35rem; font-weight: 800; color: var(--azul); }
.plan-precio { display: flex; align-items: baseline; gap: 6px; }
.plan-precio b { font-size: clamp(2.5rem, 3.6vw, 3.2rem); font-weight: 800; letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.plan-precio span { color: var(--tinta-2); font-weight: 700; }
.plan ul { list-style: none; display: grid; gap: 10px; color: var(--tinta); }
.plan li { display: flex; gap: 10px; align-items: baseline; }
.plan li::before { content: ''; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--menta); transform: translateY(-1px); }
.plan .boton { margin-top: auto; width: 100%; }
.plan-destacado { background: linear-gradient(160deg, var(--azul), var(--teal)); color: #fff; }
.plan-destacado h3, .plan-destacado ul { color: #fff; }
.plan-destacado .plan-precio span { color: var(--sobre-azul-2); }
.plan-sello { position: absolute; top: 18px; right: 18px; background: var(--menta); color: var(--azul); font-size: .8rem; font-weight: 800; padding: 6px 12px; border-radius: 999px; }

/* ── Depth: cards rest on the page like physical cards and lift on hover ──
   Layered navy-tinted shadow (contact + ambient). Hover only with a real pointer:
   plans lift the most (they invite a choice); example widgets lift subtly so they don't read as buttons. */
:root {
  --sombra-reposo: 0 1px 2px rgba(13, 42, 68, .06), 0 6px 14px -4px rgba(13, 42, 68, .10), 0 22px 40px -22px rgba(13, 42, 68, .32);
  --sombra-alzada: 0 2px 4px rgba(13, 42, 68, .06), 0 14px 26px -8px rgba(13, 42, 68, .16), 0 38px 60px -26px rgba(13, 42, 68, .42);
}
.plan, .ficha, .ticket, .globo, .modulos, .fila > img { box-shadow: var(--sombra-reposo); }
.plan-destacado { box-shadow: 0 2px 4px rgba(4, 22, 40, .10), 0 14px 30px -10px rgba(4, 22, 40, .35), 0 34px 60px -26px rgba(4, 22, 40, .55); }
.plan, .ficha, .ticket, .globo, .fila > img { transition: transform .45s var(--curva), box-shadow .45s var(--curva); }
@media (hover: hover) and (pointer: fine) {
  .plan:hover { transform: translateY(-8px); box-shadow: var(--sombra-alzada); }
  .plan-destacado:hover { box-shadow: 0 4px 8px rgba(4, 22, 40, .12), 0 22px 40px -12px rgba(4, 22, 40, .42), 0 48px 80px -30px rgba(4, 22, 40, .6); }
  .ficha:hover, .ticket:hover, .globo:hover, .fila > img:hover { transform: translateY(-4px); box-shadow: var(--sombra-alzada); }
}
.precios-nota { margin-top: 18px; color: var(--tinta-2); }

/* ── Close ───────────────────────────────────────────────── */
.cierre { padding-bottom: clamp(48px, 7vw, 88px); }
.cierre-caja {
  position: relative; overflow: hidden; border-radius: var(--radio);
  background:
    linear-gradient(90deg, rgba(17, 58, 93, .96) 0%, rgba(17, 58, 93, .9) 45%, rgba(17, 58, 93, .35) 100%),
    url('/public/img/landing/doctora-gata.webp?v=1') center 30% / cover no-repeat;
  color: #fff; padding: clamp(36px, 6vw, 72px);
  min-height: 380px; display: flex; align-items: center;
  box-shadow: 0 2px 6px rgba(13, 42, 68, .10), 0 26px 50px -18px rgba(13, 42, 68, .38), 0 60px 90px -44px rgba(13, 42, 68, .45);
}
.cierre-texto { max-width: 36rem; display: grid; gap: 18px; }
.cierre h2 { font-size: clamp(2.1rem, 4vw, 3.4rem); line-height: 1.04; font-weight: 800; letter-spacing: -.03em; }
.cierre p { color: var(--sobre-azul-2); font-size: 1.12rem; }
.cierre-acciones { display: flex; flex-wrap: wrap; gap: 12px; }

/* ── Footer ──────────────────────────────────────────────── */
.pie { position: relative; background: #fff; border-top: 1px solid var(--linea); box-shadow: 0 -18px 40px -24px rgba(13, 42, 68, .35); } /* lifts off the page like the cards */
.pie-cuerpo { max-width: var(--ancho); margin: 0 auto; padding: 28px var(--hueco) 12px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 28px; color: var(--tinta-2); }
.pie-cuerpo img { height: 56px; width: auto; }
.pie-cuerpo nav { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.pie a { color: var(--tinta); font-weight: 600; }
.pie a:hover { color: var(--teal); }
.pie-creditos { max-width: var(--ancho); margin: 0 auto; padding: 0 var(--hueco) 24px; font-size: .85rem; color: #56708a; }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 1000px) {
  .hero-cuerpo { grid-template-columns: minmax(0, 1fr); padding-right: clamp(20px, 4.5vw, 64px); }
  .hero-texto { padding-bottom: 0; }
  .hero-visual { min-height: 520px; margin-right: calc(-1 * clamp(20px, 4.5vw, 64px)); }
  .planes { grid-template-columns: 1fr; max-width: 520px; }
}
@media (max-width: 760px) {
  .nav { gap: 10px; }
  .nav-links { display: none; }
  .nav-precios { display: inline-block; margin-left: auto; }
  .nav .boton { margin-left: 0; }
  .fila, .fila-invertida { grid-template-columns: 1fr; }
  .fila-invertida > img { order: 0; }
  .registro-fila .boton { width: 100%; }
  .registro-sufijo { font-size: .78rem; }
  .hero-visual { min-height: 470px; }
  .hero-foto { width: 100%; height: 62%; border-radius: 18px 0 0 18px; }
  .panel { width: 94%; }
  .panel-cifras b { font-size: 1.3rem; }
  .aviso { left: auto; right: 12px; top: 14px; }
  .cierre-caja { background: linear-gradient(180deg, rgba(17, 58, 93, .94), rgba(17, 58, 93, .86)), url('/public/img/landing/doctora-gata.webp?v=1') center / cover no-repeat; }
  .cierre-acciones .boton { width: 100%; }
}
@media (max-width: 420px) {
  .nav-marca img { height: 56px; margin: -6px 0; }
  .marca-texto { font-size: 1.7rem; }
  .nav-precios { display: none; }
  .nav .boton { margin-left: auto; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .aviso { animation-duration: 1.6s; }  /* Windows Server reports reduce by default: keep it, slower */
}
