/*
 * Clínica Endodontics — Stylesheet compartido
 * Mantener en sync con design tokens del proyecto.
 * Versión: 2026-05-13 (multi-page build inicial)
 */

/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
  /* Paleta brand */
  --cream:       #FAF6F0;
  --cream-deep:  #F3EDE3;
  --beige:       #EDE6DB;
  --beige-warm:  #E4DACB;
  --sand:        #D4C8B5;
  --bronze:      #A6835A;
  --bronze-dark: #8B6D45;
  --bronze-text: #7D6040;
  --bronze-deep: #6E5634;   /* 7:1 sobre cream — texto pequeño/links/hover (WCAG AA) */
  --bronze-on-dark: #C9A87C;
  --bronze-glow: rgba(166,131,90,0.12);
  --espresso:    #2C2118;
  --esp80:       rgba(44,33,24,0.8);
  --esp60:       rgba(44,33,24,0.65);
  --esp40:       rgba(44,33,24,0.4);
  --esp20:       rgba(44,33,24,0.2);
  --esp08:       rgba(44,33,24,0.08);
  --white:       #FFFDF9;
  --pure-white:  #FFFFFF;

  /* Accent colores externos (mantener tal cual, no rebrandean) */
  --whatsapp: #25D366;
  --imessage: #0E72DB;

  /* Tipografía */
  --font-serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-sans:  'DM Sans', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;

  /* Spacing scale (1rem = 16px) */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --space-9: 5rem;
  --space-10: 7rem;

  /* Radii */
  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 20px;
  --radius-xl: 24px;
  --radius-pill: 100px;
}

/* ============================================================
   RESET + BASE
   ============================================================ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  background: var(--cream);
  color: var(--espresso);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}
img { max-width: 100%; display: block; height: auto; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--cream); }
::-webkit-scrollbar-thumb { background: var(--sand); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--bronze); }

/* Texture overlay sutil (warm-neutral resurgence 2026) */
body::after {
  content: '';
  position: fixed; inset: 0; z-index: 9999;
  pointer-events: none; opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 180px;
}

/* Animations */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes shimmer-warm {
  0%, 100% { opacity: 0.85; }
  50% { opacity: 1; }
}
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity .9s cubic-bezier(.22,1,.36,1), transform .9s cubic-bezier(.22,1,.36,1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }

/* Skip-link (a11y) */
.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--espresso); color: var(--cream);
  padding: .75rem 1.25rem; z-index: 10000;
}
.skip-link:focus { left: 1rem; top: 1rem; }

/* === Focus indicators (WCAG 2.4.7) === */
:focus-visible {
  outline: 3px solid var(--bronze-text);
  outline-offset: 3px;
  border-radius: inherit;
}
.btn:focus-visible {
  outline-offset: 4px;
}
.form-group input:focus-visible,
.form-group select:focus-visible,
.form-group textarea:focus-visible {
  outline: 3px solid var(--bronze-text);
  outline-offset: 2px;
}
.skip-link:focus-visible {
  outline: 3px solid var(--bronze-text);
  outline-offset: 3px;
}

/* ============================================================
   NAV
   ============================================================ */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 1.5rem 5%;
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(250,246,240,0.95);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  transition: all .5s cubic-bezier(.22,1,.36,1);
}
.navbar.scrolled {
  padding: .9rem 5%;
  background: rgba(250,246,240,0.98);
  box-shadow: 0 1px 0 var(--esp08);
}
.nav-brand {
  font-family: var(--font-serif);
  font-size: 1.7rem; font-weight: 600;
  color: var(--espresso); letter-spacing: -.03em;
  display: flex; align-items: center; gap: .5rem;
}
.nav-brand em { color: var(--bronze); font-style: normal; }
.nav-logo { height: 30px; width: 30px; }
.nav-links {
  display: flex; gap: 2.5rem; align-items: center;
}
.nav-links a {
  font-size: .82rem; font-weight: 500;
  color: var(--esp80); letter-spacing: .06em; text-transform: uppercase;
  transition: color .3s; position: relative;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -3px; left: 0;
  width: 0; height: 1px; background: var(--bronze-text);
  transition: width .4s cubic-bezier(.22,1,.36,1);
}
.nav-links a:hover { color: var(--bronze-text); }
.nav-links a:hover::after { width: 100%; }
.nav-links a.active { color: var(--bronze-text); }
.nav-links a.active::after { width: 100%; }
.nav-cta {
  background: var(--espresso) !important; color: var(--cream) !important;
  padding: .65rem 1.6rem; border-radius: var(--radius-pill);
  font-weight: 500 !important; font-size: .8rem !important;
  letter-spacing: .06em !important; text-transform: uppercase !important;
  transition: all .4s !important;
}
.nav-cta::after { display: none !important; }
.nav-cta:hover {
  background: var(--bronze) !important; color: var(--espresso) !important;
  transform: translateY(-1px); box-shadow: 0 8px 24px rgba(166,131,90,.2);
}
.nav-toggle {
  display: none; background: none; border: none; cursor: pointer;
  padding: 6px; flex-direction: column; gap: 5px;
}
.nav-toggle span {
  display: block; width: 24px; height: 1.5px;
  background: var(--espresso); transition: all .3s;
}
.mobile-menu {
  display: none; position: fixed; inset: 0;
  background: var(--cream); z-index: 999;
  flex-direction: column; align-items: center; justify-content: center;
  gap: 2.5rem;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-family: var(--font-serif); font-size: 2rem;
  color: var(--espresso); transition: color .3s;
}
.mobile-menu a:hover { color: var(--bronze); }
.mobile-close {
  position: absolute; top: 1.5rem; right: 5%;
  background: none; border: none; cursor: pointer;
  font-size: 1.8rem; color: var(--espresso);
}

/* ============================================================
   SECTIONS — shared atoms
   ============================================================ */
section { padding: var(--space-10) 5%; }
.section-header {
  text-align: center; max-width: 720px; margin: 0 auto var(--space-8);
}
.section-tag {
  display: inline-flex; align-items: center; gap: .6rem;
  font-size: .68rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--bronze-text); margin-bottom: 1.2rem; font-weight: 600;
}
.section-tag::before, .section-tag::after {
  content: ''; width: 20px; height: 1px; background: var(--sand);
}
.section-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 400; line-height: 1.15; letter-spacing: -.02em;
  margin-bottom: 1rem;
}
.section-title em {
  font-style: italic; font-weight: 300; color: var(--bronze-dark);
}
.section-subtitle {
  color: var(--esp80); font-size: 1rem; line-height: 1.7;
}

/* ============================================================
   HERO — variant ligero para sub-páginas
   ============================================================ */
.page-hero {
  padding: 9rem 5% 4rem;
  background: var(--cream-deep);
  position: relative; overflow: hidden;
}
.page-hero-inner {
  max-width: 880px; margin: 0 auto; text-align: center;
}
.page-hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 4.5vw, 3.6rem);
  font-weight: 400; line-height: 1.1; letter-spacing: -.025em;
  margin: 1.2rem 0 1.4rem;
  animation: fadeUp .8s .1s ease both;
}
.page-hero h1 em {
  font-style: italic; font-weight: 300; color: var(--bronze-dark);
}
.page-hero-lede {
  font-size: 1.05rem; color: var(--esp80); line-height: 1.75;
  max-width: 640px; margin: 0 auto 2rem;
  animation: fadeUp .8s .2s ease both;
}
.breadcrumbs {
  display: inline-flex; gap: .5rem; align-items: center;
  font-size: .78rem; color: var(--esp80); letter-spacing: .04em; /* AA: esp40 fallaba contraste en la página actual */
}
.breadcrumbs a { color: var(--bronze-text); transition: color .3s; }
.breadcrumbs a:hover { color: var(--bronze-deep); }
.breadcrumbs .sep { color: var(--esp20); }

/* Contextual CTA dentro de artículos de blog — revamp 2026-05-25 */
.ctx-cta { background: #FFFDF9; border: 1px solid #E4DACB; border-radius: 16px; padding: 2rem; margin: 2.5rem 0; text-align: center; }
.ctx-cta-lab { font-size: .66rem; letter-spacing: .18em; text-transform: uppercase; color: #6E5634; font-weight: 600; margin-bottom: .6rem; }
.ctx-cta h3 { font-family: 'Cormorant Garamond', Georgia, serif; font-style: italic; font-size: 1.5rem; font-weight: 500; line-height: 1.2; margin: 0 0 .6rem; color: #2C2118; }
.ctx-cta h3 em { font-style: italic; color: #6E5634; }
.ctx-cta p { font-size: .95rem; line-height: 1.6; color: #5B5043; margin: 0 auto 1.3rem; max-width: 52ch; }
.ctx-cta-actions { display: flex; gap: .7rem; justify-content: center; flex-wrap: wrap; }
.ctx-cta-btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .8rem 1.5rem; border-radius: 99px; font-weight: 600; font-size: .85rem; text-decoration: none; transition: transform .2s; }
.ctx-cta-btn:hover { transform: translateY(-1px); }
.ctx-cta-btn svg { width: 18px; height: 18px; flex: 0 0 18px; }
.ctx-cta-wa { background: #25D366; color: #073E1F !important; }
.ctx-cta-im { background: #0E72DB; color: #fff !important; }
.ctx-cta-sub { display: block; font-size: .72rem; color: #6f675d; margin-top: 1rem; }
@media (max-width: 600px) { .ctx-cta-btn { width: 100%; } }

/* ============================================================
   ANSWER CAPSULE — para AI/GEO
   ============================================================ */
.answer-capsule {
  max-width: 720px; margin: 3rem auto;
  padding: 2rem 2.4rem;
  background: var(--white);
  border-left: 3px solid var(--bronze);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  box-shadow: 0 12px 32px rgba(44,33,24,.05);
}
.answer-capsule p {
  font-size: 1.05rem; line-height: 1.7; color: var(--esp80);
}
.answer-capsule p strong { color: var(--espresso); }

/* ============================================================
   PROSE — bloques de contenido largo
   ============================================================ */
.prose {
  max-width: 720px; margin: 0 auto;
}
.prose h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 2.6vw, 2rem);
  font-weight: 500; line-height: 1.2; letter-spacing: -.015em;
  margin: 3rem 0 1rem;
}
.prose h2 em { font-style: italic; font-weight: 300; color: var(--bronze-dark); }
.prose h3 {
  font-family: var(--font-serif);
  font-size: 1.3rem; font-weight: 500; line-height: 1.25;
  margin: 2rem 0 .8rem;
}
.prose p {
  font-size: .98rem; line-height: 1.8; color: var(--esp80);
  margin-bottom: 1.1rem;
}
.prose ul, .prose ol {
  margin: 1rem 0 1.5rem 1.5rem; padding-left: .5rem;
}
.prose ul li, .prose ol li {
  font-size: .98rem; line-height: 1.7; color: var(--esp80);
  margin-bottom: .5rem; position: relative;
}
.prose ul li::before {
  content: ''; position: absolute; left: -1.2rem; top: .7rem;
  width: 6px; height: 6px; border-radius: 50%; background: var(--bronze);
}
.prose ol { list-style: decimal; color: var(--bronze-text); }
.prose ol li { padding-left: .3rem; }
.prose strong { color: var(--espresso); font-weight: 600; }
.prose a {
  color: var(--bronze-text); border-bottom: 1px solid var(--bronze-glow);
  transition: border-color .3s;
}
.prose a:hover { border-bottom-color: var(--bronze); }
.prose blockquote {
  border-left: 3px solid var(--bronze);
  padding: 0 0 0 1.5rem; margin: 2rem 0;
  font-family: var(--font-serif);
  font-style: italic; font-size: 1.15rem; line-height: 1.6;
  color: var(--esp80);
}
.prose blockquote cite {
  display: block; margin-top: .8rem;
  font-family: var(--font-sans); font-style: normal;
  font-size: .82rem; color: var(--bronze-text);
  font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
}

/* ============================================================
   FAQ accordion
   ============================================================ */
.faq {
  max-width: 720px; margin: 4rem auto 0;
}
.faq-item {
  border-top: 1px solid var(--esp08);
  padding: 1.4rem 0;
}
.faq-item:last-child { border-bottom: 1px solid var(--esp08); }
.faq-item summary {
  cursor: pointer; list-style: none;
  font-family: var(--font-serif);
  font-size: 1.2rem; font-weight: 500; color: var(--espresso);
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 1.5rem; line-height: 1.4;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+'; font-size: 1.8rem; color: var(--bronze);
  flex-shrink: 0; transition: transform .3s; line-height: 1;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .faq-answer {
  margin-top: 1rem; font-size: .98rem; line-height: 1.7;
  color: var(--esp80);
}
.faq-item .faq-answer p { margin-bottom: .8rem; }
.faq-item .faq-answer p:last-child { margin-bottom: 0; }

/* ============================================================
   CARDS — services + related links
   ============================================================ */
.card-grid {
  display: grid; gap: 1.5rem;
  max-width: 1200px; margin: 0 auto;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.service-card {
  background: var(--white);
  border: 1px solid var(--esp08);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: all .5s cubic-bezier(.22,1,.36,1);
  display: flex; flex-direction: column;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(44,33,24,.08);
  border-color: var(--beige-warm);
}
.service-card.coming-soon {
  background: var(--cream);
  opacity: .65;
  pointer-events: none;
}
.service-card .icon-box {
  width: 48px; height: 48px;
  border-radius: var(--radius-sm);
  background: var(--bronze-glow);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.2rem;
}
.service-card .icon-box svg {
  width: 22px; height: 22px; color: var(--bronze);
}
.service-card h3 {
  font-family: var(--font-serif);
  font-size: 1.4rem; font-weight: 500; letter-spacing: -.01em;
  margin-bottom: .6rem; line-height: 1.2;
}
.service-card p {
  color: var(--esp80); font-size: .9rem; line-height: 1.65;
  flex-grow: 1; margin-bottom: 1.2rem;
}
.service-card .card-link {
  font-size: .78rem; color: var(--bronze-text);
  font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  display: inline-flex; align-items: center; gap: .4rem;
  transition: gap .3s;
}
.service-card .card-link::after {
  content: '→'; transition: transform .3s;
}
.service-card:hover .card-link::after { transform: translateX(4px); }
.service-card .coming-soon-tag {
  font-size: .68rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--esp40); font-weight: 600;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: 1rem 2.2rem;
  font-size: .85rem; font-weight: 600;
  letter-spacing: .04em;
  border-radius: var(--radius-pill);
  border: none; cursor: pointer;
  transition: all .4s cubic-bezier(.22,1,.36,1);
  text-align: center; line-height: 1;
}
.btn-primary {
  background: var(--bronze); color: #1B130C;
}
.btn-primary:hover {
  background: #C9A87C;
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(166,131,90,.35);
}
.btn-outline {
  background: transparent; color: var(--espresso);
  border: 1.5px solid var(--esp20);
}
.btn-outline:hover {
  border-color: var(--bronze);
  color: var(--bronze-text);
}
.btn-dark {
  background: var(--espresso); color: var(--cream);
}
.btn-dark:hover {
  background: var(--bronze); color: #1B130C;
}
.btn-whatsapp {
  background: var(--whatsapp); color: #073E1F;
}
.btn-whatsapp:hover {
  transform: translateY(-2px); box-shadow: 0 8px 24px rgba(37,211,102,.25);
}
.btn-imessage {
  background: var(--imessage); color: #fff;
}
.btn-imessage:hover {
  transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,122,255,.25);
}
.btn svg { width: 18px; height: 18px; }

/* CTA cluster */
.cta-cluster {
  display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center;
  margin: 2.5rem 0;
}

/* ============================================================
   CTA SECTION — full-width espresso block
   ============================================================ */
.cta-band {
  background: var(--espresso); color: var(--cream);
  padding: 5rem 5%; position: relative; overflow: hidden;
}
.cta-band-inner {
  max-width: 720px; margin: 0 auto; text-align: center; position: relative; z-index: 1;
}
.cta-band-inner::before {
  content: ''; position: absolute;
  width: 360px; height: 360px; border-radius: 50%;
  background: radial-gradient(circle, rgba(166,131,90,.12) 0%, transparent 70%);
  top: -50%; right: -20%; z-index: -1;
}
.cta-band h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 400; line-height: 1.15;
  margin-bottom: 1rem;
}
.cta-band h2 em { color: var(--bronze-on-dark); font-style: italic; font-weight: 300; }
.cta-band p {
  color: rgba(250,246,240,.85); font-size: 1rem; line-height: 1.75;
  margin-bottom: 2rem;
}

/* ============================================================
   RELATED PAGES — internal linking widget
   ============================================================ */
.related-section {
  background: var(--cream-deep);
  padding: 5rem 5%;
}
.related-section h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 2.4vw, 2rem);
  font-weight: 400; text-align: center; line-height: 1.2;
  margin-bottom: 2.5rem;
}
.related-section h2 em { font-style: italic; color: var(--bronze-dark); font-weight: 300; }
.related-grid {
  display: grid; gap: 1.2rem;
  max-width: 1100px; margin: 0 auto;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.related-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 1.6rem 1.8rem;
  display: flex; flex-direction: column; gap: .5rem;
  border: 1px solid var(--esp08);
  transition: all .4s;
}
.related-card:hover {
  border-color: var(--bronze);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(44,33,24,.06);
}
.related-card .kicker {
  font-size: .7rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--bronze-text); font-weight: 600;
}
.related-card h3 {
  font-family: var(--font-serif);
  font-size: 1.15rem; font-weight: 500; letter-spacing: -.01em;
  line-height: 1.3;
}
.related-card p {
  font-size: .85rem; line-height: 1.55; color: var(--esp80);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  padding: 5rem 5% 2rem;
  background: var(--espresso);
  color: rgba(250,246,240,.85);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 3rem; margin-bottom: 3.5rem;
  max-width: 1200px; margin-left: auto; margin-right: auto;
}
.footer-brand {
  font-family: var(--font-serif);
  font-size: 1.5rem; font-weight: 600;
  color: var(--cream); margin-bottom: 1rem;
  display: flex; align-items: center; gap: .5rem;
}
.footer-brand em { color: var(--bronze-on-dark); font-style: normal; }
.footer-about {
  font-size: .85rem; line-height: 1.65; max-width: 280px;
  color: rgba(250,246,240,.75);
}
.footer-logo { height: 24px; width: 24px; color: var(--cream); opacity: .9; }
.footer h3 {
  font-size: .72rem; font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase; color: var(--bronze-on-dark);
  margin-bottom: 1.2rem;
  font-family: var(--font-sans);
}
.footer ul li { margin-bottom: .6rem; }
.footer ul a {
  font-size: .85rem; color: rgba(250,246,240,.8);
  transition: color .3s;
}
.footer ul a:hover { color: var(--bronze-on-dark); }
.footer-schedule p {
  font-size: .85rem; margin-bottom: .4rem;
  color: rgba(250,246,240,.8);
}
.footer-schedule strong { color: var(--cream); font-weight: 500; }
.footer-bottom {
  border-top: 1px solid rgba(250,246,240,.15);
  padding-top: 1.5rem;
  display: flex; justify-content: space-between; align-items: center;
  max-width: 1200px; margin: 0 auto;
}
.footer-copy { font-size: .75rem; color: rgba(250,246,240,.65); }
.footer-socials { display: flex; gap: .8rem; }
.footer-socials a {
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid rgba(250,246,240,.25);
  display: flex; align-items: center; justify-content: center;
  color: rgba(250,246,240,.85); transition: all .3s;
}
.footer-socials a:hover {
  border-color: var(--bronze-on-dark);
  color: var(--bronze-on-dark);
}
.footer-socials svg { width: 16px; height: 16px; }

/* ============================================================
   CARD PHOTO + GALLERY (restore foto-rich layout)
   ============================================================ */
.service-card .card-photo,
.related-card .card-photo {
  margin: -2rem -2rem 1.5rem;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--cream-deep);
}
.service-card .card-photo img,
.related-card .card-photo img {
  width: 100%; height: 100%; object-fit: cover;
  display: block;
  transition: transform .6s cubic-bezier(.22,1,.36,1);
}
.service-card:hover .card-photo img,
.related-card:hover .card-photo img {
  transform: scale(1.04);
}

/* Gallery strip — 3 columnas en desktop, stack en mobile */
.gallery-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  max-width: 1200px;
  margin: 3rem auto 0;
  padding: 0 5%;
}
.gallery-strip picture {
  display: block;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3;
}
.gallery-strip img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .6s cubic-bezier(.22,1,.36,1);
  display: block;
}
.gallery-strip picture:hover img {
  transform: scale(1.04);
}
@media (max-width: 1024px) {
  .gallery-strip { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .gallery-strip { grid-template-columns: 1fr; }
  .service-card .card-photo,
  .related-card .card-photo {
    margin: -1.5rem -1.5rem 1.2rem;
  }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}
@media (max-width: 768px) {
  section { padding: 4rem 6%; }
  .page-hero { padding: 7rem 6% 3rem; }
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .answer-capsule { margin: 2rem 1rem; padding: 1.4rem 1.6rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
  .cta-cluster { flex-direction: column; align-items: stretch; }
  .cta-cluster .btn { justify-content: center; }
}

/* ============================================================
   PRINT — clean output if anyone prints
   ============================================================ */
@media print {
  .navbar, .mobile-menu, .footer, .cta-band, .cta-cluster { display: none; }
  body { background: white; color: black; }
  body::after { display: none; }
}

/* ============================================================
   REDUCED MOTION (WCAG 2.3.3)
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
  html { scroll-behavior: auto !important; }
}

/* Switch de idioma en el footer — revamp 2026-05-25 */
.footer-lang { color: #C9A472; font-size: .8rem; letter-spacing: .04em; display: inline-flex; align-items: center; gap: .35rem; transition: color .3s; }
.footer-lang:hover { color: #FAF6F0; }

/* Footer chat stack + social en brand — revamp 2026-05-25 */
.footer-brand-social { display: flex; gap: .6rem; margin-top: 1.2rem; }
.footer-brand-social a { width: 34px; height: 34px; border-radius: 50%; border: 1px solid #4A3A2A; display: flex; align-items: center; justify-content: center; color: #C9A472; transition: background .3s, color .3s; }
.footer-brand-social a:hover { background: var(--bronze); color: #1B130C; }
.footer-brand-social svg { width: 16px; height: 16px; }
.footer-chat { display: flex; flex-direction: column; gap: .55rem; margin-top: 1.1rem; }
.footer-chat a { display: inline-flex; align-items: center; gap: .55rem; color: #D8D0C2; font-size: .84rem; transition: color .3s; }
.footer-chat a:hover { color: #FAF6F0; }
.footer-chat svg { width: 16px; height: 16px; flex: 0 0 16px; }
.footer-chat .fc-ic { color: var(--bronze-on-dark); }

/* Service card v2 — tag de categoría + ocultar ícono redundante en cards con foto */
.card-photo { position: relative; }
.card-photo + .icon-box { display: none; }
.svc-tag { position: absolute; top: .9rem; left: .9rem; background: rgba(28,18,12,.78); color: #FAF6F0; padding: .34rem .72rem; border-radius: 99px; font-size: .6rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
