/* =====================================================================
   VetVision · Sistema visual
   Mobile-first. Probado mentalmente contra Safari iOS y Chrome Android:
   - alturas con svh (con fallback) para que la barra del navegador no corte el hero
   - inputs de 16px para que iOS no haga zoom
   - safe-area para el notch y la barra de gestos
   ===================================================================== */

:root {
  --navy: #14234b;
  --navy-2: #1f356d;
  --ink: #1a2238;
  --muted: #5d6784;
  --line: #e7e2da;
  --cream: #fff9f2;
  --sand: #f7efe5;
  --white: #ffffff;

  --iris: #12b5a5;
  --iris-deep: #0b8f84;
  --iris-soft: #dcf6f2;
  --sky: #3d6bff;
  --sky-soft: #e3eaff;
  --sun: #ffb547;
  --sun-soft: #fff0d6;
  --coral: #ff6b5b;
  --coral-soft: #ffe4e0;
  --success: #12a36b;
  --danger: #e0453a;

  --grad-iris: linear-gradient(135deg, #12b5a5 0%, #3d6bff 100%);
  --grad-warm: linear-gradient(135deg, #ffb547 0%, #ff6b5b 100%);

  --font-display: 'Bricolage Grotesque', 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-body: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 28px;
  --r-xl: 40px;
  --shadow-sm: 0 2px 8px rgba(20, 35, 75, 0.06);
  --shadow-md: 0 12px 32px -12px rgba(20, 35, 75, 0.18);
  --shadow-lg: 0 30px 60px -25px rgba(20, 35, 75, 0.35);

  --gutter: 16px;
  --header-h: 64px;
  --maxw: 1200px;
  --safe-b: env(safe-area-inset-bottom, 0px);
}

@media (min-width: 768px) {
  :root { --gutter: 28px; --header-h: 76px; }
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--cream);
  overflow-x: hidden;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

main { flex: 1 0 auto; }
[hidden] { display: none !important; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--navy);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2rem, 6.5vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 4.5vw, 2.5rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }

.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;
}

:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 6px; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--iris-deep);
}
.eyebrow::before { content: ''; width: 18px; height: 2px; border-radius: 2px; background: currentColor; }

.text-grad {
  background: var(--grad-iris);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

.lead { font-size: 1.08rem; color: var(--muted); max-width: 60ch; }

/* ---------- Iconos (Lucide) ---------- */
[data-lucide], .lucide { width: 1.25em; height: 1.25em; stroke-width: 2; flex: none; }

/* ---------- Botones ---------- */
.btn {
  --btn-bg: var(--navy); --btn-fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px;
  border: 0; border-radius: 999px;
  background: var(--btn-bg); color: var(--btn-fg);
  font-weight: 700; font-size: 0.98rem; text-decoration: none; white-space: nowrap;
  cursor: pointer; touch-action: manipulation;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(0); }
.btn[disabled] { opacity: 0.55; pointer-events: none; }
.btn-iris { --btn-bg: var(--iris); }
.btn-grad { background: var(--grad-iris); }
.btn-warm { background: var(--grad-warm); }
.btn-light { --btn-bg: #fff; --btn-fg: var(--navy); }
.btn-ghost { --btn-bg: transparent; --btn-fg: var(--navy); box-shadow: inset 0 0 0 2px var(--line); }
.btn-ghost:hover { box-shadow: inset 0 0 0 2px var(--navy); }
.btn-whatsapp { --btn-bg: #25d366; --btn-fg: #08351c; }
.btn-danger { --btn-bg: var(--danger); }
.btn-sm { min-height: 38px; padding: 0 14px; font-size: 0.88rem; gap: 6px; }
.btn-block { width: 100%; }
.btn-icon { width: 44px; min-height: 44px; padding: 0; }

/* ---------- Marca ---------- */
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 44px; height: 44px; }
.brand-word {
  font-family: var(--font-display); font-weight: 800; font-size: 1.45rem; letter-spacing: -0.03em;
  color: var(--navy); line-height: 1;
}
.brand-word b { font-weight: 800; }
.brand-word small {
  display: block; margin-top: 3px;
  font-family: var(--font-body); font-size: 0.62rem; font-weight: 700;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted);
}
@media (min-width: 768px) { .brand img { width: 50px; height: 50px; } .brand-word { font-size: 1.6rem; } }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 249, 242, 0.88);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid rgba(20, 35, 75, 0.06);
  padding-top: env(safe-area-inset-top, 0px);
}
.site-header .bar { display: flex; align-items: center; gap: 16px; height: var(--header-h); }
.main-nav { display: none; margin-left: auto; gap: 4px; }
.main-nav a {
  padding: 10px 14px; border-radius: 999px; text-decoration: none;
  font-weight: 600; font-size: 0.95rem; color: var(--muted);
  transition: background 0.15s, color 0.15s;
}
.main-nav a:hover { color: var(--navy); background: rgba(20, 35, 75, 0.05); }
.main-nav a[aria-current='page'] { color: #fff; background: var(--navy); }
.header-actions { display: none; gap: 10px; align-items: center; }
.menu-btn {
  margin-left: auto; width: 46px; height: 46px; border-radius: 14px; border: 0;
  background: var(--navy); color: #fff; display: grid; place-items: center; cursor: pointer;
}
@media (min-width: 1080px) {
  .main-nav, .header-actions { display: flex; }
  .main-nav { margin-left: auto; }
  .menu-btn { display: none; }
}

/* Menú móvil: hoja a pantalla completa */
.mobile-menu {
  position: fixed; inset: 0; z-index: 60;
  background: var(--navy); color: #fff;
  display: flex; flex-direction: column;
  padding: calc(env(safe-area-inset-top, 0px) + 14px) var(--gutter) calc(var(--safe-b) + 20px);
  transform: translateY(-100%); visibility: hidden;
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), visibility 0.35s;
  overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain;
}
.mobile-menu.open { transform: none; visibility: visible; }
.mobile-menu .top { display: flex; align-items: center; justify-content: space-between; height: 50px; }
.mobile-menu .brand-word { color: #fff; }
.mobile-menu .brand-word small { color: rgba(255, 255, 255, 0.6); }
.mobile-menu nav { display: grid; gap: 4px; margin: 28px 0; }
.mobile-menu nav a {
  display: flex; align-items: center; gap: 14px; padding: 14px 6px;
  font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.mobile-menu nav a[aria-current='page'] { color: var(--sun); }
.mobile-menu nav a svg { color: var(--iris); }
.mobile-menu .actions { display: grid; gap: 10px; margin-top: auto; }
.close-btn {
  width: 46px; height: 46px; border-radius: 14px; border: 0; cursor: pointer;
  background: rgba(255, 255, 255, 0.1); color: #fff; display: grid; place-items: center;
}
body.menu-open { overflow: hidden; }

/* Barra fija inferior en celulares (CTA siempre visible) */
.mobile-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
  padding: 10px var(--gutter) calc(10px + var(--safe-b));
  background: rgba(255, 255, 255, 0.94);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
}
.mobile-cta .btn { min-height: 46px; font-size: 0.92rem; padding: 0 12px; }
body.has-mobile-cta { padding-bottom: calc(68px + var(--safe-b)); }
@media (min-width: 1080px) {
  .mobile-cta { display: none; }
  body.has-mobile-cta { padding-bottom: 0; }
}

/* ---------- Hero carrusel ---------- */
.hero { padding: 12px 0 0; }
@media (min-width: 768px) { .hero { padding-top: 22px; } }

.carousel {
  position: relative; overflow: hidden; isolation: isolate;
  border-radius: var(--r-lg);
  background: var(--navy);
  height: 78vh; height: 78svh;
  min-height: 480px; max-height: 720px;
  box-shadow: var(--shadow-lg);
  touch-action: pan-y;
}
@media (min-width: 768px) { .carousel { border-radius: var(--r-xl); height: 72vh; height: 72svh; min-height: 520px; } }

.slide {
  position: absolute; inset: 0;
  opacity: 0; visibility: hidden;
  transition: opacity 0.9s ease, visibility 0.9s;
}
.slide.active { opacity: 1; visibility: visible; z-index: 1; }
.slide img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.08);
  transition: transform 7s ease-out;
}
.slide.active img { transform: scale(1); }
.slide::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10, 18, 40, 0) 25%, rgba(10, 18, 40, 0.82) 100%);
}
@media (min-width: 900px) {
  .slide::after { background: linear-gradient(90deg, rgba(10, 18, 40, 0.86) 0%, rgba(10, 18, 40, 0.45) 45%, rgba(10, 18, 40, 0) 75%); }
}

.slide-content {
  position: absolute; z-index: 2; left: 0; right: 0; bottom: 0;
  padding: 0 22px 78px; color: #fff;
}
@media (min-width: 900px) {
  .slide-content { top: 0; bottom: 0; display: flex; flex-direction: column; justify-content: center; padding: 0 64px; max-width: 640px; }
}
.slide-content h1, .slide-content h2 { color: #fff; font-size: clamp(2rem, 7.5vw, 3.8rem); margin-bottom: 0.35em; }
.slide-content p { font-size: clamp(1rem, 2.8vw, 1.18rem); color: rgba(255, 255, 255, 0.86); max-width: 46ch; }
.slide-tag {
  display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; width: fit-content;
  padding: 7px 14px; margin-bottom: 14px; border-radius: 999px;
  font-size: 0.78rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
  background: var(--accent, var(--iris)); color: var(--accent-fg, #fff);
}
.slide[data-accent='iris'] { --accent: var(--iris); }
.slide[data-accent='sun'] { --accent: var(--sun); --accent-fg: var(--navy); }
.slide[data-accent='coral'] { --accent: var(--coral); }
.slide[data-accent='sky'] { --accent: var(--sky); }
.slide[data-accent='navy'] { --accent: #fff; --accent-fg: var(--navy); }
.slide-content .btn { margin-top: 6px; }
.slide-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* Indicadores tipo "historias" */
.carousel-progress {
  position: absolute; z-index: 3; left: 22px; right: 22px; bottom: 26px;
  display: flex; gap: 6px;
}
@media (min-width: 900px) { .carousel-progress { left: 64px; right: auto; width: 320px; bottom: 40px; } }
.carousel-progress button {
  flex: 1; height: 22px; padding: 0; border: 0; background: transparent; cursor: pointer;
  display: flex; align-items: center;
}
.carousel-progress span {
  display: block; width: 100%; height: 4px; border-radius: 4px; overflow: hidden;
  background: rgba(255, 255, 255, 0.3);
}
.carousel-progress span::after {
  content: ''; display: block; height: 100%; width: 0; background: #fff; border-radius: 4px;
}
.carousel-progress button.done span::after { width: 100%; }
.carousel-progress button.active span::after { animation: fill var(--slide-ms, 6000ms) linear forwards; }
.carousel.paused .carousel-progress button.active span::after { animation-play-state: paused; }
@keyframes fill { from { width: 0; } to { width: 100%; } }

.carousel-arrows { display: none; position: absolute; z-index: 3; right: 32px; bottom: 28px; gap: 10px; }
@media (min-width: 900px) { .carousel-arrows { display: flex; } }
.carousel-arrows button {
  width: 52px; height: 52px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255, 255, 255, 0.16); color: #fff;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  display: grid; place-items: center; transition: background 0.2s;
}
.carousel-arrows button:hover { background: rgba(255, 255, 255, 0.3); }

/* Sello circular de marca sobre el hero */
.hero-seal {
  display: none; position: absolute; z-index: 3; top: 28px; right: 28px;
  width: 128px; height: 128px;
}
@media (min-width: 900px) { .hero-seal { display: block; } }
.hero-seal svg.ring { width: 100%; height: 100%; animation: spin 22s linear infinite; }
.hero-seal img { position: absolute; inset: 30px; width: 68px; height: 68px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Secciones ---------- */
.section { padding: 56px 0; }
@media (min-width: 768px) { .section { padding: 84px 0; } }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.section-head h2 { margin: 6px 0 0; max-width: 18ch; }

/* Encabezado de páginas interiores (corto, colorido) */
.page-hero { padding: 26px 0 8px; }
@media (min-width: 768px) { .page-hero { padding: 48px 0 12px; } }
.page-hero-card {
  position: relative; overflow: hidden;
  border-radius: var(--r-lg); padding: 30px 22px;
  background: var(--navy); color: #fff;
  display: grid; gap: 18px;
}
@media (min-width: 768px) { .page-hero-card { padding: 48px; grid-template-columns: 1.3fr 1fr; align-items: center; border-radius: var(--r-xl); } }
.page-hero-card h1 { color: #fff; margin: 8px 0 10px; }
.page-hero-card p { color: rgba(255, 255, 255, 0.8); margin: 0; max-width: 52ch; }
.page-hero-card .eyebrow { color: var(--sun); }
.page-hero-card .art {
  position: relative; height: 180px; border-radius: var(--r-md); overflow: hidden;
}
@media (min-width: 768px) { .page-hero-card .art { height: 240px; } }
.page-hero-card .art img { width: 100%; height: 100%; object-fit: cover; }
.page-hero-card::before {
  content: ''; position: absolute; width: 420px; height: 420px; right: -160px; top: -200px;
  border-radius: 50%; background: radial-gradient(circle, rgba(18, 181, 165, 0.55), transparent 65%);
  pointer-events: none;
}
.page-hero-card > * { position: relative; }

/* Lente: máscara en forma de ojo (almendra) para fotos */
.lens {
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 60' preserveAspectRatio='none'%3E%3Cpath d='M0 30C18 -10 82 -10 100 30C82 70 18 70 0 30Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 60' preserveAspectRatio='none'%3E%3Cpath d='M0 30C18 -10 82 -10 100 30C82 70 18 70 0 30Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}

/* ---------- Accesos rápidos (home) ---------- */
.quick-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 18px; }
@media (min-width: 900px) { .quick-grid { grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 26px; } }
.quick {
  position: relative; overflow: hidden; text-decoration: none;
  border-radius: var(--r-md); padding: 18px 16px 16px; min-height: 150px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 18px;
  background: var(--qbg); color: var(--qfg, var(--navy));
  transition: transform 0.2s, box-shadow 0.2s;
}
@media (min-width: 768px) { .quick { min-height: 190px; padding: 24px; border-radius: var(--r-lg); } }
.quick:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.quick .ic { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: rgba(255, 255, 255, 0.55); }
.quick h3 { color: inherit; font-size: 1.08rem; margin: 0 0 4px; }
.quick p { margin: 0; font-size: 0.88rem; opacity: 0.8; display: none; }
@media (min-width: 768px) { .quick h3 { font-size: 1.3rem; } .quick p { display: block; } }
.quick .go { position: absolute; top: 16px; right: 16px; opacity: 0.6; }
.q-iris { --qbg: var(--iris-soft); --qfg: #075e57; }
.q-sun { --qbg: var(--sun-soft); --qfg: #7a4a00; }
.q-coral { --qbg: var(--coral-soft); --qfg: #8a2219; }
.q-sky { --qbg: var(--sky-soft); --qfg: #1b3a9b; }
.q-navy { --qbg: var(--navy); --qfg: #fff; }
.q-navy .ic { background: rgba(255, 255, 255, 0.12); }

/* ---------- Cinta en movimiento ---------- */
.ticker {
  overflow: hidden; background: var(--navy); color: #fff;
  padding: 16px 0; margin: 48px 0 0; transform: rotate(-1.2deg) scale(1.02);
}
.ticker-track { display: flex; gap: 36px; width: max-content; animation: ticker 38s linear infinite; }
.ticker-track span {
  display: inline-flex; align-items: center; gap: 12px; white-space: nowrap;
  font-family: var(--font-display); font-weight: 700; font-size: 1.15rem;
}
.ticker-track span::after { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--sun); margin-left: 24px; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- Bento (home) ---------- */
.bento { display: grid; gap: 14px; }
@media (min-width: 900px) { .bento { grid-template-columns: 1.1fr 1fr; gap: 20px; } }
.tile { position: relative; overflow: hidden; border-radius: var(--r-lg); padding: 26px; background: #fff; box-shadow: var(--shadow-sm); }
@media (min-width: 768px) { .tile { padding: 36px; } }

.tile-vet { background: var(--sand); display: grid; gap: 20px; }
@media (min-width: 600px) { .tile-vet { grid-template-columns: 200px 1fr; align-items: center; } }
.tile-vet .photo { position: relative; width: 100%; max-width: 260px; aspect-ratio: 1; margin: 0 auto; }
.tile-vet .photo img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; border: 6px solid #fff; box-shadow: var(--shadow-md); }
.tile-vet .photo::after {
  content: ''; position: absolute; inset: -10px; border-radius: 50%;
  border: 3px dashed var(--iris); animation: spin 40s linear infinite;
}
.tile-vet h3 { font-size: 1.5rem; margin-bottom: 6px; }
.tile-vet .role { font-weight: 700; color: var(--iris-deep); font-size: 0.92rem; margin-bottom: 10px; }

.tile-app { background: var(--grad-iris); color: #fff; display: grid; gap: 22px; }
@media (min-width: 600px) { .tile-app { grid-template-columns: 1fr 190px; align-items: center; } }
.tile-app h3 { color: #fff; font-size: 1.5rem; }
.tile-app ul { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 8px; }
.tile-app li { display: flex; gap: 10px; align-items: center; font-weight: 600; }

/* Mini teléfono hecho con CSS */
.phone {
  justify-self: center; width: 180px; aspect-ratio: 9 / 18;
  border-radius: 30px; padding: 10px; background: var(--navy);
  box-shadow: 0 30px 50px -20px rgba(0, 0, 0, 0.45);
  transform: rotate(6deg);
}
.phone .screen { height: 100%; border-radius: 22px; background: var(--cream); padding: 14px 10px; display: grid; gap: 8px; align-content: start; color: var(--ink); }
.phone .pill { height: 6px; width: 50px; border-radius: 6px; background: var(--line); margin: 0 auto 6px; }
.phone .pet { display: flex; gap: 8px; align-items: center; background: #fff; border-radius: 12px; padding: 8px; font-size: 0.72rem; font-weight: 700; }
.phone .pet img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; }
.phone .alert { font-size: 0.66rem; font-weight: 700; border-radius: 10px; padding: 8px; }
.phone .a-sun { background: var(--sun-soft); color: #7a4a00; }
.phone .a-iris { background: var(--iris-soft); color: #075e57; }
.phone .a-coral { background: var(--coral-soft); color: #8a2219; }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative; overflow: hidden; border-radius: var(--r-lg);
  background: var(--navy); color: #fff; padding: 30px 22px;
  display: grid; gap: 18px; align-items: center;
}
@media (min-width: 768px) { .cta-band { grid-template-columns: 1fr auto; padding: 44px 48px; border-radius: var(--r-xl); } }
.cta-band h2 { color: #fff; margin-bottom: 6px; }
.cta-band p { color: rgba(255, 255, 255, 0.78); margin: 0; }
.cta-band .actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cta-band::after {
  content: ''; position: absolute; right: -60px; bottom: -120px; width: 300px; height: 300px;
  border-radius: 50%; background: var(--grad-warm); opacity: 0.35; filter: blur(10px);
}
.cta-band > * { position: relative; z-index: 1; }

/* ---------- Pestañas (servicios / portal) ---------- */
.tabs {
  position: relative; display: flex; gap: 8px; overflow-x: auto; -webkit-overflow-scrolling: touch;
  padding: 4px 2px 10px; margin: 0 calc(var(--gutter) * -1); padding-left: var(--gutter); padding-right: var(--gutter);
  scrollbar-width: none; scroll-snap-type: x proximity;
}
.tabs::-webkit-scrollbar { display: none; }
@media (min-width: 900px) { .tabs { flex-wrap: wrap; margin: 0; padding-left: 0; padding-right: 0; overflow: visible; } }
.tab {
  scroll-snap-align: start; flex: none;
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 0 18px; border-radius: 999px; border: 0; cursor: pointer;
  background: #fff; color: var(--muted); font-weight: 700; font-size: 0.94rem;
  box-shadow: inset 0 0 0 1.5px var(--line);
  transition: background 0.15s, color 0.15s, box-shadow 0.15s;
}
.tab:hover { color: var(--navy); }
.tab[aria-selected='true'] { background: var(--navy); color: #fff; box-shadow: none; }
.tab-panel[hidden] { display: none; }
.tab-panel { animation: rise 0.35s ease both; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---------- Tarjetas de servicio ---------- */
.cat-intro {
  display: flex; gap: 16px; align-items: center; margin: 14px 0 20px; padding: 18px 20px;
  border-radius: var(--r-md); background: var(--cbg, var(--iris-soft)); color: var(--cfg, #075e57);
}
.cat-intro .ic { width: 48px; height: 48px; border-radius: 14px; background: rgba(255, 255, 255, 0.6); display: grid; place-items: center; flex: none; }
.cat-intro p { margin: 0; font-weight: 600; }
.c-iris { --cbg: var(--iris-soft); --cfg: #075e57; }
.c-sun { --cbg: var(--sun-soft); --cfg: #7a4a00; }
.c-coral { --cbg: var(--coral-soft); --cfg: #8a2219; }
.c-sky { --cbg: var(--sky-soft); --cfg: #1b3a9b; }

.svc-grid { display: grid; gap: 12px; }
@media (min-width: 640px) { .svc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .svc-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; } }
.svc {
  position: relative; display: flex; flex-direction: column; gap: 10px;
  padding: 20px; border-radius: var(--r-md); background: #fff;
  box-shadow: var(--shadow-sm); border: 1px solid rgba(20, 35, 75, 0.05);
  transition: transform 0.2s, box-shadow 0.2s;
}
.svc:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.svc .head { display: flex; align-items: center; gap: 12px; }
.svc .ic { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; background: var(--cbg, var(--iris-soft)); color: var(--cfg, var(--iris-deep)); flex: none; }
.svc h3 { margin: 0; font-size: 1.05rem; }
.svc p { margin: 0; color: var(--muted); font-size: 0.93rem; flex: 1; }
.svc .meta { display: flex; flex-wrap: wrap; gap: 6px; }
.svc .foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 4px; }
.svc .price { font-weight: 800; color: var(--navy); font-size: 0.92rem; }
.svc .price small { display: block; font-weight: 600; color: var(--muted); font-size: 0.75rem; }
.badge {
  display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 999px;
  font-size: 0.72rem; font-weight: 800; letter-spacing: 0.02em;
  background: var(--sand); color: var(--navy);
}
.badge-hot { position: absolute; top: -10px; right: 14px; background: var(--grad-warm); color: #fff; box-shadow: var(--shadow-sm); }
.b-iris { background: var(--iris-soft); color: #075e57; }
.b-sun { background: var(--sun-soft); color: #7a4a00; }
.b-coral { background: var(--coral-soft); color: #8a2219; }
.b-sky { background: var(--sky-soft); color: #1b3a9b; }
.b-gray { background: #eef0f4; color: var(--muted); }
.b-ok { background: #ddf5ea; color: #0b6b45; }

/* ---------- Paquetes ---------- */
.pkg-grid { display: grid; gap: 16px; }
@media (min-width: 700px) { .pkg-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1050px) { .pkg-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.pkg {
  position: relative; display: flex; flex-direction: column; gap: 14px;
  padding: 24px; border-radius: var(--r-lg); background: #fff; box-shadow: var(--shadow-sm);
  border-top: 8px solid var(--pc, var(--iris));
}
.pkg.featured { background: var(--navy); color: #fff; box-shadow: var(--shadow-lg); }
.pkg.featured h3 { color: #fff; }
.pkg.featured .summary, .pkg.featured li { color: rgba(255, 255, 255, 0.85); }
.pkg .top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.pkg .ic { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; background: var(--pcs, var(--iris-soft)); color: var(--pc, var(--iris)); }
.pkg h3 { font-size: 1.45rem; margin: 0; }
.pkg .summary { color: var(--muted); margin: 0; }
.pkg ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; flex: 1; }
.pkg li { display: flex; gap: 10px; align-items: flex-start; font-size: 0.95rem; }
.pkg li svg { color: var(--pc, var(--iris)); margin-top: 2px; }
.pkg .actions { display: grid; gap: 8px; }
.p-iris { --pc: var(--iris); --pcs: var(--iris-soft); }
.p-sun { --pc: var(--sun); --pcs: var(--sun-soft); }
.p-coral { --pc: var(--coral); --pcs: var(--coral-soft); }
.p-sky { --pc: var(--sky); --pcs: var(--sky-soft); }

/* ---------- Nosotros ---------- */
.about-grid { display: grid; gap: 22px; }
@media (min-width: 900px) { .about-grid { grid-template-columns: 0.9fr 1.1fr; gap: 48px; align-items: center; } }
.about-photo { position: relative; }
.about-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r-xl); box-shadow: var(--shadow-lg); }
.about-photo .chip {
  position: absolute; left: 16px; bottom: 16px; right: 16px;
  display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.92); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: var(--shadow-md);
}
.about-photo .chip img { width: 40px; height: 40px; aspect-ratio: auto; border-radius: 0; box-shadow: none; }
.about-photo .chip b { display: block; color: var(--navy); }
.about-photo .chip span { font-size: 0.85rem; color: var(--muted); }
.values { display: grid; gap: 12px; margin-top: 22px; }
@media (min-width: 600px) { .values { grid-template-columns: repeat(2, 1fr); } }
.value { display: flex; gap: 12px; padding: 16px; border-radius: var(--r-md); background: #fff; box-shadow: var(--shadow-sm); }
.value .ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; flex: none; }
.value b { display: block; color: var(--navy); margin-bottom: 2px; }
.value span { font-size: 0.9rem; color: var(--muted); }

.vision-card {
  display: grid; gap: 18px; align-items: center; overflow: hidden;
  border-radius: var(--r-lg); background: var(--sand); padding: 24px;
}
@media (min-width: 768px) { .vision-card { grid-template-columns: 260px 1fr; padding: 32px; } }
.vision-card .lens { width: 100%; aspect-ratio: 5 / 3; }
.vision-card .lens img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Contacto ---------- */
.contact-grid { display: grid; gap: 16px; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1fr 1.15fr; gap: 24px; } }
.contact-list { display: grid; gap: 10px; }
.contact-item {
  display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: var(--r-md);
  background: #fff; box-shadow: var(--shadow-sm); text-decoration: none;
}
.contact-item .ic { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; flex: none; }
.contact-item b { display: block; color: var(--navy); }
.contact-item span { color: var(--muted); font-size: 0.92rem; }
.hours { width: 100%; border-collapse: collapse; font-size: 0.93rem; }
.hours td { padding: 8px 0; border-bottom: 1px dashed var(--line); }
.hours td:last-child { text-align: right; font-weight: 700; color: var(--navy); }
.map { width: 100%; height: 240px; border: 0; border-radius: var(--r-md); }

/* ---------- Formularios ---------- */
.card { background: #fff; border-radius: var(--r-lg); padding: 22px; box-shadow: var(--shadow-sm); }
@media (min-width: 768px) { .card { padding: 32px; } }
.form { display: grid; gap: 14px; }
.form-row { display: grid; gap: 14px; }
@media (min-width: 600px) { .form-row.two { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 6px; }
.field label, .label { font-weight: 700; font-size: 0.88rem; color: var(--navy); }
.field .hint { font-size: 0.8rem; color: var(--muted); }
.input, .field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px;
  font-size: 16px; /* evita zoom en iOS */
  border: 1.5px solid var(--line); border-radius: 14px; background: #fff;
  -webkit-appearance: none; appearance: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='none' stroke='%235d6784' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; padding-right: 40px;
}
.field input[type='date'], .field input[type='time'] { display: block; min-width: 0; text-align: left; }
.field input[type='date']::-webkit-date-and-time-value { text-align: left; }
.field textarea { min-height: 110px; resize: vertical; }
.input:focus, .field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--iris); box-shadow: 0 0 0 4px rgba(18, 181, 165, 0.15);
}
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 0.9rem; color: var(--muted); }
.check input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--iris); flex: none; }
.check a { color: var(--navy); font-weight: 700; }

.segmented { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px; padding: 5px; border-radius: 16px; background: var(--sand); }
.segmented label { position: relative; }
.segmented input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.segmented span {
  display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 0 8px;
  border-radius: 12px; font-weight: 700; font-size: 0.9rem; color: var(--muted); text-align: center;
}
.segmented input:checked + span { background: #fff; color: var(--navy); box-shadow: var(--shadow-sm); }
.segmented input:focus-visible + span { outline: 3px solid var(--sky); }

.notice { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--r-md); font-size: 0.93rem; }
.notice.info { background: var(--sky-soft); color: #1b3a9b; }
.notice.ok { background: #ddf5ea; color: #0b6b45; }
.notice.warn { background: var(--sun-soft); color: #7a4a00; }
.notice.err { background: var(--coral-soft); color: #8a2219; }
.notice[hidden] { display: none; }

/* ---------- Auth (login / registro) ---------- */
.auth-wrap { display: grid; gap: 0; min-height: calc(100svh - var(--header-h)); }
@media (min-width: 960px) { .auth-wrap { grid-template-columns: 1fr 1fr; } }
.auth-art { display: none; position: relative; overflow: hidden; background: var(--sun); }
@media (min-width: 960px) { .auth-art { display: block; } }
.auth-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.auth-art .quote {
  position: absolute; left: 32px; right: 32px; bottom: 32px; padding: 22px; border-radius: var(--r-md);
  background: rgba(20, 35, 75, 0.85); color: #fff; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.auth-art .quote b { font-family: var(--font-display); font-size: 1.3rem; display: block; margin-bottom: 4px; }
.auth-form { display: flex; align-items: flex-start; justify-content: center; padding: 28px var(--gutter) 48px; }
@media (min-width: 960px) { .auth-form { align-items: center; } }
.auth-form .inner { width: 100%; max-width: 460px; }
.auth-form h1 { font-size: clamp(1.8rem, 5vw, 2.4rem); }

/* Slots de horario */
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 8px; }
.slot {
  min-height: 46px; border-radius: 12px; border: 1.5px solid var(--line); background: #fff; cursor: pointer;
  font-weight: 700; color: var(--navy);
}
.slot[aria-pressed='true'] { background: var(--navy); color: #fff; border-color: var(--navy); }
.slot:disabled { opacity: 0.35; text-decoration: line-through; cursor: not-allowed; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: rgba(255, 255, 255, 0.75); padding: 48px 0 24px; margin-top: 56px; }
.site-footer .grid { display: grid; gap: 28px; }
@media (min-width: 768px) { .site-footer .grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; } }
.site-footer .brand-word { color: #fff; }
.site-footer .brand-word small { color: rgba(255, 255, 255, 0.55); }
.site-footer h4 { color: #fff; font-family: var(--font-body); font-size: 0.85rem; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer .contact li { display: flex; gap: 10px; align-items: center; }
.site-footer .legal { margin-top: 36px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, 0.1); display: flex; flex-wrap: wrap; gap: 10px 20px; justify-content: space-between; font-size: 0.85rem; }

/* Botón flotante de WhatsApp (escritorio) */
.wa-float {
  display: none; position: fixed; right: 22px; bottom: 22px; z-index: 40;
  width: 60px; height: 60px; border-radius: 50%; background: #25d366; color: #fff;
  place-items: center; box-shadow: 0 12px 30px -8px rgba(37, 211, 102, 0.7);
  transition: transform 0.2s;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 30px; height: 30px; }
@media (min-width: 1080px) { .wa-float { display: grid; } }

/* ---------- Utilidades ---------- */
.stack { display: grid; gap: 14px; }
.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.between { justify-content: space-between; }
.muted { color: var(--muted); }
.small { font-size: 0.86rem; }
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.hide { display: none !important; }
.spinner {
  width: 22px; height: 22px; border-radius: 50%; border: 3px solid rgba(20, 35, 75, 0.15); border-top-color: var(--iris);
  animation: spin 0.8s linear infinite; display: inline-block;
}
.loading { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 40px; color: var(--muted); }

.toast-host {
  position: fixed; left: 50%; transform: translateX(-50%); z-index: 100;
  bottom: calc(90px + var(--safe-b)); display: grid; gap: 8px; width: min(92vw, 420px);
}
.toast {
  padding: 14px 18px; border-radius: 14px; background: var(--navy); color: #fff; font-weight: 600;
  box-shadow: var(--shadow-lg); animation: rise 0.25s ease both;
}
.toast.err { background: var(--danger); }
.toast.ok { background: var(--success); }

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