/* =========================================================
   ESTUDIO JURÍDICO HÉCTOR YEMMI & ASOC.
   styles.css — Mobile-first. Breakpoints: 640 / 960 / 1200
   ========================================================= */

/* ---------- 1. VARIABLES / TOKENS ---------- */
:root {
  /* Paleta */
  --ink: #101B2D;          /* azul noche — autoridad, fondos oscuros */
  --ink-2: #1B2A44;        /* azul más claro para degradés/cards oscuras */
  --parchment: #F6F2E9;    /* papel legal — fondo cálido */
  --parchment-2: #EDE6D5;  /* papel un poco más oscuro, cards claras */
  --brass: #B4884B;        /* bronce — acento principal, distintivo */
  --brass-light: #D9B57C;
  --wine: #6E2635;         /* lacre — acento secundario, usar con moderación */
  --charcoal: #262420;     /* texto sobre fondos claros */
  --mist: #A9B0C2;         /* texto secundario sobre fondos oscuros */
  --line: rgba(38,36,32,0.12);
  --line-dark: rgba(246,242,233,0.14);

  /* Tipografía */
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Ritmo */
  --radius: 4px;
  --radius-lg: 14px;
  --shadow-soft: 0 20px 45px -25px rgba(16,27,45,0.45);
  --shadow-card: 0 12px 30px -18px rgba(16,27,45,0.35);
  --container: 1180px;

  --transition: 220ms cubic-bezier(.4,0,.2,1);
}

/* ---------- 2. RESET ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  overflow-x: hidden; /* red de seguridad: evita el scroll lateral en mobile */
  width: 100%;
}
body {
  overflow-x: hidden;
  width: 100%;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
body, h1, h2, h3, p, ul, ol, figure, blockquote { margin: 0; }
ul { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }

body {
  font-family: var(--font-body);
  color: var(--charcoal);
  background: var(--parchment);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.icon { width: 1em; height: 1em; fill: currentColor; flex-shrink: 0; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 1rem; top: -3rem;
  background: var(--ink); color: var(--parchment);
  padding: .7rem 1.2rem; border-radius: var(--radius);
  z-index: 1000; transition: top var(--transition);
}
.skip-link:focus { top: 1rem; }

:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 3px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

/* ---------- 3. TIPOGRAFÍA ---------- */
.eyebrow {
  font-family: var(--font-body);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--wine);
  margin-bottom: .6rem;
}
.eyebrow--center { text-align: center; }
.eyebrow--on-dark { color: var(--brass-light); }

.section-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.7rem, 4.5vw, 2.5rem);
  line-height: 1.15;
  color: var(--ink);
  margin-bottom: 1.1rem;
  letter-spacing: -0.01em;
}
.section-title--center { text-align: center; margin-inline: auto; max-width: 40ch; }
.section-title--on-dark { color: var(--parchment); }

/* ---------- 4. BOTONES ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  padding: .85rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: .01em;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition);
  white-space: nowrap;
}
.btn--primary {
  background: var(--brass);
  color: var(--ink);
  box-shadow: var(--shadow-card);
}
.btn--primary:hover { background: var(--brass-light); transform: translateY(-2px); }

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--line);
}
.btn--ghost:hover { border-color: var(--ink); background: rgba(16,27,45,0.04); }

.btn--block { width: 100%; }

.btn--whatsapp {
  background: #25D366;
  color: #0b3d1f;
  box-shadow: var(--shadow-card);
}
.btn--whatsapp:hover { background: #2fe375; transform: translateY(-2px); }

/* ---------- 5. TOPBAR ---------- */
.topbar {
  background: var(--ink);
  color: var(--mist);
  font-size: .8rem;
}
.topbar__row {
  display: flex;
  flex-wrap: wrap;
  gap: .3rem 1.5rem;
  padding-block: .55rem;
  justify-content: center;
}
.topbar__item { display: flex; align-items: center; gap: .4rem; white-space: nowrap; }
.topbar__item--hours { color: var(--brass-light); font-weight: 600; }
.topbar__phone { color: var(--parchment); font-weight: 600; transition: color var(--transition); }
.topbar__phone:hover { color: var(--brass-light); }

@media (min-width: 640px) {
  .topbar__row { justify-content: space-between; }
}

/* ---------- 6. HEADER / NAV ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(246,242,233,0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow var(--transition);
}
.site-header.is-scrolled { box-shadow: var(--shadow-soft); }

.header__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: .8rem;
}

.brand { display: flex; align-items: center; gap: .85rem; }
.brand__mark {
  display: grid;
  place-items: center;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--brass-light);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: .02em;
  flex-shrink: 0;
  overflow: hidden;
  border: 2px solid var(--brass);
}
.brand__photo { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.brand__text { display: flex; flex-direction: column; line-height: 1.2; }
.brand__name { font-family: var(--font-display); font-weight: 600; font-size: 1.3rem; color: var(--ink); }
.brand__amp { color: var(--wine); font-style: italic; }
.brand__tag { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--wine); font-weight: 700; }

@media (min-width: 640px) {
  .brand__mark { width: 64px; height: 64px; }
  .brand__name { font-size: 1.45rem; }
}

/* Toggle hamburguesa */
.nav-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  z-index: 110;
}
.nav-toggle__box { position: relative; width: 22px; height: 16px; }
.nav-toggle__bar {
  position: absolute; left: 0; width: 100%; height: 2px;
  background: var(--ink); border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition), top var(--transition);
}
.nav-toggle__bar:nth-child(1) { top: 0; }
.nav-toggle__bar:nth-child(2) { top: 7px; }
.nav-toggle__bar:nth-child(3) { top: 14px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) { top: 7px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) { top: 7px; transform: rotate(-45deg); }

/* Nav mobile: panel deslizable */
.site-nav {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(320px, 85vw);
  max-width: 100vw;
  background: var(--parchment);
  padding: 5.5rem 1.5rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  transform: translateX(100%);
  transition: transform var(--transition);
  overflow-y: auto;
  box-shadow: -20px 0 40px rgba(16,27,45,0.15);
}
.site-nav.is-open { transform: translateX(0); }

.site-nav__list { display: flex; flex-direction: column; gap: .3rem; }
.site-nav__link {
  display: flex;
  align-items: center;
  gap: .3rem;
  width: 100%;
  padding: .85rem 0;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  text-align: left;
}
.chev { width: 18px; height: 18px; transition: transform var(--transition); margin-left: auto; }
.has-dropdown[data-open="true"] .chev { transform: rotate(180deg); }

.dropdown {
  display: none;
  flex-direction: column;
  padding-left: 1rem;
  gap: .1rem;
}
.has-dropdown[data-open="true"] .dropdown { display: flex; }
.dropdown a {
  display: block;
  padding: .6rem 0;
  font-size: .92rem;
  color: var(--charcoal);
  border-bottom: 1px dashed var(--line);
}
.dropdown a:hover { color: var(--wine); }

.nav-cta { align-self: flex-start; }

@media (min-width: 960px) {
  .nav-toggle { display: none; }

  .site-nav {
    position: static;
    inset: auto;
    background: none;
    padding: 0;
    flex-direction: row;
    align-items: center;
    gap: 1.75rem;
    transform: none;
    box-shadow: none;
    overflow: visible;
  }
  .site-nav__list { flex-direction: row; align-items: center; gap: .3rem; }
  .site-nav__link {
    width: auto;
    padding: .5rem .1rem;
    font-size: .93rem;
    border-bottom: none;
    position: relative;
  }
  .site-nav__link::after {
    content: "";
    position: absolute;
    left: 0; bottom: -2px;
    width: 0; height: 2px;
    background: var(--brass);
    transition: width var(--transition);
  }
  .site-nav__link:hover::after { width: 100%; }
  .site-nav__list > li { margin-inline: .6rem; position: relative; }

  .has-dropdown { display: flex; align-items: center; }
  .dropdown {
    display: flex;
    position: absolute;
    top: 100%; left: -1rem;
    background: var(--ink);
    padding: .6rem;
    border-radius: var(--radius-lg);
    min-width: 300px;
    box-shadow: var(--shadow-soft);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
  }
  .has-dropdown:hover .dropdown,
  .has-dropdown[data-open="true"] .dropdown {
    opacity: 1; visibility: visible; transform: translateY(0);
  }
  .dropdown a { color: var(--mist); border-bottom: none; padding: .6rem .7rem; border-radius: var(--radius); }
  .dropdown a:hover { background: rgba(255,255,255,0.06); color: var(--brass-light); }

  .nav-cta { margin-left: .5rem; }
}

/* ---------- 7. HERO ---------- */
.hero {
  padding-block: 2.5rem 3.5rem;
  background:
    radial-gradient(circle at 85% -10%, rgba(180,136,75,0.16), transparent 55%),
    var(--parchment);
}
.hero__grid { display: grid; gap: 2.5rem; }

.hero__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2rem, 6vw, 3rem);
  line-height: 1.1;
  color: var(--ink);
  letter-spacing: -0.015em;
  margin-bottom: 1.1rem;
}
.hero__title em { color: var(--wine); font-style: italic; font-weight: 500; }

.hero__lede { font-size: 1.08rem; color: #4a473f; max-width: 52ch; margin-bottom: 1.4rem; }

.hero__chips { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 1.6rem; }
.chip {
  font-size: .8rem;
  font-weight: 600;
  padding: .45rem .85rem;
  background: var(--parchment-2);
  border: 1px solid var(--line);
  border-radius: 100px;
  color: var(--ink);
}

.hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-bottom: 1.8rem; }

.hero__motto {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  color: var(--wine);
  font-size: 1.05rem;
  border-left: 3px solid var(--brass);
  padding-left: 1rem;
  max-width: 42ch;
}

/* Panel con formulario del hero */
.hero__panel { }
.lead-form {
  background: var(--ink);
  color: var(--parchment);
  padding: 1.8rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.lead-form__title { font-family: var(--font-display); font-size: 1.4rem; font-weight: 600; }
.lead-form__sub { color: var(--mist); font-size: .9rem; margin-top: -.5rem; }
.lead-form__note { font-size: .74rem; color: var(--mist); line-height: 1.5; }

.field { display: flex; flex-direction: column; gap: .35rem; }
.field-row { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 480px) { .field-row { grid-template-columns: 1fr 1fr; } }

.field label { font-size: .82rem; font-weight: 600; }
.field input, .field select, .field textarea {
  background: rgba(246,242,233,0.06);
  border: 1px solid rgba(246,242,233,0.22);
  border-radius: var(--radius);
  padding: .7rem .8rem;
  color: var(--parchment);
}
.hero__panel ::placeholder { color: rgba(246,242,233,0.5); }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--brass);
  background: rgba(246,242,233,0.1);
}
.field select option { color: var(--charcoal); }

/* Campo trampa anti-spam: oculto para personas, visible para bots */
.field--honeypot {
  position: absolute !important;
  width: 1px !important; height: 1px !important;
  padding: 0 !important; margin: -1px !important;
  overflow: hidden !important; clip: rect(0,0,0,0) !important;
  white-space: nowrap !important; border: 0 !important;
}

.field__error {
  font-size: .75rem;
  color: #FF8E8E;
  min-height: 1em;
}
.field.has-error input, .field.has-error select, .field.has-error textarea {
  border-color: #FF8E8E;
}

.form-submit-error {
  background: rgba(214,80,80,0.12);
  border: 1px solid #D65050;
  color: #B33A3A;
  padding: .8rem 1rem;
  border-radius: var(--radius);
  font-size: .85rem;
  font-weight: 600;
}
.lead-form .form-submit-error { color: #FF8E8E; border-color: #FF8E8E; background: rgba(255,142,142,0.1); }

.lead-form__success, .contact__form-success {
  background: rgba(180,136,75,0.16);
  border: 1px solid var(--brass);
  color: var(--brass-light);
  padding: .8rem 1rem;
  border-radius: var(--radius);
  font-size: .9rem;
  font-weight: 600;
}

@media (min-width: 960px) {
  .hero__grid { grid-template-columns: 1.15fr .95fr; align-items: center; }
}

/* ---------- 8. PRACTICE AREAS / TABS ---------- */
.practice { padding-block: 4rem; }

.tabs__list {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  justify-content: center;
  margin-bottom: 2.2rem;
}
.tabs__btn {
  padding: .65rem 1.1rem;
  border-radius: 100px;
  font-size: .85rem;
  font-weight: 600;
  border: 1.5px solid var(--line);
  color: var(--charcoal);
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}
.tabs__btn:hover { border-color: var(--brass); }
.tabs__btn.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--brass-light);
}

.tabs__panel { animation: fade-in 320ms ease; }
@keyframes fade-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.panel-grid {
  display: grid;
  gap: 2rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.8rem;
  box-shadow: var(--shadow-card);
}
.panel-grid__copy h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--ink);
  margin-bottom: .7rem;
}
.panel-grid__copy p { color: #4a473f; margin-bottom: 1.2rem; }
.link-arrow { font-weight: 700; color: var(--wine); font-size: .9rem; transition: gap var(--transition); }
.link-arrow:hover { text-decoration: underline; }

.panel-grid__list { display: flex; flex-direction: column; gap: 1rem; }
.panel-grid__list li {
  padding-left: 1.2rem;
  border-left: 2px solid var(--brass);
  font-size: .92rem;
  color: #4a473f;
}
.panel-grid__list strong { display: block; color: var(--ink); font-family: var(--font-display); font-size: 1rem; margin-bottom: .15rem; }

@media (min-width: 800px) {
  .panel-grid { grid-template-columns: .8fr 1.2fr; padding: 2.6rem; }
}

/* ---------- 9. MAXIMS / TRÍPTICO (elemento de firma) ---------- */
.maxims {
  background: var(--ink);
  color: var(--parchment);
  padding-block: 4.5rem;
  position: relative;
  overflow: hidden;
}
.maxims::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 15% 20%, rgba(180,136,75,0.12), transparent 45%),
              radial-gradient(circle at 85% 80%, rgba(110,38,53,0.18), transparent 50%);
  pointer-events: none;
}
.maxims__intro {
  position: relative;
  text-align: center;
  max-width: 56ch;
  margin: 0 auto 3rem;
  color: var(--mist);
}
.maxims__grid {
  position: relative;
  display: grid;
  gap: 1.6rem;
}
.maxim {
  text-align: center;
  padding: 2rem 1.4rem;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-lg);
  background: rgba(246,242,233,0.03);
}
.maxim__numeral {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--brass);
  margin-bottom: .6rem;
}
.maxim__latin { font-family: var(--font-display); font-style: italic; font-size: 1.3rem; margin-bottom: .2rem; }
.maxim__es { font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--brass-light); font-weight: 700; margin-bottom: 1rem; }
.maxim__desc { color: var(--mist); font-size: .92rem; }

@media (min-width: 800px) {
  .maxims__grid { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- 10. WHY CHOOSE US ---------- */
.why { padding-block: 4.5rem; }
.why__grid {
  display: grid;
  gap: 1.4rem;
  margin-top: 2rem;
}
.why-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.8rem 1.5rem;
  transition: transform var(--transition), box-shadow var(--transition);
}
.why-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); }
.why-card__icon {
  display: grid;
  place-items: center;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--parchment-2);
  color: var(--wine);
  margin-bottom: 1rem;
}
.why-card__icon svg { width: 24px; height: 24px; fill: currentColor; }
.why-card h3 { font-family: var(--font-display); font-size: 1.15rem; color: var(--ink); margin-bottom: .4rem; }
.why-card p { font-size: .9rem; color: #4a473f; }

@media (min-width: 640px) { .why__grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .why__grid { grid-template-columns: repeat(3, 1fr); } }

/* ---------- 11. ABOUT ---------- */
.about { padding-block: 4.5rem; background: var(--parchment-2); }
.about__grid { display: grid; gap: 2.5rem; align-items: center; }

.about__portrait { display: flex; flex-direction: column; align-items: center; gap: 1rem; }
.about__portrait-frame {
  width: 220px; height: 220px;
  border-radius: 50%;
  background: linear-gradient(160deg, var(--ink), var(--ink-2));
  display: grid;
  place-items: center;
  border: 6px solid #fff;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}
.about__photo { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.about__portrait-caption { text-align: center; font-family: var(--font-display); font-size: 1.1rem; color: var(--ink); }
.about__portrait-caption span { display: block; font-family: var(--font-body); font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--wine); font-weight: 700; margin-top: .2rem; }

.about__copy p { color: #4a473f; margin-bottom: 1rem; }
.about__facts { display: flex; gap: 1.8rem; flex-wrap: wrap; margin-block: 1.6rem; }
.about__facts li { display: flex; flex-direction: column; }
.about__facts strong { font-family: var(--font-display); font-size: 1.8rem; color: var(--wine); }
.about__facts span { font-size: .78rem; color: #6b6858; max-width: 14ch; }

@media (min-width: 860px) {
  .about__grid { grid-template-columns: .8fr 1.2fr; }
}

/* ---------- 12. COVERAGE ---------- */
.coverage { padding-block: 4.5rem; }
.coverage__grid { display: grid; gap: 2.5rem; align-items: center; }
.coverage__copy p { color: #4a473f; margin-bottom: 1rem; }

.coverage__map { display: flex; flex-direction: column; align-items: center; gap: 1rem; }
.map-illustration { width: 100%; max-width: 280px; }
.map-illustration__ring { fill: none; stroke: var(--brass); stroke-opacity: .35; stroke-width: 1.5; }
.map-illustration__pin { fill: var(--wine); }
.coverage__map-label { font-family: var(--font-display); font-style: italic; color: var(--wine); font-size: .95rem; }

@media (min-width: 860px) {
  .coverage__grid { grid-template-columns: 1.1fr .9fr; }
}

/* ---------- 13. CONTACT ---------- */
.contact {
  background: var(--ink);
  color: var(--parchment);
  padding-block: 4.5rem;
}
.contact__grid { display: grid; gap: 3rem; }
.contact__lede { color: var(--mist); max-width: 48ch; margin-bottom: 1.8rem; }

.contact__list { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 2rem; }
.contact__list li { display: flex; align-items: center; gap: .8rem; font-size: .98rem; }
.contact__list a:hover { color: var(--brass-light); }
.contact__list-icon {
  display: grid; place-items: center;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(246,242,233,0.08);
  color: var(--brass-light);
  flex-shrink: 0;
}
.contact__list-icon svg { width: 18px; height: 18px; fill: currentColor; }

.contact__form {
  background: var(--parchment);
  color: var(--charcoal);
  padding: 1.8rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.contact__form-title { font-family: var(--font-display); font-size: 1.35rem; color: var(--ink); }
.contact__form .field input,
.contact__form .field select,
.contact__form .field textarea {
  background: #fff;
  border: 1px solid var(--line);
  color: var(--charcoal);
}
.contact__form .field input:focus,
.contact__form .field select:focus,
.contact__form .field textarea:focus { border-color: var(--wine); }

.field--checkbox { flex-direction: row; align-items: flex-start; gap: .6rem; }
.field--checkbox input { margin-top: .25rem; width: 16px; height: 16px; accent-color: var(--wine); flex-shrink: 0; }
.field--checkbox label { font-size: .82rem; font-weight: 500; }

@media (min-width: 960px) {
  .contact__grid { grid-template-columns: 1fr 1fr; align-items: start; }
}

/* ---------- 14. FOOTER ---------- */
.site-footer { background: #0B1422; color: var(--mist); padding-top: 3.5rem; }
.footer__grid {
  display: grid;
  gap: 2.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--line-dark);
}
.brand--footer .brand__name { color: var(--parchment); }
.brand--footer .brand__tag { color: var(--brass-light); }
.footer__motto { font-family: var(--font-display); font-style: italic; margin-top: 1rem; color: var(--mist); font-size: .92rem; max-width: 32ch; }

.footer__col h3 { font-family: var(--font-display); color: var(--parchment); font-size: 1rem; margin-bottom: 1rem; }
.footer__col ul { display: flex; flex-direction: column; gap: .6rem; font-size: .88rem; }
.footer__col a:hover { color: var(--brass-light); }

.footer__bottom-row {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  padding-block: 1.4rem;
  font-size: .78rem;
  color: #6d7488;
}

@media (min-width: 640px) {
  .footer__grid { grid-template-columns: 1.2fr 1fr 1fr 1fr; }
  .footer__bottom-row { flex-direction: row; justify-content: space-between; }
}

/* ---------- 15. FLOATING BUTTONS ---------- */
.float-whatsapp {
  position: fixed;
  right: 1.1rem; bottom: 1.1rem;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: #25D366;
  display: grid;
  place-items: center;
  box-shadow: 0 10px 25px rgba(0,0,0,0.3);
  z-index: 90;
  transition: transform var(--transition);
}
.float-whatsapp svg { width: 28px; height: 28px; fill: #0b3d1f; }
.float-whatsapp:hover { transform: scale(1.08); }

.back-to-top {
  position: fixed;
  right: 1.1rem; bottom: 5rem;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--brass-light);
  display: grid;
  place-items: center;
  box-shadow: 0 10px 25px rgba(0,0,0,0.3);
  z-index: 90;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
}
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.back-to-top svg { width: 20px; height: 20px; fill: currentColor; }

/* ---------- 16. SCROLL REVEAL ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 700ms ease, transform 700ms ease;
}
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
}

/* ---------- 17. UTILIDADES DE ESPACIADO PARA SECCIONES SIN ID DUPLICADO ---------- */
section[id] { scroll-margin-top: 6.5rem; }
