@import url('https://fonts.googleapis.com/css2?family=Raleway:wght@200;300;400;500;600;700&display=swap');

/* ============================================
   BLANCO SALAS & ASOCIADOS — Design system
   ============================================ */

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

:root {
  --navy: #043752;
  --navy-dark: #032a3f;
  --ivory: #F5F1EA;
  --white: #FFFFFF;
  --text: #1A1A1A;
  --text-muted: #5A5A5A;
  --border: #E5E0D8;
  --max: 1280px;
  --gutter: 24px;
  --section-y: 60px;
  --section-y-mobile: 40px;
  --font: 'Raleway', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }
a { color: inherit; text-decoration: none; }

/* ============================================
   Typography
   ============================================ */

h1, h2, h3, h4 {
  font-family: var(--font);
  color: var(--navy);
  text-transform: uppercase;
}

h1 {
  font-weight: 200;
  font-size: clamp(1.7rem, 2.8vw, 2.4rem);
  line-height: 1.2;
  letter-spacing: 0.03em;
}

h2 {
  font-weight: 300;
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  line-height: 1.25;
  letter-spacing: 0.06em;
}

h3 {
  font-weight: 400;
  font-size: 1.3rem;
  line-height: 1.3;
  letter-spacing: 0.04em;
}

h4 {
  font-weight: 500;
  font-size: 0.82rem;
  line-height: 1.4;
  letter-spacing: 0.12em;
}

.eyebrow {
  display: inline-block;
  font-weight: 500;
  font-size: 0.74rem;
  line-height: 1;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 1.25rem;
}

p {
  font-weight: 400;
  line-height: 1.75;
  color: var(--text);
}

p + p { margin-top: 1.1rem; }

.lead {
  font-weight: 300;
  font-size: 1.15rem;
  line-height: 1.75;
  color: var(--text);
}

/* ============================================
   Layout primitives
   ============================================ */

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section {
  padding: var(--section-y) 0;
}

.section--ivory { background: var(--ivory); }
.section--navy { background: var(--navy); color: var(--white); }
.section--tight { padding: 40px 0 56px; }
.section--navy h1, .section--navy h2, .section--navy h3 { color: var(--white); }
.section--navy .eyebrow { color: rgba(255,255,255,0.7); }
.section--navy p { color: rgba(255,255,255,0.85); }

.section__head {
  text-align: center;
  margin-bottom: 40px;
}

.section__head h2 {
  margin-top: 0.4rem;
  max-width: 22ch;
  margin-left: auto;
  margin-right: auto;
}

.grid { display: grid; gap: 24px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); gap: 32px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid--4 { grid-template-columns: repeat(4, 1fr); gap: 24px; }

/* ============================================
   Buttons
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 17px 36px;
  font-family: inherit;
  font-weight: 500;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.btn--primary {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}
.btn--primary:hover { background: var(--navy-dark); border-color: var(--navy-dark); }

.btn--secondary {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn--secondary:hover { background: var(--navy); color: var(--white); }

.btn--white {
  background: var(--white);
  color: var(--navy);
  border-color: var(--white);
}
.btn--white:hover { background: transparent; color: var(--white); border-color: var(--white); }

/* ============================================
   Cards
   ============================================ */

.card {
  position: relative;
  background: var(--white);
  border: 1px solid transparent;
  padding: 36px 32px;
  transition: border-color 0.25s ease, transform 0.25s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.card:hover { border-color: var(--navy); }

.card .eyebrow { margin-bottom: 1rem; }

.card h3 {
  font-size: 1.18rem;
  margin-bottom: 1rem;
  min-height: 2.6em;
}

.card p {
  font-size: 0.94rem;
  color: var(--text-muted);
  line-height: 1.65;
  flex-grow: 1;
}

.card__more {
  display: inline-block;
  margin-top: 24px;
  color: var(--navy);
  font-weight: 500;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.card__more::after { content: ' →'; }

/* Tarjeta de área entera clicable (no solo el enlace "Saber más").
   La capa cubre toda la .card; solo afecta a tarjetas que tienen enlace. */
.card:has(.card__more) { cursor: pointer; }
.card__more::before { content: ''; position: absolute; inset: 0; z-index: 1; }

/* Plain card (no border, used for "Aproximación") */
.principle {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.principle__num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-weight: 500;
  font-size: 1.3rem;
  margin-bottom: 1.2rem;
  line-height: 1;
}
.principle h3 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
}
.principle p { color: var(--text-muted); font-size: 0.96rem; }

/* ============================================
   Topbar
   ============================================ */

.topbar {
  background: var(--ivory);
  padding: 10px 0;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}
.topbar__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.topbar a { color: var(--text-muted); transition: color 0.2s; }
.topbar a:hover { color: var(--navy); }

/* ============================================
   Header / Nav
   ============================================ */

.header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 96px;
  gap: 32px;
}
/* Tipográfico de marca en header */
.header__brand-text {
  font-family: var(--font);
  font-weight: 400;
  font-size: 0.95rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--navy);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
}
.header__brand-text::before,
.header__brand-text::after {
  content: '';
  display: inline-block;
  width: 22px;
  height: 1px;
  background: var(--navy);
  margin: 0 12px;
}

.nav {
  display: flex;
  gap: 36px;
}
.nav a {
  color: var(--text);
  font-size: 0.76rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: color 0.2s;
  padding: 8px 0;
  position: relative;
}
.nav a:hover { color: var(--navy); }
.nav a.active { color: var(--navy); }
.nav a.active::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1px;
  background: var(--navy);
}

.header__cta { flex-shrink: 0; }

.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  width: 44px;
  height: 44px;
  cursor: pointer;
  font-size: 1.2rem;
  color: var(--navy);
}

/* ============================================
   Hero
   ============================================ */

.hero {
  padding: 64px 0 60px;
  background: var(--white);
  text-align: center;
  border-bottom: 1px solid var(--border);
}
.hero--inner {
  padding: 48px 0 36px;
}
.hero--compact {
  padding: 36px 0 28px;
}
.hero--compact h1 {
  font-size: clamp(1.4rem, 2.2vw, 1.9rem);
  margin-bottom: 14px;
}
.hero--compact .eyebrow { margin-bottom: 0.8rem; }
.hero--compact .hero__sub {
  font-size: 0.95rem;
  margin-bottom: 0;
  line-height: 1.5;
  max-width: 56ch;
}

.hero .eyebrow { margin-bottom: 1.2rem; }

.hero h1 {
  max-width: 24ch;
  margin: 0 auto 24px;
}

.hero__sub {
  max-width: 60ch;
  margin: 0 auto 32px;
  font-weight: 300;
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.hero__cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================
   Statement (long-form quote-like block)
   ============================================ */
.statement {
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
}
.statement h2 { margin-bottom: 2rem; }
.statement .lead { margin-bottom: 0; }

.signature {
  margin-top: 2.4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  font-size: 0.92rem;
  font-weight: 300;
  letter-spacing: 0.01em;
  color: var(--text-muted);
}
.signature strong {
  font-weight: 500;
  color: var(--navy);
}
.signature a {
  color: var(--navy);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ============================================
   Stats / numbers
   ============================================ */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}
.stats--two {
  grid-template-columns: repeat(2, 1fr);
  max-width: 720px;
  margin: 0 auto;
  gap: 64px;
}
.stat__num {
  display: block;
  font-weight: 200;
  font-size: clamp(2.6rem, 5vw, 3.8rem);
  color: var(--navy);
  letter-spacing: 0.02em;
  line-height: 1;
  margin-bottom: 0.6rem;
}
.stat__label {
  display: block;
  font-weight: 500;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ============================================
   Renta banner
   ============================================ */
.banner {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 48px;
  align-items: center;
}
.banner h2 { color: var(--white); margin-bottom: 1rem; }
.banner p { color: rgba(255,255,255,0.85); margin-bottom: 0; }
.banner__cta { text-align: right; }

/* ============================================
   Article list (Actualidad)
   ============================================ */
.article {
  padding: 32px 0;
  border-bottom: 1px solid var(--border);
}
.article:last-child { border-bottom: none; }
.article__meta {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.8rem;
}
.article h3 {
  font-size: 1.18rem;
  margin-bottom: 0.8rem;
  font-weight: 400;
  text-transform: none;
  color: var(--navy);
  letter-spacing: 0;
  line-height: 1.4;
}
.article__more {
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--navy);
  font-weight: 500;
}
.article__more::after { content: ' →'; }

/* ============================================
   Contact block
   ============================================ */
.contact-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.contact-block dl { margin-top: 24px; }
.contact-block dt {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 24px;
  margin-bottom: 4px;
}
.contact-block dt:first-child { margin-top: 0; }
.contact-block dd {
  font-size: 1.05rem;
  font-weight: 300;
  color: var(--text);
  overflow-wrap: anywhere;
}
.contact-block .map {
  width: 100%;
  height: 420px;
  border: 1px solid var(--border);
  background: var(--ivory);
}

/* ============================================
   FAQ
   ============================================ */
.faq details {
  border-bottom: 1px solid var(--border);
  padding: 24px 0;
}
.faq details:first-child { padding-top: 0; }
.faq summary {
  cursor: pointer;
  font-weight: 500;
  font-size: 1rem;
  color: var(--navy);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  text-transform: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  font-size: 1.5rem;
  font-weight: 200;
  color: var(--navy);
  flex-shrink: 0;
  transition: transform 0.2s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p {
  margin-top: 16px;
  color: var(--text-muted);
  font-size: 0.96rem;
}

/* ============================================
   Service / area listing (text only, no card)
   ============================================ */
.service-list { display: grid; gap: 32px; }
.service-list__item {
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
}
.service-list__item:last-child { border-bottom: none; }
.service-list__item h3 {
  margin-bottom: 0.6rem;
  font-size: 1.1rem;
}
.service-list__item p {
  color: var(--text-muted);
  font-size: 0.96rem;
  margin: 0;
}

/* ============================================
   Form
   ============================================ */
.form { display: grid; gap: 24px; }
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.form-field label {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
  font-weight: 500;
}
.form input,
.form select,
.form textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--border);
  background: var(--white);
  font-family: inherit;
  font-size: 0.96rem;
  color: var(--text);
  transition: border-color 0.2s;
  border-radius: 0;
}
.form input:focus, .form select:focus, .form textarea:focus {
  outline: none;
  border-color: var(--navy);
}
.form textarea { min-height: 160px; resize: vertical; }
.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.6;
}
.form-checkbox input { width: auto; margin-top: 5px; flex-shrink: 0; }
.form-actions { text-align: center; margin-top: 16px; }

/* ============================================
   Breadcrumb
   ============================================ */
.breadcrumb {
  background: var(--ivory);
  padding: 0.75rem 0;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  border-bottom: 1px solid #eee;
}
.breadcrumb a { color: var(--navy); transition: color 0.2s; text-decoration: none; }
.breadcrumb a:hover { color: var(--navy); text-decoration: underline; }
.breadcrumb__sep { margin: 0 12px; color: var(--border); }
.breadcrumb__current { color: var(--navy); }

/* ============================================
   Footer
   ============================================ */
.footer {
  background: var(--navy);
  color: var(--white);
  padding: 80px 0 32px;
}
.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 56px;
}
/* Tipográfico de marca en footer */
.footer__brand-text {
  font-family: var(--font);
  font-weight: 300;
  font-size: 1rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 24px;
  display: block;
}
.footer__brand-text::before,
.footer__brand-text::after {
  content: '';
  display: inline-block;
  width: 28px;
  height: 1px;
  background: rgba(255,255,255,0.5);
  vertical-align: middle;
  margin: 0 14px;
}
.footer__brand p {
  color: rgba(255,255,255,0.7);
  font-size: 0.92rem;
  font-weight: 300;
  max-width: 32ch;
}
.footer__social {
  margin-top: 24px;
  display: flex;
  gap: 14px;
}
.footer__social a {
  display: inline-flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,0.3);
  color: rgba(255,255,255,0.8);
  transition: all 0.2s;
  font-size: 0.88rem;
}
.footer__social a:hover { background: var(--white); color: var(--navy); border-color: var(--white); }
.footer__social-caption {
  margin-top: 10px;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  font-weight: 400;
}

.footer h4 {
  color: var(--white);
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 24px;
  font-weight: 500;
}
.footer ul li { margin-bottom: 12px; }
.footer a {
  color: rgba(255,255,255,0.72);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 300;
  transition: color 0.2s;
  line-height: 1.5;
}
.footer a:hover { color: var(--white); }

.footer__info p {
  color: rgba(255,255,255,0.72);
  font-size: 0.9rem;
  font-weight: 300;
  margin-bottom: 8px;
}

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  margin-top: 64px;
  padding-top: 32px;
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.55);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer__bottom__links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

/* Form grid helper (responsive) */
.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}
@media (max-width: 640px) {
  .form-grid-2 { grid-template-columns: 1fr; }
}

/* renta.html: rejillas que colapsan en móvil (antes inline, sin breakpoint) */
.renta-hero { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
.renta-submit { display: grid; grid-template-columns: 1fr auto; gap: 1.2rem; align-items: end; margin-top: 1.2rem; }
@media (max-width: 768px) { .renta-hero { grid-template-columns: 1fr; gap: 2.5rem; } }
@media (max-width: 640px) { .renta-submit { grid-template-columns: 1fr; } }

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 1024px) {
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 40px; }
}

/* Cabecera: el CTA del header solo cabe en pantallas anchas (>=1280) */
@media (max-width: 1279px) {
  .header__cta { display: none; } /* disponible en hero, footer y drawer */
}
/* Cabecera colapsada a hamburguesa en tablet y móvil (el nav completo no cabe por debajo de ~1025) */
@media (max-width: 1024px) {
  .header__inner { height: 76px; }
  .nav { display: none; }
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .header__brand-text { letter-spacing: 0.12em; }
  .header__brand-text::before,
  .header__brand-text::after { display: none; }
  .btn { white-space: normal; } /* textos largos pueden envolver; en escritorio caben en una línea */
}

@media (max-width: 768px) {
  :root { --section-y: var(--section-y-mobile); }
  .section { padding: var(--section-y-mobile) 0; }

  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 40px; }
  .banner { grid-template-columns: 1fr; gap: 32px; }
  .banner__cta { text-align: left; }
  .contact-block { grid-template-columns: 1fr; gap: 40px; }
  .form-row { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; gap: 40px; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }

  .hero { padding: 48px 0 44px; }
  .hero--inner { padding: 36px 0 28px; }
  .hero h1 { max-width: none; }

  .section__head { margin-bottom: 48px; }
  .topbar { font-size: 0.65rem; }
}

@media (max-width: 480px) {
  .stats { grid-template-columns: 1fr; }
}

/* Móviles muy estrechos (<=340px): la marca se ajusta para no desbordar junto al menú */
@media (max-width: 340px) {
  .header__brand-text { font-size: 0.82rem; letter-spacing: 0.04em; }
}

/* ============================================
   Legal pages
   ============================================ */

.legal-content { line-height: 1.85; color: var(--text-muted); }
.legal-content h2 { color: var(--navy); font-size: 1.35rem; margin: 2.5rem 0 1rem; font-weight: 600; }
.legal-content h3 { color: var(--navy); font-size: 1.1rem; margin: 2rem 0 0.75rem; font-weight: 600; }
.legal-content h4 { color: var(--navy); font-size: 1rem; margin: 1.5rem 0 0.5rem; font-weight: 600; }
.legal-content p { margin-bottom: 1rem; }
.legal-content ul { margin: 0 0 1.2rem 1.5rem; }
.legal-content li { margin-bottom: 0.4rem; }
.legal-content a { color: var(--navy); text-decoration: underline; overflow-wrap: anywhere; }

.legal-table { width: 100%; border-collapse: collapse; margin: 1rem 0 2rem; font-size: 0.9rem; }
.legal-table th,
.legal-table td { padding: 0.65rem 0.9rem; text-align: left; border: 1px solid #ddd; overflow-wrap: anywhere; }
.legal-table th { background: var(--ivory); color: var(--navy); font-weight: 600; }
.legal-table td { color: var(--text-muted); }

@media (max-width: 768px) {
  .legal-table { font-size: 0.8rem; table-layout: fixed; }
  .legal-table th, .legal-table td { padding: 0.5rem; }
}

/* ============================================
   Blog / Publicaciones
   ============================================ */

.post-content { max-width: 760px; margin: 0 auto; line-height: 1.9; color: var(--text-muted); font-size: 1.02rem; }
.post-content h2 { color: var(--navy); font-size: 1.35rem; margin: 2.5rem 0 1rem; font-weight: 600; }
.post-content h3 { color: var(--navy); font-size: 1.1rem; margin: 2rem 0 0.75rem; font-weight: 600; }
.post-content p { margin-bottom: 1.2rem; }
.post-content ul, .post-content ol { margin: 0 0 1.4rem 1.5rem; }
.post-content li { margin-bottom: 0.5rem; }
.post-content blockquote { border-left: 3px solid var(--navy); padding: 1rem 1.5rem; margin: 1.5rem 0; background: var(--ivory); font-style: italic; }
.post-content a { color: var(--navy); text-decoration: underline; }
.post-content strong { color: var(--navy); }

.post-meta { max-width: 760px; margin: 0 auto 2rem; display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; font-size: 0.85rem; color: var(--text-muted); }
.post-meta__tag { background: var(--navy); color: #fff; padding: 0.2rem 0.7rem; border-radius: 3px; font-size: 0.75rem; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; text-decoration: none; }
.post-meta__tag:hover { opacity: 0.85; }

.post-nav { max-width: 760px; margin: 3rem auto 0; padding-top: 2rem; border-top: 1px solid var(--border); display: flex; justify-content: space-between; gap: 1rem; }
.post-nav a { color: var(--navy); text-decoration: none; font-size: 0.9rem; font-weight: 500; }
.post-nav a:hover { text-decoration: underline; }

/* Blog listing */
.blog-list { max-width: 880px; margin: 0 auto; }
.blog-list .article { padding: 2rem 0; border-bottom: 1px solid var(--border); }
.blog-list .article:first-child { padding-top: 0; }
.blog-list .article__excerpt { color: var(--text-muted); font-size: 0.95rem; line-height: 1.65; margin: 0.6rem 0 0.8rem; }

.blog-filters { max-width: 880px; margin: 0 auto 2rem; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.blog-filters a, .blog-filters button { padding: 0.35rem 0.9rem; border: 1px solid var(--border); border-radius: 3px; font-size: 0.8rem; color: var(--text-muted); text-decoration: none; transition: all 0.2s; background: transparent; font-family: inherit; cursor: pointer; }
.blog-filters a:hover, .blog-filters a.active, .blog-filters button:hover, .blog-filters button.active { background: var(--navy); color: #fff; border-color: var(--navy); }

/* === MOBILE NAV DRAWER === */
.nav-drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: min(320px, 85vw);
  background: #fff;
  z-index: 1001;
  transform: translateX(100%);
  transition: transform .28s cubic-bezier(.4, 0, .2, 1);
  display: flex;
  flex-direction: column;
  padding: 32px 28px 28px;
  box-shadow: -4px 0 24px rgba(0,0,0,0.12);
  overflow-y: auto;
}
.nav-drawer[hidden] { display: none; }
.nav-drawer.is-open { transform: translateX(0); }
.nav-drawer__close {
  align-self: flex-end;
  background: none; border: none;
  font-size: 1.8rem; line-height: 1;
  color: var(--navy); cursor: pointer;
  padding: 4px 12px;
  margin-bottom: 16px;
}
.nav-drawer__nav { display: flex; flex-direction: column; }
.nav-drawer__nav a {
  display: block;
  padding: 16px 0;
  color: var(--navy);
  text-decoration: none;
  font-size: 1rem;
  letter-spacing: 0.04em;
  border-bottom: 1px solid var(--border);
  transition: opacity .15s;
}
.nav-drawer__nav a:active { opacity: 0.5; }
.nav-drawer__cta { margin-top: auto; text-align: center; }

.nav-backdrop {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity .28s;
}
.nav-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

body.is-nav-open { overflow: hidden; }

@media (min-width: 1025px) {
  .nav-drawer,
  .nav-backdrop { display: none !important; }
}

/* === MOBILE POLISH === */
@media (max-width: 768px) {
  .map { height: 320px; }
  .footer__grid a {
    display: inline-block;
    padding: 6px 0;
    min-height: 36px;
  }
  .footer__bottom__links a {
    padding: 4px 0;
    display: inline-block;
  }
}
@media (max-width: 480px) {
  .map { height: 240px; }
  .topbar { padding: 6px 0; }
  .topbar__inner { gap: 8px; font-size: 0.62rem; }
}

/* ============================================================
   ROBUSTEZ / ACCESIBILIDAD — aditivo, NO cambia el diseño
   (foco de teclado, rejillas tablet, reduced-motion, táctiles,
   contraste de caption, skip-link, utilidad sr-only)
   ============================================================ */

/* Skip link */
.skip-link {
  position: absolute; left: 16px; top: -64px; z-index: 2000;
  background: var(--navy); color: #fff; padding: 12px 18px;
  font-size: 0.8rem; letter-spacing: 0.04em; transition: top 0.2s ease;
}
.skip-link:focus { top: 12px; }

/* Foco de teclado visible (antes solo había foco en inputs) */
a:focus-visible, button:focus-visible, .btn:focus-visible, summary:focus-visible,
input:focus-visible, select:focus-visible, textarea:focus-visible,
.card__more:focus-visible, .article__more:focus-visible, .menu-toggle:focus-visible {
  outline: 2px solid var(--navy); outline-offset: 2px;
}
.section--navy a:focus-visible, .section--navy button:focus-visible, .section--navy .btn:focus-visible,
.footer a:focus-visible, .btn--white:focus-visible, .nav-drawer__cta:focus-visible { outline-color: #fff; }

/* Respeto a prefers-reduced-motion (no existía) */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* Tablet: evitar 3/4 columnas estrujadas entre 769–1024px */
@media (max-width: 1024px) and (min-width: 769px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
}

/* Objetivos táctiles ≥44px (sin cambiar el aspecto visible) */
.card__more, .article__more { padding: 10px 0; }
.nav-drawer__close { min-width: 44px; min-height: 44px; }
.blog-filters a, .blog-filters button { min-height: 40px; display: inline-flex; align-items: center; }
@media (max-width: 768px) {
  .footer__grid a { min-height: 44px; }
  .footer__bottom__links a { min-height: 44px; display: inline-flex; align-items: center; }
}

/* Contraste: caption social del footer a AA (era 4.30:1) */
.footer__social-caption { color: rgba(255,255,255,0.6); }

/* Teléfono clicable (tel:) sin cambiar el aspecto del texto */
a[href^="tel:"] { color: inherit; text-decoration: none; }

/* Utilidad: oculto visualmente, accesible a lectores de pantalla */
.sr-only {
  position: absolute !important; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}
