/* ===================================================
   ROMA & CO. — ESTILOS COMPARTIDOS
   =================================================== */
:root {
  --ink: #20273A;        /* azul marino profundo */
  --ink-soft: #4E5A65;   /* gris azulado oscuro (texto secundario) */
  --steel: #98B9CA;      /* azul grisáceo medio */
  --sky: #CAE7F3;        /* celeste muy claro */
  --bronze: #B7754B;     /* bronce-terracota (acento principal) */
  --bronze-deep: #99603C;
  --bronze-light: #E8A788; /* terracota claro — para acentos sobre fondo oscuro */
  --paper: #FFFEF4;      /* blanco hueso cálido */
  --paper-dim: #EFEBE3;  /* variante un poco más oscura del hueso para fondos alternos */
  --line: #BBC2CB;       /* gris azulado claro (bordes) */
  --line-dark: rgba(255,254,244,0.16);
  --whatsapp: #25D366;
  --heading-accent: #C1572E;
  --btn-primary: #1C2B3A;
  --btn-primary-hover: #C1572E;
  --btn-form: #C1572E;
  --btn-form-hover: #A6492A;
  --paper-dim: #EFEBE3;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', sans-serif;
  background: var(--paper);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  line-height: 1.55;
  font-size: 16.5px;
}
p { text-align: justify; text-justify: inter-word; }
a { color: inherit; text-decoration: none; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 32px; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 2px solid var(--bronze); outline-offset: 2px; }

/* ===== HEADER ===== */
header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,254,244,0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 16px 32px; }
.logo { font-size: 22px; font-weight: 800; letter-spacing: -0.01em; color: var(--ink); }
.logo span { color: var(--bronze); }
.logo-placeholder {
  font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-soft); border: 1px dashed var(--line); padding: 8px 14px; border-radius: 6px;
}
.logo-img-link { display: flex; align-items: center; }
.logo-img { height: 42px; width: auto; display: block; }
@media (max-width: 560px) { .logo-img { height: 34px; } }
nav.main-nav { display: flex; align-items: center; gap: 6px; }
.nav-item { position: relative; }
.nav-link {
  display: flex; align-items: center; gap: 5px;
  font-size: 16px; font-weight: 500; color: var(--ink-soft);
  padding: 10px 14px; border-radius: 6px;
  transition: color 0.2s, background 0.2s; cursor: pointer;
}
.nav-link:hover { color: var(--ink); background: rgba(32,39,58,0.05); }
.nav-link.active { color: var(--ink); font-weight: 700; }
.nav-link .chev { width: 11px; height: 11px; transition: transform 0.2s; }
.nav-item:hover .chev { transform: rotate(180deg); }

.dropdown {
  position: absolute; top: 100%; left: 0; margin-top: 6px;
  background: var(--paper); border: 1px solid var(--line);
  border-radius: 12px; padding: 10px; min-width: 240px;
  box-shadow: 0 16px 40px rgba(32,39,58,0.14);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: all 0.18s ease;
}
.nav-item:hover .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 8px; font-size: 14.5px; color: var(--ink); font-weight: 500; }
.dropdown a:hover { background: var(--paper-dim); color: var(--bronze); }
.dropdown a .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--bronze); flex-shrink: 0; }

.nav-right { display: flex; align-items: center; gap: 10px; }
.nav-cta { background: var(--btn-primary); color: var(--paper) !important; padding: 12px 22px; border-radius: 6px; font-weight: 700; font-size: 15px; white-space: nowrap; transition: background 0.2s; }
.nav-cta:hover, .nav-cta:active, .nav-cta:focus { background: var(--btn-primary-hover); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; width: 26px; cursor: pointer; background: none; border: none; padding: 4px; }
.nav-toggle span { display: block; height: 2px; background: var(--ink); border-radius: 2px; transition: all 0.25s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 920px) {
  nav.main-nav {
    display: none; position: fixed; top: 60px; left: 0; right: 0; bottom: 0;
    background: var(--paper); flex-direction: column; align-items: stretch;
    padding: 12px 20px 32px; overflow-y: auto; gap: 2px; border-top: 1px solid var(--line);
  }
  nav.main-nav.open { display: flex; }
  .nav-item { width: 100%; }
  .nav-link { width: 100%; justify-content: space-between; padding: 16px 8px; font-size: 17px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .dropdown { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: none; margin: 0 0 6px; display: none; background: var(--paper-dim); border-radius: 10px; }
  .nav-item.mobile-open .dropdown { display: block; }
  .nav-item.mobile-open .chev { transform: rotate(180deg); }
  .nav-right { margin-top: 18px; flex-direction: column; align-items: stretch; }
  .nav-cta { text-align: center; padding: 15px; font-size: 16px; }
  .nav-toggle { display: flex; }
}

/* ===== WHATSAPP FLOTANTE ===== */
.wa-float {
  position: fixed; bottom: 24px; right: 24px; z-index: 200;
  width: 58px; height: 58px; border-radius: 50%; background: var(--whatsapp);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 28px rgba(37,211,102,0.45); transition: transform 0.2s;
}
.wa-float:hover { transform: scale(1.07); }
.wa-float svg { width: 30px; height: 30px; fill: #fff; }
@media (max-width: 560px) {
  .wa-float { width: 52px; height: 52px; bottom: 18px; right: 18px; }
  .wa-float svg { width: 27px; height: 27px; }
}

/* ===== SOCIAL ICONS ===== */
.social-row { display: flex; gap: 10px; }
.social-icon {
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(32,39,58,0.06); color: var(--ink-soft); transition: all 0.2s;
}
.social-icon:hover { background: var(--bronze); color: #fff; }
.social-icon svg { width: 17px; height: 17px; }
footer .social-icon { background: rgba(255,254,244,0.08); color: rgba(255,254,244,0.75); }
footer .social-icon:hover { background: var(--bronze); color: #fff; }

/* ===== HERO (con imagen de fondo) ===== */
.hero {
  position: relative; color: var(--paper);
  padding: 48px 0 0; overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background-size: cover; background-position: center;
}
.hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(32,39,58,0.88) 0%, rgba(32,39,58,0.93) 100%);
}
.hero-content { position: relative; z-index: 2; }
.hero-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 28px; }
.hero-eyebrow { font-size: 14px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--heading-accent); font-weight: 700; }
.hero h1 {
  font-size: clamp(38px, 5.6vw, 66px); font-weight: 800; line-height: 1.1;
  letter-spacing: -0.02em; max-width: none; margin-bottom: 18px;
}
.hero h1 .accent { color: var(--bronze-light); }
.hero-sub { font-size: clamp(17px, 1.7vw, 20px); color: rgba(255,254,244,0.75); font-weight: 400; margin-bottom: 36px; max-width: calc(100% - 56px); }

.selector { background: rgba(255,254,244,0.07); border: 1px solid var(--line-dark); border-radius: 14px; padding: 28px; margin-bottom: -1px; }
.selector-label { font-size: 16px; font-weight: 700; color: rgba(255,254,244,0.88); margin-bottom: 16px; }
.selector-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.area-btn {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  background: rgba(255,254,244,0.05); border: 1px solid var(--line-dark);
  border-radius: 10px; padding: 28px 18px; cursor: pointer; transition: all 0.2s; text-align: center;
}
.area-btn:hover { background: var(--heading-accent); border-color: var(--heading-accent); transform: translateY(-2px); }
.area-num { display: none; }
.area-icon { width: 52px; height: 52px; color: var(--bronze-light); transition: color 0.2s; }
.area-btn:hover .area-icon { color: var(--paper); }
.area-icon svg { width: 100%; height: 100%; }
.area-btn .area-name { font-size: 22px; font-weight: 700; }
@media (max-width: 880px) {
  .selector-grid { grid-template-columns: 1fr 1fr; }
  .hero-top { flex-direction: column; gap: 14px; }
}
@media (max-width: 560px) {
  .selector-grid { grid-template-columns: 1fr; }
}

/* ===== TRUST BAR ===== */
.trust-bar { position: relative; z-index: 2; padding: 22px 0 40px; }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.trust-num { font-size: 28px; font-weight: 800; color: var(--heading-accent); }
.trust-label { font-size: 12.5px; color: rgba(255,254,244,0.65); margin-top: 4px; line-height: 1.4; }
@media (max-width: 880px) { .trust-grid { grid-template-columns: repeat(2, 1fr); } }

/* ===== SECTION GENERIC (espaciados reducidos) ===== */
section.block { padding: 60px 0; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 36px; gap: 24px; flex-wrap: wrap; }
.section-eyebrow { font-size: 14px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--heading-accent); font-weight: 700; margin-bottom: 8px; display: block; }
h2 { font-size: clamp(28px, 3.6vw, 42px); font-weight: 800; letter-spacing: -0.015em; line-height: 1.12; }

/* ===== PAGE HEADER (páginas internas) ===== */
.page-hero { background: var(--ink); color: var(--paper); padding: 52px 0 44px; }
.page-hero .hero-eyebrow { margin-bottom: 12px; display: block; color: var(--heading-accent); }
.page-hero h1 { font-size: clamp(32px, 4.6vw, 50px); font-weight: 800; letter-spacing: -0.02em; max-width: none; margin-bottom: 16px; }
.page-hero p { font-size: 16px; color: rgba(255,254,244,0.72); }
.breadcrumb { font-size: 13px; color: rgba(255,254,244,0.5); margin-bottom: 16px; }
.breadcrumb a { color: rgba(255,254,244,0.75); }
.breadcrumb a:hover { color: var(--bronze); }

/* ===== POR QUÉ ELEGIRNOS ===== */
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.why-card { background: var(--paper); padding: 28px 24px; }
.why-card .radicado { display: block; margin-bottom: 18px; font-size: 12px; letter-spacing: 0.08em; color: var(--ink-soft); font-weight: 500; opacity: 0.65; }
.why-card .radicado::before { content: '№ '; }
.why-card h3 { font-size: 18.5px; font-weight: 700; margin-bottom: 8px; line-height: 1.3; }
.why-card p { font-size: 15px; color: var(--ink-soft); line-height: 1.58; }
@media (max-width: 880px) { .why-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .why-grid { grid-template-columns: 1fr; } }

/* ===== CÓMO FUNCIONA ===== */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.step { position: relative; padding-top: 4px; }
.step-num { font-size: 15px; font-weight: 800; color: var(--bronze); margin-bottom: 14px; letter-spacing: 0.05em; }
.step h3 { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.step p { font-size: 15.5px; color: var(--ink-soft); line-height: 1.6; }
@media (max-width: 880px) { .steps { grid-template-columns: 1fr; gap: 32px; } }

/* ===== RESEÑAS ===== */
.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.review-card { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 26px; display: flex; flex-direction: column; gap: 14px; }
.review-stars { display: flex; gap: 3px; color: var(--bronze); }
.review-stars svg { width: 16px; height: 16px; fill: currentColor; }
.review-text { font-size: 14px; color: var(--ink); line-height: 1.6; flex-grow: 1; }
.review-person { display: flex; align-items: center; gap: 12px; }
.review-avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--ink); color: var(--paper); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; flex-shrink: 0; }
.review-name { font-size: 13.5px; font-weight: 700; }
.review-case { font-size: 12px; color: var(--ink-soft); }
@media (max-width: 880px) { .reviews-grid { grid-template-columns: 1fr; } }

/* ===== FINANCIACIÓN ===== */
.finance { background: var(--ink); color: var(--paper); border-radius: 20px; padding: 48px; display: grid; grid-template-columns: 2fr 3fr; column-gap: calc(100% / 6); align-items: center; }
.finance.finance-cta { display: block; padding: 36px 48px; text-align: center; }
.finance.finance-cta h2 { color: var(--paper); margin-bottom: 10px; }
.finance.finance-cta p { color: rgba(255,254,244,0.7); font-size: 15.5px; line-height: 1.6; margin-bottom: 20px; text-align: center; }
.finance.finance-cta .btn-action { margin: 0 auto; }
.finance-text h2 { color: var(--paper); margin-bottom: 12px; }
.finance-text p { color: rgba(255,254,244,0.7); font-size: 15.5px; line-height: 1.6; margin-bottom: 20px; }
.finance-pills { display: flex; gap: 16px; }
.pill { background: rgba(255,254,244,0.08); border: 1px solid var(--line-dark); border-radius: 14px; padding: 32px 20px; text-align: center; flex: 1; }
.pill-num { font-size: 42px; font-weight: 800; color: var(--bronze); line-height: 1; }
.pill-label { font-size: 13px; color: rgba(255,254,244,0.65); margin-top: 8px; }
.finance-side { display: flex; flex-direction: column; align-items: flex-start; gap: 0; }
@media (max-width: 880px) {
  .finance { flex-direction: column; padding: 36px 26px; text-align: center; }
  .finance-text p, .finance-text h2 { max-width: 100%; }
  .finance-pills { flex-wrap: wrap; justify-content: center; }
  .finance-side { align-items: center; }
}

/* ===== FORMULARIO CONTACTO ===== */
.contact { background: var(--paper-dim); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.contact-info h2 { margin-bottom: 14px; }
.contact-info p { color: var(--ink-soft); font-size: 15.5px; line-height: 1.65; margin-bottom: 24px; max-width: 420px; }
.contact-detail { display: flex; gap: 14px; margin-bottom: 16px; align-items: flex-start; }
.contact-detail .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--bronze); margin-top: 7px; flex-shrink: 0; }
.contact-detail strong { display: block; font-size: 14px; }
.contact-detail span { font-size: 14px; color: var(--ink-soft); }

.form-card { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 32px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field label { font-size: 13px; font-weight: 700; color: var(--ink); }
.field input, .field select, .field textarea {
  font-family: 'DM Sans', sans-serif; border: 1px solid var(--line); border-radius: 8px;
  padding: 12px 14px; font-size: 15px; background: var(--paper); color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--bronze); outline-offset: 1px; border-color: var(--bronze); }
.field textarea { resize: vertical; min-height: 90px; }
.submit-btn {
  width: 100%; background: var(--btn-form); color: var(--paper); border: none; border-radius: 8px;
  padding: 15px; font-size: 16px; font-weight: 700; font-family: 'DM Sans', sans-serif;
  cursor: pointer; transition: background 0.2s; margin-top: 6px;
}
.submit-btn:hover { background: var(--btn-form-hover); }
.form-note { font-size: 12.5px; color: var(--ink-soft); margin-top: 14px; text-align: center; }
@media (max-width: 880px) {
  .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
}

/* ===== FOOTER ===== */
footer { background: var(--ink); color: rgba(255,254,244,0.7); padding: 48px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; padding-bottom: 28px; border-bottom: 1px solid var(--line-dark); }
.footer-logo { font-size: 20px; font-weight: 800; color: var(--paper); margin-bottom: 10px; }
.footer-logo .amp { color: var(--heading-accent); }
.footer-logo .co { color: var(--paper); }
.footer-logo-img { height: 36px; width: auto; margin-bottom: 14px; }
.footer-grid > div > p { font-size: 14px; line-height: 1.6; max-width: 260px; margin-bottom: 16px; }
.footer-col h4 { font-size: 13px; color: var(--paper); margin-bottom: 12px; letter-spacing: 0.04em; }
.footer-col a { display: block; font-size: 14px; margin-bottom: 9px; color: rgba(255,254,244,0.65); }
.footer-col a:hover { color: var(--paper); }
.footer-bottom { display: flex; justify-content: space-between; padding-top: 18px; font-size: 13px; color: rgba(255,254,244,0.45); flex-wrap: wrap; gap: 10px; }
@media (max-width: 880px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* ===== CONTENT BLOCKS (Servicios, Nosotros, Blog) ===== */
.content-block { padding: 56px 0; }
.content-block.alt { background: var(--paper-dim); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.two-col img { border-radius: 16px; width: 100%; height: 360px; object-fit: cover; }
.two-col.reverse { direction: rtl; }
.two-col.reverse > * { direction: ltr; }
@media (max-width: 880px) {
  .two-col { grid-template-columns: 1fr; }
  .two-col img { height: 260px; }
}

.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.blog-card { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; transition: border-color 0.2s; }
.blog-card:hover { border-color: var(--bronze); }
.blog-card img { width: 100%; height: 180px; object-fit: cover; }
.blog-card-body { padding: 22px; }
.blog-tag { font-size: 12px; font-weight: 700; color: var(--heading-accent); text-transform: uppercase; letter-spacing: 0.06em; }
.blog-card h3 { font-size: 17px; font-weight: 700; margin: 9px 0; line-height: 1.35; }
.blog-card p { font-size: 14px; color: var(--ink-soft); line-height: 1.55; margin-bottom: 12px; }
.blog-date { font-size: 12.5px; color: var(--ink-soft); opacity: 0.8; }
@media (max-width: 880px) { .blog-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .blog-grid { grid-template-columns: 1fr; } }

.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin: 0 auto; }
.team-card { text-align: center; padding: 26px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); }
.team-card img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 10px; margin-bottom: 14px; }
.team-card h4 { font-size: 15.5px; font-weight: 700; }
.team-card span { font-size: 13px; color: var(--bronze); font-weight: 600; }
@media (max-width: 880px) { .team-grid { grid-template-columns: 1fr 1fr; } }

.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.value-card { padding: 26px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); }
.value-card h3 { font-size: 17px; font-weight: 700; margin: 12px 0 8px; }
.value-card p { font-size: 14px; color: var(--ink-soft); line-height: 1.6; }
@media (max-width: 880px) { .values-grid { grid-template-columns: 1fr; } }

/* ===== VIDEO TESTIMONIOS ===== */
.video-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.video-card { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.video-frame-wrap { position: relative; width: 100%; aspect-ratio: 16/9; background: var(--ink); }
.video-frame-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-card-body { padding: 20px 22px; }
.video-person { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.video-avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--ink); color: var(--paper); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; flex-shrink: 0; }
.video-name { font-size: 14.5px; font-weight: 700; }
.video-case { font-size: 12.5px; color: var(--ink-soft); }
.video-quote { font-size: 14px; color: var(--ink-soft); line-height: 1.55; }
.see-more-wrap { text-align: center; margin-top: 28px; }
.btn-outline {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1.5px solid var(--ink); color: var(--ink) !important;
  padding: 13px 26px; border-radius: 8px; font-weight: 700; font-size: 14.5px;
  background: transparent; transition: all 0.2s;
}
.btn-outline:hover { background: var(--ink); color: var(--paper) !important; }
@media (max-width: 700px) { .video-grid { grid-template-columns: 1fr; } }

/* ===== MAPA ===== */
.map-wrap { border-radius: 16px; overflow: hidden; border: 1px solid var(--line); height: 360px; }
.map-wrap iframe { width: 100%; height: 100%; border: 0; }
.locations-row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 0; }
.location-col { display: flex; flex-direction: column; gap: 14px; }
.location-card { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; display: flex; gap: 12px; align-items: flex-start; }
.location-card svg { width: 20px; height: 20px; color: var(--bronze); flex-shrink: 0; margin-top: 2px; }
.location-card strong { display: block; font-size: 14.5px; margin-bottom: 3px; }
.location-card span { font-size: 13.5px; color: var(--ink-soft); }
@media (max-width: 700px) { .locations-row { grid-template-columns: 1fr; } }

/* ===== BLOG: FILTRO POR TEMA ===== */
.blog-filter { display: flex; gap: 10px; margin-bottom: 36px; flex-wrap: wrap; }
.filter-btn {
  font-family: 'DM Sans', sans-serif; font-size: 14px; font-weight: 700;
  padding: 11px 20px; border-radius: 24px; border: 1.5px solid var(--line);
  background: var(--paper); color: var(--ink-soft); cursor: pointer; transition: all 0.2s;
}
.filter-btn:hover { border-color: var(--bronze); color: var(--ink); }
.filter-btn.active { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.blog-group { margin-bottom: 8px; }
.blog-group[hidden] { display: none; }

/* ===== ARTÍCULO INDIVIDUAL ===== */
.article-hero { background: var(--ink); color: var(--paper); padding: 48px 0 40px; }
.article-hero .blog-tag { color: var(--heading-accent); }
.article-hero h1 { font-size: clamp(30px, 4.2vw, 44px); font-weight: 800; line-height: 1.18; letter-spacing: -0.015em; margin: 14px 0 16px; }
.article-meta { font-size: 13.5px; color: rgba(255,254,244,0.6); }
.article-body { max-width: 720px; margin: 0 auto; padding: 56px 32px; }
.article-body img.cover { width: 100%; height: 320px; object-fit: cover; border-radius: 14px; margin-bottom: 36px; }
.article-body h2 { font-size: 24px; margin: 36px 0 14px; }
.article-body h3 { font-size: 19px; font-weight: 700; margin: 28px 0 10px; }
.article-body p { font-size: 16px; color: var(--ink); line-height: 1.75; margin-bottom: 18px; }
.article-body ul { margin: 0 0 18px 0; padding-left: 22px; }
.article-body li { font-size: 16px; color: var(--ink); line-height: 1.7; margin-bottom: 8px; }
.article-cta {
  background: var(--paper-dim); border: 1px solid var(--line); border-radius: 14px; padding: 28px 30px; margin-top: 40px;
  display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center;
}
.article-cta p { margin: 0; font-size: 18px; font-weight: 700; color: var(--ink); }
.article-cta .service-cta { align-self: center; margin-top: 0; }

/* ===== SERVICIOS: SUBTEMAS EXPANDIDOS ===== */
.service-subtopics { margin-top: 36px; display: grid; gap: 14px; width: 100%; }
.subtopic { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 24px 28px; }
.subtopic h4 { font-size: 16px; font-weight: 700; margin-bottom: 8px; display: flex; align-items: center; gap: 10px; }
.subtopic h4 .subtopic-num { color: var(--bronze); font-size: 13px; }
.subtopic p { font-size: 15px; color: var(--ink-soft); line-height: 1.7; margin: 0; text-align: justify; }

.service-block { padding: 64px 0; border-bottom: 1px solid var(--line); }
.service-block:last-of-type { border-bottom: none; }
.service-top-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 48px; align-items: stretch; }
.service-top-grid.reverse { direction: rtl; }
.service-top-grid.reverse > * { direction: ltr; }
.service-top-grid img { width: 100%; height: 100%; min-height: 480px; object-fit: cover; border-radius: 16px; }
.service-text { display: flex; flex-direction: column; }
.service-text .area-tag { font-size: 13px; font-weight: 700; color: var(--bronze); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 12px; display: block; }
.service-text h2 { margin-bottom: 14px; }
.service-text p.lead { font-size: 16px; color: var(--ink-soft); line-height: 1.65; margin-bottom: 22px; text-align: justify; }
.service-list { list-style: none; display: grid; gap: 9px; margin-bottom: 24px; }
.service-list li { font-size: 14.5px; color: var(--ink); padding: 11px 16px; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; display: flex; align-items: center; gap: 10px; }
.service-list li svg { width: 16px; height: 16px; color: var(--bronze); flex-shrink: 0; }
.service-cta { display: inline-flex; align-items: center; gap: 8px; background: var(--btn-form); color: var(--paper); padding: 13px 24px; border-radius: 8px; font-weight: 700; font-size: 14.5px; margin-top: auto; align-self: flex-start; }
.service-cta:hover { background: var(--btn-form-hover); }
.btn-action { display: inline-flex; align-items: center; background: var(--btn-form); color: var(--paper); padding: 14px 26px; border-radius: 8px; font-weight: 700; font-size: 15px; transition: background 0.2s; }
.btn-action:hover, .btn-action:active { background: var(--btn-form-hover); }
@media (max-width: 880px) {
  .service-top-grid, .service-top-grid.reverse { grid-template-columns: 1fr; direction: ltr; }
  .service-top-grid img { height: 240px; min-height: 0; }
  .service-block { padding: 44px 0; }
}

/* ===== PÁGINAS LEGALES ===== */
.legal-body { max-width: 760px; margin: 0 auto; padding: 56px 32px 72px; }
.legal-body .updated { font-size: 13.5px; color: var(--ink-soft); margin-bottom: 36px; }
.legal-body h2 { font-size: 23px; margin: 38px 0 14px; }
.legal-body h2:first-of-type { margin-top: 0; }
.legal-body h3 { font-size: 17.5px; font-weight: 700; margin: 24px 0 10px; }
.legal-body p { font-size: 15.5px; color: var(--ink); line-height: 1.75; margin-bottom: 16px; }
.legal-body ul, .legal-body ol { margin: 0 0 16px 0; padding-left: 22px; }
.legal-body li { font-size: 15.5px; color: var(--ink); line-height: 1.7; margin-bottom: 8px; }
.legal-body strong { font-weight: 700; }
.legal-toc {
  background: var(--paper-dim); border-radius: 12px; padding: 22px 26px; margin-bottom: 36px;
}
.legal-toc p { font-size: 13px; font-weight: 700; color: var(--ink-soft); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 10px; }
.legal-toc ol { margin: 0; padding-left: 18px; columns: 2; column-gap: 24px; }
.legal-toc li { font-size: 14px; margin-bottom: 6px; }
.legal-toc a { color: var(--ink); }
.legal-toc a:hover { color: var(--bronze); }
.legal-contact-box {
  background: var(--ink); color: var(--paper); border-radius: 14px; padding: 28px 30px; margin-top: 40px;
}
.legal-contact-box h3 { color: var(--paper); margin-top: 0; }
.legal-contact-box p { color: rgba(255,254,244,0.78); }
.legal-contact-box a { color: var(--bronze-light); font-weight: 700; }
@media (max-width: 600px) {
  .legal-toc ol { columns: 1; }
}
