/* Rivera Legal Services - Modern Responsive Styles */
:root {
  /* Sampled from the logo (assets/logo.png) so the mark blends into the
     header and footer with no visible seam. */
  --navy: #141c4c;
  --navy-light: #1e2a63;
  /* Deep royal blue rather than a generic UI blue — it sits in the same family
     as the logo navy instead of fighting it. */
  --accent: #24407e;
  --accent-hover: #16295a;
  --teal: #0f766e;
  /* Gold sampled from the logo. --gold-deep is the darkened version for text
     and icons, which needs contrast against white that the logo gold lacks. */
  --gold: #d2ae6d;
  --gold-deep: #96742f;
  --gold-soft: #f7efe0;
  --bg: #f6f7fb;
  --white: #ffffff;
  /* Text is navy-tinted rather than neutral slate, so every surface reads as
     part of the same palette. */
  --text: #333c5a;
  --text-strong: #1a2340;
  --text-muted: #646e8c;
  --border: #e3e7f0;
  /* Two-part shadows: a tight contact shadow plus a soft, wide, navy-tinted
     ambient one. Flat grey box-shadows are what make cards look cheap. */
  --shadow: 0 1px 2px rgb(20 28 76 / 0.05), 0 6px 18px -10px rgb(20 28 76 / 0.18);
  --shadow-lg: 0 2px 4px rgb(20 28 76 / 0.05), 0 18px 40px -18px rgb(20 28 76 / 0.28);
  --radius: 14px;
  --font: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  /* Serif display face for headings, chosen to echo the classical Roman
     capitals in the logo. Body copy stays sans for readability. */
  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* ========== ICONS ==========
   One stroke-drawn set replacing the emoji this site used to lean on. Emoji
   render differently on every OS — and the flag ones degrade to bare "US"/"MX"
   letterboxes on Windows — which is not a look a legal practice can carry.
   Icons inherit colour and scale with font-size. */
.icon-sprite { display: none; }
.ic {
  width: 1em;
  height: 1em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: -0.14em;
}

/* Small caps label that sits above a heading. */
.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 0.7rem;
}
.hero .eyebrow, .page-hero .eyebrow, .trust-section .eyebrow, .cta-band .eyebrow {
  color: var(--gold);
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent-hover); }
ul { list-style: none; }

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ========== HEADER ==========
   White, because the logo is navy-and-gold artwork on a light ground. The navy
   hero sits directly beneath it, so the brand colour still leads the page. */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  color: var(--navy);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 3px rgb(0 0 0 / 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--navy);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
}
.logo:hover { opacity: 0.9; }
.site-footer .logo { color: var(--white); }
.logo-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--gold), #e8c547);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

/* Image logo. The mark already contains the wordmark, so the adjacent text span
   is dropped rather than duplicated beside it.
   Header uses logo.png (navy/gold on white); the navy footer uses
   logo-on-navy.png, the reverse variant. */
.logo-img {
  height: 46px;
  width: auto;
  display: block;
  flex-shrink: 0;
}
@media (max-width: 480px) {
  .logo-img { height: 38px; }
}
/* Capped at 44px: logo-on-navy.png is 98px tall, so this stays within native
   resolution on 2x displays instead of upscaling. */
.site-footer .logo-img { height: 44px; }

.nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

/* Right-hand cluster. The language switch lives here rather than inside .nav so
   it stays visible on mobile when the nav is collapsed. */
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.nav a {
  color: #3d4763;
  padding: 0.5rem 0.85rem;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 500;
}
.nav a:hover, .nav a.active {
  background: #eef1f8;
  color: var(--navy);
}

/* Language toggle — a segmented control with a knob that slides to the active
   language. The knob is decorative; the two links underneath do the work, so it
   still functions with CSS or JS disabled. */
.lang-switch {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.15rem;
  background: #eaeef7;
  border: 1px solid #dbe2f0;
  border-radius: 999px;
  padding: 3px;
  margin-left: 0.6rem;
  flex-shrink: 0;
}
.lang-knob {
  position: absolute;
  top: 3px;
  left: 3px;
  bottom: 3px;
  width: calc(50% - 3px);
  background: var(--navy);
  border-radius: 999px;
  box-shadow: 0 1px 3px rgb(20 28 76 / 0.35);
  transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}
.lang-switch--es .lang-knob { transform: translateX(100%); }
.lang-switch a {
  position: relative;
  z-index: 1;
  flex: 1;
  min-width: 42px;
  text-align: center;
  padding: 0.32rem 0.6rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #59637f;
  border-radius: 999px;
  transition: color 0.25s;
}
.lang-switch a:hover { color: var(--navy); }
.lang-switch a[aria-current] { color: var(--white); }
.lang-switch a[aria-current]:hover { color: var(--white); }
/* Gold hairline under the active language, echoing the logo. */
.lang-switch a[aria-current]::after {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 4px;
  width: 14px;
  height: 2px;
  border-radius: 1px;
  background: var(--gold);
}

.header-cta {
  display: none;
}
@media (min-width: 900px) {
  .header-cta {
    display: inline-flex;
    background: var(--accent);
    color: var(--white);
    padding: 0.55rem 1.1rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
  }
  .header-cta:hover { background: var(--accent-hover); color: var(--white); }
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--navy);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.35rem;
}

@media (max-width: 899px) {
  .nav {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 1rem;
    gap: 0.25rem;
    box-shadow: var(--shadow-lg);
  }
  .nav.open { display: flex; }
  .nav a { width: 100%; padding: 0.75rem 1rem; }
  .menu-toggle { display: block; }
  /* Compact but always on screen, sitting next to the hamburger. */
  .lang-switch { margin-left: 0; }
  .lang-switch a { min-width: 38px; padding: 0.3rem 0.5rem; font-size: 0.75rem; }
}
@media (max-width: 380px) {
  .lang-switch a { min-width: 34px; padding: 0.28rem 0.4rem; }
  .header-actions { gap: 0.3rem; }
}

/* ========== HERO ========== */
.hero {
  background: linear-gradient(150deg, #101740 0%, var(--navy) 38%, #22306e 100%);
  color: var(--white);
  padding: 5rem 0 5.75rem;
  position: relative;
  overflow: hidden;
}
/* Two soft lights rather than one flat wash — gives the panel some depth
   without any imagery. */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 55% at 82% 18%, rgba(96,132,236,0.26), transparent 62%),
    radial-gradient(ellipse 50% 45% at 8% 92%, rgba(210,174,109,0.13), transparent 60%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
  position: relative;
  z-index: 1;
}
@media (min-width: 800px) {
  .hero-grid { grid-template-columns: 1.2fr 1fr; }
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.4vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin-bottom: 1rem;
}
.hero-sub {
  font-size: 1.16rem;
  line-height: 1.66;
  color: rgba(255,255,255,0.84);
  margin-bottom: 0.75rem;
  max-width: 33rem;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(210,174,109,0.13);
  border: 1px solid rgba(210,174,109,0.4);
  color: #f0dfbe;
  padding: 0.42rem 1rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 1.4rem;
}
.hero-badge .ic { color: var(--gold); font-size: 1.05rem; }
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.9rem;
}

/* Secondary messaging links. Four solid buttons in the hero fought each other
   for attention; demoting these to text links leaves one clear primary action
   while keeping WhatsApp and Messenger one tap away. */
.hero-channels {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
  margin-top: 1.5rem;
  font-size: 0.92rem;
  color: rgba(255,255,255,0.62);
}
.chan {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: rgba(255,255,255,0.95);
  font-weight: 600;
  padding: 0.35rem 0.85rem 0.35rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.22);
  background: rgba(255,255,255,0.06);
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.chan:hover { color: var(--white); background: rgba(255,255,255,0.13); }
.chan-wa .ic { color: #52e08a; }
.chan-msg .ic { color: #6fb4ff; }
.chan-wa:hover { border-color: rgba(82,224,138,0.6); }
.chan-msg:hover { border-color: rgba(111,180,255,0.6); }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.9rem 1.6rem;
  border-radius: 9px;
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: 0.005em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s,
              transform 0.2s, box-shadow 0.2s;
}
.btn .ic { font-size: 1.08em; }

/* On light sections the primary action is navy. */
.btn-primary {
  background: var(--navy);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--navy-light);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}
.btn-outline {
  background: transparent;
  color: var(--navy);
  border-color: rgba(20,28,76,0.28);
}
.btn-outline:hover {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}
.btn-secondary {
  background: rgba(255,255,255,0.12);
  color: var(--white);
  border-color: rgba(255,255,255,0.34);
}
.btn-secondary:hover {
  background: rgba(255,255,255,0.2);
  color: var(--white);
}

/* On the navy surfaces the primary action becomes gold — it is the only warm
   colour on the page, so it carries the eye without a second accent hue. */
.hero .btn-primary,
.page-hero .btn-primary,
.cta-band .btn-primary,
.error-page .btn-primary {
  background: var(--gold);
  color: #2b2109;
  border-color: var(--gold);
}
.hero .btn-primary:hover,
.page-hero .btn-primary:hover,
.cta-band .btn-primary:hover,
.error-page .btn-primary:hover {
  background: #e2c489;
  color: #2b2109;
}
.hero .btn-outline,
.page-hero .btn-outline,
.cta-band .btn-outline,
.error-page .btn-outline {
  color: var(--white);
  border-color: rgba(255,255,255,0.42);
}
.hero .btn-outline:hover,
.page-hero .btn-outline:hover,
.cta-band .btn-outline:hover,
.error-page .btn-outline:hover {
  background: var(--white);
  border-color: var(--white);
  color: var(--navy);
}

/* Channel buttons keep their platform colours but are toned to sit beside the
   gold rather than shout over it. */
.btn-messenger {
  background: #0a7cff;
  color: var(--white);
}
.btn-messenger:hover { background: #0768d6; color: var(--white); }
.btn-whatsapp {
  background: #1eb954;
  color: #06341a;
}
.btn-whatsapp:hover { background: #17a049; color: #06341a; }

/* Credential panel. Reads as a certificate rather than a generic glass card:
   gold hairline top, centred seal, rule, then the numbers. */
.hero-visual {
  background: linear-gradient(180deg, rgba(255,255,255,0.1), rgba(255,255,255,0.04));
  border-radius: var(--radius);
  padding: 2.25rem 1.75rem 1.75rem;
  border: 1px solid rgba(255,255,255,0.16);
  box-shadow: 0 24px 50px -30px rgb(0 0 0 / 0.7);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero-visual::before {
  content: '';
  position: absolute;
  top: 0; left: 12%; right: 12%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.hero-visual .icon-lg {
  width: 62px;
  height: 62px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(210,174,109,0.14);
  border: 1px solid rgba(210,174,109,0.42);
  color: var(--gold);
  font-size: 1.85rem;
}
.hero-visual .hv-title {
  font-family: var(--font-display);
  font-size: 1.22rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}
.hero-visual .hv-sub {
  font-size: 0.86rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
}
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  margin-top: 1.6rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.16);
  text-align: center;
}
.hero-stats > div + div { border-left: 1px solid rgba(255,255,255,0.13); }
.hero-stats strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1.1;
}
.hero-stats span {
  display: block;
  font-size: 0.74rem;
  line-height: 1.35;
  margin-top: 0.3rem;
  color: rgba(255,255,255,0.68);
}

/* ========== SECTIONS ========== */
section { padding: 4.5rem 0; }
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.2vw, 2.35rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 0.85rem;
  color: var(--navy);
}
/* Gold rule under every section title — the logo's accent, used as the
   connective thread through the page. */
.section-title::after {
  content: '';
  display: block;
  width: 56px;
  height: 3px;
  margin-top: 0.85rem;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--gold), rgba(210,174,109,0.15));
}
.text-center .section-title::after { margin-left: auto; margin-right: auto; }
.cta-band .section-title::after { display: none; }
.section-sub {
  color: var(--text-muted);
  max-width: 36rem;
  margin-bottom: 2.5rem;
  font-size: 1.05rem;
}
.section-header { margin-bottom: 2.5rem; }

/* Why Us */
.why-us {
  background: var(--white);
}
.why-grid {
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 700px) {
  .why-grid { grid-template-columns: 1fr 1fr; }
}
.why-card {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 1.75rem;
  border: 1px solid var(--border);
}
.why-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
  color: var(--navy);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.why-card p { color: var(--text-muted); font-size: 0.98rem; }

/* Services */
.services-grid {
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 768px) {
  .services-grid { grid-template-columns: repeat(3, 1fr); }
}
.service-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.service-icon {
  width: 54px;
  height: 54px;
  border-radius: 13px;
  background: var(--gold-soft);
  border: 1px solid rgba(210,174,109,0.45);
  color: var(--gold-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.55rem;
  margin-bottom: 1.35rem;
  transition: background 0.25s, color 0.25s, border-color 0.25s;
}
.service-card:hover .service-icon {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--gold);
}
.service-card h3 {
  font-size: 1.25rem;
  color: var(--navy);
  margin-bottom: 0.65rem;
}
.service-card h3 a { color: inherit; }
.service-card h3 a:hover { color: var(--accent); }
.service-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  flex-grow: 1;
  margin-bottom: 1.25rem;
}
.service-card ul {
  margin-bottom: 1.25rem;
  font-size: 0.9rem;
  color: var(--text);
}
.service-card li {
  padding: 0.25rem 0;
  padding-left: 1.1rem;
  position: relative;
}
.service-card li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--teal);
  font-weight: 700;
}
.service-card .btn { width: 100%; margin-top: auto; }

/* Process */
.process {
  background: var(--white);
}
.process-steps {
  display: grid;
  gap: 1.5rem;
  counter-reset: step;
  position: relative;
}
@media (min-width: 700px) {
  .process-steps { grid-template-columns: repeat(4, 1fr); }
  /* Hairline connecting the four numbers into a single path. */
  .process-steps::before {
    content: '';
    position: absolute;
    top: 1.5rem;
    left: 12.5%;
    right: 12.5%;
    height: 1px;
    background: linear-gradient(90deg,
      rgba(210,174,109,0), var(--gold) 12%, var(--gold) 88%, rgba(210,174,109,0));
  }
}
.step {
  text-align: center;
  position: relative;
  padding: 1.5rem 1rem;
}
.step-num {
  position: relative;
  z-index: 1;
  width: 52px;
  height: 52px;
  background: var(--white);
  border: 1.5px solid var(--gold);
  color: var(--navy);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  margin: 0 auto 1.1rem;
  box-shadow: 0 0 0 6px var(--white);
}
.step h4 {
  font-size: 1.05rem;
  color: var(--navy);
  margin-bottom: 0.4rem;
}
.step p { font-size: 0.9rem; color: var(--text-muted); }

/* Locations */
.locations-grid {
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 700px) {
  .locations-grid { grid-template-columns: 1fr 1fr; }
}
.location-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.75rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.location-card h3 {
  color: var(--navy);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.location-card p, .location-card a {
  font-size: 0.95rem;
  margin-bottom: 0.35rem;
  color: var(--text);
}
.location-card a:hover { color: var(--accent); }

/* Contact */
.contact-section {
  background: linear-gradient(180deg, var(--bg) 0%, #eef2f7 100%);
}
.contact-grid {
  display: grid;
  gap: 2rem;
}
@media (min-width: 800px) {
  .contact-grid { grid-template-columns: 1fr 1.1fr; }
}
.contact-info h3 {
  color: var(--navy);
  margin-bottom: 1rem;
}
.contact-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  font-size: 0.98rem;
}
.contact-item .icon {
  width: 42px;
  height: 42px;
  background: var(--white);
  border: 1px solid var(--border);
  color: var(--gold-deep);
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.15rem;
  box-shadow: var(--shadow);
}
.contact-form {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}
.contact-form h3 {
  color: var(--navy);
  margin-bottom: 1.25rem;
}
.form-group {
  margin-bottom: 1rem;
}
.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--text);
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.2s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(26,115,232,0.15);
}
.form-group textarea { min-height: 120px; resize: vertical; }
.form-note {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.75rem;
}

/* Disclaimer — a legal notice, not a warning. The old amber "caution" styling
   made the honest part of the page look like an error message. */
.disclaimer {
  background: var(--white);
  border: 1px solid var(--border);
  border-left: 3px solid var(--gold);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.35rem 1.6rem;
  margin: 2.5rem 0 0;
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--text-muted);
  max-width: 56rem;
}
.disclaimer strong {
  display: block;
  margin-bottom: 0.4rem;
  color: var(--text-strong);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* Footer */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.85);
  padding: 3rem 0 1.5rem;
}
.footer-grid {
  display: grid;
  gap: 2rem;
  margin-bottom: 2.5rem;
}
@media (min-width: 700px) {
  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; }
}
.footer-brand .logo { margin-bottom: 1rem; }
.footer-brand p { font-size: 0.9rem; max-width: 280px; opacity: 0.8; }
.footer-col h4 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 1rem;
}
.footer-col a {
  display: block;
  color: rgba(255,255,255,0.75);
  font-size: 0.9rem;
  padding: 0.25rem 0;
}
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.85rem;
  opacity: 0.7;
}

/* Floating chat buttons (WhatsApp + Messenger) */
.fab-stack {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.fab {
  position: relative;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  transition: transform 0.2s, box-shadow 0.2s;
  border: none;
  cursor: pointer;
  text-decoration: none;
}
.fab:hover { transform: scale(1.08); }
.fab-whatsapp {
  background: #25d366;
  color: #06341a;
  box-shadow: 0 4px 14px rgba(37,211,102,0.45);
}
.fab-whatsapp:hover { color: #06341a; box-shadow: 0 6px 20px rgba(37,211,102,0.55); }
.fab-messenger {
  background: #0084ff;
  color: var(--white);
  box-shadow: 0 4px 14px rgba(0,132,255,0.45);
}
.fab-messenger:hover { color: var(--white); box-shadow: 0 6px 20px rgba(0,132,255,0.55); }
.fab-label {
  position: absolute;
  right: 68px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--navy);
  color: white;
  padding: 0.4rem 0.75rem;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}
.fab:hover .fab-label, .fab:focus-visible .fab-label { opacity: 1; }

/* Utility */
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

/* Mobile sticky bottom bar.
   Icon stacked above the label so "Messenger" never wraps and throws the row
   out of alignment, with the iPhone home-indicator inset respected. */
.mobile-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--navy);
  border-top: 1px solid rgba(255,255,255,0.14);
  padding: 0.5rem 0.6rem;
  padding-bottom: calc(0.5rem + env(safe-area-inset-bottom, 0px));
  z-index: 998;
  box-shadow: 0 -4px 14px rgba(0,0,0,0.22);
  gap: 0.4rem;
  align-items: stretch;
}
@media (max-width: 699px) {
  .mobile-bar {
    display: flex;
  }
  /* Chat FABs would sit on top of the mobile bar — hide them there,
     the bar already offers WhatsApp and Messenger. */
  .fab-stack { display: none; }
  body { padding-bottom: calc(78px + env(safe-area-inset-bottom, 0px)); }
}
.mobile-bar a {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.16rem;
  min-height: 48px;              /* comfortable touch target */
  text-align: center;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.005em;
  white-space: nowrap;           /* never wrap onto a second line */
  padding: 0.4rem 0.15rem;
  border-radius: 10px;
  background: rgba(255,255,255,0.12);
}
.mobile-bar .mb-icon { font-size: 1.02rem; line-height: 1; }
.mobile-bar a:hover, .mobile-bar a:active { color: white; }
.mobile-bar .call { background: var(--accent); }
.mobile-bar .msg { background: #0084ff; }
.mobile-bar .wa { background: #25d366; color: #06341a; }
.mobile-bar .wa:hover { background: #1fb457; color: #06341a; }
/* The form link had almost no contrast against the navy bar. */
.mobile-bar .form {
  background: rgba(255,255,255,0.16);
  border: 1px solid rgba(255,255,255,0.34);
}
@media (max-width: 340px) {
  .mobile-bar a { font-size: 0.62rem; }
  .mobile-bar .mb-icon { font-size: 0.94rem; }
}

/* ========== ACCESSIBILITY ========== */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 1100;
  background: var(--white);
  color: var(--navy);
  padding: 0.75rem 1.25rem;
  border-radius: 0 0 8px 0;
  font-weight: 700;
}
.skip-link:focus {
  left: 0;
  outline: 3px solid var(--gold);
}

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
  border-radius: 4px;
}
/* The header is light, so it keeps the dark outline; the dark surfaces need a
   light one to stay visible. */
.site-header :focus-visible {
  outline-color: var(--accent);
}
.site-footer :focus-visible,
.hero :focus-visible,
.page-hero :focus-visible,
.cta-band :focus-visible {
  outline-color: #ffd964;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .service-card:hover, .btn-primary:hover, .fab:hover { transform: none; }
}

/* ========== SOCIAL LINKS ========== */
.social-links {
  display: flex;
  gap: 0.6rem;
  margin-top: 1.25rem;
}
.social-links a {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255,255,255,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: background 0.2s;
}
.social-links a:hover { background: rgba(255,255,255,0.24); }
.social-links svg { width: 20px; height: 20px; fill: #fff; }

/* ========== 404 PAGE ========== */
.error-page {
  padding: 5rem 0 6rem;
  text-align: center;
  background: linear-gradient(135deg, var(--navy) 0%, #1d2a68 55%, #26368a 100%);
  color: var(--white);
  min-height: 60vh;
  display: flex;
  align-items: center;
}
.error-code {
  font-size: clamp(4rem, 14vw, 8rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--gold);
  opacity: 0.85;
}
.error-page h1 { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.6rem, 4vw, 2.4rem); margin: 0.5rem 0 0.75rem; }
.error-code { font-family: var(--font-display); }
.error-page p { opacity: 0.9; max-width: 34rem; margin: 0 auto 0.35rem; }
.error-alt { font-size: 0.95rem; opacity: 0.72 !important; margin-bottom: 1.5rem !important; }
.error-page .btn-outline { color: var(--white); border-color: rgba(255,255,255,0.55); }
.error-page .btn-outline:hover { background: var(--white); color: var(--navy); }

/* ========== FORM STATUS ========== */
.form-status {
  margin-top: 0.85rem;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  display: none;
}
.form-status.show { display: block; }
.form-status.ok { background: #dcfce7; color: #14532d; border: 1px solid #86efac; }
.form-status.err { background: #fee2e2; color: #7f1d1d; border: 1px solid #fca5a5; }
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ========== INNER PAGES ========== */
.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, #1d2a68 55%, #26368a 100%);
  color: var(--white);
  padding: 2.5rem 0 3.5rem;
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 85% 15%, rgba(26,115,232,0.28), transparent 55%);
  pointer-events: none;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4.2vw, 2.8rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0.75rem 0 1rem;
  max-width: 22ch;
}
.page-hero .lede {
  font-size: 1.12rem;
  opacity: 0.93;
  max-width: 44rem;
  margin-bottom: 1.5rem;
}

.breadcrumb {
  font-size: 0.85rem;
  opacity: 0.75;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
}
.breadcrumb a { color: rgba(255,255,255,0.85); }
.breadcrumb a:hover { color: var(--white); text-decoration: underline; }
.breadcrumb span[aria-current] { color: var(--white); font-weight: 600; }

.trust-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.18);
  font-size: 0.9rem;
}
.trust-bar span { display: inline-flex; align-items: center; gap: 0.4rem; opacity: 0.92; }

/* Prose blocks */
.prose { max-width: 44rem; }
.prose p { margin-bottom: 1.1rem; color: var(--text); font-size: 1.03rem; }
.prose p:last-child { margin-bottom: 0; }
.prose h3 {
  font-size: 1.25rem;
  color: var(--navy);
  margin: 2rem 0 0.75rem;
}
.prose strong { color: var(--navy); }

/* Pain-point / "is this you" list */
.pain-list {
  display: grid;
  gap: 0.85rem;
  margin: 1.5rem 0 0;
}
.pain-list li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  background: var(--white);
  border: 1px solid var(--border);
  border-left: 4px solid var(--gold);
  border-radius: 10px;
  padding: 1rem 1.15rem;
  font-size: 1rem;
  color: var(--text);
}
.pain-list li::before { content: '“'; font-size: 1.6rem; line-height: 1; color: var(--gold); font-weight: 800; }

/* Checklist of documents we prepare */
.doc-groups {
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 760px) {
  .doc-groups { grid-template-columns: repeat(2, 1fr); }
}
.doc-group {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}
.doc-group h3 {
  font-size: 1.1rem;
  color: var(--navy);
  margin-bottom: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.doc-group ul { font-size: 0.95rem; }
.doc-group li {
  padding: 0.3rem 0 0.3rem 1.5rem;
  position: relative;
  color: var(--text);
}
.doc-group li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--teal);
  font-weight: 700;
}
.doc-group .form-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.85em;
  background: #e0f2fe;
  color: #075985;
  padding: 0.05rem 0.35rem;
  border-radius: 4px;
  font-weight: 600;
}

/* Value stack */
.value-grid {
  display: grid;
  gap: 1.25rem;
}
@media (min-width: 700px) {
  .value-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1000px) {
  .value-grid { grid-template-columns: repeat(4, 1fr); }
}
.value-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.value-card .value-icon { font-size: 1.75rem; margin-bottom: 0.65rem; }
.value-card h3 { font-size: 1.05rem; color: var(--navy); margin-bottom: 0.4rem; }
.value-card p { font-size: 0.93rem; color: var(--text-muted); }

/* Compare: doing it alone vs with us */
.compare-grid {
  display: grid;
  gap: 1.25rem;
}
@media (min-width: 760px) {
  .compare-grid { grid-template-columns: 1fr 1fr; }
}
.compare-col {
  border-radius: var(--radius);
  padding: 1.75rem;
  border: 1px solid var(--border);
}
.compare-col h3 { font-size: 1.1rem; margin-bottom: 1rem; }
.compare-col li {
  padding: 0.4rem 0 0.4rem 1.75rem;
  position: relative;
  font-size: 0.96rem;
}
.compare-col li::before { position: absolute; left: 0; font-weight: 700; }
.compare-alone { background: #fff7ed; border-color: #fed7aa; }
.compare-alone h3 { color: #9a3412; }
.compare-alone li { color: #7c2d12; }
.compare-alone li::before { content: '✕'; color: #ea580c; }
.compare-with { background: #ecfdf5; border-color: #a7f3d0; }
.compare-with h3 { color: #065f46; }
.compare-with li { color: #064e3b; }
.compare-with li::before { content: '✓'; color: var(--teal); }

/* FAQ accordion */
.faq-list { max-width: 46rem; }
.faq-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 0.75rem;
  overflow: hidden;
}
.faq-item summary {
  cursor: pointer;
  padding: 1.1rem 1.35rem;
  font-weight: 600;
  color: var(--navy);
  font-size: 1.02rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--accent);
  flex-shrink: 0;
  line-height: 1;
}
.faq-item[open] summary::after { content: '−'; }
.faq-item summary:hover { background: var(--bg); }
.faq-item .faq-answer {
  padding: 0 1.35rem 1.25rem;
  color: var(--text-muted);
  font-size: 0.98rem;
}
.faq-item .faq-answer p { margin-bottom: 0.75rem; }
.faq-item .faq-answer p:last-child { margin-bottom: 0; }

/* CTA band */
.cta-band {
  background: linear-gradient(135deg, var(--navy) 0%, #232f75 100%);
  color: var(--white);
  text-align: center;
}
.cta-band h2 {
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 3.2vw, 2.3rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 0.75rem;
}
.cta-band p {
  opacity: 0.9;
  max-width: 38rem;
  margin: 0 auto 1.75rem;
  font-size: 1.05rem;
}
.cta-band .hero-actions { justify-content: center; margin-top: 0; }

/* Related services */
.related-grid {
  display: grid;
  gap: 1.25rem;
}
@media (min-width: 700px) {
  .related-grid { grid-template-columns: 1fr 1fr; }
}
.related-card {
  display: block;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: transform 0.2s, box-shadow 0.2s;
}
.related-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.related-card h3 { color: var(--navy); font-size: 1.1rem; margin-bottom: 0.4rem; }
.related-card p { color: var(--text-muted); font-size: 0.93rem; }

.section-alt { background: var(--white); }

/* ========== TRUST SECTION ==========
   Why this business is safe to hand your documents to — the certification, the
   notario distinction, and the promise to turn work away. */
.trust-section {
  background: var(--navy);
  color: var(--white);
  position: relative;
}
.trust-section .section-title { color: var(--white); }
.trust-section .section-sub { color: rgba(255,255,255,0.75); }
.trust-grid {
  display: grid;
  gap: 1.25rem;
}
@media (min-width: 820px) {
  .trust-grid { grid-template-columns: repeat(3, 1fr); }
}
.trust-card {
  background: rgba(255,255,255,0.055);
  border: 1px solid rgba(210,174,109,0.28);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  position: relative;
}
.trust-card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--white);
  margin: 0.9rem 0 0.55rem;
}
.trust-card p { font-size: 0.96rem; color: rgba(255,255,255,0.8); }
.trust-card .trust-icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  background: rgba(210,174,109,0.16);
  border: 1px solid rgba(210,174,109,0.45);
}
.trust-note {
  margin-top: 2rem;
  padding: 1.15rem 1.4rem;
  border-left: 3px solid var(--gold);
  background: rgba(255,255,255,0.05);
  border-radius: 0 10px 10px 0;
  font-size: 0.96rem;
  color: rgba(255,255,255,0.85);
}
.trust-note strong { color: var(--gold); }

/* ========== GOLD ACCENT ON CARDS ========== */
.service-card {
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), rgba(210,174,109,0));
  opacity: 0;
  transition: opacity 0.25s;
}
.service-card:hover::before { opacity: 1; }
.service-card li::before { color: var(--gold-deep); }
.doc-group li::before { color: var(--gold-deep); }

/* ========== LANGUAGE SUGGESTION BAR ==========
   Shown only when the visitor's browser prefers the other language. */
.lang-suggest {
  display: none;
  background: var(--navy-light);
  color: var(--white);
  border-bottom: 2px solid var(--gold);
}
.lang-suggest.show { display: block; }
.lang-suggest .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem;
  padding-top: 0.7rem;
  padding-bottom: 0.7rem;
  font-size: 0.94rem;
}
.lang-suggest p { flex: 1; min-width: 12rem; }
.lang-suggest .ls-go {
  background: var(--gold);
  color: #33270a;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.88rem;
  white-space: nowrap;
}
.lang-suggest .ls-go:hover { background: #e0bd7f; color: #33270a; }
.lang-suggest .ls-close {
  background: none;
  border: none;
  color: rgba(255,255,255,0.65);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.2rem 0.4rem;
}
.lang-suggest .ls-close:hover { color: var(--white); }

/* ========== SCROLL REVEAL ==========
   Only armed once JS adds .reveal-on to <html>, so content is never hidden if
   scripting fails. */
html.reveal-on .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.2, 0.7, 0.3, 1);
}
html.reveal-on .reveal.in {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  html.reveal-on .reveal { opacity: 1; transform: none; transition: none; }
  .lang-knob { transition: none; }
}

/* ========== RHYTHM & FINISHING ========== */
section { padding: 5.5rem 0; }
@media (max-width: 700px) { section { padding: 3.5rem 0; } }

.section-sub { line-height: 1.7; }
.prose p, .why-card p, .service-card p, .trust-card p { line-height: 1.7; }

/* Icons sitting inside headings pick up the gold so the accent runs through
   every level of the page, not just the rules. */
.why-card h3 .ic,
.location-card h3 .ic,
.doc-group h3 .ic,
.related-card h3 .ic { color: var(--gold-deep); }
.trust-card .trust-icon .ic,
.hero-visual .icon-lg .ic { color: var(--gold); }
.value-card .value-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gold-soft);
  border: 1px solid rgba(210,174,109,0.42);
  color: var(--gold-deep);
  font-size: 1.4rem;
  margin-bottom: 0.85rem;
}

.why-card {
  transition: border-color 0.25s, box-shadow 0.25s;
}
.why-card:hover {
  border-color: rgba(210,174,109,0.55);
  box-shadow: var(--shadow);
}
.location-card h3,
.why-card h3,
.doc-group h3 { gap: 0.6rem; }

/* Form */
.form-group input,
.form-group select,
.form-group textarea {
  border-radius: 9px;
  background: var(--white);
  color: var(--text-strong);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: #9aa3bd; }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(20,28,76,0.12);
}
.contact-form { border-radius: var(--radius); }

/* Footer */
.site-footer {
  background: #0d1338;
  border-top: 3px solid var(--gold);
}
.footer-col h4 {
  font-size: 0.78rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
}
.footer-brand p { line-height: 1.7; }
.footer-bottom { opacity: 0.55; font-size: 0.82rem; }

/* Header CTA follows the button system rather than the old blue. */
@media (min-width: 900px) {
  .header-cta { background: var(--navy); border-radius: 9px; }
  .header-cta:hover { background: var(--navy-light); }
}

/* Links inside body copy */
.prose a, .faq-answer a, .contact-item a, .location-card a { color: var(--accent); }
.prose a:hover, .faq-answer a:hover { color: var(--accent-hover); }

/* Selection */
::selection { background: var(--gold); color: #2b2109; }
