/* ===================================================
   ITM CONSULTORÍA — ESTILOS COMPARTIDOS
   Ingeniería · Tecnología · Medio Ambiente
   =================================================== */

/* No se cuenta con los archivos con licencia de "Goodtime Grotesk", así que
   los títulos usan 'Space Grotesk' (Google Fonts, gratuita) como tipografía
   definitiva. Si en el futuro se adquiere la licencia, basta con volver a
   agregar un @font-face 'Goodtime Grotesk' aquí y anteponerlo en la lista
   de font-family de h1/h2/h3/h4 más abajo. */

:root {
  --ink: #1A515E;          /* teal oscuro — color principal */
  --ink-soft: #4C6A70;     /* teal grisáceo (texto secundario) */
  --steel: #A9C7C2;        /* verde azulado medio */
  --sky: #DCEDE9;          /* verde muy claro */
  --leaf: #6CA236;         /* verde lima (acento principal) */
  --leaf-deep: #588A2C;
  --leaf-light: #9ED97A;   /* verde claro — acentos sobre fondo oscuro */
  --teal-accent: #4FB1A7;  /* verde azulado (acento secundario) */
  --sage: #709B4C;         /* verde salvia (acentos, íconos) */
  --paper: #FAFAF8;        /* casi blanco */
  --paper-dim: #D7D6CF;    /* gris cálido — fondos alternos */
  --line: #C7C9C2;         /* bordes */
  --line-dark: rgba(250,250,248,0.16);
  --whatsapp: #25D366;
  --heading-accent: #6CA236;
  --btn-primary: #1A515E;
  --btn-primary-hover: #6CA236;
  --btn-form: #6CA236;
  --btn-form-hover: #588A2C;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Libre Franklin', 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(--leaf); outline-offset: 2px; }
h1, h2, h3, h4, .logo, .footer-logo, .area-btn .area-name {
  font-family: 'Space Grotesk', sans-serif;
}

/* ===== HEADER ===== */
header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250,250,248,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(--leaf); }
.logo-img-link { display: flex; align-items: center; }
.logo-img { height: 68px; width: auto; display: block; }
@media (max-width: 560px) { .logo-img { height: 52px; } }
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(26,81,94,0.06); }
.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: 260px;
  box-shadow: 0 16px 40px rgba(26,81,94,0.16);
  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(--leaf-deep); }
.dropdown a .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--leaf); 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) {
  header { backdrop-filter: none; background: var(--paper); }
  nav.main-nav {
    display: none; position: fixed; top: var(--header-h, 68px); left: 0; right: 0; bottom: 0;
    background: var(--paper); flex-direction: column; align-items: stretch;
    padding: 12px 20px 40px; overflow-y: auto; gap: 2px; border-top: 1px solid var(--line);
    z-index: 99;
  }
  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; }
}

@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(26,81,94,0.07); color: var(--ink-soft); transition: all 0.2s;
}
.social-icon:hover { background: var(--leaf); color: #fff; }
.social-icon svg { width: 17px; height: 17px; }
footer .social-icon { background: rgba(250,250,248,0.08); color: rgba(250,250,248,0.75); }
footer .social-icon:hover { background: var(--leaf); color: #fff; }

/* ===== HERO ===== */
.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(26,81,94,0.90) 0%, rgba(20,60,68,0.95) 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(--leaf-light); font-weight: 700; }
.hero h1 { font-size: clamp(38px, 5.6vw, 64px); font-weight: 800; line-height: 1.1; letter-spacing: -0.02em; max-width: none; margin-bottom: 18px; }
.hero h1 .accent { color: var(--leaf-light); }
.hero-sub { font-size: clamp(17px, 1.7vw, 20px); color: rgba(250,250,248,0.78); font-weight: 400; margin-bottom: 36px; max-width: calc(100% - 56px); font-family: 'Libre Franklin', sans-serif; }

.selector { background: rgba(250,250,248,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(250,250,248,0.9); margin-bottom: 16px; font-family: 'Libre Franklin', sans-serif; }
.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(250,250,248,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(--leaf); border-color: var(--leaf); transform: translateY(-2px); }
.area-num { display: none; }
.area-icon { width: 52px; height: 52px; color: var(--leaf-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: 20px; 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(--leaf-light); font-family: 'Space Grotesk', sans-serif; }
.trust-label { font-size: 12.5px; color: rgba(250,250,248,0.68); margin-top: 4px; line-height: 1.4; }
@media (max-width: 880px) { .trust-grid { grid-template-columns: repeat(2, 1fr); } }

/* ===== SECTION GENERIC ===== */
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; font-family: 'Libre Franklin', sans-serif; }
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(--leaf-light); }
.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(250,250,248,0.75); font-family: 'Libre Franklin', sans-serif; }
.breadcrumb { font-size: 13px; color: rgba(250,250,248,0.5); margin-bottom: 16px; }
.breadcrumb a { color: rgba(250,250,248,0.78); }
.breadcrumb a:hover { color: var(--leaf-light); }

/* ===== 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(--leaf); 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; } }

/* ===== BANDA DESTACADA (CTA intermedio) ===== */
.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(250,250,248,0.72); 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(250,250,248,0.72); font-size: 15.5px; line-height: 1.6; margin-bottom: 20px; }
.finance-pills { display: flex; gap: 16px; }
.pill { background: rgba(250,250,248,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(--leaf-light); line-height: 1; font-family: 'Space Grotesk', sans-serif; }
.pill-label { font-size: 13px; color: rgba(250,250,248,0.68); margin-top: 8px; }
@media (max-width: 880px) {
  .finance { display: flex; flex-direction: column; padding: 36px 26px; text-align: center; gap: 0; }
  .finance-text { display: contents; }
  .finance-text h2 { order: 1; margin-bottom: 12px; }
  .finance-text p { order: 2; margin-bottom: 20px; }
  .finance-pills { order: 3; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 20px; width: 100%; }
  .finance-text .btn-action { order: 4; width: 100%; justify-content: center; }
}

/* ===== FORMULARIO CONTACTO ===== */
.contact { background: var(--paper); }
.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(--leaf); 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 {
  width: 100%; font-family: 'Libre Franklin', sans-serif; border: 1px solid var(--line); border-radius: 8px;
  padding: 12px 14px; font-size: 15px; background: var(--paper); color: var(--ink); min-width: 0;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--leaf); outline-offset: 1px; border-color: var(--leaf); }
.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: 'Libre Franklin', 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; } }
@media (max-width: 560px) { .wrap { padding: 0 16px; } .form-card { padding: 20px 16px; } .header-inner { padding: 12px 16px; } }

/* ===== FOOTER ===== */
footer { background: var(--ink); color: rgba(250,250,248,0.72); 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(--leaf-light); }
.footer-logo-img { height: 40px; width: auto; margin-bottom: 14px; }
.footer-grid > div > p { font-size: 14px; line-height: 1.6; max-width: 260px; margin-bottom: 16px; font-family: 'Libre Franklin', sans-serif; }
.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(250,250,248,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(250,250,248,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) ===== */
.content-block { padding: 56px 0; }

/* Secciones alternas: degradé azul/teal en vez de fondo beige plano */
.content-block.alt,
.block-gradient {
  background: linear-gradient(135deg, #1A515E 0%, #123943 55%, #0F2E36 100%);
}
.content-block.alt .section-eyebrow,
.block-gradient .section-eyebrow,
.block-gradient .area-tag { color: var(--leaf-light); }
.content-block.alt h2,
.block-gradient h2 { color: var(--paper); }
.block-gradient > .wrap > p,
.block-gradient .service-text > p.lead { color: rgba(250,250,248,0.78); }
.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; object-position: top; }
.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; } }

.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; object-position: top; border-radius: 10px; margin-bottom: 14px; }
.team-card h4 { font-size: 15.5px; font-weight: 700; }
.team-card span { font-size: 13px; color: var(--leaf-deep); font-weight: 600; }
@media (max-width: 880px) { .team-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .team-grid { grid-template-columns: 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; } }
.value-card svg { width: 30px; height: 30px; color: var(--leaf); }

/* ===== 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(--leaf); 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; } }

.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; }
.see-more-wrap { text-align: center; margin-top: 28px; }

/* ===== BLOG: FILTRO POR TEMA ===== */
.blog-filter { display: flex; gap: 10px; margin-bottom: 36px; flex-wrap: wrap; }
.filter-btn {
  font-family: 'Libre Franklin', 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(--leaf); 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; }

.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; display: block; }
.blog-card:hover { border-color: var(--leaf); }
.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; } }

/* ===== ARTÍCULO INDIVIDUAL ===== */
.article-hero { background: var(--ink); color: var(--paper); padding: 48px 0 40px; }
.article-hero .blog-tag { color: var(--leaf-light); }
.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(250,250,248,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-body a { color: var(--leaf-deep); text-decoration: underline; }
.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: 400; 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(--leaf-deep); 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(--leaf-deep); 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(--leaf); 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(--leaf-deep); }
.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(250,250,248,0.8); }
.legal-contact-box a { color: var(--leaf-light); font-weight: 700; }
@media (max-width: 600px) { .legal-toc ol { columns: 1; } }
