/* ============================================================
   MAGALLÓN ABOGADOS — Hoja de estilos principal
   Paleta oficial: #122A38 · #2B328C · #4CAF50 · #A0A09F · #CCCCCC · #FFFFFF
   Tipografía: Playfair Display (headings) + Inter (body)
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --dark:       #122A38;
  --brand:      #2B328C;
  --cta:        #4CAF50;
  --cta-hover:  #3d9140;
  --gray-mid:   #A0A09F;
  --gray-light: #CCCCCC;
  --white:      #FFFFFF;
  --bg-subtle:  rgba(204,204,204,0.12);

  /* Texto con contraste AA (mejora UX 2026-06) */
  --text:             #33424b;  /* cuerpo — ~6.5:1 sobre blanco */
  --text-muted:       #586772;  /* secundario — ~4.5:1 */
  --cta-ink:          #2e7d32;  /* verde para texto/links sobre claro */
  --cta-strong:       #2a7330;  /* verde de botón con texto blanco — AA */
  --cta-strong-hover: #225c26;

  --font-h: 'Playfair Display', Georgia, serif;
  --font-b: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --radius: 3px;
  --shadow: 0 2px 20px rgba(18,42,56,0.08);
  --shadow-lg: 0 8px 40px rgba(18,42,56,0.15);

  --max-w: 1200px;
  --px: clamp(20px, 5vw, 80px);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-b);
  color: var(--dark);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a  { color: inherit; text-decoration: none; }

:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 2px; }

/* ── Contenedor ── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding-inline: var(--px);
}

/* ── Secciones ── */
.section        { padding-block: 96px; }
.section-sm     { padding-block: 64px; }
.section-dark   { background: var(--dark); color: var(--white); }
.section-subtle { background: var(--bg-subtle); }
.section-brand  { background: var(--dark); color: var(--white); }

/* ── Tipografía ── */
.label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--cta-ink);
  margin-bottom: 12px;
}
.section-dark .label,
.section-brand .label { color: var(--gray-light); }

h1,.h1 { font-family: var(--font-h); font-size: clamp(36px,5vw,64px); font-weight: 700; line-height: 1.1; letter-spacing: -.02em; }
h2,.h2 { font-family: var(--font-h); font-size: clamp(28px,3.5vw,42px); font-weight: 700; line-height: 1.2; }
h3,.h3 { font-family: var(--font-b); font-size: clamp(18px,2vw,22px); font-weight: 600; line-height: 1.3; }
h4,.h4 { font-family: var(--font-b); font-size: 16px; font-weight: 600; }

.lead { font-size: clamp(18px,1.7vw,21px); line-height: 1.7; color: var(--text-muted); }
.section-dark .lead  { color: rgba(255,255,255,.7); }
.section-brand .lead { color: rgba(255,255,255,.85); }

p { font-size: 19px; line-height: 1.75; color: var(--text); }
.section-dark p  { color: rgba(255,255,255,.75); }
.section-brand p { color: rgba(255,255,255,.85); }

/* ── Botones ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-b);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 14px 28px;
  border-radius: var(--radius);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all .2s ease;
  white-space: nowrap;
}
.btn-cta       { background: var(--cta-strong);   color: var(--white); border-color: var(--cta-strong); }
.btn-cta:hover { background: var(--cta-strong-hover); border-color: var(--cta-strong-hover); }
.btn-dark       { background: var(--dark);  color: var(--white); border-color: var(--dark); }
.btn-dark:hover { background: #0d1f2a; }
.btn-outline       { background: transparent; color: var(--dark); border-color: var(--dark); }
.btn-outline:hover { background: var(--dark); color: var(--white); }
.btn-ghost       { background: transparent; color: var(--white); border-color: rgba(255,255,255,.5); }
.btn-ghost:hover { background: rgba(255,255,255,.1); border-color: var(--white); }

/* ── Grids ── */
.grid-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: 32px; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; }
@media (max-width:1024px) { .grid-4 { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 768px) {
  .grid-2,.grid-3,.grid-4 { grid-template-columns: 1fr; }
}

/* ── Flex utils ── */
.flex         { display: flex; }
.flex-center  { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-sm { gap: 12px; }
.gap-md { gap: 24px; }
.gap-lg { gap: 40px; }
.flex-wrap { flex-wrap: wrap; }

/* ── Section header ── */
.section-header { max-width: 680px; margin-bottom: 56px; }
.section-header.centered { margin-inline: auto; text-align: center; }
.section-header h2 { margin-top: 8px; }
.section-header .lead { margin-top: 16px; }

/* ── Divisor decorativo ── */
.divider { width: 48px; height: 3px; background: var(--cta); margin-block: 20px; }
.centered .divider { margin-inline: auto; }

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: var(--dark);
  height: 72px;
  transition: height .3s, box-shadow .3s;
}
.navbar.scrolled { height: 60px; box-shadow: 0 2px 20px rgba(0,0,0,.3); }
.navbar .container { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 32px; }

.nav-logo {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--font-h);
  font-size: 20px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: .02em;
  flex-shrink: 0;
}
.nav-logo-icon {
  width: 36px; height: 36px;
  background: var(--brand);
  border-radius: 2px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; color: white; font-weight: 700;
}

.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; }
.nav-links a {
  font-size: 13px; font-weight: 500;
  color: rgba(255,255,255,.75);
  padding: 8px 14px; border-radius: var(--radius);
  transition: color .2s, background .2s;
  letter-spacing: .02em;
}
.nav-links a:hover { color: var(--white); background: rgba(255,255,255,.08); }

.nav-right { display: flex; align-items: center; gap: 16px; flex-shrink: 0; }
.nav-lang {
  font-size: 11px; font-weight: 600;
  letter-spacing: .08em; color: rgba(255,255,255,.45);
  padding: 4px 10px; border: 1px solid rgba(255,255,255,.15);
  border-radius: 100px; cursor: pointer;
  transition: all .2s;
}
.nav-lang:hover { color: rgba(255,255,255,.8); border-color: rgba(255,255,255,.4); }

/* Hamburger (mobile) */
.nav-toggle { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 8px; border: none; background: transparent; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: white; border-radius: 2px; transition: all .3s; }
@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .nav-links, .nav-right .btn { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--dark);
    padding: 12px 0 20px;
    gap: 0;
    z-index: 999;
    border-top: 1px solid rgba(255,255,255,.08);
  }
  .nav-links.open li { width: 100%; }
  .nav-links.open a {
    display: block;
    padding: 12px 24px;
    font-size: 15px;
    border-radius: 0;
  }
}

/* ── Offset para contenido bajo navbar ── */
.nav-offset { height: 72px; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: 90vh;
  background: var(--dark);
  display: flex; align-items: center;
  position: relative; overflow: hidden;
}
/* el .container es flex-item del hero; sin width:100% se encoge a su contenido
   y queda centrado. Forzarlo a 100% lo alinea al margen izq. como el resto. */
.hero .container { width: 100%; position: relative; z-index: 1; }
.hero-bg {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(100deg, rgba(18,42,56,.95) 0%, rgba(18,42,56,.88) 38%, rgba(18,42,56,.62) 72%, rgba(18,42,56,.40) 100%),
    url('/assets/img/hero-magallon.webp');
  background-size: cover, cover;
  background-position: center, center right;
  background-repeat: no-repeat, no-repeat;
}
/* Elemento decorativo */
.hero-deco {
  position: absolute; top: -200px; right: -200px;
  width: 700px; height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(43,50,140,.25) 0%, transparent 65%);
  pointer-events: none;
}
.hero-content {
  position: relative; z-index: 1;
  max-width: 720px;
  padding-block: 120px 96px;
}
.hero-divider { width: 56px; height: 3px; background: var(--cta); margin-bottom: 20px; }
.hero .label { color: rgba(255,255,255,.72); }
.hero h1 { color: var(--white); margin-block: 16px 24px; }
.hero .lead { max-width: 560px; margin-bottom: 40px; }
.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; }

/* ============================================================
   CARDS
   ============================================================ */

/* Área de práctica */
.card-area {
  background: var(--white);
  border: 1px solid rgba(204,204,204,.6);
  border-radius: var(--radius);
  padding: 32px 28px;
  position: relative; overflow: hidden;
  transition: box-shadow .3s, transform .3s;
  cursor: pointer;
}
.card-area::before {
  content: '';
  position: absolute; top: 0; left: 0;
  width: 3px; height: 100%;
  background: var(--cta);
  transform: scaleY(0); transform-origin: top;
  transition: transform .3s ease;
}
.card-area:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.card-area:hover::before { transform: scaleY(1); }
.card-area-icon {
  width: 44px; height: 44px;
  background: var(--bg-subtle);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
  color: var(--brand);
}
.card-area-icon svg { width: 22px; height: 22px; }
.card-area .label { color: var(--brand); margin-bottom: 6px; }
.card-area h3 { font-family: var(--font-h); font-size: 18px; color: var(--dark); margin-bottom: 10px; line-height: 1.3; }
.card-area p { font-size: 14px; line-height: 1.6; }
.card-area-link { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--cta-ink); margin-top: 20px; letter-spacing: .04em; text-transform: uppercase; transition: gap .2s; }
.card-area:hover .card-area-link { gap: 10px; }

/* Diferenciador */
.card-diff {
  padding: 32px 28px;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}
.card-diff-num { font-family: var(--font-h); font-size: 48px; font-weight: 700; color: rgba(43,50,140,.12); line-height: 1; margin-bottom: 16px; }
.card-diff h3 { font-size: 17px; color: var(--dark); margin-bottom: 10px; }
.card-diff p { font-size: 14px; }

/* Testimonio */
.card-testimonial {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px 28px;
  box-shadow: var(--shadow);
  display: flex; flex-direction: column;
}
.card-testimonial-quote { font-size: 48px; color: var(--cta); line-height: 1; font-family: Georgia; margin-bottom: 16px; }
.card-testimonial p { font-size: 15px; line-height: 1.75; font-style: italic; flex: 1; }
.card-testimonial-author { display: flex; align-items: center; gap: 14px; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--gray-light); }
.card-testimonial-avatar { width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(135deg,var(--dark),var(--brand)); flex-shrink: 0; display: flex; align-items: center; justify-content: center; color: white; font-size: 16px; font-weight: 700; }
.card-testimonial-name { font-size: 14px; font-weight: 600; color: var(--dark); }
.card-testimonial-company { font-size: 12px; color: var(--text-muted); margin-top: 2px; }

/* Equipo */
.card-team {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: box-shadow .3s, transform .3s;
}
.card-team:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.card-team-photo {
  height: 220px;
  background: linear-gradient(135deg, var(--dark) 0%, var(--brand) 100%);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.3);
  font-size: 48px;
}
.card-team-body { padding: 24px; }
.card-team-name { font-family: var(--font-h); font-size: 20px; color: var(--dark); margin-bottom: 4px; }
.card-team-role { font-size: 13px; color: var(--cta-ink); font-weight: 600; margin-bottom: 14px; letter-spacing: .04em; text-transform: uppercase; }
.card-team-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.card-team-tag { font-size: 11px; color: var(--text); background: var(--bg-subtle); padding: 4px 10px; border-radius: 100px; }

/* Blog */
.card-blog { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: box-shadow .3s; }
.card-blog:hover { box-shadow: var(--shadow-lg); }
.card-blog-img { aspect-ratio: 8 / 3; background: linear-gradient(135deg,var(--dark) 0%,var(--brand) 100%); display: block; }
.card-blog-body { padding: 24px; }
.card-blog-meta { display: flex; gap: 12px; margin-bottom: 12px; }
.card-blog-meta span { font-size: 11px; color: var(--text-muted); }
.card-blog h3 { font-family: var(--font-h); font-size: 17px; color: var(--dark); line-height: 1.4; margin-bottom: 10px; }
.card-blog p { font-size: 14px; line-height: 1.6; }
.card-blog-link { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--brand); margin-top: 16px; text-transform: uppercase; letter-spacing: .04em; }

/* ============================================================
   ESTADÍSTICAS
   ============================================================ */
.stats-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 32px; }
@media (max-width:768px) { .stats-grid { grid-template-columns: repeat(2,1fr); } }
.stat { text-align: center; padding: 32px 16px; }
.stat-num { font-family: var(--font-h); font-size: clamp(40px,5vw,60px); font-weight: 700; color: var(--cta); line-height: 1; }
.stat-label { font-size: 14px; color: rgba(255,255,255,.6); margin-top: 10px; line-height: 1.4; }

/* ============================================================
   CTA SECTION
   ============================================================ */
.cta-section {
  background: var(--dark);
  padding-block: 80px;
}
.cta-section-inner { display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.cta-section h2 { color: var(--white); max-width: 560px; }
.cta-section .lead { margin-top: 12px; color: rgba(255,255,255,.82); }
.cta-section-btns { display: flex; gap: 16px; flex-shrink: 0; flex-wrap: wrap; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--dark); color: rgba(255,255,255,.6); padding-top: 72px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 48px; padding-bottom: 56px; }
@media (max-width:900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width:580px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-brand-name { font-family: var(--font-h); font-size: 22px; font-weight: 700; color: var(--white); margin-bottom: 16px; }
.footer-desc { font-size: 14px; line-height: 1.7; max-width: 280px; }
.footer-social { display: flex; gap: 12px; margin-top: 24px; }
.footer-social a { width: 36px; height: 36px; border: 1px solid rgba(255,255,255,.15); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.5); font-size: 14px; transition: all .2s; }
.footer-social a:hover { border-color: rgba(255,255,255,.4); color: white; }

.footer-col-title { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.35); margin-bottom: 20px; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: 14px; color: rgba(255,255,255,.6); transition: color .2s; }
.footer-links a:hover { color: var(--white); }

.footer-contact { display: flex; flex-direction: column; gap: 12px; }
.footer-contact-item { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; }
.footer-contact-item strong { color: rgba(255,255,255,.35); font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; display: block; margin-bottom: 2px; }

.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding-block: 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer-bottom-copy { font-size: 12px; }
.footer-bottom-links { display: flex; gap: 20px; }
.footer-bottom-links a { font-size: 12px; color: rgba(255,255,255,.4); transition: color .2s; }
.footer-bottom-links a:hover { color: rgba(255,255,255,.7); }

/* ============================================================
   WHATSAPP FLOTANTE
   ============================================================ */
.wa-btn {
  position: fixed; bottom: 28px; right: 28px; z-index: 999;
  width: 56px; height: 56px;
  background: #25D366; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 24px rgba(37,211,102,.45);
  transition: transform .2s, box-shadow .2s;
  color: white;
}
.wa-btn:hover { transform: scale(1.1); box-shadow: 0 6px 32px rgba(37,211,102,.55); }
.wa-btn svg { width: 28px; height: 28px; fill: white; }

/* ============================================================
   HERO INTERNO (páginas internas)
   ============================================================ */
.page-hero {
  background: var(--dark);
  padding-block: 100px 72px;
  margin-top: 72px;
  position: relative; overflow: hidden;
}
.page-hero::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 3px; background: linear-gradient(90deg, var(--cta) 0%, var(--brand) 100%);
}
.page-hero .label { color: rgba(255,255,255,.72); }
.page-hero h1 { color: var(--white); margin-top: 12px; margin-bottom: 20px; }
.page-hero .lead { max-width: 640px; }

/* ============================================================
   BREADCRUMB
   ============================================================ */
.breadcrumb { display: flex; gap: 8px; align-items: center; font-size: 12px; color: rgba(255,255,255,.35); margin-bottom: 16px; }
.breadcrumb a { transition: color .2s; }
.breadcrumb a:hover { color: rgba(255,255,255,.7); }
.breadcrumb-sep { opacity: .4; }

/* ============================================================
   FORMULARIO
   ============================================================ */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width:600px) { .form-grid { grid-template-columns: 1fr; } }
.form-group { margin-bottom: 20px; }
.form-label { display: block; font-size: 13px; font-weight: 500; color: var(--dark); margin-bottom: 6px; }
.form-input, .form-select, .form-textarea {
  width: 100%; padding: 12px 16px;
  border: 1.5px solid var(--gray-light);
  border-radius: var(--radius);
  font-family: var(--font-b); font-size: 15px;
  color: var(--dark); background: var(--white);
  transition: border-color .2s;
  outline: none;
}
.form-input:focus, .form-select:focus, .form-textarea:focus { border-color: var(--brand); }
.form-input::placeholder, .form-textarea::placeholder { color: var(--text-muted); }
.form-select { appearance: none; cursor: pointer; }
.form-textarea { min-height: 120px; resize: vertical; }

/* ============================================================
   UTILITIES
   ============================================================ */
.text-center { text-align: center; }
.text-white  { color: var(--white); }
.text-brand  { color: var(--brand); }
.text-cta    { color: var(--cta); }
.mt-4  { margin-top: 16px; }
.mt-6  { margin-top: 24px; }
.mt-8  { margin-top: 32px; }
.mt-12 { margin-top: 48px; }
.mb-4  { margin-bottom: 16px; }
.mb-6  { margin-bottom: 24px; }
.mb-8  { margin-bottom: 32px; }

/* Fade-in animación */
@keyframes fadeUp { from { opacity:0; transform:translateY(24px); } to { opacity:1; transform:translateY(0); } }
.fade-up { animation: fadeUp .5s ease forwards; }
.fade-up-2 { animation: fadeUp .5s .15s ease both; }
.fade-up-3 { animation: fadeUp .5s .3s ease both; }

/* ============================================================
   LOGO (navbar / footer)  ·  añadido 2026-06
   ============================================================ */
.nav-logo-img   { height: 34px; width: auto; display: block; }
.footer-logo-img{ height: 42px; width: auto; display: block; margin-bottom: 18px; }
@media (max-width: 900px) { .nav-logo-img { height: 30px; } }

/* ============================================================
   FRANJA DE CLIENTES
   ============================================================ */
.clientes-strip { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 40px 64px; }
.cliente-logo { display: flex; align-items: center; justify-content: center; }
.cliente-logo img {
  max-height: 116px; max-width: 320px; width: auto; object-fit: contain;
  filter: grayscale(1); opacity: .6;
  transition: filter .3s ease, opacity .3s ease;
}
.cliente-logo img:hover { filter: grayscale(0); opacity: 1; }

/* ============================================================
   BLOG — índice + artículo  ·  añadido 2026-06
   ============================================================ */
.card-blog-img { position: relative; overflow: hidden; }
.card-blog-img img { width: 100%; height: 100%; object-fit: contain; display: block; }
.card-blog-cat { position: absolute; top: 12px; left: 12px; z-index: 2; font-size: 10px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; background: var(--cta-strong); color: #fff; padding: 5px 10px; border-radius: 100px; }

.article-meta { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; font-size: 14px; color: rgba(255,255,255,.72); margin-top: 16px; }
.article-meta .dot { opacity: .5; }

.article-body { max-width: 760px; margin: 0 auto; }
.article-body > p, .article-body li { font-size: 17px; line-height: 1.8; color: var(--text); }
.article-body > p { margin-bottom: 20px; }
.article-body h2 { font-family: var(--font-h); font-size: clamp(23px,2.6vw,30px); color: var(--dark); margin: 42px 0 14px; line-height: 1.25; }
.article-body h3 { font-size: clamp(18px,2vw,21px); font-weight: 600; color: var(--dark); margin: 30px 0 10px; }
.article-body ul, .article-body ol { margin: 16px 0 22px; padding-left: 22px; }
.article-body li { margin-bottom: 9px; }
.article-body strong { color: var(--dark); font-weight: 700; }
.article-body blockquote { border-left: 3px solid var(--cta); background: var(--bg-subtle); padding: 16px 22px; margin: 26px 0; border-radius: 0 var(--radius) var(--radius) 0; font-style: italic; color: var(--dark); }
.article-body table { width: 100%; border-collapse: collapse; margin: 24px 0; font-size: 15px; }
.article-body thead th { background: var(--dark); color: var(--white); text-align: left; padding: 11px 14px; font-weight: 600; }
.article-body td { padding: 11px 14px; border-bottom: 1px solid var(--gray-light); color: var(--text); vertical-align: top; }
.article-body tbody tr:nth-child(even) { background: var(--bg-subtle); }
.article-divider { width: 48px; height: 3px; background: var(--cta); margin: 8px 0 0; }
.article-share { max-width: 760px; margin: 40px auto 0; padding-top: 24px; border-top: 1px solid var(--gray-light); font-size: 14px; color: var(--text-muted); }

/* ============================================================
   NAVBAR · MEGA MENÚ + REDES  ·  rediseño home 2026-06
   ============================================================ */
.nav-main { flex: 1; display: flex; justify-content: center; }
.nav-item-mega { position: static; }   /* el mega se ancla al navbar (ancho completo) */

.nav-mega-btn {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-b); font-size: 13px; font-weight: 500;
  letter-spacing: .02em; color: rgba(255,255,255,.75);
  background: none; border: none; cursor: pointer;
  padding: 8px 14px; border-radius: var(--radius);
  transition: color .2s, background .2s;
}
.nav-mega-btn:hover,
.nav-item-mega:hover .nav-mega-btn { color: var(--white); background: rgba(255,255,255,.08); }
.nav-caret { width: 12px; height: 12px; transition: transform .25s; }
.nav-item-mega:hover .nav-caret { transform: rotate(180deg); }

.mega {
  position: absolute; top: 72px; left: 50%;
  transform: translateX(-50%) translateY(10px);
  width: min(880px, 94vw);
  background: var(--white);
  border: 1px solid rgba(204,204,204,.55);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden;
  transition: opacity .22s ease, transform .22s ease, visibility .22s;
  overflow: hidden; z-index: 1001;
}
.navbar.scrolled .mega { top: 60px; }
.nav-item-mega:hover .mega,
.nav-item-mega:focus-within .mega { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(6px); }

.mega-in { display: grid; grid-template-columns: 280px 1fr; min-height: 296px; }
.mega-left { background: var(--bg-subtle); padding: 14px; border-right: 1px solid rgba(204,204,204,.5); }
.mega .mega-d {
  display: flex; justify-content: space-between; align-items: center; gap: 8px;
  padding: 13px 16px; border-radius: 8px; cursor: pointer;
  font-family: var(--font-b); font-weight: 600; font-size: 14px; color: var(--dark);
}
.mega .mega-d span { color: var(--gray-mid); transition: transform .2s; }
.mega .mega-d:hover, .mega .mega-d.active { background: linear-gradient(135deg, var(--dark), var(--brand)); color: var(--white); }
.mega .mega-d:hover span, .mega .mega-d.active span { color: rgba(255,255,255,.75); transform: translateX(3px); }

.mega-right { padding: 28px 32px; }
.mega-panel { display: none; }
.mega-panel.active { display: block; animation: megaFade .22s ease; }
@keyframes megaFade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }
.mega-head { font-family: var(--font-h); font-weight: 700; color: var(--dark); font-size: 19px; margin-bottom: 5px; }
.mega-sub { display: block; color: var(--text-muted); font-size: 13px; line-height: 1.55; margin-bottom: 18px; max-width: 48ch; }
.mega-list { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 12px; }
.mega .mega-list a { display: block; padding: 9px 10px; border-radius: 7px; color: var(--text); font-size: 14px; transition: background .2s, color .2s; }
.mega .mega-list a:hover { background: var(--bg-subtle); color: var(--cta-ink); }
.mega .mega-all { display: inline-flex; align-items: center; gap: 6px; margin-top: 18px; color: var(--cta-ink); font-weight: 600; font-size: 12px; letter-spacing: .04em; text-transform: uppercase; }

/* Redes sociales en navbar */
.nav-social { display: flex; align-items: center; gap: 4px; }
.nav-social a {
  width: 34px; height: 34px; display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.6); border-radius: var(--radius);
  transition: color .2s, background .2s;
}
.nav-social a:hover { color: var(--white); background: rgba(255,255,255,.1); }
.nav-social svg { width: 17px; height: 17px; }

/* Mobile */
@media (max-width: 900px) {
  .nav-main { flex: none; }
  .nav-social { display: none; }
  .nav-mega-btn { width: 100%; justify-content: space-between; padding: 12px 24px; font-size: 15px; color: rgba(255,255,255,.85); }
  .mega {
    position: static; opacity: 1; visibility: visible; transform: none;
    width: auto; background: transparent; border: none; box-shadow: none;
    border-radius: 0; display: none;
  }
  .nav-item-mega.open .mega { display: block; }
  .mega-in { grid-template-columns: 1fr; min-height: 0; }
  .mega-left { background: transparent; border: none; padding: 0; }
  .mega .mega-d { color: rgba(255,255,255,.7); padding: 10px 36px; border-radius: 0; font-weight: 500; }
  .mega .mega-d span { display: none; }
  .mega .mega-d:hover, .mega .mega-d.active { background: rgba(255,255,255,.06); color: var(--white); }
  .mega-right { display: none; }
}

/* ============================================================
   QUIÉNES SOMOS — figura + firma  ·  rediseño home 2026-06
   ============================================================ */
.about-figure { position: relative; }
.about-figure img {
  position: relative; z-index: 1; width: 100%;
  border-radius: var(--radius);
  border: 1px solid rgba(204,204,204,.6);
  box-shadow: var(--shadow-lg);
  display: block;
}
.about-figure::before {
  content: ''; position: absolute; z-index: 0;
  inset: 22px -22px -22px 22px;
  background: var(--dark);
  border-radius: var(--radius);
}
.signature-block { margin-top: 30px; }
.signature { display: block; font-family: 'Great Vibes', cursive; font-size: 42px; line-height: 1; color: var(--dark); }
.signature-role { display: block; margin-top: 2px; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--text-muted); }
@media (max-width: 768px) { .about-figure::before { display: none; } }

/* ============================================================
   ÁREAS DE ESPECIALIDAD — cards con imagen + chips  ·  2026-06
   ============================================================ */
.svc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
@media (max-width: 1024px) { .svc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { .svc-grid { grid-template-columns: 1fr; } }

.card-svc { display: flex; flex-direction: column; background: var(--white); border: 1px solid rgba(204,204,204,.55); border-radius: var(--radius); overflow: hidden; transition: box-shadow .3s, transform .3s; }
.card-svc:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.card-svc-img { aspect-ratio: 16 / 11; overflow: hidden; background: var(--bg-subtle); }
.card-svc-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.card-svc:hover .card-svc-img img { transform: scale(1.05); }
.card-svc-body { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.card-svc h3 { font-family: var(--font-h); font-size: 18px; color: var(--dark); margin-bottom: 8px; line-height: 1.3; }
.card-svc p { font-size: 13.5px; line-height: 1.6; color: var(--text-muted); flex: 1; }
.card-svc-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; font-size: 12px; font-weight: 600; color: var(--cta-ink); text-transform: uppercase; letter-spacing: .04em; transition: gap .2s; }
.card-svc:hover .card-svc-link { gap: 10px; }

/* Servicios específicos — cards con peso visual (reutiliza .card-area) */
.svc-subhead { text-align: center; max-width: 680px; margin: 64px auto 36px; }
.svc-subhead h3 { font-family: var(--font-h); font-size: clamp(22px,2.6vw,28px); color: var(--dark); margin: 14px 0 8px; }
.svc-subhead p { color: var(--text-muted); font-size: 15px; line-height: 1.6; }
.svc-grid-mini { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.svc-grid-mini .card-area { display: flex; flex-direction: column; }
.svc-grid-mini .card-area p { flex: 1; }
@media (max-width: 900px) { .svc-grid-mini { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 560px) { .svc-grid-mini { grid-template-columns: 1fr; } }

/* ============================================================
   SOCIO / BIO RODOLFO  ·  rediseño home 2026-06
   ============================================================ */
.bio-figure { display: flex; justify-content: center; }
.bio-figure img { max-height: 540px; width: auto; max-width: 100%; border-radius: var(--radius); box-shadow: var(--shadow-lg); border-bottom: 4px solid var(--cta); display: block; }
.bio-creds { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 16px 24px; margin-top: 30px; }
.bio-creds li { padding-left: 14px; border-left: 2px solid var(--cta); }
.bio-creds strong { display: block; font-size: 14px; color: var(--dark); font-weight: 600; line-height: 1.3; }
.bio-creds span { display: block; font-size: 12.5px; color: var(--text-muted); margin-top: 3px; }
@media (max-width: 768px) { .bio-creds { grid-template-columns: 1fr; } }

/* ============================================================
   TRAYECTORIA — timeline vertical refinado (patrón DM-PROC-001 ui.demarketing)  ·  2026-06
   ============================================================ */
.trayectoria { margin-top: 56px; }
.tray-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
@media (max-width: 820px) { .tray-cols { grid-template-columns: 1fr; gap: 40px; } }
.tray-head { font-family: var(--font-b); font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--cta-ink); margin-bottom: 26px; display: flex; align-items: center; gap: 12px; }
.tray-head::after { content: ''; flex: 1; height: 1px; background: var(--gray-light); }
.tl { list-style: none; position: relative; }
.tl::before { content: ''; position: absolute; left: 18px; top: 12px; bottom: 12px; width: 1.5px; background: var(--gray-light); }
.tl-item { position: relative; padding-left: 58px; padding-bottom: 24px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-dot { position: absolute; left: 0; top: 0; width: 38px; height: 38px; border-radius: 50%; background: var(--white); border: 1.5px solid rgba(204,204,204,.9); display: flex; align-items: center; justify-content: center; color: var(--brand); }
.tl-dot svg { width: 17px; height: 17px; }
.tl-item h4 { font-family: var(--font-b); font-size: 16px; font-weight: 600; color: var(--dark); line-height: 1.35; }
.tl-sub { display: block; font-size: 13.5px; color: var(--text-muted); margin-top: 3px; }

/* ============================================================
   BANNER DIAGNÓSTICO LEGAL (todas las páginas)  ·  2026-06
   ============================================================ */
.diag-bar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1100;
  height: 46px; display: flex; align-items: center; justify-content: center; gap: 6px;
  background: var(--cta-strong); color: #fff;
  font-size: 14px; font-weight: 500; padding: 0 18px; line-height: 1.2;
  white-space: nowrap; overflow: hidden; transition: background .2s;
}
.diag-bar:hover { background: var(--cta-strong-hover); }
.diag-bar strong { font-weight: 700; }
.diag-bar .diag-bar-cta { font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 640px) { .diag-bar { font-size: 12px; padding: 0 12px; } .diag-bar .hide-sm { display: none; } }

/* El navbar baja 46px para dejar lugar al banner */
.navbar { top: 46px; }
.nav-offset { height: 118px; }
.page-hero { margin-top: 118px; }

/* Páginas sin banner (el propio diagnóstico) vuelven a la posición normal */
body.no-bar .diag-bar { display: none; }
body.no-bar .navbar { top: 0; }
body.no-bar .nav-offset { height: 72px; }
body.no-bar .page-hero { margin-top: 72px; }

/* ============================================================
   CLIENTES / REVIEWS  ·  rediseño home 2026-06  (estilo DM-TST-002)
   ============================================================ */
.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 980px) { .reviews-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .reviews-grid { grid-template-columns: 1fr; } }
.card-review {
  display: flex; flex-direction: column;
  background: var(--white); border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px; padding: 28px 26px;
}
.card-review blockquote { font-size: 15px; line-height: 1.7; color: var(--text); flex: 1; }
.card-review-foot { display: flex; align-items: center; gap: 12px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--gray-light); }
.card-review-avatar { width: 42px; height: 42px; border-radius: 50%; flex-shrink: 0; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 14px; font-weight: 700; background: linear-gradient(135deg, var(--dark), var(--brand)); }
.card-review-name { font-size: 14px; font-weight: 600; color: var(--dark); }
.card-review-co { font-size: 12px; color: var(--text-muted); margin-top: 1px; }

/* ============================================================
   PÁGINAS DE SERVICIO — entregables (checklist)  ·  2026-06
   ============================================================ */
.deliverables { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 18px 40px; max-width: 920px; margin: 0 auto; }
.deliverables li { position: relative; padding-left: 38px; font-size: 15.5px; color: var(--text); line-height: 1.6; }
.deliverables li::before {
  content: '✓'; position: absolute; left: 0; top: 1px;
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--cta-strong); color: #fff;
  font-size: 13px; font-weight: 700; line-height: 1;
  display: flex; align-items: center; justify-content: center;
}
.deliverables li strong { color: var(--dark); font-weight: 600; }
@media (max-width: 640px) { .deliverables { grid-template-columns: 1fr; } }
