:root {
  --terracotta: #B8412A;
  --terracotta-deep: #9A3420;
  --green: #2D4A3E;
  --green-light: #3C6151;
  --cream: #F7F0E4;
  --cream-deep: #EFE5D2;
  --gold: #D4A574;
  --gold-soft: #E3C9A6;
  --ink: #2A201A;
  --ink-soft: #5C4F44;
  --white: #FFFDF8;
  --shadow-warm: rgba(120, 70, 40, 0.10);
  --shadow-warm-lg: rgba(120, 70, 40, 0.16);
  --font-display: 'Playfair Display', 'Georgia', serif;
  --font-body: 'Inter', 'Helvetica Neue', sans-serif;
  --maxw: 1180px;
  --radius: 18px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.12; font-weight: 700; color: var(--ink); letter-spacing: -0.01em; }

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

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }

/* Bilingual visibility: body class controls which language is visible.
   Hide the inactive language with high-specificity body-scoped rules. */
body.lang-es [lang="en"] { display: none !important; }
body.lang-en [lang="es"] { display: none !important; }

/* ============ NAV ============ */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(247, 240, 228, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(120, 70, 40, 0.10);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.logo { font-family: var(--font-display); font-size: 26px; font-weight: 800; letter-spacing: -0.02em; display: flex; align-items: center; gap: 9px; }
.logo .mark { width: 30px; height: 30px; }
.logo .tu { color: var(--terracotta); }
.logo .caso { color: var(--green); }
.logo .ai { color: var(--gold); font-size: 16px; vertical-align: super; font-weight: 600; }

.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a.navlink { font-size: 15px; font-weight: 500; color: var(--ink-soft); transition: color .2s; }
.nav-links a.navlink:hover { color: var(--terracotta); }

.lang-toggle { display: inline-flex; border: 1.5px solid var(--green); border-radius: 999px; overflow: hidden; font-size: 13px; font-weight: 600; }
.lang-toggle button { background: transparent; border: none; padding: 6px 13px; cursor: pointer; color: var(--green); font-family: var(--font-body); font-weight: 600; transition: all .2s; }
.lang-toggle button.active { background: var(--green); color: var(--cream); }

.btn { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; padding: 13px 24px; border-radius: 999px; cursor: pointer; border: none; transition: transform .15s, box-shadow .2s, background .2s; font-family: var(--font-body); }
.btn-primary { background: var(--terracotta); color: var(--white); box-shadow: 0 8px 22px rgba(184, 65, 42, 0.28); }
.btn-primary:hover { background: var(--terracotta-deep); transform: translateY(-2px); box-shadow: 0 12px 28px rgba(184, 65, 42, 0.36); }
.btn-outline { background: transparent; color: var(--green); border: 1.5px solid var(--green); }
.btn-outline:hover { background: var(--green); color: var(--cream); transform: translateY(-2px); }
.btn-lg { font-size: 18px; padding: 17px 34px; }

.nav-cta { display: flex; align-items: center; gap: 18px; }
.menu-btn { display: none; background: none; border: none; cursor: pointer; }

/* ============ HERO ============ */
.hero { position: relative; padding: 90px 0 110px; overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(120% 90% at 78% 8%, rgba(212, 165, 116, 0.55) 0%, rgba(212, 165, 116, 0) 55%),
    radial-gradient(95% 70% at 92% 95%, rgba(184, 65, 42, 0.22) 0%, rgba(184, 65, 42, 0) 60%),
    linear-gradient(160deg, #FBF6EC 0%, #F7F0E4 45%, #F1E6D2 100%);
}
.hero-sun {
  position: absolute; right: -120px; top: -80px; width: 560px; height: 560px; z-index: 0;
  background: radial-gradient(circle at 50% 50%, rgba(212,165,116,0.65), rgba(184,65,42,0.25) 45%, rgba(184,65,42,0) 70%);
  border-radius: 50%; filter: blur(6px);
}
.hero-mountains { position: absolute; bottom: 0; left: 0; width: 100%; z-index: 0; opacity: 0.9; }
.hero .wrap { position: relative; z-index: 2; }
.eyebrow { display: inline-block; font-size: 13px; letter-spacing: 0.22em; font-weight: 700; color: var(--terracotta); text-transform: uppercase; margin-bottom: 22px; }
.eyebrow.gold { color: #A87C45; }
.hero h1 { font-size: clamp(48px, 8vw, 86px); font-weight: 800; max-width: 13ch; }
.hero h1 .accent { color: var(--terracotta); font-style: italic; }
.hero .subtext-en { font-family: var(--font-display); font-style: italic; font-size: clamp(22px, 3vw, 30px); color: var(--green); margin-top: 8px; font-weight: 500; }
.hero p.subhead { font-size: 19px; color: var(--ink-soft); max-width: 56ch; margin: 26px 0 36px; }
.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-trust { margin-top: 40px; display: flex; gap: 26px; flex-wrap: wrap; font-size: 14px; color: var(--ink-soft); font-weight: 500; }
.hero-trust span { display: inline-flex; align-items: center; gap: 8px; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); }

/* ============ SECTIONS ============ */
section.block { padding: 96px 0; }
.section-head { max-width: 60ch; margin-bottom: 54px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(34px, 5vw, 50px); margin-top: 14px; }
.section-head p { font-size: 18px; color: var(--ink-soft); margin-top: 16px; }

/* How it works */
.bg-green { background: var(--green); color: var(--cream); }
.bg-green h2, .bg-green h3 { color: var(--cream); }
.bg-green .eyebrow { color: var(--gold); }
.bg-green .section-head p { color: rgba(247,240,228,0.78); }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.step-card {
  background: rgba(247, 240, 228, 0.07); border: 1px solid rgba(212,165,116,0.30);
  border-radius: var(--radius); padding: 30px 26px; transition: transform .25s, background .25s;
}
.step-card:hover { transform: translateY(-6px); background: rgba(247,240,228,0.12); }
.step-num { font-family: var(--font-display); font-size: 44px; font-weight: 800; color: var(--gold); line-height: 1; margin-bottom: 16px; }
.step-card h3 { font-size: 23px; margin-bottom: 10px; }
.step-card p { font-size: 15.5px; color: rgba(247,240,228,0.80); line-height: 1.6; }

/* Practice areas */
.practice-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.practice-card {
  background: var(--white); border: 1px solid rgba(120,70,40,0.10); border-radius: var(--radius);
  padding: 34px 30px; box-shadow: 0 4px 14px var(--shadow-warm); transition: transform .25s, box-shadow .25s, border-color .25s;
  position: relative; overflow: hidden;
}
.practice-card::before { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 4px; background: var(--terracotta); transform: scaleX(0); transform-origin: left; transition: transform .3s; }
.practice-card:hover { transform: translateY(-6px); box-shadow: 0 16px 36px var(--shadow-warm-lg); border-color: var(--gold-soft); }
.practice-card:hover::before { transform: scaleX(1); }
.practice-icon { width: 46px; height: 46px; margin-bottom: 20px; color: var(--terracotta); }
.practice-card h3 { font-size: 24px; margin-bottom: 4px; }
.practice-card .en-label { font-size: 13.5px; font-weight: 600; color: var(--green); letter-spacing: 0.02em; text-transform: uppercase; margin-bottom: 14px; display: block; }
.practice-card p { font-size: 15.5px; color: var(--ink-soft); line-height: 1.62; }

/* Why MiCaso */
.bg-cream-deep { background: var(--cream-deep); }
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.why-card { text-align: left; }
.why-icon { width: 52px; height: 52px; border-radius: 14px; background: var(--terracotta); color: var(--cream); display: flex; align-items: center; justify-content: center; margin-bottom: 20px; }
.why-icon svg { width: 28px; height: 28px; }
.why-card h3 { font-size: 23px; margin-bottom: 10px; }
.why-card p { font-size: 16px; color: var(--ink-soft); }

/* Estimator */
.estimator { background: linear-gradient(155deg, var(--terracotta) 0%, var(--terracotta-deep) 100%); color: var(--white); border-radius: 26px; padding: 70px 56px; position: relative; overflow: hidden; }
.estimator::after { content: ""; position: absolute; right: -80px; bottom: -120px; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, rgba(212,165,116,0.45), transparent 65%); }
.estimator .inner { position: relative; z-index: 2; max-width: 660px; }
.estimator .eyebrow { color: var(--gold-soft); }
.estimator h2 { color: var(--white); font-size: clamp(32px, 5vw, 48px); margin-bottom: 18px; }
.estimator p { font-size: 18px; color: rgba(255,253,248,0.92); margin-bottom: 32px; }
.estimator .btn-light { background: var(--cream); color: var(--terracotta-deep); box-shadow: 0 10px 30px rgba(0,0,0,0.22); }
.estimator .btn-light:hover { background: var(--white); transform: translateY(-2px); }
.estimator .fine { font-size: 14px; color: rgba(255,253,248,0.78); margin-top: 20px; margin-bottom: 0; }

/* About */
.about-card { background: var(--white); border-radius: 26px; padding: 56px; box-shadow: 0 10px 32px var(--shadow-warm); border: 1px solid rgba(120,70,40,0.08); }
.about-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: start; }
.about-body p { font-size: 16.5px; color: var(--ink-soft); margin-bottom: 16px; }
.about-body strong { color: var(--ink); }
.team-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.team-card { background: var(--cream); border-radius: 16px; padding: 22px 16px; text-align: center; border: 1px solid rgba(120,70,40,0.08); }
.avatar { width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 12px; display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 700; font-size: 24px; color: var(--cream); }
.team-card h4 { font-family: var(--font-body); font-size: 15px; font-weight: 700; color: var(--ink); }
.team-card span { font-size: 13px; color: var(--ink-soft); }
.team-title { font-size: 14px; letter-spacing: 0.04em; font-weight: 700; color: var(--green); text-transform: uppercase; margin-bottom: 18px; }

/* FAQ */
.faq-list { max-width: 820px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid rgba(120,70,40,0.16); }
.faq-q { width: 100%; background: none; border: none; cursor: pointer; padding: 24px 4px; display: flex; justify-content: space-between; align-items: center; gap: 20px; text-align: left; font-family: var(--font-display); font-size: 21px; font-weight: 600; color: var(--ink); }
.faq-q .plus { flex-shrink: 0; width: 26px; height: 26px; position: relative; transition: transform .3s; }
.faq-q .plus::before, .faq-q .plus::after { content: ""; position: absolute; background: var(--terracotta); border-radius: 2px; }
.faq-q .plus::before { width: 100%; height: 2.5px; top: 50%; left: 0; transform: translateY(-50%); }
.faq-q .plus::after { height: 100%; width: 2.5px; left: 50%; top: 0; transform: translateX(-50%); transition: transform .3s; }
.faq-item.open .plus::after { transform: translateX(-50%) scaleY(0); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.faq-a p { padding: 0 4px 24px; font-size: 16.5px; color: var(--ink-soft); }

/* Final CTA */
.final-cta { text-align: center; padding: 110px 0; background: var(--green); color: var(--cream); position: relative; overflow: hidden; }
.final-cta::before { content: ""; position: absolute; inset: 0; background: radial-gradient(80% 100% at 50% 120%, rgba(212,165,116,0.30), transparent 60%); }
.final-cta .inner { position: relative; z-index: 2; }
.final-cta h2 { color: var(--cream); font-size: clamp(36px, 6vw, 58px); max-width: 18ch; margin: 0 auto 18px; }
.final-cta .sub-en { font-family: var(--font-display); font-style: italic; color: var(--gold-soft); font-size: 22px; margin-bottom: 36px; }

/* Footer */
footer { background: #241B16; color: rgba(247,240,228,0.72); padding: 64px 0 36px; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; margin-bottom: 44px; }
footer .logo { margin-bottom: 16px; }
footer .tagline { font-family: var(--font-display); font-style: italic; color: var(--gold-soft); font-size: 18px; margin-bottom: 18px; }
.footer-col h5 { font-family: var(--font-body); font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); margin-bottom: 16px; font-weight: 700; }
.footer-col a { display: block; font-size: 15px; color: rgba(247,240,228,0.72); margin-bottom: 10px; transition: color .2s; }
.footer-col a:hover { color: var(--cream); }
.footer-bottom { border-top: 1px solid rgba(247,240,228,0.12); padding-top: 26px; font-size: 13px; color: rgba(247,240,228,0.55); display: flex; flex-direction: column; gap: 12px; }
.footer-bottom .disclaimer { max-width: 80ch; line-height: 1.6; }
.footer-bottom .row { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
footer .lang-toggle { border-color: var(--gold); }
footer .lang-toggle button { color: var(--gold-soft); }
footer .lang-toggle button.active { background: var(--gold); color: #241B16; }

/* ============ RESPONSIVE ============ */
@media (max-width: 900px) {
  .nav-links .navlink { display: none; }
  .menu-btn { display: inline-flex; }
  .nav-cta .btn { display: none; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .practice-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: 1fr; gap: 28px; }
  .about-grid { grid-template-columns: 1fr; gap: 36px; }
  .about-card { padding: 36px 28px; }
  .estimator { padding: 50px 32px; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .wrap { padding: 0 20px; }
  .hero { padding: 56px 0 72px; }
  section.block { padding: 64px 0; }
  .steps { grid-template-columns: 1fr; }
  .practice-grid { grid-template-columns: 1fr; }
  .team-row { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .hero-ctas { width: 100%; }
  .hero-ctas .btn { flex: 1; justify-content: center; }
  .nav-inner { height: 64px; }
  .section-head { margin-bottom: 36px; }
}

/* mobile nav drawer */
.mobile-menu { display: none; position: fixed; inset: 0; z-index: 200; background: var(--cream); padding: 28px; flex-direction: column; }
.mobile-menu.open { display: flex; }
.mobile-menu .mm-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 40px; }
.mobile-menu a { font-family: var(--font-display); font-size: 28px; font-weight: 700; color: var(--ink); padding: 14px 0; border-bottom: 1px solid rgba(120,70,40,0.12); }
.mobile-menu .btn { margin-top: 28px; justify-content: center; }
.close-btn { background: none; border: none; font-size: 32px; cursor: pointer; color: var(--ink); line-height: 1; }

/* ============ INSIDE STEP 02 — CONOCE TU CASO ============ */
.step02-pillars {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 28px;
}
.step02-pillar {
  background: var(--white);
  border: 1px solid rgba(120, 70, 40, 0.10);
  border-radius: var(--radius);
  padding: 38px 34px;
  box-shadow: 0 4px 14px var(--shadow-warm);
  position: relative;
}
.step02-pillar.wide { grid-column: 1 / -1; }
.pillar-num {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.16em;
  margin-bottom: 14px;
}
.step02-pillar h3 {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  color: var(--green);
  margin-bottom: 16px;
  line-height: 1.18;
}
.step02-pillar p {
  color: var(--ink-soft);
  line-height: 1.68;
  margin-bottom: 14px;
  font-size: 16.5px;
}
.step02-pillar p:last-child { margin-bottom: 0; }
.pillar-note {
  font-size: 15px;
  color: var(--terracotta-deep);
  font-style: italic;
  border-left: 3px solid var(--gold);
  padding-left: 16px;
  margin-top: 18px;
}

/* Calculator cards */
.calc-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  margin-top: 28px;
  margin-bottom: 8px;
}
.calc-card {
  background: var(--white);
  border: 1px solid rgba(120, 70, 40, 0.10);
  border-left: 4px solid var(--gold);
  border-radius: 14px;
  padding: 28px 28px 24px;
  box-shadow: 0 3px 12px var(--shadow-warm);
}
.calc-tag {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 10px;
}
.calc-card h4 {
  font-family: var(--font-display);
  font-size: 23px;
  font-weight: 700;
  color: var(--green);
  margin-bottom: 12px;
  line-height: 1.22;
}
.calc-formula {
  font-size: 15.5px;
  color: var(--green);
  font-style: italic;
  margin-bottom: 16px;
  line-height: 1.55;
}
.calc-list {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
}
.calc-list li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 9px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-soft);
}
.calc-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 8px;
  height: 2px;
  border-radius: 2px;
  background: var(--terracotta);
}
.calc-output {
  font-size: 15px;
  background: var(--cream-deep);
  border-radius: 10px;
  padding: 12px 16px;
  margin: 16px 0 0;
  color: var(--ink);
  line-height: 1.5;
}
.calc-output strong { color: var(--green); font-weight: 700; }

.calc-total {
  font-family: var(--font-display);
  font-size: 19px;
  font-style: italic;
  color: var(--green);
  text-align: center;
  margin-top: 24px;
  padding: 22px 28px;
  border-top: 1px solid rgba(120, 70, 40, 0.16);
  border-bottom: 1px solid rgba(120, 70, 40, 0.16);
  line-height: 1.5;
}

.step02-disclaimer {
  background: var(--green);
  color: rgba(247, 240, 228, 0.86);
  border-radius: var(--radius);
  padding: 30px 36px;
  margin-top: 28px;
  font-size: 15px;
  line-height: 1.72;
}
.step02-disclaimer p {
  color: rgba(247, 240, 228, 0.86);
  margin: 0;
  font-size: 15px;
  line-height: 1.72;
}
.step02-disclaimer strong {
  color: var(--gold);
  font-weight: 700;
  letter-spacing: 0.03em;
}

@media (max-width: 900px) {
  .step02-pillars { grid-template-columns: 1fr; }
  .calc-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .step02-pillar { padding: 30px 24px; }
  .calc-card { padding: 24px 22px 20px; }
  .step02-pillar h3 { font-size: 23px; }
  .calc-card h4 { font-size: 21px; }
  .step02-disclaimer { padding: 26px 24px; }
}

/* ============================================================
   Legal Notice (Part 1A — Conspicuous pre-submission disclaimer)
   ============================================================ */

.legal-notice {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  max-width: 720px;
  margin: 1.25rem auto 0;
  padding: 0.95rem 1.1rem;
  border-radius: 6px;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.78rem;
  line-height: 1.55;
  text-align: left;
  border: 1px solid;
}

.legal-notice p {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.55;
}

.legal-notice p + p { margin-top: 0.5rem; }

.legal-notice strong { font-weight: 600; }

.legal-notice .legal-icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  font-size: 0.95rem;
  font-style: italic;
  margin-top: 0.1rem;
}

.legal-notice .legal-body { flex: 1; min-width: 0; }

.legal-notice a {
  text-decoration: underline;
  font-weight: 500;
  white-space: nowrap;
}

/* Light variant — for cream/white sections */
.legal-notice-light {
  background: rgba(184, 65, 42, 0.04);
  border-color: rgba(184, 65, 42, 0.18);
  color: #3d2a1f;
}
.legal-notice-light .legal-icon {
  background: #B8412A;
  color: #F7F0E4;
}
.legal-notice-light a {
  color: #B8412A;
}

/* Dark variant — for terracotta/dark sections (estimator + final CTA) */
.legal-notice-dark {
  background: rgba(247, 240, 228, 0.08);
  border-color: rgba(247, 240, 228, 0.22);
  color: rgba(247, 240, 228, 0.92);
}
.legal-notice-dark .legal-icon {
  background: rgba(247, 240, 228, 0.95);
  color: #B8412A;
}
.legal-notice-dark a {
  color: #F7F0E4;
}

@media (max-width: 640px) {
  .legal-notice {
    font-size: 0.74rem;
    padding: 0.85rem 0.95rem;
  }
  .legal-notice p, .legal-notice p + p { font-size: 0.74rem; }
}

/* ============================================================
   Terms / Disclaimer page (terms.html)
   ============================================================ */
.terms-page {
  max-width: 820px;
  margin: 0 auto;
  padding: 6rem 1.5rem 5rem;
  font-family: 'Inter', system-ui, sans-serif;
  color: #2D4A3E;
  line-height: 1.7;
}
.terms-page h1 {
  font-family: 'Playfair Display', serif;
  font-size: 2.6rem;
  color: #B8412A;
  margin-bottom: 0.5rem;
  font-weight: 500;
  line-height: 1.15;
}
.terms-page .eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #B8412A;
  margin-bottom: 0.85rem;
  font-weight: 600;
}
.terms-page h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  color: #2D4A3E;
  margin: 2.5rem 0 0.75rem;
  font-weight: 500;
}
.terms-page p {
  margin-bottom: 1rem;
  color: #3a3a3a;
}
.terms-page .intro {
  font-size: 1.05rem;
  color: #2D4A3E;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(45, 74, 62, 0.12);
}
.terms-page strong {
  color: #2D4A3E;
  font-weight: 600;
}
.terms-page .responsible {
  margin-top: 2.5rem;
  padding: 1.5rem 1.75rem;
  background: #F7F0E4;
  border-left: 3px solid #D4A574;
  border-radius: 4px;
}
.terms-page .responsible h2 { margin-top: 0; }
.terms-page .placeholder {
  color: #B8412A;
  font-style: italic;
  background: rgba(184, 65, 42, 0.08);
  padding: 0 0.3em;
  border-radius: 2px;
}
.terms-page .lang-toggle-top {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2rem;
  justify-content: flex-end;
}
.terms-page .lang-toggle-top button {
  background: transparent;
  border: 1px solid rgba(45, 74, 62, 0.25);
  padding: 0.35rem 0.85rem;
  border-radius: 3px;
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  color: #2D4A3E;
  cursor: pointer;
  font-weight: 500;
}
.terms-page .lang-toggle-top button.active {
  background: #2D4A3E;
  color: #F7F0E4;
  border-color: #2D4A3E;
}
.terms-page .back-home {
  display: inline-block;
  margin-top: 3rem;
  font-size: 0.85rem;
  color: #B8412A;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 1px;
}

/* ============================================================
   GABRIEL CHAT WIDGET (PracticePod embed, white-labeled MiCaso)
   ============================================================ */
#gabriel-launcher {
  position: fixed;
  bottom: 22px;
  right: 22px;
  z-index: 9998;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.85rem 1.15rem 0.85rem 1.05rem;
  background: linear-gradient(135deg, #B8412A 0%, #9B3422 100%);
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  box-shadow: 0 12px 32px rgba(184, 65, 42, 0.38), 0 2px 6px rgba(0, 0, 0, 0.12);
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}
#gabriel-launcher:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(184, 65, 42, 0.45), 0 4px 10px rgba(0, 0, 0, 0.15);
  filter: brightness(1.05);
}
#gabriel-launcher:focus-visible {
  outline: 3px solid #D4A574;
  outline-offset: 3px;
}
#gabriel-launcher .gabriel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #5EE89B;
  box-shadow: 0 0 0 3px rgba(94, 232, 155, 0.22);
  animation: gabriel-pulse 2.4s ease-in-out infinite;
}
@keyframes gabriel-pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(94, 232, 155, 0.22); }
  50%      { box-shadow: 0 0 0 7px rgba(94, 232, 155, 0.05); }
}
#gabriel-launcher .gabriel-launcher-icon { opacity: 0.92; }

#gabriel-panel {
  position: fixed;
  bottom: 90px;
  right: 22px;
  z-index: 9999;
  width: 400px;
  height: 620px;
  max-height: calc(100vh - 110px);
  background: #F7F0E4;
  border: 1px solid rgba(45, 74, 62, 0.18);
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28), 0 4px 12px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  animation: gabriel-slide-in 0.22s ease-out;
}
@keyframes gabriel-slide-in {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
.gabriel-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  background: #2D4A3E;
  color: #F7F0E4;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}
.gabriel-panel-title { display: flex; flex-direction: column; gap: 0.1rem; line-height: 1.2; }
.gabriel-panel-title strong {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.gabriel-panel-sub {
  font-family: 'Inter', sans-serif;
  font-size: 0.74rem;
  font-weight: 500;
  color: rgba(247, 240, 228, 0.78);
}
#gabriel-close {
  background: transparent;
  border: 0;
  color: rgba(247, 240, 228, 0.85);
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
#gabriel-close:hover { background: rgba(247, 240, 228, 0.12); color: #fff; }
#gabriel-close:focus-visible { outline: 2px solid #D4A574; outline-offset: 1px; }
#gabriel-frame { flex: 1 1 auto; width: 100%; border: 0; background: #F7F0E4; }
.gabriel-panel-foot {
  margin: 0;
  padding: 0.6rem 0.9rem;
  background: #EFE6D5;
  border-top: 1px solid rgba(45, 74, 62, 0.1);
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  line-height: 1.4;
  color: #4A4036;
}
.gabriel-panel-foot a { color: #B8412A; font-weight: 600; text-decoration: underline; }
.gabriel-panel-foot a:hover { color: #9B3422; }

/* Mobile: full bottom sheet */
@media (max-width: 540px) {
  #gabriel-launcher {
    bottom: 16px;
    right: 16px;
    padding: 0.78rem 1rem;
    font-size: 0.86rem;
  }
  #gabriel-launcher .gabriel-launcher-label { display: none; } /* compact bubble on phones */
  #gabriel-launcher { padding: 0.85rem; gap: 0; }
  #gabriel-panel {
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 88vh;
    max-height: 88vh;
    border-radius: 18px 18px 0 0;
  }
}
