/* ============================================
   Clínica Veterinaria La Huella
   Sistema de diseño basado en design-md/oura
   (sustitutos de fuente: Fraunces + Inter)
   ============================================ */

:root {
  /* Colores — paleta cálida tipo Oura */
  --primary: #2a72de;
  --primary-link: #1d5cc0; /* darkened primary for text links on canvas — 5.59:1 AA */
  --on-primary: #ffffff;
  --stone: #4a4741;
  --on-stone: #ffffff;
  --clay: #6b443d;
  --espresso: #39221e;
  --gold: #af751b;
  --ochre: #bc924c;
  --forest: #224228;
  --olive: #5c6f5d;
  --sage: #849671;
  --sage-pale: #ced4b8;
  --canvas: #f7f1e8;
  --surface: #ffffff;
  --surface-grey: #ececec;
  --ink-band: #000000;
  --ink-band-soft: #19191c;
  --ink: #1c1b1a;
  --ash: #838280;
  --ash-on-light: #6b6864; /* ash darkened for AA contrast on canvas/white (4.94:1 / 5.54:1) */
  --mute: #a8a5a0;
  --mute-on-light: #6a6660; /* mute darkened for AA contrast on canvas (5.08:1) */
  --on-dark: #ffffff;
  --hairline: #e1dcd3;
  --error: #e33a22;

  /* Tipografía (sustitutos open-source de Editorial New / AkkuratLL) */
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Radios */
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 24px;
  --radius-xl: 40px;
  --radius-full: 9999px;

  /* Espaciado */
  --space-xxs: 4px;
  --space-xs: 8px;
  --space-sm: 12px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.5;
}

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

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 300;
  margin: 0 0 var(--space-md);
  color: var(--ink);
}

h1 { font-size: 64px; line-height: 1.08; font-weight: 300; }
h2 { font-size: 40px; line-height: 1.15; }
h3 { font-family: var(--font-body); font-size: 22px; font-weight: 600; }

p { margin: 0 0 var(--space-md); }

a { color: inherit; text-decoration: none; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--espresso);
  background: var(--sage-pale);
  padding: 7px 16px 7px 12px;
  border-radius: var(--radius-full);
  margin: 0 0 var(--space-md);
}

.eyebrow .icon { width: 14px; height: 14px; }

.eyebrow-on-dark {
  color: var(--sage-pale);
  background: rgba(255,255,255,0.1);
}

.lead {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 22px;
  line-height: 1.5;
  color: var(--stone);
}

.lead-sm {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 20px;
  line-height: 1.5;
  color: var(--stone);
}

.section-title { margin-bottom: var(--space-xl); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
  border: none;
  cursor: pointer;
  white-space: nowrap;
}

.btn-primary { background: var(--primary); color: var(--on-primary); }
.btn-secondary { background: var(--stone); color: var(--on-stone); }
.btn-on-dark { background: var(--canvas); color: var(--stone); }
.btn-outline { background: transparent; color: var(--on-dark); border: 1px solid var(--on-dark); }
.btn-outline-stone { background: var(--canvas); color: var(--stone); border: 1px solid var(--stone); }

/* Nav */
.nav-bar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 241, 232, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
}

.nav-bar.is-scrolled {
  background: rgba(247, 241, 232, 0.95);
  border-bottom-color: var(--hairline);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-md);
  padding-bottom: var(--space-md);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: -0.3px;
  color: var(--stone);
}

.brand-mark { font-size: 24px; }

/* Nav dropdown (Servicios) */
.nav-dropdown { position: relative; }

.nav-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  color: var(--stone);
  padding: 0;
}

.nav-dropdown-toggle .chevron { width: 14px; height: 14px; transition: transform 0.2s ease; }
.nav-dropdown.is-open .chevron { transform: rotate(180deg); }

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 16px);
  left: 50%;
  transform: translate(-50%, 8px);
  min-width: 260px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 40px rgba(28,27,26,0.14);
  padding: var(--space-sm);
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  z-index: 60;
}

.nav-dropdown.is-open .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

@media (hover: hover) and (min-width: 901px) {
  .nav-dropdown:hover .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
  }
  .nav-dropdown:hover .chevron { transform: rotate(180deg); }
}

.nav-dropdown-menu a {
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--ink);
  white-space: nowrap;
}

.nav-dropdown-menu a:hover { background: var(--canvas); color: var(--primary-link); }

.nav-dropdown-menu .nav-dropdown-all {
  margin-top: 4px;
  padding-top: 12px;
  border-top: 1px solid var(--hairline);
  font-weight: 600;
  color: var(--primary-link);
}

/* Active page indicator */
.nav-links a.is-current,
.nav-dropdown-toggle.is-current { color: var(--ink); font-weight: 600; }
.nav-links a.is-current::after { transform: scaleX(1); }

.brand-logo {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  object-fit: cover;
  display: block;
}

.brand-logo-footer { width: 32px; height: 32px; }

.nav-links {
  display: flex;
  gap: var(--space-xl);
  font-size: 14px;
  color: var(--stone);
}

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

.nav-cta { padding: 10px 20px; font-size: 14px; }

/* Hero */
.hero { padding: 72px 0 96px; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
}

.hero-actions {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
  margin-top: var(--space-lg);
}

/* Placeholder media */
.placeholder-media {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, var(--sage-pale), var(--ochre));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  color: var(--espresso);
}

.placeholder-media-square { aspect-ratio: 1 / 1; border-radius: var(--radius-lg); }

.placeholder-icon { font-size: 48px; }

.placeholder-label {
  font-size: 13px;
  font-weight: 600;
  background: rgba(255,255,255,0.6);
  padding: 4px 12px;
  border-radius: var(--radius-full);
}

/* Real photos */
.hero-media img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-xl);
  display: block;
}

.sobre-media img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--radius-lg);
  display: block;
}

/* Storytelling (sticky image + scroll steps) */
.story { padding: 96px 0; background: var(--surface-grey); }

.story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: start;
}

.story-text { display: flex; flex-direction: column; gap: 320px; }

.story-step h2 { font-size: 34px; }

.story-media {
  position: sticky;
  top: 96px;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 20px 48px rgba(28,27,26,0.12);
}

.story-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.story-img.is-active { opacity: 1; }

/* Urgencias band */
.urgencias-band {
  background: var(--espresso);
  color: var(--on-dark);
  padding: var(--space-xl) 0;
}

.urgencias-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-xl);
  flex-wrap: wrap;
}

.urgencias-text h2 { color: var(--on-dark); font-size: 32px; margin-bottom: var(--space-xs); }
.urgencias-text p { color: var(--sage-pale); margin: 0; max-width: 46ch; }

.urgencias-phone { font-size: 18px; padding: 16px 32px; flex-shrink: 0; }

.btn .icon { width: 18px; height: 18px; flex-shrink: 0; }

/* Servicios */
.servicios { padding: 96px 0; }

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
}

.feature-card-elevated {
  background: var(--canvas);
  box-shadow: 0 8px 24px rgba(28,27,26,0.08);
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: var(--radius-full);
  margin-bottom: var(--space-md);
  background: var(--sage-pale);
  color: var(--espresso);
}
.feature-icon .icon { width: 26px; height: 26px; }

.feature-card:nth-of-type(2) .feature-icon,
.related-card:nth-of-type(2) .feature-icon { background: var(--gold-pale, #ddbe78); }
.feature-card:nth-of-type(3) .feature-icon,
.related-card:nth-of-type(3) .feature-icon { background: var(--silver, #cccac7); }
.feature-card:nth-of-type(4) .feature-icon { background: var(--sage-pale); }
.feature-card:nth-of-type(5) .feature-icon { background: var(--gold-pale, #ddbe78); }
.feature-card:nth-of-type(6) .feature-icon,
.feature-card-elevated .feature-icon { background: #e7c3bb; }

.feature-card h3 { margin-bottom: var(--space-xs); }
.feature-card p { color: var(--ash-on-light); font-size: 16px; margin-bottom: 0; }

.card-link {
  display: inline-block;
  margin-top: var(--space-sm);
  color: var(--primary-link);
  font-weight: 600;
  font-size: 15px;
}

/* Sobre nosotros */
.sobre-nosotros { padding: 96px 0; background: var(--surface-grey); }

.sobre-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: var(--space-xl);
  align-items: center;
}

/* Ubicación */
.ubicacion { padding: 96px 0; }

.ubicacion-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: start;
}

.info-block { margin-bottom: var(--space-xl); }
.info-block h3 { margin-bottom: var(--space-xs); }

.plain-link { color: var(--primary-link); font-weight: 500; }

.horario-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 16px;
}

.horario-table td {
  padding: 8px 0;
  border-bottom: 1px solid var(--hairline);
}

.horario-table td:first-child { color: var(--stone); font-weight: 600; width: 40%; }
.horario-table td.muted { color: var(--mute-on-light); font-weight: 400; }

.note { font-size: 14px; color: var(--ash-on-light); margin-top: var(--space-sm); }

.ubicacion-map {
  position: relative;
  min-height: 380px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--hairline);
  background: var(--surface-grey);
}

.ubicacion-map iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Custom map pin overlay (decorative — sits over the default marker) */
.map-pin {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: none;
  filter: drop-shadow(0 8px 10px rgba(28,27,26,0.4));
  z-index: 2;
}

.map-pin img {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-full);
  border: 4px solid var(--surface);
  background: var(--surface);
  object-fit: cover;
}

.map-pin::after {
  content: "";
  width: 0;
  height: 0;
  border-left: 9px solid transparent;
  border-right: 9px solid transparent;
  border-top: 14px solid var(--surface);
  margin-top: -4px;
}

/* Floating WhatsApp button */
.whatsapp-float {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 58px;
  height: 58px;
  border-radius: var(--radius-full);
  background: #25d366;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 28px rgba(28,27,26,0.28);
  z-index: 70;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.whatsapp-float:hover { transform: scale(1.08); box-shadow: 0 14px 32px rgba(28,27,26,0.32); }
.whatsapp-float .icon { width: 28px; height: 28px; }

@media (max-width: 600px) {
  .whatsapp-float { right: 16px; bottom: 16px; width: 52px; height: 52px; }
}

/* Contacto CTA */
.contacto-cta {
  background: var(--forest);
  color: var(--on-dark);
  padding: 96px 0;
  text-align: center;
}

.contacto-inner { max-width: 640px; margin: 0 auto; }
.contacto-cta h2 { color: var(--on-dark); }
.contacto-cta p { color: var(--sage-pale); }
.contacto-inner .hero-actions { justify-content: center; }

/* Footer */
.footer { background: var(--ink-band-soft); color: var(--on-dark); padding: 64px 0 24px; }

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: var(--space-xl);
  padding-bottom: var(--space-xl);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand { display: flex; flex-direction: column; gap: 4px; font-family: var(--font-display); font-size: 20px; }

.muted-dark { color: var(--mute); font-size: 14px; font-family: var(--font-body); margin-top: 8px; }

.footer-col h4 { font-size: 13px; text-transform: uppercase; letter-spacing: 1px; color: var(--mute); margin-bottom: var(--space-md); }

.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: 15px; color: var(--on-dark); }

.footer-col a:hover { color: var(--sage-pale); }

.footer-bottom { padding-top: var(--space-md); font-size: 13px; color: var(--mute); }

/* Simple page hero (standalone pages) */
.page-hero { padding: 56px 0 80px; }
.page-hero .lead { max-width: 60ch; }

/* Photo collage (Sobre nosotros) */
.collage {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
}

.collage img {
  width: 100%;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: 0 16px 32px rgba(28,27,26,0.12);
}

.collage-item-1 { aspect-ratio: 3 / 4; margin-top: 56px; }
.collage-item-2 { aspect-ratio: 1 / 1; }
.collage-item-3 { aspect-ratio: 1 / 1; margin-top: -32px; }
.collage-item-4 { aspect-ratio: 3 / 4; }

/* Values grid (reuses feature-card look) */
.values-section { padding: 96px 0; background: var(--surface-grey); }

/* Contact page */
.contact-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
}

.contact-card {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.contact-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(28,27,26,0.10);
  border-color: var(--sage-pale);
}

.contact-card .feature-icon { margin-bottom: 0; flex-shrink: 0; }

.contact-card h3 { margin-bottom: 4px; }
.contact-card p { margin-bottom: 0; color: var(--ash-on-light); font-size: 15px; }
.contact-card .contact-value { color: var(--primary-link); font-weight: 600; font-size: 16px; }

/* Reveal stagger (cascading entrance for sibling groups) */
.reveal:nth-child(1) { transition-delay: 0s; }
.reveal:nth-child(2) { transition-delay: 0.08s; }
.reveal:nth-child(3) { transition-delay: 0.16s; }
.reveal:nth-child(4) { transition-delay: 0.24s; }
.reveal:nth-child(5) { transition-delay: 0.32s; }
.reveal:nth-child(6) { transition-delay: 0.4s; }

/* Chip row (quick benefits under a hero lead) */
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin: var(--space-md) 0 var(--space-lg);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--stone);
  background: var(--surface);
  border: 1px solid var(--hairline);
  padding: 8px 14px;
  border-radius: var(--radius-full);
}

.chip .icon { width: 14px; height: 14px; }

/* Service hero (two-column, with reused photo) */
.service-hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
}

.service-hero-media {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 20px 48px rgba(28,27,26,0.14);
}

.service-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.service-hero-media:hover img { transform: scale(1.05); }

/* Check list (Qué incluye) */
.check-list { list-style: none; margin: 0; padding: 0; }

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: var(--space-sm);
  color: var(--ash-on-light);
}

.check-list .icon {
  width: 18px;
  height: 18px;
  color: var(--olive);
  flex-shrink: 0;
  margin-top: 2px;
}

/* Process / timeline */
.process-section { padding: 96px 0; background: var(--surface-grey); }

.process-list { display: flex; flex-direction: column; max-width: 720px; }

.process-step {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: var(--space-lg);
  position: relative;
  padding-bottom: var(--space-xl);
}

.process-step:last-child { padding-bottom: 0; }

.process-step:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 23px;
  top: 48px;
  bottom: 4px;
  width: 2px;
  background: var(--hairline);
}

.process-number {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  background: var(--stone);
  color: var(--on-stone);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 20px;
  flex-shrink: 0;
  z-index: 1;
}

.process-step h3 { margin-bottom: 4px; }
.process-step p { margin: 0; color: var(--ash-on-light); }

/* FAQ accordion */
.faq-section { padding: 96px 0; }

.faq-list { max-width: 760px; }

.faq-item { border-bottom: 1px solid var(--hairline); }

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font: inherit;
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  padding: var(--space-lg) 0;
}

.faq-question .chevron {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--stone);
  transition: transform 0.25s ease;
}

.faq-item.is-open .faq-question .chevron { transform: rotate(180deg); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-answer p { color: var(--ash-on-light); margin: 0 0 var(--space-lg); max-width: 60ch; }

.faq-item.is-open .faq-answer { max-height: 240px; }

/* Related services — editorial list rows */
.related-list { display: flex; flex-direction: column; max-width: 760px; }

.related-row {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  padding: var(--space-lg) var(--space-sm);
  border-bottom: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  transition: padding-left 0.25s ease, background-color 0.25s ease;
}

.related-row:first-child { border-top: 1px solid var(--hairline); }

.related-row:hover { padding-left: var(--space-md); background: var(--surface); }

.related-row .feature-icon { margin-bottom: 0; flex-shrink: 0; }

.related-row-text { flex: 1; }
.related-row-text h3 { margin-bottom: 2px; }
.related-row-text p { margin: 0; color: var(--ash-on-light); font-size: 15px; }

.related-row-arrow {
  width: 20px;
  height: 20px;
  color: var(--primary-link);
  flex-shrink: 0;
  transition: transform 0.25s ease;
}

.related-row:hover .related-row-arrow { transform: translateX(4px); }

/* Service detail pages */
.breadcrumb {
  padding: var(--space-lg) 0 0;
  font-size: 14px;
  color: var(--ash-on-light);
}

.breadcrumb a { color: var(--primary-link); }

.service-hero { padding: 32px 0 64px; }

.service-hero-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 76px;
  height: 76px;
  border-radius: var(--radius-full);
  margin-bottom: var(--space-md);
  background: var(--sage-pale);
  color: var(--espresso);
}
.service-hero-icon .icon { width: 36px; height: 36px; }
.urgencias-band .service-hero-icon {
  background: rgba(255,255,255,0.12);
  color: var(--sage-pale);
}

.service-hero .lead { color: var(--ink); }

.service-detail { padding-bottom: 96px; }

.service-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
}

.service-block {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
}

.service-block h2 { font-size: 26px; margin-bottom: var(--space-md); }

.service-block ul { margin: 0; padding-left: 20px; color: var(--ash-on-light); }
.service-block ul li { margin-bottom: var(--space-sm); }

.related-services { padding: 64px 0 96px; background: var(--surface-grey); }

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

.related-card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  display: block;
}

.related-card .feature-icon { margin-bottom: var(--space-xs); }
.related-card h3 { margin-bottom: 0; font-size: 18px; }

/* Scroll reveal (declared early so hover transforms below always win the cascade) */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.in-view {
  opacity: 1;
  transform: none;
}

/* Effects & interactions */
.nav-bar {
  transition: box-shadow 0.25s ease, background-color 0.25s ease, border-color 0.25s ease;
}

.nav-bar.is-scrolled {
  box-shadow: 0 2px 16px rgba(28,27,26,0.06);
}

.btn {
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(28,27,26,0.14);
}

.btn:active { transform: translateY(0); }

.nav-links a {
  position: relative;
  transition: color 0.2s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 2px;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.nav-links a:hover::after { transform: scaleX(1); }

.feature-card, .related-card {
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.feature-card:hover, .related-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 32px rgba(28,27,26,0.10);
  border-color: var(--sage-pale);
}

.card-link {
  transition: gap 0.2s ease;
}

.card-link:hover { color: var(--espresso); }

.hero-media, .sobre-media {
  overflow: hidden;
}

.hero-media img, .sobre-media img {
  transition: transform 0.5s ease;
}

.hero-media:hover img, .sobre-media:hover img {
  transform: scale(1.05);
}

.urgencias-phone { transition: transform 0.2s ease, box-shadow 0.2s ease; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .feature-card, .related-card, .hero-media img, .sobre-media img, .story-img {
    transition: none;
  }
  .story-text { gap: var(--space-xl); }
  .story-media { position: static; }
}

/* Mobile menu */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--stone);
}

.nav-toggle .icon { width: 26px; height: 26px; }

/* Responsive */
@media (max-width: 900px) {
  h1 { font-size: 42px; }
  h2 { font-size: 30px; }

  .nav-toggle { display: inline-flex; }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--canvas);
    border-bottom: 1px solid var(--hairline);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .nav-links.is-open { max-height: 320px; }

  .nav-links a {
    padding: var(--space-md) var(--space-lg);
    border-top: 1px solid var(--hairline);
  }

  .nav-links a::after { display: none; }

  .nav-dropdown { width: 100%; }

  .nav-dropdown-toggle {
    width: 100%;
    justify-content: space-between;
    padding: var(--space-md) var(--space-lg);
    border-top: 1px solid var(--hairline);
    font-size: 16px;
  }

  .nav-dropdown-menu {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    max-height: 0;
    overflow: hidden;
    border: none;
    box-shadow: none;
    border-radius: 0;
    padding: 0;
    background: var(--surface-grey);
    transition: max-height 0.3s ease;
  }

  .nav-dropdown.is-open .nav-dropdown-menu {
    max-height: 400px;
    padding: var(--space-sm) 0;
    transform: none;
  }

  .nav-dropdown-menu a { padding: 10px var(--space-xl); width: 100%; box-sizing: border-box; }

  .hero-grid, .sobre-grid, .ubicacion-grid, .story-grid, .service-detail-grid, .contact-cards, .service-hero-grid { grid-template-columns: 1fr; }
  .collage { grid-template-columns: 1fr 1fr; }
  .collage-item-1, .collage-item-3 { margin-top: 0; }
  .sobre-nosotros .sobre-media { order: -1; }
  .cards-grid, .related-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .urgencias-inner { flex-direction: column; align-items: flex-start; }

  .story-text { gap: var(--space-xl); order: 2; }
  .story-media { position: static; aspect-ratio: 4 / 3; order: 1; margin-bottom: var(--space-lg); }
  .story-img { position: static; opacity: 1; display: none; }
  .story-img:first-child { display: block; }
}

@media (max-width: 600px) {
  .cards-grid, .related-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .nav-cta { padding: 8px 14px; font-size: 13px; }
}
