/* ============================================================
   ESCRIBANÍA VILDÓSOLA — Hoja de Estilos Principal
   Diseño moderno, profesional y optimizado para Lighthouse 100
   ============================================================ */

/* 1. CUSTOM PROPERTIES */
:root {
  --navy:           #1a3a5c;
  --navy-dark:      #0e2338;
  --navy-hover:     #254d78;
  --gold:           #b08d3a;
  --gold-light:     #c9a96e;
  --gold-dark:      #9a7d25;
  --bg:             #f7f6f1;
  --white:          #ffffff;
  --text:           #1e1e2e;
  --text-mid:       #4a4a5e;
  --text-light:     #6a6a7a;
  --border:         #dedbd4;
  --border-light:   #f0ede6;
  --urgent:         #7d1a1a;
  --urgent-bg:      #fdf2f2;
  --radius:         6px;
  --radius-lg:      12px;
  --shadow:         0 2px 10px rgba(0,0,0,0.08);
  --shadow-lg:      0 8px 32px rgba(26,58,92,0.12);
  --transition:     0.2s ease;
  --container:      1160px;
  --font-serif:     Georgia, 'Times New Roman', serif;
  --font-sans:      -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* 2. RESET & BASE */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  background-color: var(--bg);
  -webkit-text-size-adjust: 100%;
}
a { color: var(--navy); }
a:hover { text-decoration: underline; color: var(--navy-hover); }
img { display: block; max-width: 100%; height: auto; }
ul { list-style: disc; padding-left: 1.4rem; }
ol { list-style: decimal; padding-left: 1.4rem; }
button { font-family: inherit; cursor: pointer; }

/* 3. SKIP LINK (Accessibility) */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--navy);
  color: #fff;
  padding: 0.5rem 1.25rem;
  border-radius: 0 0 var(--radius) var(--radius);
  z-index: 9999;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: top 0.2s;
}
.skip-link:focus { top: 0; }

/* 4. TYPOGRAPHY */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  line-height: 1.3;
  color: var(--navy);
}
h1 { font-size: 2rem;    margin-bottom: 1.25rem; }
h2 { font-size: 1.5rem;  margin-top: 2rem; margin-bottom: 0.875rem; }
h3 { font-size: 1.2rem;  margin-top: 1.5rem; margin-bottom: 0.75rem; }
h4 { font-size: 1.05rem; margin-top: 1.25rem; margin-bottom: 0.5rem; }
p  { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }
strong { font-weight: 600; }
em { font-style: italic; }
hr { border: none; border-top: 1px solid var(--border); margin: 2rem 0; }

/* 5. CONTAINER */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ─────────────────────────────────────────────
   HEADER
───────────────────────────────────────────── */
.site-header {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: 0 2px 12px rgba(0,0,0,0.25);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 0;
  gap: 1rem;
  position: relative;
}
.site-logo {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  color: #fff;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 0.08rem;
  flex-shrink: 0;
  line-height: 1.2;
}
.site-logo .logo-sub {
  font-family: var(--font-sans);
  font-size: 0.67rem;
  color: var(--gold-light);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 500;
}
.site-logo:hover { text-decoration: none; color: #fff; }

/* ─── PRIMARY NAV ─── */
.primary-nav > ul {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  list-style: none;
  padding: 0;
  margin: 0;
}
.primary-nav a,
.primary-nav .nav-btn {
  display: block;
  padding: 0.45rem 0.65rem;
  color: rgba(255,255,255,0.88);
  font-size: 0.855rem;
  border-radius: var(--radius);
  transition: background var(--transition), color var(--transition);
  white-space: nowrap;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-sans);
  line-height: 1.5;
}
.primary-nav a:hover,
.primary-nav .nav-btn:hover,
.primary-nav a:focus-visible,
.primary-nav .nav-btn:focus-visible {
  background: rgba(255,255,255,0.12);
  color: #fff;
  text-decoration: none;
  outline: 2px solid rgba(255,255,255,0.4);
  outline-offset: -2px;
}
.primary-nav a[aria-current="page"],
.primary-nav a.active {
  color: #fff;
  background: rgba(201,169,110,0.22);
}
.nav-urgent > a {
  background: var(--urgent) !important;
  color: #fff !important;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.nav-urgent > a:hover { background: #9b2222 !important; }

/* ─── DROPDOWN ─── */
.nav-dropdown { position: relative; }
.nav-btn {
  display: flex !important;
  align-items: center;
  gap: 0.3rem;
}
.nav-btn::after { content: '▾'; font-size: 0.65rem; }
.nav-btn[aria-expanded="true"]::after { content: '▴'; }
.dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: -8px;
  min-width: 270px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 8px 32px rgba(0,0,0,0.16);
  border: 1px solid var(--border);
  padding: 0.5rem 0;
  z-index: 300;
  /* Oculto por defecto — se muestra solo con JS (.is-open) o teclado (:focus-within) */
  display: none;
  flex-direction: column;
}
.nav-dropdown:hover .dropdown-menu,
.nav-dropdown:focus-within .dropdown-menu,
.nav-dropdown.is-open .dropdown-menu {
  display: flex;
  flex-direction: column;
}
.dropdown-menu li {
  display: block;
  width: 100%;
}
.dropdown-menu a {
  display: block;
  width: 100%;
  padding: 0.5rem 1.1rem;
  color: var(--text);
  font-size: 0.875rem;
  transition: background 0.15s;
  white-space: nowrap;
}
.dropdown-menu a:hover {
  background: var(--bg);
  color: var(--navy);
  text-decoration: none;
}

/* ─── MOBILE TOGGLE ─── */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 0.5rem 0.6rem;
  background: none;
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: var(--radius);
  cursor: pointer;
  flex-shrink: 0;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ─────────────────────────────────────────────
   BREADCRUMBS
───────────────────────────────────────────── */
.breadcrumbs {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 0.6rem 0;
  font-size: 0.8rem;
}
.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem;
  list-style: none;
  padding: 0;
  margin: 0;
  align-items: center;
}
.breadcrumbs li { display: flex; align-items: center; gap: 0.2rem; color: var(--text-mid); }
.breadcrumbs li + li::before { content: '/'; color: var(--border); margin-right: 0.1rem; }
.breadcrumbs a { color: var(--navy); }
.breadcrumbs a:hover { text-decoration: underline; }
.breadcrumbs [aria-current="page"] { color: var(--text-light); }

/* ─────────────────────────────────────────────
   HOME HERO
───────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: #fff;
  padding: 4.5rem 0 4rem;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: '';
  position: absolute;
  top: -40%;
  right: -10%;
  width: 55%;
  height: 180%;
  background: radial-gradient(ellipse at center, rgba(176,141,58,0.07) 0%, transparent 70%);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; }
.hero-label {
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 0.8rem;
  font-weight: 500;
}
.hero h1 {
  font-family: var(--font-serif);
  font-size: 2.6rem;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 1rem;
  max-width: 660px;
}
.hero-h1-sub {
  display: block;
  font-size: 1.45rem;
  line-height: 1.3;
}
.hero-lead {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.82);
  max-width: 560px;
  margin-bottom: 2rem;
}
.hero-actions { display: flex; gap: 0.875rem; flex-wrap: wrap; margin-bottom: 2.5rem; }
.hero-meta {
  display: flex;
  gap: 2.5rem;
  flex-wrap: wrap;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.12);
}
.hero-meta-item { font-size: 0.875rem; color: rgba(255,255,255,0.7); }
.hero-meta-item strong { color: #fff; display: block; font-size: 0.95rem; margin-bottom: 0.1rem; }

/* ─── BUTTONS ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.7rem 1.4rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 600;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none !important;
  transition: all 0.2s;
  font-family: var(--font-sans);
  line-height: 1.4;
}
.btn:focus-visible {
  outline: 3px solid rgba(255,255,255,0.6);
  outline-offset: 2px;
}
.btn-primary {
  background: var(--gold);
  color: var(--navy-dark);
  border-color: var(--gold);
}
.btn-primary:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  text-decoration: none;
  color: var(--navy-dark);
}
.btn-outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.45);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: #fff;
  text-decoration: none;
  color: #fff;
}
.btn-navy {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}
.btn-navy:hover { background: var(--navy-hover); border-color: var(--navy-hover); color: #fff; text-decoration: none; }

/* ─────────────────────────────────────────────
   HOME: SERVICES GRID
───────────────────────────────────────────── */
.section { padding: 3.5rem 0; }
.section-header { margin-bottom: 2rem; }
.section-header h2 { margin-top: 0; }
.section-header.centered { text-align: center; }
.section-header.centered h2 { margin: 0 0 0.5rem; }
.section-header p { color: var(--text-mid); margin: 0; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.25rem;
}
.service-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem;
  border: 1px solid var(--border);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  text-decoration: none;
  display: block;
  color: var(--text);
}
.service-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(26,58,92,0.12);
  border-color: var(--gold-light);
  text-decoration: none;
  color: var(--text);
}
.service-card:focus-visible {
  outline: 3px solid var(--navy);
  outline-offset: 2px;
  text-decoration: none;
}
.sc-icon {
  width: 42px;
  height: 42px;
  background: rgba(26,58,92,0.07);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: var(--navy);
}
.service-card h3 {
  font-size: 1rem;
  color: var(--navy);
  margin: 0 0 0.4rem;
}
.service-card p {
  font-size: 0.85rem;
  color: var(--text-mid);
  margin: 0;
  line-height: 1.5;
}

/* ─────────────────────────────────────────────
   HOME: ABOUT STRIP
───────────────────────────────────────────── */
.about-strip {
  background: var(--navy);
  color: rgba(255,255,255,0.8);
  padding: 3rem 0;
}
.about-strip-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.about-strip h2 { color: #fff; margin-top: 0; font-size: 1.6rem; }
.about-strip p { color: rgba(255,255,255,0.78); margin-bottom: 0.875rem; font-size: 0.95rem; }
.about-strip-stats { display: flex; gap: 2.5rem; flex-wrap: wrap; justify-content: center; }
.stat { text-align: center; }
.stat-value {
  font-family: var(--font-serif);
  font-size: 3rem;
  color: var(--gold-light);
  line-height: 1;
  display: block;
}
.stat-label {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  display: block;
  margin-top: 0.25rem;
}

/* ─────────────────────────────────────────────
   CTA BANNER (URGENTE)
───────────────────────────────────────────── */
.cta-urgent {
  background: linear-gradient(135deg, var(--urgent), #5a1010);
  padding: 2.5rem 0;
  text-align: center;
}
.cta-urgent h2 { color: #fff; margin: 0 0 0.5rem; font-size: 1.5rem; }
.cta-urgent p { color: rgba(255,255,255,0.82); margin: 0 0 1.5rem; font-size: 0.95rem; }
.btn-white {
  background: #fff;
  color: var(--urgent);
  border-color: #fff;
  font-weight: 700;
}
.btn-white:hover { background: rgba(255,255,255,0.9); color: var(--urgent); text-decoration: none; }

/* ─────────────────────────────────────────────
   INTERIOR PAGE LAYOUT
───────────────────────────────────────────── */
.page-head {
  background: var(--white);
  padding: 1.75rem 0;
  border-bottom: 3px solid var(--gold-light);
}
.page-head h1 { margin: 0 0 0.35rem; font-size: 1.75rem; }
.page-head .lead {
  color: var(--text-mid);
  margin: 0;
  font-size: 1rem;
}
.page-body { padding: 2.5rem 0; }

.content-layout {
  display: grid;
  grid-template-columns: 1fr 310px;
  gap: 2rem;
  align-items: start;
}
.main-article {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 2rem 2.25rem;
}
.main-article h1:first-child,
.main-article h2:first-child { margin-top: 0; }

/* ─────────────────────────────────────────────
   SIDEBAR
───────────────────────────────────────────── */
.sidebar { display: flex; flex-direction: column; gap: 1.25rem; }

.s-card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
}
.s-card-head {
  background: var(--navy);
  color: #fff;
  padding: 0.7rem 1rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.s-card-body { padding: 1rem; }

.contact-list { display: flex; flex-direction: column; gap: 0.85rem; }
.contact-row { display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.875rem; }
.contact-icon { font-size: 1rem; flex-shrink: 0; color: var(--gold); margin-top: 0.1rem; line-height: 1.3; }
.contact-row span { line-height: 1.45; }
.contact-row a { color: var(--navy); }
.contact-row strong {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-light);
  margin-bottom: 0.1rem;
}

.s-nav { list-style: none; padding: 0; margin: 0; }
.s-nav li { border-bottom: 1px solid var(--border-light); }
.s-nav li:last-child { border-bottom: none; }
.s-nav a {
  display: block;
  padding: 0.5rem 0.75rem;
  font-size: 0.855rem;
  color: var(--text);
  border-left: 3px solid transparent;
  transition: all 0.15s;
  text-decoration: none;
}
.s-nav a:hover {
  background: var(--bg);
  border-left-color: var(--gold);
  color: var(--navy);
}
.s-nav a.active {
  background: rgba(26,58,92,0.05);
  border-left-color: var(--navy);
  color: var(--navy);
  font-weight: 600;
}

.s-urgent {
  background: linear-gradient(135deg, var(--urgent), #5a1010);
  border-radius: var(--radius);
  padding: 1.25rem;
  text-align: center;
}
.s-urgent h3 { color: #fff; font-size: 1rem; margin: 0 0 0.4rem; }
.s-urgent p { font-size: 0.83rem; color: rgba(255,255,255,0.82); margin: 0 0 1rem; }
.btn-s-urgent {
  display: block;
  background: #fff;
  color: var(--urgent);
  padding: 0.55rem 1rem;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.875rem;
  text-align: center;
  transition: background 0.2s;
  text-decoration: none;
}
.btn-s-urgent:hover { background: rgba(255,255,255,0.9); text-decoration: none; }

/* ─────────────────────────────────────────────
   CONTENT COMPONENTS
───────────────────────────────────────────── */
.highlight {
  background: rgba(26,58,92,0.05);
  border-left: 4px solid var(--navy);
  padding: 1rem 1.25rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 1.5rem 0;
}
.highlight p:last-child { margin-bottom: 0; }

.warning {
  background: var(--urgent-bg);
  border-left: 4px solid var(--urgent);
  padding: 1rem 1.25rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 1.5rem 0;
}
.warning p:last-child { margin-bottom: 0; }

.gold-box {
  background: rgba(176,141,58,0.06);
  border-left: 4px solid var(--gold);
  padding: 1rem 1.25rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 1.5rem 0;
}
.gold-box p:last-child { margin-bottom: 0; }

/* Info Grid */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}
.info-card {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 1.25rem;
  border: 1px solid var(--border);
}
.info-card h3 { margin: 0 0 0.4rem; font-size: 1rem; font-weight: 600; }
.info-card h4 { margin: 0 0 0.4rem; font-size: 0.95rem; }
.info-card p { margin: 0; font-size: 0.875rem; color: var(--text-mid); }

/* Checklist */
.check-list { list-style: none; padding: 0; margin: 0.75rem 0; }
.check-list li {
  padding: 0.35rem 0 0.35rem 1.6rem;
  position: relative;
  font-size: 0.95rem;
}
.check-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--gold);
  font-weight: 700;
  font-size: 1rem;
}

/* Steps */
.steps { list-style: none; padding: 0; counter-reset: steps; }
.steps li {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1rem;
  counter-increment: steps;
}
.steps li::before {
  content: counter(steps);
  background: var(--navy);
  color: #fff;
  min-width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 0.2rem;
}

/* FAQ */
.faq-group { margin-bottom: 2rem; }
.faq-group h3 { margin-bottom: 1rem; }
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 0.625rem;
  overflow: hidden;
}
.faq-q {
  padding: 0.9rem 1.1rem;
  background: var(--bg);
  font-weight: 600;
  color: var(--navy);
  font-size: 0.95rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.5rem;
  user-select: none;
}
.faq-a {
  padding: 1rem 1.1rem;
  background: var(--white);
  font-size: 0.9rem;
}
.faq-a p:last-child { margin-bottom: 0; }
.faq-a ul { margin: 0.5rem 0; }
.faq-a li { margin-bottom: 0.25rem; font-size: 0.9rem; }

/* Services types list (urgente page) */
.service-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 1.25rem 0;
}
.service-list li {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.6rem 1rem;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.service-list li::before {
  content: '→';
  color: var(--gold);
  font-weight: 700;
  flex-shrink: 0;
}

/* TABLE */
.table-wrap { overflow-x: auto; margin: 1.5rem 0; border-radius: var(--radius); border: 1px solid var(--border); }
table { width: 100%; border-collapse: collapse; font-size: 0.855rem; }
th {
  background: var(--navy);
  color: #fff;
  padding: 0.65rem 0.875rem;
  text-align: left;
  font-weight: 600;
  white-space: nowrap;
}
td { padding: 0.5rem 0.875rem; border-bottom: 1px solid var(--border); color: var(--text); vertical-align: top; }
tr:last-child td { border-bottom: none; }
tr:nth-child(even) td { background: var(--bg); }
tr:hover td { background: rgba(26,58,92,0.03); }

/* External links */
.links-list { list-style: none; padding: 0; margin: 0; }
.links-list li {
  border-bottom: 1px solid var(--border);
  padding: 0.875rem 0;
}
.links-list li:last-child { border-bottom: none; }
.links-list a {
  display: block;
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0.15rem;
}
.links-list p { font-size: 0.85rem; color: var(--text-mid); margin: 0; }

/* Contact page map area */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 1.5rem;
}
.contact-detail { display: flex; flex-direction: column; gap: 1rem; }
.detail-item { display: flex; gap: 0.75rem; align-items: flex-start; }
.detail-icon { font-size: 1.2rem; flex-shrink: 0; color: var(--gold); margin-top: 0.1rem; }
.detail-item h4 { margin: 0 0 0.25rem; font-size: 0.95rem; font-family: var(--font-sans); font-weight: 600; color: var(--navy); }
.detail-item p { margin: 0; font-size: 0.9rem; color: var(--text-mid); }
.detail-item a { color: var(--navy); }

.map-placeholder {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  color: var(--text-mid);
  font-size: 0.9rem;
}

/* Transit info */
.transit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 1rem 0;
}
.transit-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
}
.transit-card h4 { margin: 0 0 0.5rem; font-size: 0.9rem; }
.transit-card p { margin: 0; font-size: 0.875rem; color: var(--text-mid); }

/* ─────────────────────────────────────────────
   FOOTER
───────────────────────────────────────────── */
.site-footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,0.68);
  margin-top: 4rem;
  padding: 3.5rem 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-logo {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: #fff;
  text-decoration: none;
  margin-bottom: 0.75rem;
}
.footer-logo:hover { color: var(--gold-light); text-decoration: none; }
.footer-brand p { font-size: 0.875rem; margin-bottom: 0.5rem; }
.footer-contact-item {
  display: flex;
  gap: 0.5rem;
  font-size: 0.855rem;
  align-items: flex-start;
  margin-bottom: 0.4rem;
}
.footer-contact-item a { color: rgba(255,255,255,0.75); }
.footer-contact-item a:hover { color: var(--gold-light); text-decoration: none; }

.footer-col-title {
  color: #fff;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  margin-bottom: 0.875rem;
  margin-top: 0;
  font-family: var(--font-sans);
  font-weight: 700;
}
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 0.35rem; }
.footer-links a {
  color: rgba(255,255,255,0.62);
  font-size: 0.855rem;
  text-decoration: none;
  transition: color 0.15s;
}
.footer-links a:hover { color: var(--gold-light); }

.footer-bottom {
  padding: 1.25rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.8rem;
}
.footer-bottom-links { display: flex; gap: 1.25rem; }
.footer-bottom-links a {
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  font-size: 0.8rem;
}
.footer-bottom-links a:hover { color: var(--gold-light); }

/* ─────────────────────────────────────────────
   SOBRE LA ESCRIBANÍA (colapsable, index.html)
───────────────────────────────────────────── */
.sobre-escribania {
  background: var(--white);
  border-top: 1px solid var(--border);
  padding: 0;
}
.sobre-escribania .container { padding-top: 0; padding-bottom: 0; }
.sobre-escribania details { width: 100%; }
.sobre-escribania summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 0;
  cursor: pointer;
  list-style: none;
  gap: 1rem;
  user-select: none;
}
.sobre-escribania summary::-webkit-details-marker { display: none; }
.sobre-escribania summary h2 {
  font-size: 1.25rem;
  color: var(--navy);
  margin: 0;
  font-family: var(--font-serif);
}
.sobre-escribania summary .se-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
  transition: background var(--transition), transform var(--transition);
  font-style: normal;
}
.sobre-escribania details[open] summary .se-icon {
  background: var(--gold);
  transform: rotate(45deg);
}
.sobre-escribania summary:hover h2 { color: var(--navy-hover); }
.sobre-escribania summary:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
  border-radius: var(--radius);
}
.se-body {
  padding: 0 0 2.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem 3rem;
  border-top: 1px solid var(--border-light);
  padding-top: 2rem;
}
.se-body h3 {
  font-size: 1.1rem;
  color: var(--navy);
  margin: 0 0 0.75rem;
}
.se-body p { font-size: 0.95rem; color: var(--text-mid); margin-bottom: 0.75rem; }
.se-body ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.3rem 1rem;
}
.se-body ul li {
  font-size: 0.875rem;
  color: var(--text-mid);
  padding-left: 1rem;
  position: relative;
}
.se-body ul li::before {
  content: '·';
  position: absolute;
  left: 0;
  color: var(--gold);
  font-weight: 700;
}
@media (max-width: 700px) {
  .se-body { grid-template-columns: 1fr; gap: 1.5rem; }
  .se-body ul { grid-template-columns: 1fr; }
}

/* ─────────────────────────────────────────────
   UTILITIES
───────────────────────────────────────────── */
.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;
}
.text-center { text-align: center; }
.gold { color: var(--gold); }
.mt-0 { margin-top: 0 !important; }
.mb-sm { margin-bottom: 0.75rem; }

/* ─────────────────────────────────────────────
   FOCUS STYLES (Accessibility)
───────────────────────────────────────────── */
a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
  border-radius: 3px;
}
.site-header a:focus-visible,
.site-header button:focus-visible {
  outline-color: #fff;
}

/* ─────────────────────────────────────────────
   RESPONSIVE
───────────────────────────────────────────── */
@media (max-width: 960px) {
  .content-layout { grid-template-columns: 1fr; }
  .sidebar { order: -1; }
  .sidebar { flex-direction: row; flex-wrap: wrap; }
  .sidebar .s-card { flex: 1 1 280px; }
  .sidebar .s-urgent { flex: 1 1 100%; }
  .about-strip-inner { grid-template-columns: 1fr; gap: 2rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .hero h1 { font-size: 2rem; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .nav-toggle { display: flex; }
  .primary-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--navy-dark);
    padding: 0.75rem;
    display: none;
    box-shadow: 0 8px 24px rgba(0,0,0,0.25);
    z-index: 300;
  }
  .primary-nav.is-open { display: block; }
  .primary-nav ul { flex-direction: column; gap: 0.15rem; }
  .primary-nav a,
  .primary-nav .nav-btn { padding: 0.65rem 0.875rem; font-size: 0.9rem; width: 100%; text-align: left; }
  .nav-dropdown { position: static; }
  .dropdown-menu {
    position: static;
    box-shadow: none;
    border: none;
    background: rgba(0,0,0,0.2);
    border-radius: var(--radius);
    margin-top: 0.15rem;
    padding: 0.25rem 0;
    display: none;
  }
  .dropdown-menu a { color: rgba(255,255,255,0.75); padding-left: 1.5rem; }
  .dropdown-menu a:hover { background: rgba(255,255,255,0.06); color: #fff; }
  .nav-dropdown.is-open .dropdown-menu { display: block; }
  .header-inner { position: relative; }

  .hero { padding: 3rem 0 2.5rem; }
  .hero h1 { font-size: 1.75rem; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { justify-content: center; }
  .hero-meta { gap: 1.25rem; }

  .services-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand { grid-column: auto; }
  h1 { font-size: 1.6rem; }
  h2 { font-size: 1.3rem; }
  .transit-grid { grid-template-columns: 1fr; }
  .sidebar { flex-direction: column; }
  .sidebar .s-card { flex: none; }
}

@media (max-width: 480px) {
  .container { padding: 0 1rem; }
  .main-article { padding: 1.25rem; }
  .hero h1 { font-size: 1.5rem; }
  .page-head h1 { font-size: 1.4rem; }
  .about-strip-stats { gap: 1.5rem; }
}

/* ─────────────────────────────────────────────
   PRINT
───────────────────────────────────────────── */
@media print {
  .site-header, .sidebar, .site-footer, .breadcrumbs,
  .cta-urgent, .nav-toggle { display: none !important; }
  .content-layout { grid-template-columns: 1fr; }
  .main-article { border: none; padding: 0; }
  body { background: #fff; color: #000; font-size: 12pt; }
  a { color: #000; }
  h1, h2, h3, h4 { color: #000; }
}
