/* ============================================================
   BUFETE DE FAMILIA — Hoja de estilos
   Paleta: azul marino profundo · gris cálido · dorado mate / terracota
   ============================================================ */

:root {
  --navy: #10243f;
  --navy-deep: #0a1a30;
  --navy-soft: #1b3a61;
  --ink: #22303f;
  --warm-gray: #f4f1ec;
  --warm-gray-2: #ece7df;
  --paper: #fdfcfb;
  --gold: #bfa268;
  --gold-dark: #a8895a;
  --terracotta: #c96f4a;
  --white: #ffffff;
  --muted: #6a727c;
  --line: #e2dcd2;
  --radius: 14px;
  --shadow: 0 18px 40px rgba(10, 26, 48, 0.10);
  --shadow-sm: 0 6px 18px rgba(10, 26, 48, 0.07);
  --font: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --serif: "Georgia", "Times New Roman", serif;
}

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

html { scroll-behavior: smooth; }

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

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
.nav-list, .dropdown { list-style: none; }

.container { width: min(1120px, 92%); margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 1.7rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  cursor: pointer;
  border: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  white-space: nowrap;
}
.btn--primary { background: var(--terracotta); color: var(--white); box-shadow: 0 10px 22px rgba(201,111,74,0.35); }
.btn--primary:hover { background: #b85f3c; transform: translateY(-2px); }
.btn--gold { background: var(--gold); color: var(--white); box-shadow: 0 10px 22px rgba(168,135,90,0.3); }
.btn--gold:hover { background: var(--gold-dark); transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--white); border: 1.5px solid rgba(255,255,255,0.55); }
.btn--ghost:hover { background: rgba(255,255,255,0.1); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--navy-deep);
  color: var(--white);
  box-shadow: 0 2px 14px rgba(0,0,0,0.18);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.85rem;
}
.logo { display: flex; align-items: center; gap: 0.7rem; font-weight: 700; }
.brand-logo {
  width: min(290px, 42vw);
  height: auto;
  max-height: 68px;
  object-fit: contain;
  object-position: center;
  border-radius: 8px;
}
.logo.footer-logo .brand-logo {
  width: min(320px, 70vw);
  max-height: 78px;
}

.logo__mark {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  display: grid; place-items: center;
  color: var(--navy-deep);
  font-size: 1.15rem;
  font-family: var(--serif);
}
.logo__text { line-height: 1.1; }
.logo__text span { display: block; font-size: 0.72rem; font-weight: 500; letter-spacing: 0.16em; color: var(--gold); text-transform: uppercase; }

.nav-list { display: flex; align-items: center; gap: 1.6rem; }
.nav-list > li { position: relative; }
.nav a { color: rgba(255,255,255,0.88); font-weight: 500; font-size: 0.98rem; transition: color 0.15s ease; padding: 0.4rem 0; }
.nav a:hover { color: var(--gold); }

/* dropdown */
.has-dropdown > a::after {
  content: "▾";
  margin-left: 0.35rem;
  font-size: 0.75rem;
  color: var(--gold);
}
.dropdown {
  position: absolute;
  top: 100%;
  left: -0.5rem;
  min-width: 290px;
  background: var(--white);
  color: var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 0.55rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  border-top: 3px solid var(--gold);
}
.nav-list > li:hover .dropdown,
.nav-list > li:focus-within .dropdown {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.dropdown a {
  display: block;
  padding: 0.7rem 0.9rem;
  border-radius: 10px;
  color: var(--ink);
  font-weight: 500;
}
.dropdown a small { display: block; color: var(--muted); font-weight: 400; font-size: 0.8rem; }
.dropdown a:hover { background: var(--warm-gray); color: var(--navy); }

.header-cta { margin-left: 0.4rem; }
.btn--nav { padding: 0.65rem 1.3rem; font-size: 0.9rem; background: var(--gold); color: var(--navy-deep); }
.btn--nav:hover { background: var(--gold-dark); }

/* Mobile toggle */
.nav-toggle { display: none; background: none; border: none; color: var(--white); font-size: 1.5rem; cursor: pointer; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  color: var(--white);
  padding: clamp(4.5rem, 9vw, 7.5rem) 0;
  background:
    radial-gradient(1200px 500px at 85% -10%, rgba(201,111,74,0.22), transparent 60%),
    radial-gradient(900px 500px at 0% 110%, rgba(168,135,90,0.22), transparent 60%),
    var(--navy-deep);
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 44px 44px;
  pointer-events: none;
}
.hero-inner { position: relative; display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 3rem; align-items: center; }
.hero__kicker {
  display: inline-block;
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 1.1rem;
}
.hero h1 {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 4.6vw, 3.4rem);
  line-height: 1.12;
  margin-bottom: 1.2rem;
}
.hero h1 em { color: var(--gold); font-style: normal; }
.hero p.lead { max-width: 46ch; color: rgba(255,255,255,0.85); font-size: 1.12rem; margin-bottom: 2rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; }

.hero__card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 20px;
  padding: 1.6rem;
  backdrop-filter: blur(8px);
}
.hero__card h3 { font-family: var(--serif); color: var(--gold); margin-bottom: 0.6rem; }
.hero__card p { font-size: 0.95rem; color: rgba(255,255,255,0.85); }
.hero__stats { display: flex; gap: 1rem; margin-top: 1.4rem; }
.stat { flex: 1; background: rgba(255,255,255,0.05); border-radius: 12px; padding: 0.85rem; text-align: center; }
.stat strong { display: block; font-family: var(--serif); font-size: 1.5rem; color: var(--gold); }
.stat span { font-size: 0.76rem; color: rgba(255,255,255,0.75); }

/* ---------- Section base ---------- */
.section { padding: clamp(3.5rem, 7vw, 5.5rem) 0; }
.section--gray { background: var(--warm-gray); }
.section__head { max-width: 640px; margin-bottom: 2.6rem; }
.section__tag { color: var(--terracotta); font-size: 0.8rem; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 600; }
.section h2 { font-family: var(--serif); color: var(--navy-deep); font-size: clamp(1.8rem, 3vw, 2.5rem); margin: 0.5rem 0 0.9rem; line-height: 1.15; }
.section__head p { color: var(--muted); }

/* ---------- Sobre ---------- */
.sobre-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.sobre-art { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.sobre-card {
  background: var(--navy-deep); color: var(--white);
  border-radius: var(--radius); padding: 1.4rem; box-shadow: var(--shadow);
}
.sobre-card--tall { grid-row: span 2; }
.sobre-card .num { font-family: var(--serif); font-size: 2.4rem; color: var(--gold); }
.sobre-card p { font-size: 0.9rem; color: rgba(255,255,255,0.82); }
.sobre-body p { color: var(--muted); margin-bottom: 1rem; }
.sobre-body .checklist { margin-top: 1.4rem; display: grid; gap: 0.8rem; }
.checklist li { display: flex; gap: 0.7rem; align-items: flex-start; font-weight: 500; }
.checklist li::before { content: "✓"; color: var(--terracotta); font-weight: 700; }

/* ---------- Servicios (índice) ---------- */
.services-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.4rem; }
.service-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  position: relative;
  display: flex; flex-direction: column;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--gold); }
.service-card__ico {
  width: 50px; height: 50px; border-radius: 12px;
  background: var(--warm-gray-2); display: grid; place-items: center;
  font-size: 1.5rem; color: var(--terracotta); margin-bottom: 1rem;
}
.service-card h3 { font-family: var(--serif); color: var(--navy-deep); font-size: 1.35rem; margin-bottom: 0.5rem; }
.service-card p { color: var(--muted); font-size: 0.95rem; margin-bottom: 1rem; }
.service-card .tags { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-bottom: 1.2rem; }
.tag { font-size: 0.75rem; background: var(--warm-gray); border: 1px solid var(--line); padding: 0.25rem 0.6rem; border-radius: 999px; color: var(--navy-soft); }
.link-more { color: var(--terracotta); font-weight: 600; margin-top: auto; display: inline-flex; align-items: center; gap: 0.35rem; }
.link-more:hover { text-decoration: underline; }
.link-more::after { content: "→"; }

/* ---------- Testimonios ---------- */
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.testi {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.7rem; box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column;
}
.testi .stars { color: var(--gold); letter-spacing: 2px; margin-bottom: 0.8rem; }
.testi blockquote { font-style: italic; color: var(--ink); font-size: 0.98rem; margin-bottom: 1.2rem; }
.testi figcaption { margin-top: auto; display: flex; align-items: center; gap: 0.8rem; }
.testi .avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg, var(--navy), var(--navy-soft));
  color: var(--gold); display: grid; place-items: center; font-weight: 700;
}
.testi figcaption strong { display: block; color: var(--navy-deep); font-size: 0.92rem; }
.testi figcaption span { color: var(--muted); font-size: 0.8rem; }

.confianza {
  margin-top: 2rem;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem;
  background: var(--navy-deep); border-radius: var(--radius);
  padding: 1.6rem; color: var(--white);
}
.confianza .c-num { font-family: var(--serif); font-size: 1.9rem; color: var(--gold); }
.confianza p { font-size: 0.82rem; color: rgba(255,255,255,0.8); }

/* ---------- FAQ ---------- */
.faq-list { max-width: 780px; margin-inline: auto; }
.faq-item { border: 1px solid var(--line); border-radius: 12px; background: var(--white); margin-bottom: 0.9rem; overflow: hidden; }
.faq-q {
  width: 100%; text-align: left; background: none; border: none;
  padding: 1.15rem 1.4rem; font: inherit; font-weight: 600; color: var(--navy-deep);
  cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.faq-q .chev { color: var(--terracotta); transition: transform 0.25s ease; }
.faq-item.open .faq-q .chev { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.faq-a-inner { padding: 0 1.4rem 1.2rem; color: var(--muted); font-size: 0.96rem; }

/* ---------- Contacto ---------- */
.contact-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 3rem; align-items: start; }
.contact-form {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow-sm);
}
.form-row { margin-bottom: 1.1rem; }
.form-row label { display: block; font-weight: 600; font-size: 0.9rem; color: var(--navy-deep); margin-bottom: 0.4rem; }
.form-row input,
.form-row select,
.form-row textarea {
  width: 100%; padding: 0.8rem 1rem; border: 1px solid var(--line);
  border-radius: 10px; font: inherit; background: var(--paper);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(168,135,90,0.2);
}
.form-row textarea { resize: vertical; min-height: 120px; }
.form-note { font-size: 0.85rem; color: var(--muted); margin-bottom: 1rem; }
.form-success { display: none; background: #eaf4ec; color: #2f6b41; border: 1px solid #cbe3cf; padding: 0.9rem 1rem; border-radius: 10px; margin-bottom: 1rem; font-weight: 500; }
.form-success.show { display: block; }

.contact-details { display: grid; gap: 1rem; }
.contact-card {
  display: flex; gap: 1rem; align-items: flex-start;
  background: var(--white); border: 1px solid var(--line);
  border-radius: 12px; padding: 1.2rem;
}
.contact-card .ico { font-size: 1.4rem; } 
.contact-card strong { display: block; color: var(--navy-deep); }
.contact-card p, .contact-card a { color: var(--muted); font-size: 0.95rem; }
.contact-card a:hover { color: var(--terracotta); }
.map {
  border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line);
  background: var(--warm-gray-2); min-height: 200px;
  display: grid; place-items: center; color: var(--muted);
}

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: rgba(255,255,255,0.8); padding-top: 3rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; padding-bottom: 2.5rem; }
.footer-grid h4 { color: var(--gold); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 1rem; }
.footer-grid a { display: block; padding: 0.25rem 0; color: rgba(255,255,255,0.8); }
.footer-grid a:hover { color: var(--gold); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); padding: 1.4rem 0; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.6rem; font-size: 0.85rem; }

/* ---------- WhatsApp flotante ---------- */
.whatsapp-btn {
  position: fixed; right: 22px; bottom: 22px; z-index: 100;
  width: 60px; height: 60px; border-radius: 50%;
  background: #25d366; color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 10px 26px rgba(37,211,102,0.5);
  animation: pulse 2.4s infinite;
  transition: transform 0.15s ease;
}
.whatsapp-btn:hover { transform: scale(1.08); }
.whatsapp-btn svg { width: 32px; height: 32px; fill: #fff; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(37,211,102,0.55); }
  70% { box-shadow: 0 0 0 18px rgba(37,211,102,0); }
  100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); }
}

/* ---------- Breadcrumb / sub-page ---------- */
.page-hero {
  background: linear-gradient(135deg, var(--navy-deep), var(--navy-soft));
  color: var(--white); padding: clamp(3rem, 6vw, 5rem) 0;
}
.page-hero h1 { font-family: var(--serif); font-size: clamp(2rem, 4vw, 2.9rem); line-height: 1.15; margin: 0.5rem 0; }
.page-hero .crumb { color: rgba(255,255,255,0.7); font-size: 0.88rem; }
.page-hero .crumb a:hover { color: var(--gold); }
.page-hero p.lead { color: rgba(255,255,255,0.85); max-width: 60ch; }

.page-section { padding: clamp(2.5rem, 5vw, 4rem) 0; }
.page-section h2 { font-family: var(--serif); color: var(--navy-deep); font-size: 1.7rem; margin-bottom: 1rem; }
.page-section p { color: var(--muted); margin-bottom: 1rem; }
.page-section > .container > .lead { font-size: 1.08rem; }

.info-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.2rem; margin-top: 1.5rem; }
.info-card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.5rem;
}
.info-card .ico { font-size: 1.6rem; margin-bottom: 0.6rem; }
.info-card h4 { color: var(--navy-deep); font-family: var(--serif); font-size: 1.1rem; margin-bottom: 0.4rem; }
.info-card p { font-size: 0.93rem; }

.proceso ol { margin: 0; padding-left: 1.2rem; color: var(--muted); display: grid; gap: 0.8rem; counter-reset: step; }
.proceso li { list-style: none; position: relative; padding-left: 1.9rem; }
.proceso li::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 0; top: 0;
  width: 1.4rem; height: 1.4rem; border-radius: 50%;
  background: var(--navy); color: var(--gold);
  display: grid; place-items: center; font-size: 0.7rem; font-weight: 700;
}
.proceso li strong { color: var(--navy-deep); }
.proceso li p { margin-bottom: 0; font-size: 0.92rem; }

.cta-band {
  background: linear-gradient(120deg, var(--navy-deep), var(--navy-soft));
  color: var(--white); text-align: center; padding: clamp(3rem, 6vw, 4.5rem) 0;
}
.cta-band h2 { font-family: var(--serif); font-size: clamp(1.6rem, 3vw, 2.3rem); margin-bottom: 0.8rem; }
.cta-band p { color: rgba(255,255,255,0.85); max-width: 54ch; margin: 0 auto 1.6rem; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-inner, .sobre-grid, .contact-grid { grid-template-columns: 1fr; }
  .testi-grid, .services-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.8rem; }
  .nav {
    position: fixed; inset: 0 0 0 auto; width: min(320px, 84vw);
    background: var(--navy-deep); flex-direction: column; align-items: flex-start;
    padding: 5rem 1.8rem 2rem; gap: 1.2rem; transform: translateX(100%);
    transition: transform 0.3s ease; box-shadow: -10px 0 30px rgba(0,0,0,0.3);
  }
  .nav.open { transform: translateX(0); }
  .header-cta { margin: 0; }
  .nav-toggle { display: block; }
  .nav-close { display: block; position: absolute; top: 1.2rem; right: 1.2rem; background: none; border: none; color: var(--white); font-size: 1.7rem; cursor: pointer; }
  .nav-list { width: 100%; flex-direction: column; align-items: flex-start; gap: 0.75rem; }
  .nav-list > li { width: 100%; }
  .nav-list > li > a { display: block; width: 100%; padding: 0.45rem 0; }
  .dropdown { position: static; display: none; width: 100%; opacity: 1; visibility: visible; transform: none; background: transparent; box-shadow: none; padding: 0.15rem 0 0.35rem 0.85rem; min-width: 0; }
  .has-dropdown.open .dropdown { display: block; }
  .dropdown a { color: rgba(255,255,255,0.85); }
  .dropdown a small, .dropdown { }
  .dropdown a small { color: rgba(255,255,255,0.5); }
  .dropdown a:hover { background: transparent; color: var(--gold); }
}
@media (max-width: 600px) {
  .testi-grid, .services-grid, .sobre-art { grid-template-columns: 1fr; }
  .confianza { grid-template-columns: repeat(2, 1fr); }
}


/* ---------- Contenido jurídico enriquecido / SEO ---------- */
.article-intro { font-size: 1.08rem; color: var(--muted); max-width: 78ch; }
.article-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem; margin: 1.5rem 0 2rem; }
.info-box { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.35rem; box-shadow: var(--shadow-sm); }
.info-box h3 { color: var(--navy-deep); margin-bottom: .55rem; font-family: var(--serif); }
.info-box ul, .article ul { padding-left: 1.2rem; }
.info-box li, .article li { margin: .45rem 0; }
.legal-note { border-left: 4px solid var(--gold); background: var(--warm-gray); padding: 1rem 1.15rem; margin: 1.5rem 0; color: var(--ink); border-radius: 0 10px 10px 0; }
.source-note { font-size: .88rem; color: var(--muted); margin-top: 1.5rem; }
.faq-mini { display: grid; gap: .9rem; margin-top: 1.2rem; }
.faq-mini details { border: 1px solid var(--line); border-radius: 12px; padding: .95rem 1.1rem; background: var(--white); }
.faq-mini summary { cursor: pointer; font-weight: 700; color: var(--navy-deep); }
.article h2 { scroll-margin-top: 90px; }
@media (max-width: 700px) { .article-grid { grid-template-columns: 1fr; } }

/* ---------- Correcciones y accesibilidad ---------- */
.section__head--compact { margin-bottom: 1rem; }
.section__head--centered { text-align: center; margin-inline: auto; }
.sobre-card--first { grid-row: 1; }
.sobre-cta { margin-top: 1.6rem; }
.page-hero__actions { margin-top: 1.6rem; }
.footer-logo { color: var(--white); }
.footer-description { margin-top: 1rem; font-size: 0.95rem; max-width: 34ch; }
.form-submit { width: 100%; justify-content: center; }
.form-status { min-height: 1.5rem; margin-bottom: 0.8rem; font-weight: 600; color: var(--navy); }
.btn:focus-visible, .nav a:focus-visible, .nav-toggle:focus-visible, .nav-close:focus-visible, .faq-q:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
@media (max-width: 760px) {
  .nav-list { gap: 0; }
}
@media (max-width: 600px) {
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn { justify-content: center; }
  .hero__stats { flex-direction: column; }
  .whatsapp-btn { width: 54px; height: 54px; right: 16px; bottom: 16px; }
}
@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; }
}


/* WhatsApp flotante */
.whatsapp-float {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 1000;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 18px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.whatsapp-float:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
}

.whatsapp-float__icon {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
}

@media (max-width: 767px) {
  .whatsapp-float {
    right: 16px;
    bottom: 16px;
    width: 56px;
    height: 56px;
    min-height: 56px;
    padding: 0;
    justify-content: center;
    border-radius: 50%;
  }

  .whatsapp-float__text {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .whatsapp-float {
    transition: none;
  }
}


/* Conversión y SEO local */
.conversion-strip {
  padding-top: 28px;
  padding-bottom: 28px;
}
.conversion-strip__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.conversion-strip__inner > div {
  display: grid;
  gap: 5px;
}
.conversion-strip__inner span {
  opacity: 0.86;
}
.cta-card {
  border-radius: 18px;
  padding: 32px;
  margin-top: 24px;
  box-shadow: 0 12px 35px rgba(0,0,0,.10);
}
.cta-card h3,
.cta-card h2 {
  margin-top: 0;
}
.cta-service {
  padding-top: 24px;
}
.footer-location {
  margin-top: 8px;
  opacity: .85;
}
@media (max-width: 767px) {
  .conversion-strip__inner {
    align-items: stretch;
    flex-direction: column;
  }
  .conversion-strip__inner .btn {
    width: 100%;
  }
  .cta-card {
    padding: 24px;
  }
}

/* SEO de contenidos y captacion */
.content-hero{padding:70px 0 35px}.content-hero h1{max-width:900px}.article{max-width:900px;margin:auto}.article h2{margin-top:38px}.article ul{padding-left:22px}.article-cta{margin:42px 0;padding:30px;border-radius:18px;box-shadow:0 12px 35px rgba(0,0,0,.10)}.related-links{display:grid;gap:12px;margin-top:24px}.related-links a{font-weight:700}.trust-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin-top:25px}.trust-grid>div{padding:22px;border-radius:16px}.breadcrumb{font-size:.9rem;opacity:.75;margin-bottom:15px}@media(max-width:767px){.trust-grid{grid-template-columns:1fr}}

/* Web3Forms / responsive contact form */
.hp-field{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}
.form-submit:disabled{opacity:.65;cursor:wait}
.form-status.success,.form-status.error{margin-top:.75rem}
@media (max-width:900px){.contact-form{width:100%}}
@media (max-width:640px){.contact-form .form-submit,.contact-form button[type="submit"]{width:100%}.form-status{font-size:.95rem}}

/* ===== AJUSTES FINALES ===== */
.nav-close { display: none; }

.hero {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(10,26,48,.98) 0%, rgba(10,26,48,.92) 34%, rgba(10,26,48,.48) 60%, rgba(10,26,48,.18) 100%),
    url("../assets/hero-derecho-familia.jpg") center right / cover no-repeat;
  min-height: 510px;
}
.hero::after { display: none; }
.hero-inner { min-height: 510px; }
.hero__card { background: rgba(10,26,48,.72); backdrop-filter: blur(5px); }

.page-hero {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(10,26,48,.97) 0%, rgba(10,26,48,.86) 42%, rgba(10,26,48,.30) 100%),
    url("../assets/hero-derecho-familia.jpg") center right / cover no-repeat;
  min-height: 360px;
  display: flex;
  align-items: center;
}
.page-hero .container { position: relative; z-index: 1; }

.header-cta .btn--nav {
  white-space: nowrap;
  min-width: 170px;
  justify-content: center;
  padding-inline: 1.15rem;
}

.whatsapp-float {
  background: rgba(220,247,231,.94);
  border: 1px solid rgba(37,211,102,.28);
  color: #12382a;
  box-shadow: 0 10px 28px rgba(10,26,48,.18);
}
.whatsapp-float:hover { background: rgba(208,243,222,.98); }
.whatsapp-float__icon { color: #20b85a; }
.whatsapp-btn { display: none !important; }

@media (max-width: 900px) {
  .nav-close { display: block; }
  .hero {
    min-height: 560px;
    background:
      linear-gradient(180deg, rgba(10,26,48,.96) 0%, rgba(10,26,48,.84) 52%, rgba(10,26,48,.55) 100%),
      url("../assets/hero-derecho-familia.jpg") center / cover no-repeat;
  }
  .hero-inner { min-height: 560px; }
  .page-hero {
    min-height: 400px;
    background:
      linear-gradient(180deg, rgba(10,26,48,.94) 0%, rgba(10,26,48,.70) 100%),
      url("../assets/hero-derecho-familia.jpg") center / cover no-repeat;
  }
}

@media (max-width: 640px) {
  .hero, .hero-inner { min-height: 650px; }
  .page-hero { min-height: 440px; }
  .whatsapp-float {
    right: 14px;
    bottom: 14px;
    min-width: 0;
    width: 58px;
    height: 58px;
    padding: 0;
    border-radius: 50%;
    justify-content: center;
  }
  .whatsapp-float__text { display: none; }
}
