/* ============================================================
   OK Legal® — Estilos compartidos
   Incluir en <head> de todas las páginas:
   <link rel="stylesheet" href="css/shared.css">
   ============================================================ */

/* ── Variables ─────────────────────────────────────────────── */
:root {
  --red:        #cc2929;
  --red-hover:  #b01f1f;
  --blue:       #4068c8;
  --blue-light: #e8edf9;
  --navy:       #1a2235;
  --navy-mid:   #2c3d5a;
  --text:       #3a3a3a;
  --text-light: #6b7280;
  --bg:         #ffffff;
  --bg-alt:     #f6f7f9;
  --bg-alt2:    #f0f2f7;
  --border:     #e2e6ef;
  --white:      #ffffff;
}

/* ── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Jost', sans-serif;
  font-weight: 400;
  line-height: 1.7;
}

/* ── NAVBAR ─────────────────────────────────────────────────── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: var(--white);
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  height: 68px;
  display: flex; align-items: center; padding: 0 6%;
  justify-content: space-between;
}
.nav-logo {
  font-size: 1.55rem; font-weight: 800;
  color: var(--navy); text-decoration: none;
}
.nav-logo span { color: var(--red); }

.nav-links {
  display: flex; gap: 2rem;
  list-style: none; align-items: center;
}
.nav-links a {
  color: var(--navy-mid); text-decoration: none;
  font-size: 0.88rem; font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--red); }
.nav-links .nav-cta {
  padding: 0.55rem 1.4rem;
  background: var(--red); color: #fff !important;
  border-radius: 4px; font-weight: 600;
  transition: background 0.2s;
}
.nav-links .nav-cta:hover { background: var(--red-hover); }

.hamburger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; background: none; border: none; padding: 4px;
}
.hamburger span {
  display: block; width: 24px; height: 2px;
  background: var(--navy); border-radius: 2px;
}

/* ── MOBILE MENU ────────────────────────────────────────────── */
.mobile-menu {
  display: none;
  position: fixed; top: 68px; left: 0; right: 0;
  background: var(--white); z-index: 999;
  padding: 1.5rem 6%; flex-direction: column; gap: 1rem;
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  color: var(--navy); text-decoration: none;
  font-size: 0.95rem; font-weight: 500;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid var(--border);
}
.mobile-menu a:last-child {
  border-bottom: none; color: var(--red); font-weight: 600;
}

/* ── BOTONES ────────────────────────────────────────────────── */
.btn-red {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.85rem 2rem;
  background: var(--red); color: #fff;
  font-family: 'Jost', sans-serif; font-weight: 600; font-size: 0.9rem;
  text-decoration: none; border-radius: 4px;
  border: 2px solid var(--red);
  transition: background 0.2s, transform 0.15s; cursor: pointer;
}
.btn-red:hover {
  background: var(--red-hover); border-color: var(--red-hover);
  transform: translateY(-2px);
}

.btn-outline-white {
  display: inline-flex; align-items: center;
  padding: 0.85rem 2rem;
  background: transparent; color: #fff;
  font-family: 'Jost', sans-serif; font-weight: 500; font-size: 0.9rem;
  text-decoration: none; border-radius: 4px;
  border: 2px solid rgba(255,255,255,0.35);
  transition: border-color 0.2s;
}
.btn-outline-white:hover { border-color: rgba(255,255,255,0.8); }

.btn-white {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.9rem 2.2rem;
  background: #fff; color: var(--red);
  font-family: 'Jost', sans-serif; font-weight: 700; font-size: 0.9rem;
  text-decoration: none; border-radius: 4px;
  border: 2px solid #fff;
  transition: background 0.2s, color 0.2s, transform 0.15s;
}
.btn-white:hover {
  background: var(--navy); color: #fff;
  border-color: var(--navy); transform: translateY(-2px);
}

/* ── FOOTER ─────────────────────────────────────────────────── */
footer { background: var(--navy); padding: 56px 6% 24px; }

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 2rem;
}
.footer-logo {
  font-size: 1.5rem; font-weight: 800; color: #fff;
  display: block; margin-bottom: 0.3rem;
}
.footer-logo span { color: var(--red); }

.footer-tagline {
  font-size: 0.8rem; color: rgba(255,255,255,0.38);
  font-style: italic; display: block; margin-bottom: 1rem;
}
.footer-brand > p {
  font-size: 0.87rem; color: rgba(255,255,255,0.48);
  line-height: 1.75; max-width: 260px;
}
.footer-col h4 {
  font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(255,255,255,0.38); margin-bottom: 1.2rem;
}
.footer-col ul {
  list-style: none; display: flex;
  flex-direction: column; gap: 0.6rem;
}
.footer-col ul li a {
  color: rgba(255,255,255,0.58); text-decoration: none;
  font-size: 0.88rem; transition: color 0.2s;
}
.footer-col ul li a:hover { color: #fff; }

.footer-bottom {
  display: flex; justify-content: space-between;
  align-items: center; flex-wrap: wrap; gap: 1rem;
}
.footer-bottom p { font-size: 0.8rem; color: rgba(255,255,255,0.32); }
.footer-bottom a { color: rgba(255,255,255,0.48); text-decoration: none; }

.footer-socials { display: flex; gap: 0.7rem; }
.footer-socials a {
  width: 34px; height: 34px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 6px; display: flex; align-items: center;
  justify-content: center; color: rgba(255,255,255,0.48);
  font-size: 0.82rem; font-weight: 700;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.footer-socials a:hover {
  background: var(--red); border-color: var(--red); color: #fff;
}

/* ── WHATSAPP FLOTANTE ──────────────────────────────────────── */
.wa-float {
  position: fixed; bottom: 2rem; right: 2rem;
  width: 54px; height: 54px;
  background: #25d366; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 20px rgba(37,211,102,0.4);
  text-decoration: none; z-index: 900;
  transition: transform 0.2s;
}
.wa-float:hover { transform: scale(1.1); }
.wa-float svg { width: 28px; height: 28px; fill: #fff; }

/* ── ANIMACIÓN REVEAL ───────────────────────────────────────── */
.reveal {
  opacity: 0; transform: translateY(18px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── BREADCRUMB ─────────────────────────────────────────────── */
.breadcrumb {
  margin-top: 68px; padding: 0.75rem 6%;
  font-size: 0.8rem; color: var(--text-light);
  background: var(--bg-alt); border-bottom: 1px solid var(--border);
  display: flex; gap: 0.4rem; align-items: center;
}
.breadcrumb a { color: var(--blue); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb .current { color: var(--text); font-weight: 500; }

/* ── HERO ───────────────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  padding: 80px 6% 72px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center;
}
.hero-label {
  display: inline-block;
  background: rgba(204,41,41,0.18); color: #f08080;
  border: 1px solid rgba(204,41,41,0.35);
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.2em; text-transform: uppercase;
  padding: 0.35rem 0.85rem; border-radius: 3px; margin-bottom: 1.4rem;
}
.hero h1 {
  font-size: clamp(2rem, 3.5vw, 3rem); font-weight: 800;
  color: #fff; line-height: 1.15; margin-bottom: 1.2rem; letter-spacing: -0.02em;
}
.hero h1 span { color: #f08080; }
.hero-sub {
  font-size: 1rem; color: rgba(255,255,255,0.72);
  max-width: 520px; margin-bottom: 2rem; line-height: 1.8; font-weight: 300;
}
.hero-actions { display: flex; gap: 0.8rem; flex-wrap: wrap; }
.hero-visual {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px; height: 360px;
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
.hero-visual::before { content: '⚖'; font-size: 10rem; opacity: 0.04; position: absolute; }
.hero-visual-inner { z-index: 1; text-align: center; padding: 2rem; }
.hero-visual-inner p {
  font-size: 1.15rem; font-style: italic;
  color: rgba(255,255,255,0.85); line-height: 1.6; margin-bottom: 0.8rem; font-weight: 500;
}
.hero-visual-inner span {
  font-size: 0.75rem; color: #f08080;
  letter-spacing: 0.12em; text-transform: uppercase; font-weight: 600;
}

/* ── HERO ANIMATIONS ────────────────────────────────────────── */
.hero-content > * { animation: fadeUp 0.7s ease both; }
.hero-content > *:nth-child(1) { animation-delay: 0.10s; }
.hero-content > *:nth-child(2) { animation-delay: 0.20s; }
.hero-content > *:nth-child(3) { animation-delay: 0.32s; }
.hero-content > *:nth-child(4) { animation-delay: 0.45s; }
.hero-visual { animation: fadeUp 0.7s 0.3s ease both; }

/* ── STATS BAR ──────────────────────────────────────────────── */
.stats-bar {
  background: var(--white); border-bottom: 1px solid var(--border);
  padding: 2rem 6%; display: flex; justify-content: center;
}
.stat-item {
  flex: 1; max-width: 200px; text-align: center;
  padding: 0 2rem; border-right: 1px solid var(--border);
}
.stat-item:last-child { border-right: none; }
.stat-num  { font-size: 1.9rem; font-weight: 800; color: var(--navy); display: block; line-height: 1.1; }
.stat-label { font-size: 0.78rem; color: var(--text-light); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 500; }

/* ── SECTION COMMONS ────────────────────────────────────────── */
.section-tag {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--red); margin-bottom: 0.6rem;
}
.section-tag::before {
  content: ''; display: inline-block;
  width: 18px; height: 2px; background: var(--red); border-radius: 2px;
}
h2.section-title {
  font-size: clamp(1.55rem, 2.8vw, 2.15rem); font-weight: 800;
  color: var(--navy); line-height: 1.2; letter-spacing: -0.02em; margin-bottom: 0.7rem;
}
.section-lead { font-size: 0.97rem; color: var(--text-light); line-height: 1.8; max-width: 640px; }

/* ── INTRO SPLIT ────────────────────────────────────────────── */
.intro-split {
  padding: 72px 6%;
  display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center;
}
.intro-split .right p { font-size: 0.97rem; line-height: 1.85; color: var(--text); margin-bottom: 1rem; }

/* ── CARDS ──────────────────────────────────────────────────── */
.cards-section { padding: 64px 6%; background: var(--bg-alt); }
.cards-header  { margin-bottom: 2.5rem; }

/* grid de 3 columnas (por defecto) */
.cards-grid   { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
/* grid de 2 columnas */
.cards-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }

.service-card {
  background: var(--white); border-radius: 8px; padding: 2rem 1.8rem;
  border: 1px solid var(--border);
  transition: box-shadow 0.25s, transform 0.25s, border-color 0.25s;
  position: relative; overflow: hidden;
}
.service-card::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 3px;
  background: var(--red); transform: scaleX(0); transform-origin: left;
  transition: transform 0.3s ease;
}
.service-card:hover { box-shadow: 0 8px 32px rgba(26,34,53,0.12); transform: translateY(-4px); border-color: transparent; }
.service-card:hover::after { transform: scaleX(1); }
.card-icon {
  width: 48px; height: 48px; background: var(--blue-light); border-radius: 10px;
  display: flex; align-items: center; justify-content: center; margin-bottom: 1.2rem;
}
.card-icon svg { width: 24px; height: 24px; fill: var(--blue); }
.service-card h3 { font-size: 0.82rem; font-weight: 700; color: var(--navy); margin-bottom: 0.7rem; text-transform: uppercase; letter-spacing: 0.04em; }
.service-card p  { font-size: 0.88rem; color: var(--text-light); line-height: 1.75; }

/* ── HIGHLIGHT SECTION (fondo oscuro) ───────────────────────── */
.highlight-section { padding: 72px 6%; background: var(--navy); color: #fff; }
.highlight-section .section-tag        { color: #f08080; }
.highlight-section .section-tag::before { background: #f08080; }
.highlight-section h2.section-title    { color: #fff; }
.highlight-section .section-lead       { color: rgba(255,255,255,0.6); }

.hs-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; margin-top: 2.5rem; }
.hs-card {
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px; padding: 1.8rem; transition: background 0.25s;
}
.hs-card:hover { background: rgba(255,255,255,0.08); }
.hs-card h3 {
  font-size: 0.93rem; font-weight: 700; color: #fff;
  margin-bottom: 0.6rem; display: flex; align-items: flex-start; gap: 0.5rem;
}
.hs-card h3::before { content: '→'; color: #f08080; flex-shrink: 0; }
.hs-card p { font-size: 0.87rem; color: rgba(255,255,255,0.58); line-height: 1.75; }

/* variante de 3 columnas para highlight */
.hs-grid-3 { grid-template-columns: repeat(3, 1fr); }

/* ── WHY US ─────────────────────────────────────────────────── */
.why-section {
  padding: 72px 6%; background: var(--bg);
  display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center;
}
.why-list { display: flex; flex-direction: column; gap: 1.3rem; margin-top: 1.5rem; }
.why-item { display: flex; gap: 1rem; align-items: flex-start; }
.why-num  {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--red); color: #fff; font-size: 0.8rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.why-item-content h3 { font-size: 0.93rem; font-weight: 700; color: var(--navy); margin-bottom: 0.25rem; }
.why-item-content p  { font-size: 0.87rem; color: var(--text-light); line-height: 1.7; }
.why-visual { border-radius: 8px; overflow: hidden; }
.why-visual-inner {
  background: linear-gradient(135deg, var(--navy) 0%, #2c4a7c 100%);
  height: 420px; display: flex; align-items: center; justify-content: center; position: relative;
}
.why-bg-text  { font-size: 8rem; font-weight: 800; color: rgba(255,255,255,0.03); position: absolute; user-select: none; line-height: 1; }
.why-quote    { z-index: 1; padding: 2.5rem; text-align: center; max-width: 340px; }
.why-quote p  { font-size: 1.12rem; font-style: italic; font-weight: 500; color: rgba(255,255,255,0.88); line-height: 1.6; margin-bottom: 1rem; }
.why-quote span { font-size: 0.76rem; color: #f08080; letter-spacing: 0.1em; font-weight: 600; text-transform: uppercase; }

/* ── FAQ ────────────────────────────────────────────────────── */
.faq-section { padding: 72px 6%; background: var(--bg-alt); }
.faq-header  { margin-bottom: 2.5rem; }
.faq-list    { max-width: 900px; }
.faq-item    {
  border-bottom: 1px solid var(--border); background: var(--white);
  margin-bottom: 0.5rem; border-radius: 6px; overflow: hidden;
}
.faq-q {
  padding: 1.2rem 1.5rem; font-size: 0.93rem; font-weight: 600; color: var(--navy);
  cursor: pointer; display: flex; justify-content: space-between;
  align-items: center; gap: 1rem; transition: background 0.2s; user-select: none;
}
.faq-q:hover { background: var(--bg-alt); }
.faq-icon {
  width: 28px; height: 28px; border-radius: 50%; background: var(--bg-alt2);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; color: var(--red); flex-shrink: 0;
  transition: background 0.2s, transform 0.3s;
}
.faq-item.active .faq-icon { background: var(--red); color: #fff; transform: rotate(45deg); }
.faq-a {
  max-height: 0; overflow: hidden;
  transition: max-height 0.4s ease, opacity 0.3s;
  opacity: 0; padding: 0 1.5rem;
  font-size: 0.9rem; color: var(--text-light); line-height: 1.8;
}
.faq-item.active .faq-a { max-height: 300px; opacity: 1; padding: 0 1.5rem 1.2rem; }

/* ── CTA BAND ───────────────────────────────────────────────── */
.cta-band {
  padding: 72px 6%; background: var(--red);
  text-align: center; position: relative; overflow: hidden;
}
.cta-band::before { content: ''; position: absolute; left: -5%; top: -60%; width: 380px; height: 380px; background: rgba(0,0,0,0.07); border-radius: 50%; }
.cta-band::after  { content: ''; position: absolute; right: -4%; bottom: -50%; width: 340px; height: 340px; background: rgba(0,0,0,0.07); border-radius: 50%; }
.cta-band h2 {
  font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 800; color: #fff;
  max-width: 580px; margin: 0 auto 0.8rem; line-height: 1.2;
  position: relative; z-index: 1; letter-spacing: -0.02em;
}
.cta-band p {
  font-size: 1rem; color: rgba(255,255,255,0.82);
  max-width: 460px; margin: 0 auto 2rem; line-height: 1.75;
  position: relative; z-index: 1;
}
.cta-info-row   { display: flex; justify-content: center; gap: 3rem; margin-top: 2.5rem; flex-wrap: wrap; position: relative; z-index: 1; }
.cta-info-item span   { display: block; font-size: 0.68rem; color: rgba(255,255,255,0.55); text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 0.2rem; }
.cta-info-item strong { color: #fff; font-size: 1rem; font-weight: 600; }

/* ── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 900px) {
  .nav-links   { display: none; }
  .hamburger   { display: flex; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  /* hero */
  .hero        { grid-template-columns: 1fr; padding: 56px 6%; }
  .hero-visual { display: none; }
  /* secciones */
  .intro-split  { grid-template-columns: 1fr; gap: 2rem; }
  .cards-grid   { grid-template-columns: 1fr 1fr; }
  .hs-grid      { grid-template-columns: 1fr; }
  .hs-grid-3    { grid-template-columns: 1fr; }
  .why-section  { grid-template-columns: 1fr; }
  .why-visual   { display: none; }
  .stats-bar    { flex-wrap: wrap; }
  .stat-item    { border-right: none; padding-bottom: 1rem; }
}

@media (max-width: 600px) {
  .footer-grid  { grid-template-columns: 1fr; }
  .cards-grid   { grid-template-columns: 1fr; }
  .cards-grid-2 { grid-template-columns: 1fr; }
  .cta-info-row { gap: 1.5rem; }
}
