/* =================================================================
   Clínica Dental Berlin — main.css  (v3, "papel crema")
   Basado en DESIGN (5): lienzo crema, tarjetas con filete interior,
   CTA en píldora negra, acento ámbar, Inter + display Bricolage.
   Superficies planas, sin sombras pesadas. Mobile-first.
   ================================================================= */

:root {
  --cream:    #fbfaf9;
  --stone:    #f2f0ed;
  --sand:     #f6f4ef;
  --ink:      #121212;
  --charcoal: #343433;
  --body:     #474645;
  --muted:    #7e7e7d;
  --stone-border: #e5d5c3;

  --blue:   #0086fc;
  --sky:    #00b2ff;
  --green:  #00c978;
  --mint:   #00ca48;
  --ember:  #ff3e00;
  --sun:    #ffcd6c;
  --gold:   #d48f00;
  --honey:  #ffbb26;
  --pink:   #ff58ae;
  --violet: #9f4fff;

  --font-display: 'Bricolage Grotesque', 'Inter', ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-inter:   'Inter', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --page-max-width: 1200px;
  --radius-card: 10px;
  --radius-btn: 32px;
  --radius-pill: 9999px;

  --hairline: inset 0 0 0 1px var(--stone);
  --hairline-strong: inset 0 0 0 1px #e6e2db;
  --shadow-sm: 0 1px 6px 0 rgba(0,0,0,.04), 0 0 24px 0 rgba(0,0,0,.05);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-inter);
  font-size: 17px;
  line-height: 1.55;
  letter-spacing: -0.011em;
  color: var(--body);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--charcoal);
  margin: 0 0 .5em;
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(38px, 6vw, 62px); letter-spacing: -0.032em; }
h2 { font-size: clamp(28px, 3.6vw, 44px); letter-spacing: -0.022em; }
h3 { font-size: clamp(20px, 2.2vw, 24px); letter-spacing: -0.016em; }
h4 { font-size: 19px; line-height: 1.3; letter-spacing: -0.012em; }
p  { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--page-max-width); margin: 0 auto; padding: 0 22px; }
.container-narrow { max-width: 820px; }
.section { padding: 60px 0; }
.section-lg { padding: 84px 0; }
.text-center { text-align: center; }
.muted { color: var(--muted); }
.mt-0{margin-top:0}.mb-0{margin-bottom:0}.mt-16{margin-top:16px}.mt-24{margin-top:24px}.mt-32{margin-top:32px}.mt-40{margin-top:40px}
.hidden { display: none; }

.bg-canvas { background: var(--cream); }
.bg-cloud  { background: var(--stone); }
.bg-white  { background: var(--cream); }

/* Eyebrow / encabezados de sección */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-inter);
  font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .1em;
  color: var(--ember); margin-bottom: 16px;
}
.eyebrow::before { content: ""; width: 20px; height: 2px; background: var(--ember); border-radius: 2px; }
.section-head { max-width: 700px; margin: 0 auto 48px; }
.section-head.left { margin-left: 0; }
.section-head p { color: var(--muted); font-size: 19px; margin: 0; }

/* ----------------------------------------------------------------- */
/*  Botones — dos píldoras: negra (primaria) y arena (secundaria)     */
/* ----------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-inter); font-size: 15px; font-weight: 600; letter-spacing: -0.009em;
  padding: 13px 24px; border-radius: var(--radius-btn); border: 0; cursor: pointer;
  transition: background .15s ease, color .15s ease, box-shadow .15s ease, transform .12s ease;
  text-decoration: none; line-height: 1; white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn-coral { background: var(--ink); color: var(--cream); }        /* primaria: píldora negra */
.btn-coral:hover { background: #000; color: #fff; }
.btn-ghost, .btn-ghost-light { background: var(--sand); color: var(--ink); box-shadow: var(--hairline); }  /* secundaria: píldora arena */
.btn-ghost:hover, .btn-ghost-light:hover { background: var(--stone); color: var(--ink); }
.btn-nav { background: var(--ink); color: var(--cream); font-size: 14px; padding: 10px 20px; }
.btn-nav:hover { background: #000; color: #fff; }
.btn-block { width: 100%; }
.btn-lg { font-size: 16px; padding: 15px 30px; }

/* ----------------------------------------------------------------- */
/*  Barra de utilidad + Navbar                                        */
/* ----------------------------------------------------------------- */
.utility-bar { display: none; background: var(--cream); color: var(--muted); font-size: 13px; border-bottom: 1px solid var(--stone); }
.utility-bar .container { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 8px 22px; }
.utility-bar a { color: var(--charcoal); }
.utility-bar a:hover { color: var(--ink); text-decoration: none; }
.utility-bar .u-left { display: flex; gap: 20px; align-items: center; }
.utility-bar .u-item { display: inline-flex; align-items: center; gap: 6px; }
.utility-bar .u-right { display: flex; gap: 16px; align-items: center; }
.util-hide { display: none; }
@media (min-width: 760px) { .util-hide { display: inline-flex; } .utility-bar { display: block; } }

.site-header { position: sticky; top: 0; z-index: 50; background: rgba(251,250,249,.9); backdrop-filter: saturate(160%) blur(10px); border-bottom: 1px solid var(--stone); }
.navbar { display: flex; align-items: center; justify-content: space-between; padding: 14px 22px; max-width: var(--page-max-width); margin: 0 auto; }
.brand { display: flex; align-items: center; gap: 11px; font-family: var(--font-display); font-weight: 600; font-size: 21px; letter-spacing: -.02em; color: var(--charcoal); }
.brand:hover { text-decoration: none; }
.brand-mark { width: 38px; height: 38px; border-radius: 10px; background: var(--ink); color: var(--cream); display: grid; place-items: center; font-weight: 700; font-size: 19px; font-family: var(--font-inter); }
.brand-mark span { color: var(--ember); }
.brand small { display: block; font-family: var(--font-inter); font-size: 11px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-top: 1px; }
.nav-links { display: none; gap: 30px; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--charcoal); font-size: 15px; font-weight: 500; letter-spacing: -0.01em; }
.nav-links a:hover { color: var(--ember); text-decoration: none; }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.nav-phone { display: none; font-weight: 600; color: var(--charcoal); font-size: 15px; }
.nav-phone:hover { color: var(--ember); text-decoration: none; }
.nav-toggle { display: inline-flex; flex-direction: column; gap: 4px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--charcoal); border-radius: 2px; }
.mobile-menu { display: none; border-top: 1px solid var(--stone); background: var(--cream); }
.mobile-menu.open { display: block; }
.mobile-menu ul { list-style: none; margin: 0; padding: 8px 22px 18px; }
.mobile-menu li { padding: 12px 0; border-bottom: 1px solid var(--stone); }
.mobile-menu a { color: var(--charcoal); font-weight: 500; }
@media (min-width: 980px) { .nav-links { display: flex; } .nav-toggle { display: none; } .nav-phone { display: inline; } }

/* ----------------------------------------------------------------- */
/*  Hero (sobre lienzo crema)                                         */
/* ----------------------------------------------------------------- */
.hero { background: var(--cream); color: var(--body); padding: 64px 0 72px; border-bottom: 1px solid var(--stone); }
.hero .container { display: grid; gap: 44px; grid-template-columns: 1fr; align-items: center; }
.hero h1 { color: var(--charcoal); margin-bottom: 20px; }
.hero h1 .accent { color: var(--ember); }
.hero p.lead { color: var(--body); font-size: 19px; line-height: 1.55; max-width: 500px; margin-bottom: 26px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-rating { display: flex; align-items: center; gap: 12px; margin-top: 26px; font-size: 15px; color: var(--muted); }
.hero-rating .stars { color: var(--honey); letter-spacing: 2px; font-size: 17px; }
.hero-rating strong { color: var(--charcoal); }

.hero-stack { position: relative; display: grid; gap: 16px; }
.rating-badge { display: inline-flex; align-items: center; gap: 12px; background: #fff; color: var(--charcoal); border-radius: var(--radius-card); padding: 14px 18px; box-shadow: var(--hairline), var(--shadow-sm); width: fit-content; }
.rating-badge .big { font-size: 30px; font-weight: 700; line-height: 1; font-family: var(--font-display); }
.rating-badge .stars { color: var(--honey); letter-spacing: 1px; font-size: 14px; }
.rating-badge .sub { font-size: 12.5px; color: var(--muted); }
.chat-mock { background: #fff; border-radius: var(--radius-card); overflow: hidden; box-shadow: var(--hairline), var(--shadow-sm); }
.chat-head { background: var(--ink); color: #fff; padding: 13px 16px; display: flex; align-items: center; gap: 10px; font-size: 14px; }
.chat-head .dot { width: 34px; height: 34px; border-radius: 50%; background: var(--green); display: grid; place-items: center; color: #fff; font-weight: 700; }
.chat-head small { color: rgba(255,255,255,.6); display: block; font-size: 11.5px; }
.chat-body { padding: 16px; display: flex; flex-direction: column; gap: 10px; background: var(--stone); }
.bubble { max-width: 82%; padding: 9px 13px; border-radius: 12px; font-size: 14px; line-height: 1.4; color: #23211f; }
.bubble.in { background: #fff; align-self: flex-start; border-top-left-radius: 4px; box-shadow: var(--hairline); }
.bubble.out { background: #dcf8c6; align-self: flex-end; border-top-right-radius: 4px; }
@media (min-width: 980px) {
  .hero { padding: 88px 0 96px; }
  .hero .container { grid-template-columns: 1.05fr .95fr; gap: 56px; }
  .hero-stack { padding-left: 24px; }
  .rating-badge { position: absolute; top: -22px; left: -6px; z-index: 2; }
  .hero-stack .chat-mock { margin-top: 34px; }
}

/* ----------------------------------------------------------------- */
/*  Barra de confianza                                                */
/* ----------------------------------------------------------------- */
.trust-bar { background: var(--cream); border-bottom: 1px solid var(--stone); }
.trust-bar .container { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 20px; padding: 24px 22px; }
.trust-item { display: flex; align-items: center; gap: 10px; font-size: 14.5px; font-weight: 500; color: var(--charcoal); }
.trust-item .tick { flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--ink); color: var(--cream); display: grid; place-items: center; }
.trust-item .tick svg { width: 13px; height: 13px; }
@media (min-width: 860px) { .trust-bar .container { grid-template-columns: repeat(4, 1fr); } }

/* ----------------------------------------------------------------- */
/*  Grids y tarjetas (filete interior, sin sombra)                    */
/* ----------------------------------------------------------------- */
.grid { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 620px) { .grid.cols-2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 920px) { .grid.cols-3 { grid-template-columns: repeat(3, 1fr); } .grid.cols-4 { grid-template-columns: repeat(4, 1fr); } }

.card { background: #fff; box-shadow: var(--hairline); border-radius: var(--radius-card); padding: 32px; }
.card-pastel { background: #fff; box-shadow: var(--hairline); border-radius: var(--radius-card); padding: 32px; }

/* Las clases bg-*-wash ahora solo definen el color de acento del icono */
.bg-mint-wash  { --accent: var(--green); }
.bg-sky-wash   { --accent: var(--sky); }
.bg-sage-wash  { --accent: var(--mint); }
.bg-lilac-wash { --accent: var(--violet); }
.bg-peach-wash { --accent: var(--ember); }
.bg-cream      { --accent: var(--honey); }

.service-card { display: flex; flex-direction: column; height: 100%; transition: box-shadow .16s ease, transform .16s ease; }
.service-card:hover { text-decoration: none; box-shadow: var(--hairline-strong), var(--shadow-sm); transform: translateY(-2px); }
.service-card h3 { font-size: 21px; margin: 0 0 8px; color: var(--charcoal); }
.service-card p { font-size: 15.5px; margin: 0 0 18px; color: var(--body); line-height: 1.5; }
.service-card .card-link { margin-top: auto; font-weight: 600; color: var(--ember); font-size: 14.5px; }
.service-card:hover .card-link { text-decoration: underline; }
.card-icon { width: 48px; height: 48px; border-radius: 50%; background: var(--accent, var(--ink)); color: #fff; display: grid; place-items: center; margin-bottom: 18px; }
.card-icon svg { width: 26px; height: 26px; }

/* Chips / tags */
.chip-row { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { display: inline-flex; align-items: center; gap: 8px; font-size: 14.5px; font-weight: 500; padding: 10px 18px; border-radius: var(--radius-pill); background: var(--sand); box-shadow: var(--hairline); color: var(--charcoal); transition: background .15s, color .15s; }
.chip:hover { text-decoration: none; background: var(--ink); color: var(--cream); }
.chip svg { width: 16px; height: 16px; }

/* Listas de beneficios / pasos */
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { display: flex; gap: 13px; padding: 11px 0; align-items: flex-start; font-size: 16px; color: var(--charcoal); }
.checklist li::before { content: "✓"; flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center; font-size: 13px; font-weight: 700; margin-top: 2px; }
.steps { display: grid; gap: 20px; }
.step { display: flex; gap: 18px; }
.step .num { flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--ink); color: var(--cream); display: grid; place-items: center; font-weight: 700; font-size: 17px; font-family: var(--font-display); }
.step h4 { margin: 5px 0 5px; color: var(--charcoal); }
.step p { margin: 0; font-size: 15.5px; color: var(--body); }

/* FAQ */
.faq details { background: #fff; box-shadow: var(--hairline); border-radius: var(--radius-card); padding: 4px 24px; margin-bottom: 10px; }
.faq summary { cursor: pointer; font-weight: 600; color: var(--charcoal); list-style: none; font-size: 17px; padding: 18px 0; display: flex; justify-content: space-between; gap: 16px; align-items: center; font-family: var(--font-inter); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--ember); font-size: 24px; line-height: 1; flex: none; }
.faq details[open] summary::after { content: "–"; }
.faq details > p { margin: 0 0 18px; font-size: 15.5px; color: var(--body); }

/* Breadcrumb */
.breadcrumb { font-size: 13px; color: var(--muted); padding: 22px 0 0; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--ember); }

/* Prosa y layouts partidos */
.prose p { font-size: 17px; line-height: 1.65; color: var(--body); }
.prose h2 { margin-top: 4px; }
.split { display: grid; gap: 40px; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 940px) { .split { grid-template-columns: 1.15fr .85fr; gap: 56px; } .split.even { grid-template-columns: 1fr 1fr; } }

/* Banda oscura (el único momento oscuro del sistema) */
.band-dark { background: var(--ink); color: #fff; border-radius: var(--radius-card); padding: 48px; }
.band-dark h2, .band-dark h3, .band-dark h4 { color: #fff; }
.band-dark p { color: rgba(255,255,255,.72); }

/* Métricas */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
@media (min-width: 760px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat .n { font-family: var(--font-display); font-size: 46px; font-weight: 600; color: #fff; letter-spacing: -.03em; line-height: 1; }
.stat .l { font-size: 14.5px; color: rgba(255,255,255,.6); margin-top: 10px; }

/* Testimonios */
.testi { background: #fff; box-shadow: var(--hairline); border-radius: var(--radius-card); padding: 32px; display: flex; flex-direction: column; gap: 14px; height: 100%; }
.testi .stars { color: var(--honey); letter-spacing: 1px; font-size: 16px; }
.testi p { font-size: 16px; line-height: 1.6; color: var(--charcoal); margin: 0; flex: 1; }
.testi .who { display: flex; align-items: center; gap: 12px; }
.testi .av { flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--sky); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 17px; line-height: 1; }
.testi .who-meta b { display: block; color: var(--charcoal); font-size: 15px; }
.testi .who-sub { display: block; font-size: 12.5px; color: var(--muted); }

/* ----------------------------------------------------------------- */
/*  Formulario                                                        */
/* ----------------------------------------------------------------- */
.form-card { background: #fff; box-shadow: var(--hairline); border-radius: var(--radius-card); padding: 32px; }
.form-card h3 { margin-bottom: 6px; color: var(--charcoal); }
.form-field { margin-bottom: 15px; }
.form-field label { display: block; font-size: 14px; font-weight: 600; color: var(--charcoal); margin-bottom: 6px; }
.form-field input, .form-field textarea { width: 100%; padding: 13px 15px; font-family: var(--font-inter); font-size: 16px; border: 0; box-shadow: inset 0 0 0 1px var(--stone-border); border-radius: 8px; background: var(--cream); color: var(--ink); transition: box-shadow .15s; }
.form-field input:focus, .form-field textarea:focus { outline: none; box-shadow: inset 0 0 0 1.5px var(--ember); }
.form-field textarea { min-height: 118px; resize: vertical; }
.form-check { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--muted); margin-bottom: 16px; }
.form-check input { margin-top: 3px; accent-color: var(--ink); }
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; overflow: hidden; }
.form-msg { padding: 12px 15px; border-radius: 8px; font-size: 14.5px; margin-bottom: 14px; display: none; }
.form-msg.show { display: block; }
.form-msg.ok { background: #e6f8ee; color: #0a7a45; }
.form-msg.err { background: #ffe7e0; color: #c22e0a; }

/* Info list */
.info-list { list-style: none; padding: 0; margin: 0; }
.info-list li { padding: 10px 0; font-size: 16px; color: var(--body); border-bottom: 1px solid var(--stone); display: flex; gap: 10px; }
.info-list li:last-child { border-bottom: 0; }
.info-list strong { color: var(--charcoal); }

/* ----------------------------------------------------------------- */
/*  Footer (superficie piedra, filete superior)                       */
/* ----------------------------------------------------------------- */
.site-footer { background: var(--stone); color: var(--body); padding: 64px 0 28px; border-top: 1px solid var(--stone-border); }
.site-footer a { color: var(--body); }
.site-footer a:hover { color: var(--ember); }
.footer-grid { display: grid; gap: 34px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1.1fr; } }
.footer-col h4 { color: var(--charcoal); font-family: var(--font-inter); font-size: 12px; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 16px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 9px; font-size: 14.5px; }
.footer-brand .brand { color: var(--charcoal); }
.footer-brand .brand-mark { background: var(--ink); color: var(--cream); }
.footer-brand .brand-mark span { color: var(--ember); }
.footer-brand p { margin-top: 14px; font-size: 14.5px; color: var(--body); }
.footer-rating { display: inline-flex; align-items: center; gap: 8px; margin-top: 6px; font-size: 14px; }
.footer-rating .stars { color: var(--honey); }
.footer-bottom { border-top: 1px solid var(--stone-border); margin-top: 40px; padding-top: 20px; font-size: 13px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; }
.footer-bottom a { color: var(--muted); }

/* ----------------------------------------------------------------- */
/*  Botones flotantes                                                 */
/* ----------------------------------------------------------------- */
.float-wa { position: fixed; right: 20px; bottom: 20px; z-index: 60; width: 58px; height: 58px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 6px 20px rgba(0,0,0,.18); transition: transform .15s; }
.float-wa:hover { text-decoration: none; transform: scale(1.06); }
.float-wa svg { width: 31px; height: 31px; }
.float-lang { position: fixed; left: 20px; bottom: 20px; z-index: 60; background: #fff; color: var(--ink); box-shadow: var(--hairline), 0 6px 20px rgba(0,0,0,.12); border-radius: var(--radius-pill); padding: 11px 18px; font-size: 14px; font-weight: 600; overflow: hidden; display: inline-flex; align-items: center; }
.float-lang .flag { position: absolute; inset: 0; opacity: .42; }
.float-lang .flag svg { width: 100%; height: 100%; display: block; }
.float-lang .flag-label { position: relative; z-index: 1; letter-spacing: .04em; text-shadow: 0 1px 2px rgba(255,255,255,.6); }
.float-lang:hover { text-decoration: none; transform: translateY(-2px); }
.float-lang:hover .flag { opacity: .6; }

/* Ads */
.ad-slot { margin: 8px auto 0; text-align: center; min-height: 90px; max-width: 970px; }
.ic { display: inline-block; vertical-align: middle; }
