/* =============================================================
   Centro Veterinario Diógenes — styles.css
   Soft & Dreamy · Glass + Mesh Gradients
   Paleta violeta preservada · Bricolage Grotesque + Onest + Instrument Serif
   ============================================================= */

/* ====== TOKENS ====== */
:root {
  /* Paleta violeta original */
  --purple-950: #1B0833;
  --purple-900: #2E0F4D;
  --purple-800: #421766;
  --purple-700: #5B1F8A;
  --purple-600: #6B2BB8;
  --purple-500: #7C3AED;
  --purple-400: #9F75ED;
  --purple-300: #C4B5FD;
  --purple-200: #DDD6FE;
  --purple-100: #F0E7F9;
  --purple-050: #F8F4FC;
  --lilac:      #B589D6;
  --lilac-soft: #EFE3F8;
  --magenta:    #C24FB3;
  --cream:      #FAF7F2;
  --cream-deep: #F2EDE4;
  --ink:        #1F1B2E;
  --ink-soft:   #4A4459;
  --ink-mute:   #7A7488;
  --line:       #ECE6F2;
  --coral:      #E26D5C;

  /* Sombras (suaves, tono violáceo) */
  --shadow-xs:   0 2px 8px -2px rgba(46,15,77,0.06);
  --shadow-sm:   0 4px 12px -4px rgba(46,15,77,0.08);
  --shadow-md:   0 16px 40px -16px rgba(46,15,77,0.16);
  --shadow-lg:   0 32px 64px -24px rgba(46,15,77,0.22);
  --shadow-glow: 0 0 80px rgba(124, 58, 237, 0.18);

  /* Glass tokens */
  --glass-bg:    rgba(255, 255, 255, 0.6);
  --glass-bg-strong: rgba(255, 255, 255, 0.78);
  --glass-bg-soft:   rgba(255, 255, 255, 0.45);
  --glass-border: rgba(255, 255, 255, 0.65);
  --glass-blur:  blur(18px) saturate(1.4);

  /* Radii */
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  /* Tipografía */
  --font-display: 'Bricolage Grotesque', system-ui, -apple-system, sans-serif;
  --font-body:    'Onest', system-ui, -apple-system, sans-serif;
  --font-accent:  'Instrument Serif', Georgia, serif;

  --container: 1200px;
}

/* ====== RESET BÁSICO ====== */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--purple-700); text-decoration: none; transition: color 180ms ease; }
a:hover { color: var(--purple-600); }
ul { list-style: none; }
button { font: inherit; cursor: pointer; }
input, textarea, select, button { font-family: inherit; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  background: var(--purple-700);
  color: var(--cream);
  padding: 10px 16px;
  border-radius: 8px;
  z-index: 9999;
  font-weight: 600;
}
.skip-link:focus { top: 16px; color: var(--cream); }

/* ====== TYPOGRAPHY HELPERS ====== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.05;
  color: var(--purple-900);
}
h1 em, h2 em, h3 em {
  font-family: var(--font-accent);
  font-style: italic;
  font-weight: 400;
  color: var(--purple-600);
  letter-spacing: -0.005em;
}

/* "Diógenes" — italic editorial en vez de gradiente */
.brand-name {
  font-family: var(--font-accent);
  font-style: italic;
  font-weight: 400;
  color: var(--purple-700);
  letter-spacing: 0;
  -webkit-background-clip: initial;
  background-clip: initial;
  background: none;
}

/* ====== EYEBROW (pill lila con asterisco) ====== */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--lilac-soft);
  color: var(--purple-700);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  margin-bottom: 20px;
  border: 1px solid rgba(184, 137, 214, 0.25);
}
.eyebrow-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--magenta);
  box-shadow: 0 0 0 3px rgba(194, 79, 179, 0.16);
}

/* ====== BOTONES ====== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: transform 240ms cubic-bezier(0.2, 0.8, 0.2, 1),
              box-shadow 240ms cubic-bezier(0.2, 0.8, 0.2, 1),
              background 240ms ease,
              color 240ms ease;
  position: relative;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--purple-700), var(--purple-500));
  color: var(--cream);
  box-shadow:
    0 12px 28px -10px rgba(91, 31, 138, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow:
    0 18px 36px -10px rgba(91, 31, 138, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  color: var(--cream);
}
.btn-ghost {
  background: var(--glass-bg-strong);
  color: var(--purple-800);
  border: 1px solid rgba(91, 31, 138, 0.18);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.95);
  border-color: var(--purple-400);
  color: var(--purple-700);
  transform: translateY(-2px);
}
.btn-full { width: 100%; }
.btn-label { display: inline-flex; align-items: center; gap: 8px; }
.btn-spinner {
  display: none;
  width: 16px; height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: var(--cream);
  border-radius: 50%;
  animation: spin 700ms linear infinite;
}
.btn[data-state="loading"] .btn-label { display: none; }
.btn[data-state="loading"] .btn-spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ====== MESH ORBS (reemplazo de los blobs cuadrados) ====== */
.mesh-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  pointer-events: none;
  z-index: 0;
}
.mesh-orb--1 {
  width: 520px; height: 520px;
  background: radial-gradient(circle, var(--purple-300) 0%, transparent 70%);
  top: -120px; left: -120px;
  opacity: 0.6;
}
.mesh-orb--2 {
  width: 440px; height: 440px;
  background: radial-gradient(circle, var(--magenta) 0%, transparent 70%);
  bottom: -80px; right: -80px;
  opacity: 0.25;
}
.mesh-orb--3 {
  width: 380px; height: 380px;
  background: radial-gradient(circle, var(--lilac) 0%, transparent 70%);
  top: 30%; right: 28%;
  opacity: 0.3;
}

/* ====== PAWS (huellitas) ====== */
.paw {
  position: absolute;
  pointer-events: none;
  z-index: 0;
}
.paw--xs { width: 22px; height: 22px; opacity: 0.18; }
.paw--sm { width: 32px; height: 32px; opacity: 0.18; }
.paw--md { width: 44px; height: 44px; opacity: 0.16; }
.paw--lg { width: 64px; height: 64px; opacity: 0.14; }
.paw--xl { width: 84px; height: 84px; opacity: 0.12; }

.paw--c-light   { fill: var(--purple-400); }
.paw--c-lilac   { fill: var(--lilac); }
.paw--c-soft    { fill: var(--purple-300); }
.paw--c-magenta { fill: var(--magenta); }
.paw--c-white   { fill: #ffffff; }

.paw--rot--14 { transform: rotate(-14deg); }
.paw--rot--28 { transform: rotate(-28deg); }
.paw--rot-12  { transform: rotate(12deg); }
.paw--rot-22  { transform: rotate(22deg); }
.paw--rot-40  { transform: rotate(40deg); }

.paw--float      { animation: paw-drift 7s ease-in-out infinite; }
.paw--float-slow { animation: paw-drift 10s ease-in-out infinite; }
@keyframes paw-drift {
  0%, 100% { transform: translateY(0) rotate(var(--paw-rot, 0deg)); }
  50%      { transform: translateY(-10px) rotate(var(--paw-rot, 0deg)); }
}
.paw--float.paw--rot--14, .paw--float-slow.paw--rot--14 { --paw-rot: -14deg; }
.paw--float.paw--rot--28, .paw--float-slow.paw--rot--28 { --paw-rot: -28deg; }
.paw--float.paw--rot-12,  .paw--float-slow.paw--rot-12  { --paw-rot: 12deg; }
.paw--float.paw--rot-22,  .paw--float-slow.paw--rot-22  { --paw-rot: 22deg; }
.paw--float.paw--rot-40,  .paw--float-slow.paw--rot-40  { --paw-rot: 40deg; }

/* ====== HEADER ====== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 16px 0;
  transition: padding 240ms ease, background 240ms ease, box-shadow 240ms ease;
}
.site-header.is-scrolled {
  padding: 10px 0;
  background: rgba(250, 247, 242, 0.85);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  box-shadow: var(--shadow-sm);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  padding: 10px 16px 10px 20px;
  box-shadow: var(--shadow-xs);
}
.site-header.is-scrolled .header-inner {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: none;
  box-shadow: none;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--purple-900);
  font-weight: 600;
}
.brand img {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: var(--shadow-xs);
}
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.brand-line-1 {
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
  font-weight: 500;
}
.brand-line-2 {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--purple-900);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.nav-desktop ul {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-desktop a {
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 999px;
  transition: all 200ms ease;
}
.nav-desktop a:hover {
  background: rgba(124, 58, 237, 0.08);
  color: var(--purple-700);
}

.phone-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--purple-700);
  color: var(--cream);
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 8px 20px -8px rgba(91, 31, 138, 0.4);
  transition: all 200ms ease;
}
.phone-cta:hover {
  background: var(--purple-800);
  color: var(--cream);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 36px;
  height: 36px;
  padding: 8px;
  background: transparent;
  border: 1px solid var(--purple-200);
  border-radius: 10px;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--purple-800);
  border-radius: 2px;
  transition: transform 200ms ease, opacity 200ms ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-mobile {
  margin-top: 12px;
  background: var(--glass-bg-strong);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 12px;
  box-shadow: var(--shadow-md);
}
.nav-mobile ul {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.nav-mobile a {
  display: block;
  padding: 12px 16px;
  border-radius: 12px;
  color: var(--ink);
  font-weight: 500;
}
.nav-mobile a:hover, .nav-mobile a:focus {
  background: var(--lilac-soft);
  color: var(--purple-800);
}
.nav-mobile-call {
  margin-top: 8px;
  background: var(--purple-700) !important;
  color: var(--cream) !important;
  text-align: center;
  font-weight: 600 !important;
}

/* ====== HERO ====== */
.hero {
  position: relative;
  padding: 64px 0 100px;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 60% at 20% 30%, var(--lilac-soft) 0%, transparent 60%),
    radial-gradient(ellipse 70% 50% at 85% 70%, var(--purple-200) 0%, transparent 65%),
    radial-gradient(ellipse 100% 60% at 50% 100%, var(--purple-100) 0%, transparent 70%),
    linear-gradient(180deg, var(--cream) 0%, var(--purple-050) 100%);
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.hero-copy {
  background: var(--glass-bg-strong);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: 40px 44px 44px;
  box-shadow: var(--shadow-lg), var(--shadow-glow), inset 0 1px 0 rgba(255,255,255,0.7);
}
.hero-copy h1 {
  font-size: clamp(38px, 4.4vw, 60px);
  line-height: 0.98;
  margin-bottom: 22px;
  letter-spacing: -0.03em;
}
.hero-sub {
  font-size: 17px;
  color: var(--ink-soft);
  margin-bottom: 30px;
  max-width: 520px;
  line-height: 1.6;
}
.hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.trust-strip {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 22px;
  border-top: 1px solid rgba(196, 181, 253, 0.4);
}
.trust-strip li {
  font-size: 14px;
  color: var(--ink-soft);
}
.trust-strip strong {
  color: var(--purple-800);
  font-weight: 600;
}

/* Hero media */
.hero-media { position: relative; }
.hero-figure {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 6px solid rgba(255, 255, 255, 0.7);
}
.hero-figure img {
  width: 100%;
  height: auto;
  display: block;
}
/* Tag rectangular glass (reemplaza el badge circular rotado) */
.hero-photo-tag {
  position: absolute;
  bottom: 20px;
  left: 20px;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 12px 18px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(255,255,255,0.5);
}
.hero-photo-tag-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 32px;
  color: var(--purple-700);
  line-height: 1;
  letter-spacing: -0.03em;
}
.hero-photo-tag-label {
  font-size: 11px;
  color: var(--ink-soft);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 500;
  line-height: 1.35;
}

/* ====== SECTION HEAD ====== */
.section-head {
  max-width: 720px;
  margin-bottom: 56px;
}
.section-head--center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}
.section-head h2 {
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.05;
  margin-bottom: 16px;
}
.section-lead {
  font-size: 17px;
  color: var(--ink-soft);
}

/* ====== SERVICIOS ====== */
.services {
  padding: 96px 0;
  background:
    radial-gradient(ellipse 60% 40% at 50% 0%, var(--purple-050) 0%, transparent 70%),
    var(--cream);
  position: relative;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.service-card {
  background: var(--glass-bg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(196, 181, 253, 0.4);
  border-radius: var(--radius-lg);
  padding: 28px 26px 28px;
  transition: transform 280ms cubic-bezier(0.2, 0.8, 0.2, 1),
              box-shadow 280ms ease,
              border-color 280ms ease;
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(196, 181, 253, 0.15), transparent 50%);
  opacity: 0;
  transition: opacity 280ms ease;
  pointer-events: none;
}
.service-card:hover {
  transform: translateY(-4px);
  border-color: var(--purple-300);
  box-shadow: var(--shadow-md);
}
.service-card:hover::before { opacity: 1; }

.service-card--big {
  background: linear-gradient(135deg, var(--glass-bg-strong), var(--lilac-soft));
}
@media (min-width: 720px) {
  .service-card--big { grid-column: span 2; }
}

.service-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--purple-100), var(--lilac-soft));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--purple-700);
  margin-bottom: 18px;
  transition: all 280ms ease;
}
.service-card:hover .service-icon {
  background: linear-gradient(135deg, var(--purple-500), var(--magenta));
  color: var(--cream);
  transform: scale(1.06);
}
.service-icon svg {
  width: 26px;
  height: 26px;
}
.service-card h3 {
  font-size: 22px;
  margin-bottom: 8px;
  color: var(--purple-900);
  letter-spacing: -0.015em;
}
.service-card--big h3 { font-size: 26px; }
.service-card p {
  font-size: 14.5px;
  color: var(--ink-soft);
  line-height: 1.55;
}

/* ====== PAW DIVIDER ====== */
.paw-divider {
  position: relative;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  padding: 0 24px;
}
.paw-divider .paw {
  position: relative;
  opacity: 0.4;
}

/* ====== NOSOTROS ====== */
.about {
  padding: 96px 0;
  background: var(--cream);
  position: relative;
  overflow: hidden;
}
.about-orb {
  position: absolute;
  width: 540px; height: 540px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--purple-200) 0%, transparent 70%);
  filter: blur(80px);
  opacity: 0.5;
  top: 20%;
  left: -180px;
  z-index: 0;
  pointer-events: none;
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.about-copy h2 {
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.05;
  margin-bottom: 22px;
}
.about-copy > p {
  font-size: 17px;
  color: var(--ink-soft);
  margin-bottom: 18px;
  line-height: 1.65;
}

/* Values list — glass chips */
.values-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}
.values-list li { display: inline-flex; }
.value-chip {
  display: inline-block;
  background: var(--glass-bg-strong);
  border: 1px solid rgba(196, 181, 253, 0.5);
  color: var(--purple-800);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 500;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all 200ms ease;
}
.value-chip:hover {
  background: var(--lilac-soft);
  border-color: var(--purple-400);
  transform: translateY(-1px);
}

/* About media — foto principal grande + foto secundaria + sticker */
.about-media {
  position: relative;
  height: 560px;
}
.about-figure { margin: 0; background: transparent; }
.about-figure img { object-fit: cover; display: block; }
.about-figure figcaption {
  margin-top: 12px;
  font-family: var(--font-accent);
  font-style: italic;
  font-size: 14px;
  color: var(--purple-800);
  text-align: center;
}

/* Foto principal: rectángulo redondeado grande */
.about-figure--a {
  position: absolute;
  top: 0;
  right: 0;
  width: 400px;
  z-index: 1;
}
.about-figure--a img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-xl);
  border: 8px solid rgba(255, 255, 255, 0.7);
  box-shadow: var(--shadow-lg);
  display: block;
}

/* Foto secundaria: rectangular abajo izquierda */
.about-figure--b {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 280px;
  z-index: 2;
}
.about-figure--b img {
  width: 280px;
  height: 210px;
  border-radius: var(--radius-lg);
  border: 6px solid rgba(255, 255, 255, 0.75);
  box-shadow: var(--shadow-md);
}

/* Sticker degradado */
.about-sticker {
  position: absolute;
  top: 300px;
  left: 170px;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple-500), var(--magenta));
  color: var(--cream);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  z-index: 3;
  box-shadow: var(--shadow-md);
  text-align: center;
  line-height: 1;
}
.about-sticker-num {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.03em;
}
.about-sticker-label {
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-top: 5px;
  font-weight: 500;
}

/* ====== GALLERY ====== */
.gallery {
  padding: 96px 0;
  background:
    radial-gradient(ellipse 50% 30% at 80% 20%, var(--lilac-soft) 0%, transparent 65%),
    var(--cream-deep);
  position: relative;
}
/* Carrusel de galería */
.gallery-carousel {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
}
.carousel-viewport {
  overflow: hidden;
  border-radius: var(--radius-lg);
  position: relative;
}
.carousel-viewport::before,
.carousel-viewport::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 48px;
  z-index: 2;
  pointer-events: none;
  opacity: 0.85;
}
.carousel-viewport::before {
  left: 0;
  background: linear-gradient(90deg, var(--cream-deep), transparent);
}
.carousel-viewport::after {
  right: 0;
  background: linear-gradient(-90deg, var(--cream-deep), transparent);
}
.carousel-track {
  display: flex;
  gap: 16px;
  scroll-snap-type: x mandatory;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 4px 4px 16px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.carousel-track::-webkit-scrollbar { display: none; }
.gallery-item {
  flex: 0 0 calc((100% - 32px) / 3);
  height: 360px;
  border: 4px solid rgba(255, 255, 255, 0.7);
  padding: 0;
  background: var(--glass-bg-strong);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  position: relative;
  box-shadow: var(--shadow-sm);
  transition: transform 280ms ease, box-shadow 280ms ease;
  scroll-snap-align: start;
}
.gallery-item:hover {
  transform: translateY(-3px) scale(1.01);
  box-shadow: var(--shadow-md);
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(46,15,77,0.25));
  opacity: 0;
  transition: opacity 280ms ease;
  pointer-events: none;
}
.gallery-item:hover::after { opacity: 1; }

.carousel-arrow {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--glass-bg-strong);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  color: var(--purple-700);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  transition: transform 200ms ease, color 200ms ease, background 200ms ease;
  z-index: 3;
  flex-shrink: 0;
}
.carousel-arrow:hover {
  transform: scale(1.06);
  color: var(--magenta);
}
.carousel-arrow:active { transform: scale(0.96); }
.carousel-arrow svg { width: 22px; height: 22px; }

.carousel-dots {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.carousel-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(124, 58, 237, 0.25);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background 200ms ease, transform 200ms ease, width 250ms ease;
}
.carousel-dot:hover { background: rgba(124, 58, 237, 0.55); }
.carousel-dot.is-active {
  background: var(--purple-600);
  width: 26px;
  border-radius: 999px;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(27, 8, 51, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}
.lightbox[hidden] { display: none; }
.lightbox-img {
  max-width: 92vw;
  max-height: 88vh;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 4px solid rgba(255,255,255,0.2);
}
.lightbox button {
  position: absolute;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  color: var(--cream);
  width: 48px; height: 48px;
  border-radius: 50%;
  font-size: 24px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 200ms ease;
  backdrop-filter: blur(8px);
}
.lightbox button:hover { background: rgba(255,255,255,0.22); transform: scale(1.05); }
.lightbox-close { top: 24px; right: 24px; }
.lightbox-prev  { top: 50%; left: 24px;  transform: translateY(-50%); }
.lightbox-next  { top: 50%; right: 24px; transform: translateY(-50%); }
.lightbox-prev:hover, .lightbox-next:hover { transform: translateY(-50%) scale(1.05); }

/* ====== TESTIMONIOS ====== */
.testimonials {
  padding: 96px 0;
  background:
    radial-gradient(ellipse 50% 40% at 80% 80%, var(--purple-100) 0%, transparent 65%),
    var(--cream);
  position: relative;
  overflow: hidden;
}
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.testimonial {
  background: var(--glass-bg-strong);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 32px 28px 28px;
  position: relative;
  box-shadow: var(--shadow-xs);
  transition: transform 240ms ease, box-shadow 240ms ease;
}
.testimonial:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.testimonial .quote-mark {
  position: absolute;
  top: 12px;
  left: 22px;
  font-family: var(--font-accent);
  font-style: italic;
  font-size: 72px;
  line-height: 1;
  color: var(--purple-300);
  pointer-events: none;
}
.testimonial blockquote {
  position: relative;
  z-index: 1;
  font-family: var(--font-body);
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--ink);
  margin-bottom: 22px;
  margin-top: 24px;
}
.testimonial figcaption {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-top: 16px;
  border-top: 1px solid rgba(196, 181, 253, 0.4);
}
.testimonial figcaption strong {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  color: var(--purple-900);
}
.testimonial figcaption span {
  font-family: var(--font-accent);
  font-style: italic;
  font-size: 14px;
  color: var(--ink-mute);
}

/* ====== FAQ ====== */
.faq {
  padding: 96px 0;
  background: var(--cream);
  position: relative;
}
.faq-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 64px;
  align-items: start;
}
.faq-head h2 {
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.05;
  margin-bottom: 16px;
}
.faq-head p {
  font-size: 16px;
  color: var(--ink-soft);
}
@media (min-width: 920px) {
  .faq-head { position: sticky; top: 100px; }
}
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq-item {
  background: var(--glass-bg-strong);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(196, 181, 253, 0.4);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 220ms ease, box-shadow 220ms ease;
}
.faq-item[open] {
  border-color: var(--purple-400);
  box-shadow: var(--shadow-sm);
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  font-family: var(--font-display);
  font-size: 16.5px;
  font-weight: 600;
  color: var(--purple-900);
  transition: color 200ms ease;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--purple-700); }
.faq-q { flex: 1; }
.faq-icon {
  flex: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--lilac-soft);
  position: relative;
  transition: transform 220ms ease, background 220ms ease;
}
.faq-icon::before,
.faq-icon::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 2px;
  background: var(--purple-700);
  border-radius: 2px;
  transform: translate(-50%, -50%);
  transition: transform 220ms ease;
}
.faq-icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-item[open] .faq-icon {
  background: linear-gradient(135deg, var(--purple-500), var(--magenta));
}
.faq-item[open] .faq-icon::before,
.faq-item[open] .faq-icon::after { background: var(--cream); }
.faq-item[open] .faq-icon::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq-a {
  padding: 0 22px 22px;
  font-size: 15.5px;
  color: var(--ink-soft);
  line-height: 1.65;
}
.faq-a p { color: var(--ink-soft); }
.faq-a a { color: var(--purple-700); font-weight: 600; }

/* ====== CONTACTO ====== */
.contact {
  padding: 96px 0 120px;
  background:
    radial-gradient(ellipse 60% 40% at 20% 100%, var(--purple-100) 0%, transparent 70%),
    radial-gradient(ellipse 50% 30% at 80% 0%, var(--lilac-soft) 0%, transparent 65%),
    var(--cream);
  position: relative;
}
.contact .section-head {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 28px;
  align-items: start;
}

.contact-form-card,
.contact-info-card,
.contact-phone-card {
  background: var(--glass-bg-strong);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: 36px 36px 36px;
  box-shadow: var(--shadow-md), inset 0 1px 0 rgba(255,255,255,0.7);
}

/* Contact phone card (reemplaza al formulario) */
.contact-phone-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 18px;
  padding: 48px 36px;
  position: relative;
  overflow: hidden;
}
.contact-phone-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 40% at 50% 0%, rgba(196,181,253,0.35) 0%, transparent 70%);
  pointer-events: none;
}
.contact-phone-card > * { position: relative; z-index: 1; }
.contact-phone-icon {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple-500), var(--purple-700));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 28px -10px rgba(124, 58, 237, 0.5);
}
.contact-phone-icon svg { width: 34px; height: 34px; }
.contact-phone-lead {
  font-size: 16px;
  color: var(--ink-soft);
  margin: 0;
  max-width: 38ch;
}
.contact-phone-number {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 52px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--purple-800);
  text-decoration: none;
  background: linear-gradient(135deg, var(--purple-700), var(--magenta));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: transform 200ms ease;
  display: inline-block;
}
.contact-phone-number:hover { transform: scale(1.02); }
.contact-phone-hours {
  font-size: 14px;
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(196, 181, 253, 0.4);
  border-radius: var(--radius-md);
  padding: 14px 20px;
  margin: 6px 0 4px;
  line-height: 1.7;
}
.contact-phone-hours strong {
  color: var(--purple-800);
  font-weight: 600;
}
.contact-phone-card .btn { margin-top: 6px; max-width: 320px; }

.contact-info-card h3 {
  font-size: 22px;
  margin-bottom: 24px;
  color: var(--purple-900);
}

.contact-form { display: flex; flex-direction: column; gap: 18px; }
.form-row { display: flex; flex-direction: column; gap: 8px; }
.form-row--split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-row--split > div {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.form-row label {
  font-size: 13px;
  font-weight: 600;
  color: var(--purple-800);
  letter-spacing: 0.02em;
}
.contact-form input,
.contact-form textarea {
  background: rgba(255, 255, 255, 0.7);
  border: 1.5px solid rgba(196, 181, 253, 0.5);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  font-size: 15px;
  color: var(--ink);
  width: 100%;
  outline: none;
  transition: border-color 200ms ease, background 200ms ease, box-shadow 200ms ease;
  font-family: var(--font-body);
}
.contact-form textarea { resize: vertical; min-height: 120px; }
.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--purple-500);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.12);
}
.contact-form input.is-error,
.contact-form textarea.is-error {
  border-color: var(--coral);
  background: rgba(226, 109, 92, 0.04);
}

.hp-field {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
  height: 0;
  overflow: hidden;
}

.form-status {
  margin-top: 4px;
  font-size: 14px;
  min-height: 20px;
  color: var(--ink-soft);
}
.form-status.is-success {
  color: #1B6C3B;
  background: rgba(110, 199, 122, 0.12);
  border: 1px solid rgba(110, 199, 122, 0.35);
  padding: 12px 16px;
  border-radius: var(--radius-md);
}
.form-status.is-error {
  color: #8A2C24;
  background: rgba(226, 109, 92, 0.1);
  border: 1px solid rgba(226, 109, 92, 0.4);
  padding: 12px 16px;
  border-radius: var(--radius-md);
}

/* Info card */
.info-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 24px;
}
.info-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(196, 181, 253, 0.35);
  border-radius: var(--radius-md);
}
.info-list li > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  word-break: break-word;
}
.info-icon {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--purple-100), var(--lilac-soft));
  color: var(--purple-700);
  display: flex;
  align-items: center;
  justify-content: center;
}
.info-icon svg { width: 20px; height: 20px; }
.info-icon--urgent {
  background: linear-gradient(135deg, rgba(226,109,92,0.18), rgba(226,109,92,0.08));
  color: var(--coral);
}
.info-label {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
  font-weight: 600;
}
.info-list a {
  font-size: 15px;
  color: var(--purple-800);
  font-weight: 500;
}
.info-list a:hover { color: var(--purple-600); }

.map {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(196, 181, 253, 0.4);
  box-shadow: var(--shadow-sm);
  height: 220px;
}
.map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* ====== FOOTER ====== */
.site-footer {
  background:
    radial-gradient(ellipse 80% 60% at 20% 20%, rgba(124, 58, 237, 0.18), transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 80%, rgba(194, 79, 179, 0.14), transparent 65%),
    linear-gradient(180deg, var(--purple-900) 0%, var(--purple-950) 100%);
  color: var(--cream);
  padding: 72px 0 32px;
  position: relative;
  overflow: hidden;
}
.site-footer .paw { z-index: 0; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  position: relative;
  z-index: 1;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.footer-brand img {
  width: 96px;
  height: 96px;
  border-radius: 20px;
  background: var(--cream);
  padding: 6px;
  box-shadow: 0 8px 24px -8px rgba(0,0,0,0.3);
}
.footer-brand p {
  font-size: 14.5px;
  color: rgba(250, 247, 242, 0.75);
  line-height: 1.55;
  max-width: 320px;
}
.site-footer h4 {
  font-family: var(--font-display);
  color: var(--cream);
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 16px;
  font-weight: 600;
}
.site-footer ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.site-footer li {
  font-size: 14.5px;
  color: rgba(250, 247, 242, 0.7);
}
.site-footer a {
  color: rgba(250, 247, 242, 0.85);
}
.site-footer a:hover { color: var(--cream); }
.social-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 24px;
  font-size: 15px;
  color: rgba(250, 247, 242, 0.78);
  position: relative;
  z-index: 1;
}
.footer-bottom small {
  font-size: 15px;
  line-height: 1.5;
}
.footer-credit a {
  color: var(--cream);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 500;
}
.footer-credit a:hover { color: var(--lilac); }

/* ====== BACK TO TOP ====== */
.back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple-700), var(--purple-500));
  color: var(--cream);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  opacity: 0;
  pointer-events: none;
  transition: opacity 240ms ease, transform 240ms ease;
  z-index: 90;
}
.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
}
.back-to-top:hover {
  transform: translateY(-3px) scale(1.05);
}
.back-to-top svg { width: 20px; height: 20px; }

/* ====== REVEAL ANIMATION ====== */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 700ms cubic-bezier(0.2, 0.8, 0.2, 1),
              transform 700ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .paw--float, .paw--float-slow { animation: none; }
  html { scroll-behavior: auto; }
}

/* =================================================================
   RESPONSIVE
   ================================================================= */
@media (max-width: 1080px) {
  .about-figure--a { width: 340px; }
  .about-sticker { top: 260px; left: 150px; width: 84px; height: 84px; }
  .about-sticker-num { font-size: 26px; }
  .gallery-item { flex: 0 0 calc((100% - 16px) / 2); height: 320px; }
}

@media (max-width: 920px) {
  .hero { padding: 48px 0 80px; }
  .hero-inner { grid-template-columns: 1fr; gap: 36px; }
  .hero-copy { padding: 32px 28px; }

  .nav-desktop { display: none; }
  .nav-toggle { display: flex; }
  .phone-cta-text { display: none; }
  .phone-cta { padding: 10px; }

  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .service-card--big { grid-column: span 2; }

  .about-grid { grid-template-columns: 1fr; gap: 56px; }
  .about-media { height: auto; display: flex; flex-direction: column; align-items: center; gap: 28px; }
  .about-figure--a,
  .about-figure--b { position: relative; top: auto; left: auto; right: auto; bottom: auto; width: 100%; max-width: 360px; }
  .about-figure--a img { width: 100%; height: auto; }
  .about-figure--b img { width: 280px; height: 200px; }
  .about-sticker { position: relative; top: auto; left: auto; }

  .gallery-carousel { gap: 8px; }
  .gallery-item { flex: 0 0 calc((100% - 16px) / 2); height: 280px; }
  .carousel-arrow { width: 44px; height: 44px; }
  .carousel-arrow svg { width: 18px; height: 18px; }

  .testimonials-grid { grid-template-columns: 1fr; max-width: 600px; margin: 0 auto; }

  .faq-grid { grid-template-columns: 1fr; gap: 36px; }

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

  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
}

@media (max-width: 560px) {
  .container { padding: 0 16px; }
  .header-inner { padding: 8px 8px 8px 14px; }
  .brand img { width: 36px; height: 36px; }
  .brand-line-2 { font-size: 17px; }
  .brand-line-1 { font-size: 10px; }

  .hero { padding: 32px 0 64px; }
  .hero-copy { padding: 26px 22px; border-radius: var(--radius-lg); }
  .hero-copy h1 { font-size: clamp(30px, 8vw, 42px); }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-photo-tag { padding: 10px 14px; gap: 10px; bottom: 14px; left: 14px; }
  .hero-photo-tag-num { font-size: 24px; }
  .hero-photo-tag-label { font-size: 10px; }

  .services { padding: 64px 0; }
  .services-grid { grid-template-columns: 1fr; }
  .service-card--big { grid-column: span 1; }

  .about { padding: 64px 0; }
  .about-figure--a { max-width: 300px; }
  .about-figure--a img { border-width: 6px; }
  .about-figure--b img { width: 240px; height: 180px; }

  .gallery { padding: 64px 0; }
  .gallery-item { flex: 0 0 100%; height: 280px; }
  .carousel-viewport::before, .carousel-viewport::after { width: 28px; }

  .testimonials { padding: 64px 0; }
  .testimonial { padding: 28px 22px 22px; }

  .faq { padding: 64px 0; }
  .faq-item summary { padding: 16px 18px; font-size: 15.5px; }
  .faq-a { padding: 0 18px 20px; font-size: 15px; }

  .contact { padding: 64px 0 80px; }
  .contact-form-card, .contact-info-card, .contact-phone-card { padding: 24px 22px; border-radius: var(--radius-lg); }
  .contact-phone-card { padding: 36px 22px; }
  .form-row--split { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }

  .back-to-top { bottom: 20px; right: 20px; width: 44px; height: 44px; }
}

/* Print: simplificar */
@media print {
  .site-header, .back-to-top, .hero-bg, .about-orb, .mesh-orb, .paw, .lightbox { display: none !important; }
  body { background: white; color: black; }
  .hero, .services, .about, .gallery, .testimonials, .faq, .contact { padding: 24px 0; background: white; }
  .hero-copy, .service-card, .testimonial, .faq-item, .contact-form-card, .contact-info-card, .contact-phone-card {
    background: white; border: 1px solid #ccc; box-shadow: none; backdrop-filter: none;
  }
}
