/* ===================================================
   Lesión Laboral CA — Stylesheet
   Layout/format adapted from the Armstrong template,
   recolored to the Lesión Laboral CA brand (navy + orange + safety red).
   =================================================== */

:root {
  --color-primary: #173B7A;       /* royal navy (logo wordmark) */
  --color-primary-dark: #102C5C;
  --color-gold: #F5A623;          /* hard-hat orange (accents/CTAs) */
  --color-gold-light: #FBC15A;
  --color-red: #D81F26;           /* safety red (medical cross) */
  --color-red-dark: #B11118;
  --color-bg: #FBFCFE;
  --color-bg-warm: #EEF3FA;
  --color-dark: #12233F;          /* deep navy for footer / dark sections */
  --color-text: #1B2433;
  --color-muted: #5A6678;
  --color-white: #FFFFFF;
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Lato', system-ui, -apple-system, sans-serif;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 4px 24px rgba(18,35,63,0.10);
  --shadow-hover: 0 8px 40px rgba(18,35,63,0.18);
  --transition: all 0.25s ease;
  --max-width: 1200px;
}

/* ==================== RESET & BASE ==================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

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

/* ==================== TYPOGRAPHY ==================== */
h1, h2, h3, h4, h5, h6 { font-family: var(--font-heading); line-height: 1.25; color: var(--color-dark); }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 4vw, 2.5rem); font-weight: 600; }
h3 { font-size: clamp(1.2rem, 3vw, 1.6rem); font-weight: 600; }
h4 { font-size: 1.15rem; font-weight: 600; }
p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

.section-label {
  display: inline-block; font-family: var(--font-body); font-size: 0.75rem;
  font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--color-gold); margin-bottom: 0.75rem;
}
.section-title { font-family: var(--font-heading); color: var(--color-dark); margin-bottom: 1rem; }
.section-subtitle { font-size: 1.05rem; color: var(--color-muted); max-width: 640px; }

/* ==================== BUTTONS ==================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.85rem 1.75rem; border-radius: 50px; font-family: var(--font-body);
  font-size: 0.95rem; font-weight: 700; letter-spacing: 0.03em; cursor: pointer;
  border: 2px solid transparent; transition: var(--transition); min-height: 48px; white-space: nowrap;
  background: var(--color-primary); color: var(--color-white); border-color: var(--color-primary);
}
.btn:hover { background: var(--color-primary-dark); border-color: var(--color-primary-dark); transform: translateY(-2px); box-shadow: var(--shadow-hover); color: #fff; }
.btn-primary { background: var(--color-primary); color: var(--color-white); border-color: var(--color-primary); }
.btn-gold, .btn-on-dark { background: var(--color-gold); color: var(--color-dark) !important; border-color: var(--color-gold); }
.btn-gold:hover, .btn-on-dark:hover { background: var(--color-gold-light); border-color: var(--color-gold-light); transform: translateY(-2px); box-shadow: 0 8px 32px rgba(245,166,35,0.35); color: var(--color-dark) !important; }
.btn-outline { background: transparent; color: var(--color-white) !important; border-color: var(--color-white); }
.btn-outline:hover { background: var(--color-white); color: var(--color-primary) !important; transform: translateY(-2px); }
.btn-outline-primary { background: transparent; color: var(--color-primary) !important; border-color: var(--color-primary); }
.btn-outline-primary:hover { background: var(--color-primary); color: var(--color-white) !important; transform: translateY(-2px); }

/* ==================== NAVIGATION ==================== */
.site-header, .nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(251,252,254,0.97); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(23,59,122,0.08); transition: var(--transition);
}
.site-header.scrolled, .nav.scrolled { box-shadow: 0 2px 20px rgba(23,59,122,0.12); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 1rem; }
.brand { display: flex; align-items: center; }
.brand-logo { display: block; height: 52px; width: auto; }
.nav-menu {
  display: none; flex-direction: column; position: fixed; top: 76px; left: 0; right: 0;
  background: var(--color-bg); padding: 1.25rem 20px; gap: 0.25rem;
  border-bottom: 1px solid rgba(23,59,122,0.1); box-shadow: 0 8px 32px rgba(23,59,122,0.1);
  max-height: calc(100vh - 76px); overflow-y: auto;
}
.nav-menu.open { display: flex; }
.nav-link {
  display: flex; align-items: center; padding: 0.85rem 1rem; font-size: 1rem; font-weight: 700;
  color: var(--color-text); border-radius: 8px; transition: var(--transition); min-height: 48px;
}
.nav-link:hover, .nav-link.active { color: var(--color-primary); background: var(--color-bg-warm); }
.nav-cta { display: none; }
.nav-hamburger {
  display: flex; flex-direction: column; justify-content: center; gap: 5px; width: 48px; height: 48px;
  background: none; border: none; cursor: pointer; padding: 8px; border-radius: 8px; transition: var(--transition);
}
.nav-hamburger:hover { background: var(--color-bg-warm); }
.nav-hamburger span { display: block; height: 2px; background: var(--color-primary); border-radius: 2px; transition: var(--transition); transform-origin: center; }
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (min-width: 980px) {
  .nav-menu { display: flex !important; flex-direction: row; position: static; background: none; padding: 0; gap: 0.15rem; border: none; box-shadow: none; max-height: none; overflow: visible; }
  .nav-link { padding: 0.5rem 0.85rem; font-size: 0.9rem; }
  .nav-cta { display: inline-flex; }
  .nav-hamburger { display: none; }
}

/* ==================== HERO ==================== */
.hero {
  position: relative; min-height: 92vh; display: flex; align-items: center;
  overflow: hidden; padding: 110px 0 64px;
  background: linear-gradient(125deg, var(--color-primary-dark) 0%, var(--color-primary) 55%, #1E4A93 100%);
}
.hero::before {
  content: ''; position: absolute; top: -20%; right: -8%; width: 520px; height: 520px; border-radius: 50%;
  background: radial-gradient(circle, rgba(245,166,35,0.16), transparent 70%); pointer-events: none;
}
.hero::after {
  content: ''; position: absolute; bottom: -25%; left: -10%; width: 480px; height: 480px; border-radius: 50%;
  background: radial-gradient(circle, rgba(216,31,38,0.12), transparent 70%); pointer-events: none;
}
.hero-grid {
  position: relative; z-index: 2; display: grid; grid-template-columns: 1fr; gap: 2.5rem; align-items: center;
}
@media (min-width: 920px) { .hero-grid { grid-template-columns: 1.05fr 0.95fr; gap: 3.5rem; } }
.hero-badge {
  display: inline-flex; align-items: center; gap: 0.5rem; background: rgba(245,166,35,0.18);
  border: 1px solid rgba(245,166,35,0.5); color: var(--color-gold-light); padding: 0.4rem 1rem;
  border-radius: 50px; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 1.25rem;
}
.hero h1 { color: var(--color-white); font-size: clamp(2.1rem, 5.4vw, 3.6rem); font-weight: 700; margin-bottom: 1rem; line-height: 1.15; text-shadow: 0 2px 24px rgba(0,0,0,0.25); }
.hero h1 em, .hero h1 .accent { font-style: italic; color: var(--color-gold-light); }
.hero .lede { font-size: clamp(1rem, 2.2vw, 1.22rem); color: rgba(255,255,255,0.9); margin-bottom: 1.75rem; font-weight: 400; }
.hero-cta-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 1.75rem; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: 0.88rem; color: rgba(255,255,255,0.9); font-weight: 700; }
.hero-badges span { display: flex; align-items: center; gap: 8px; }
.hero-badges span::before { content: "✓"; color: var(--color-gold-light); font-weight: 900; }

/* ==================== TRUST BAR ==================== */
.trust-bar { background: var(--color-dark); padding: 1.1rem 0; }
.trust-bar-inner { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem 2rem; text-align: center; }
.trust-stat { display: flex; align-items: center; gap: 0.5rem; color: var(--color-white); font-size: 0.85rem; font-weight: 700; padding: 0.25rem 0; white-space: nowrap; }
.trust-stat .stat-number { font-family: var(--font-heading); font-size: 1.15rem; color: var(--color-gold-light); }
.trust-divider { color: rgba(255,255,255,0.25); display: none; }
@media (min-width: 768px) { .trust-divider { display: block; } .trust-bar-inner { flex-wrap: nowrap; } }

/* ==================== SECTIONS ==================== */
.section, .st-section { padding: 5rem 0; }
.section-bg-warm { background: var(--color-bg-warm); }
.section-bg-cream { background: var(--color-bg); }
.section-header, .st-section-head { text-align: center; margin-bottom: 3rem; }
.st-section-head { max-width: 720px; margin-left: auto; margin-right: auto; }
.section-header .section-subtitle, .st-section-head p { margin: 0 auto; color: var(--color-muted); }
.st-eyebrow { display: inline-block; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: var(--color-gold); margin-bottom: 0.75rem; }
.gold-bar { width: 56px; height: 3px; background: linear-gradient(90deg, var(--color-gold), var(--color-red)); border-radius: 2px; margin: 0 auto 1.5rem; }
.gold-bar-left { margin: 0 0 1.5rem; }

/* ==================== MISSION TEASER ==================== */
.about-teaser { display: grid; grid-template-columns: 1fr; gap: 3rem; align-items: center; }
@media (min-width: 860px) { .about-teaser { grid-template-columns: auto 1fr; } }
.about-photo-wrap { display: flex; justify-content: center; }
.about-emblem {
  width: 250px; height: 250px; border-radius: 50%;
  background: #fff;
  display: flex; align-items: center; justify-content: center; position: relative; flex-shrink: 0;
  box-shadow: var(--shadow-hover), 0 0 0 8px rgba(23,59,122,0.07);
}
.about-emblem::after { content: ''; position: absolute; inset: -12px; border-radius: 50%; border: 2px solid rgba(245,166,35,0.55); }
.about-emblem img { width: 66%; height: auto; }
.about-text .gold-bar { margin: 0 0 1.5rem; }
.about-text p { color: var(--color-text); }
.credentials-mini { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1.5rem 0; }
.cred-badge {
  display: inline-flex; align-items: center; gap: 0.35rem; background: var(--color-bg-warm);
  border: 1px solid rgba(23,59,122,0.15); color: var(--color-primary); padding: 0.4rem 0.9rem;
  border-radius: 50px; font-size: 0.8rem; font-weight: 700;
}

/* ==================== CARD GRID (guide categories / services) ==================== */
.services-grid, .practice-grid { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
@media (min-width: 600px) { .services-grid, .practice-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .services-grid, .practice-grid { grid-template-columns: repeat(3, 1fr); } }
.service-card, .practice-card {
  background: var(--color-white); border-radius: var(--radius); padding: 1.85rem 1.6rem;
  box-shadow: var(--shadow); transition: var(--transition); cursor: pointer;
  border: 1px solid rgba(23,59,122,0.06); display: flex; flex-direction: column; gap: 0.6rem;
  border-top: 3px solid var(--color-gold);
}
.service-card:hover, .practice-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); border-top-color: var(--color-red); }
.service-icon { width: 54px; height: 54px; background: var(--color-bg-warm); border-radius: 12px; display: flex; align-items: center; justify-content: center; margin-bottom: 0.25rem; color: var(--color-primary); font-size: 1.5rem; }
.service-icon svg { width: 27px; height: 27px; color: var(--color-primary); fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.service-card h3, .service-card h4, .practice-card h3 { font-family: var(--font-heading); font-size: 1.15rem; color: var(--color-primary); font-weight: 700; margin: 0; }
.service-card p, .practice-card p { font-size: 0.92rem; color: var(--color-muted); margin: 0; line-height: 1.55; flex: 1; }
.learn-more, .card-link { font-size: 0.82rem; font-weight: 800; color: var(--color-gold); display: inline-flex; align-items: center; gap: 0.3rem; margin-top: 0.5rem; }
.practice-card:hover .card-link, .service-card:hover .learn-more { color: var(--color-primary); }

/* ==================== STEPS ==================== */
.steps-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; position: relative; }
@media (min-width: 768px) {
  .steps-grid { grid-template-columns: repeat(3, 1fr); }
  .steps-grid::before { content: ''; position: absolute; top: 40px; left: calc(16.67% + 40px); right: calc(16.67% + 40px); height: 2px; background: linear-gradient(90deg, var(--color-gold), var(--color-red)); z-index: 0; }
}
.step-card { text-align: center; position: relative; z-index: 1; padding: 0 1rem; }
.step-number {
  width: 80px; height: 80px; border-radius: 50%; background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  color: var(--color-white); font-family: var(--font-heading); font-size: 1.75rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center; margin: 0 auto 1.5rem; box-shadow: 0 4px 20px rgba(23,59,122,0.3);
}
.step-card h3 { font-size: 1.2rem; color: var(--color-primary); margin-bottom: 0.75rem; }
.step-card p { font-size: 0.95rem; color: var(--color-muted); margin: 0; }

/* ==================== DARK SPLIT (approach / reassurance) ==================== */
.split-section { background: var(--color-dark); overflow: hidden; }
.split-grid { display: grid; grid-template-columns: 1fr; }
@media (min-width: 768px) { .split-grid { grid-template-columns: 1fr 1fr; } }
.split-panel { position: relative; min-height: 280px; background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%); display: flex; align-items: center; justify-content: center; padding: 3rem 2rem; }
.split-panel img { width: 62%; max-width: 240px; background: #fff; border-radius: 50%; padding: 2.4rem; box-shadow: 0 16px 40px rgba(0,0,0,0.28), 0 0 0 6px rgba(245,166,35,0.5); }
.split-text { padding: 3.5rem 2.5rem; display: flex; flex-direction: column; justify-content: center; background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 100%); }
.split-text .section-label { color: var(--color-gold-light); }
.split-text h2 { color: var(--color-white); margin-bottom: 1rem; }
.split-text p { color: rgba(255,255,255,0.85); margin-bottom: 1.25rem; }

/* ==================== INFO / REASSURANCE CARDS ==================== */
.info-grid { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
@media (min-width: 700px) { .info-grid { grid-template-columns: repeat(3, 1fr); } }
.info-card { background: var(--color-white); border-radius: var(--radius); padding: 1.6rem; box-shadow: var(--shadow); border-left: 4px solid var(--color-red); }
.info-card .ic-emoji { font-size: 1.8rem; margin-bottom: 0.5rem; display: block; }
.info-card h3 { color: var(--color-primary); margin-bottom: 0.5rem; font-size: 1.15rem; }
.info-card p { font-size: 0.92rem; color: var(--color-muted); margin: 0; }

/* ==================== FAQ ACCORDION (native <details>) ==================== */
.faq-list { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 0.75rem; }
details.faq-item {
  background: var(--color-white); border-radius: var(--radius); border: 1px solid rgba(23,59,122,0.1);
  overflow: hidden; box-shadow: 0 2px 12px rgba(23,59,122,0.05);
}
details.faq-item > summary {
  list-style: none; cursor: pointer; padding: 1.25rem 1.5rem; display: flex; justify-content: space-between;
  align-items: center; gap: 1rem; font-family: var(--font-body); font-size: 1rem; font-weight: 700;
  color: var(--color-primary); min-height: 48px; transition: var(--transition);
}
details.faq-item > summary::-webkit-details-marker { display: none; }
details.faq-item > summary::after {
  content: "+"; width: 28px; height: 28px; min-width: 28px; border-radius: 50%; background: var(--color-bg-warm);
  display: flex; align-items: center; justify-content: center; color: var(--color-primary); font-size: 1.2rem; font-weight: 300; transition: var(--transition);
}
details.faq-item[open] > summary::after { background: var(--color-primary); color: #fff; transform: rotate(45deg); }
details.faq-item > summary:hover { background: var(--color-bg-warm); }
.faq-answer { padding: 0 1.5rem 1.25rem; color: var(--color-text); font-size: 0.95rem; line-height: 1.7; border-top: 1px solid rgba(23,59,122,0.08); padding-top: 1rem; }

/* ==================== CTA BANNER ==================== */
.cta-banner, .cta-strip {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  padding: 4.5rem 0; text-align: center; position: relative; overflow: hidden;
}
.cta-banner::before, .cta-strip::before { content: ''; position: absolute; top: -50%; right: -10%; width: 500px; height: 500px; border-radius: 50%; background: rgba(245,166,35,0.07); pointer-events: none; }
.cta-banner h2, .cta-strip h2 { color: var(--color-white); margin-bottom: 0.75rem; }
.cta-banner p, .cta-strip p { color: rgba(255,255,255,0.85); font-size: 1.1rem; margin: 0 auto 2rem; max-width: 600px; }
.cta-actions { display: flex; flex-direction: column; gap: 0.75rem; align-items: center; position: relative; z-index: 1; }
@media (min-width: 480px) { .cta-actions { flex-direction: row; justify-content: center; } }
.cta-strip .btn-on-dark { position: relative; z-index: 1; }

/* ==================== LEAD FORM ==================== */
.hero-form {
  background: var(--color-white); border-radius: var(--radius-lg); padding: 2rem 1.85rem;
  box-shadow: 0 20px 60px rgba(0,0,0,0.22); border-top: 5px solid var(--color-gold);
}
.hero-form h3 { font-family: var(--font-heading); color: var(--color-primary); font-size: 1.4rem; margin-bottom: 0.4rem; }
.hero-form .sub { font-size: 0.9rem; color: var(--color-muted); margin-bottom: 1.25rem; line-height: 1.5; }
.form-row { margin-bottom: 0.9rem; }
.form-row label { display: block; font-size: 0.82rem; font-weight: 700; color: var(--color-primary); margin-bottom: 0.35rem; letter-spacing: 0.02em; }
.form-row .hint { color: var(--color-muted); font-weight: 400; text-transform: none; letter-spacing: 0; }
.hero-form input, .hero-form select, .hero-form textarea {
  width: 100%; padding: 0.8rem 1rem; background: var(--color-bg); border: 1.5px solid rgba(23,59,122,0.15);
  border-radius: var(--radius); font-family: var(--font-body); font-size: 0.95rem; color: var(--color-text); transition: var(--transition); min-height: 46px;
}
.hero-form input:focus, .hero-form select:focus, .hero-form textarea:focus { outline: none; border-color: var(--color-primary); box-shadow: 0 0 0 3px rgba(23,59,122,0.12); }
.hero-form textarea { min-height: 90px; resize: vertical; }
.form-submit { width: 100%; margin-top: 0.4rem; background: var(--color-gold); color: var(--color-dark) !important; border-color: var(--color-gold); }
.form-submit:hover { background: var(--color-gold-light); border-color: var(--color-gold-light); }
.form-status { margin-top: 0.75rem; font-size: 0.9rem; font-weight: 700; }
.form-status.ok { color: #157a47; }
.form-status.err { color: var(--color-red); }
.form-fineprint { margin-top: 0.85rem; font-size: 0.74rem; line-height: 1.5; color: var(--color-muted); }
.form-fineprint a { color: var(--color-muted); text-decoration: underline; }

/* ==================== INTERIOR PAGE HEADER ==================== */
.page-hero {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 60%, #0C1F40 100%);
  padding: calc(76px + 3.5rem) 0 3.5rem; position: relative; overflow: hidden;
}
.page-hero::before { content: ''; position: absolute; top: -30%; right: -5%; width: 400px; height: 400px; border-radius: 50%; background: rgba(245,166,35,0.08); pointer-events: none; }
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: var(--color-white); margin-bottom: 0.75rem; }
.page-hero .lede { color: rgba(255,255,255,0.85); font-size: 1.1rem; max-width: 720px; }
.crumb { font-size: 0.85rem; margin-bottom: 1.25rem; color: rgba(255,255,255,0.55); }
.crumb a { color: rgba(255,255,255,0.7); }
.crumb a:hover { color: var(--color-gold-light); }

/* ==================== ARTICLE / GUIDE LAYOUT ==================== */
.with-sidebar { display: grid; grid-template-columns: 1fr; gap: 3rem; }
@media (min-width: 920px) { .with-sidebar { grid-template-columns: 1fr 320px; } }
.content { font-size: 1.02rem; color: var(--color-text); }
.content h2 { color: var(--color-primary); margin: 2rem 0 1rem; padding-bottom: 0.6rem; border-bottom: 2px solid rgba(245,166,35,0.35); font-size: clamp(1.4rem,3vw,1.8rem); }
.content h2:first-child { margin-top: 0; }
.content h3 { color: var(--color-primary-dark); margin: 1.5rem 0 0.6rem; font-size: 1.2rem; }
.content p { margin-bottom: 1.1rem; line-height: 1.8; }
.content ul, .content ol { margin: 0 0 1.2rem 1.3rem; line-height: 1.8; }
.content ul { list-style: none; }
.content ul li { position: relative; padding-left: 1.3rem; margin-bottom: 0.5rem; }
.content ul li::before { content: '✚'; position: absolute; left: 0; top: 0.05em; color: var(--color-red); font-weight: 700; font-size: 0.85rem; }
.content ol { list-style: decimal; }
.content ol li { margin-bottom: 0.5rem; padding-left: 0.3rem; }
.content a { color: var(--color-primary); text-decoration: underline; text-underline-offset: 2px; font-weight: 600; }
.content a:hover { color: var(--color-gold-dark, var(--color-red)); }
.content strong { color: var(--color-dark); }

.sidebar {
  background: var(--color-bg-warm); border-radius: var(--radius-lg); padding: 1.75rem; align-self: start;
  position: sticky; top: 96px; border-top: 4px solid var(--color-gold);
}
.sidebar h3 { color: var(--color-primary); font-size: 1.2rem; margin-bottom: 0.6rem; }
.sidebar p { font-size: 0.92rem; color: var(--color-muted); }
.sidebar ul { padding-left: 1.1em; font-size: 0.92rem; list-style: disc; }
.sidebar ul li { margin-bottom: 0.35rem; }
.sidebar a { color: var(--color-primary); font-weight: 600; }
.sidebar a:hover { color: var(--color-red); }

/* ==================== BENEFIT CALCULATOR (page + arm-style) ==================== */
.calc-box { background: var(--color-bg-warm); border: 1px solid rgba(23,59,122,0.1); border-radius: var(--radius-lg); padding: 1.75rem; margin: 0.5rem 0 1.75rem; }
.calc-box label { display: block; font-weight: 700; margin-bottom: 0.65rem; color: var(--color-primary); }
.calc-input-row { display: flex; align-items: stretch; gap: 10px; position: relative; }
.calc-input-row .calc-dollar { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); font-weight: 700; color: var(--color-muted); pointer-events: none; }
.calc-input-row input { flex: 1; padding: 0.85rem 0.85rem 0.85rem 1.75rem; font-size: 1.05rem; border: 1.5px solid rgba(23,59,122,0.15); border-radius: var(--radius); font-family: inherit; }
.calc-input-row input:focus { outline: none; border-color: var(--color-gold); box-shadow: 0 0 0 3px rgba(245,166,35,0.2); }
.calc-input-row .btn { flex: 0 0 auto; padding: 0.85rem 1.4rem; }
.calc-result { margin-top: 1.25rem; padding: 1.4rem; background: #fff; border: 1px solid rgba(23,59,122,0.1); border-left: 4px solid var(--color-gold); border-radius: var(--radius); }
.calc-big { font-family: var(--font-heading); font-size: 2.4rem; font-weight: 700; color: var(--color-primary); line-height: 1; }
.calc-big span { font-size: 1.1rem; font-weight: 600; color: var(--color-muted); }
.calc-sub { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1px; color: var(--color-muted); margin: 0.4rem 0 0.75rem; }
.calc-note { font-size: 0.95rem; color: var(--color-muted); margin: 0.4rem 0 0; }
.calc-err { color: var(--color-red); font-weight: 700; margin: 1rem 0 0; }
.calc-disclaimer { font-size: 0.9rem; color: var(--color-muted); background: var(--color-bg-warm); border-radius: var(--radius); padding: 1rem 1.25rem; margin-top: 1.25rem; }

/* ==================== HOMEPAGE: TIMELINE (claim phases) ==================== */
.arm-section-wrap { width: 100%; max-width: 1100px; margin: 0 auto; padding: 0 24px; box-sizing: border-box; }
.arm-fee-eyebrow { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 3px; font-weight: 800; color: var(--color-gold); margin-bottom: 10px; text-align: center; }
.arm-fee-heading { font-size: clamp(1.6rem, 4vw, 2.3rem); font-weight: 700; color: var(--color-dark); margin-bottom: 10px; line-height: 1.25; text-align: center; font-family: var(--font-heading); }
.arm-fee-sub { color: var(--color-muted); max-width: 600px; line-height: 1.7; margin: 0 auto 40px; font-size: 0.98rem; text-align: center; }

.arm-tl-section { background: var(--color-white); padding: 5rem 0; }
.arm-tl-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 36px; justify-content: center; }
.arm-tl-tab { padding: 10px 22px; border-radius: 100px; border: 1.5px solid rgba(23,59,122,0.18); background: #fff; color: var(--color-muted); cursor: pointer; font-size: 0.85rem; font-weight: 700; transition: all .2s; font-family: inherit; }
.arm-tl-tab.active { background: var(--color-primary); border-color: var(--color-primary); color: #fff; }
.arm-tl-track { display: flex; flex-direction: column; max-width: 760px; margin: 0 auto; }
.arm-tl-track.hidden { display: none; }
.arm-tl-phase { display: grid; grid-template-columns: 60px 1fr; cursor: pointer; }
.arm-tl-node { display: flex; flex-direction: column; align-items: center; padding-top: 2px; }
.arm-tl-num { width: 38px; height: 38px; border-radius: 50%; border: 2px solid rgba(23,59,122,0.18); color: var(--color-muted); font-weight: 800; font-size: 0.82rem; display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: all .25s; position: relative; z-index: 1; background:#fff; }
.arm-tl-phase.active .arm-tl-num { background: var(--color-primary); border-color: var(--color-primary); color: #fff; }
.arm-tl-line { width: 2px; flex: 1; background: rgba(23,59,122,0.12); margin: 4px 0; min-height: 20px; }
.arm-tl-body { padding: 0 0 28px 20px; }
.arm-tl-dur { font-size: 0.64rem; text-transform: uppercase; letter-spacing: 2px; color: var(--color-gold-dark, #cf8c12); font-weight: 800; margin-bottom: 3px; }
.arm-tl-title { font-size: 1.05rem; font-weight: 700; color: var(--color-dark); margin-bottom: 4px; line-height: 1.3; font-family: var(--font-heading); }
.arm-tl-desc { font-size: 0.9rem; color: var(--color-muted); line-height: 1.65; }
.arm-tl-detail { font-size: 0.82rem; color: var(--color-muted); line-height: 1.7; margin-top: 10px; max-height: 0; overflow: hidden; opacity: 0; transition: max-height .4s ease, opacity .3s; border-left: 3px solid var(--color-gold); padding-left: 14px; }
.arm-tl-phase.active .arm-tl-detail { max-height: 260px; opacity: 1; }

/* ==================== HOMEPAGE: COMPARISON ==================== */
.arm-cmp-section { background: var(--color-bg-warm); padding: 5rem 0; }
.arm-cmp-outer { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.arm-cmp-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); min-width: 560px; }
.arm-cmp-table thead th { padding: 22px 20px; text-align: left; vertical-align: bottom; background: #fff; border-bottom: 2px solid rgba(23,59,122,0.08); }
.arm-cmp-th-metric { width: 28%; font-size: 0.65rem; text-transform: uppercase; letter-spacing: 1.5px; color: #9aa6b6; font-weight: 700; }
.arm-cmp-th-alone { width: 30%; }
.arm-cmp-th-alone-lbl { font-size: 0.95rem; font-weight: 800; color: #5a6678; }
.arm-cmp-th-alone-sub { font-size: 0.72rem; color: #9aa6b6; margin-top: 3px; }
.arm-cmp-th-firm { width: 42%; border-left: 3px solid var(--color-primary); padding-left: 20px; }
.arm-cmp-badge { display: inline-block; background: var(--color-primary); color: #fff; font-size: 0.58rem; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase; padding: 3px 10px; border-radius: 100px; margin-bottom: 6px; }
.arm-cmp-th-firm-lbl { font-size: 0.95rem; font-weight: 800; color: var(--color-dark); }
.arm-cmp-th-firm-sub { font-size: 0.72rem; color: #9aa6b6; margin-top: 3px; }
.arm-cmp-table tbody tr { border-bottom: 1px solid rgba(23,59,122,0.06); transition: background .15s; }
.arm-cmp-table tbody tr:last-child { border-bottom: none; }
.arm-cmp-table tbody tr:hover { background: #f3f7fd; }
.arm-cmp-table tbody td { padding: 18px 20px; vertical-align: top; }
.arm-cmp-metric { font-weight: 700; font-size: 0.85rem; color: var(--color-dark); }
.arm-cmp-alone { font-size: 0.85rem; }
.arm-cmp-firm { border-left: 3px solid rgba(23,59,122,0.2); padding-left: 20px; font-size: 0.85rem; }
.arm-cmp-bad { display: block; font-weight: 800; color: var(--color-red); margin-bottom: 3px; }
.arm-cmp-good { display: block; font-weight: 800; color: #157a47; margin-bottom: 3px; }
.arm-cmp-note { font-size: 0.72rem; color: #9aa6b6; line-height: 1.5; }

/* ==================== FOOTER ==================== */
.site-footer { background: var(--color-dark); padding: 4rem 0 0; color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem; }
@media (min-width: 600px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; } }
.footer-brand .footer-wordmark, .footer-wordmark { display: inline-block; font-family: var(--font-heading); font-weight: 800; font-size: 1.5rem; letter-spacing: 0.3px; line-height: 1; margin-bottom: 0.9rem; }
.footer-wordmark .fw-blue { color: #fff; }
.footer-wordmark .fw-red { color: #ff6b6b; }
.footer-wordmark .fw-gold { color: var(--color-gold-light); }
.footer-wordmark .fw-cross { color: #ff6b6b; font-weight: 800; margin-left: 2px; }
.footer-brand p { color: rgba(255,255,255,0.55); font-size: 0.9rem; line-height: 1.6; }
.site-footer h4 { font-family: var(--font-heading); color: #fff; font-size: 1rem; margin-bottom: 1.1rem; padding-bottom: 0.5rem; border-bottom: 1px solid rgba(245,166,35,0.3); }
.site-footer .footer-grid > div > a { display: block; color: rgba(255,255,255,0.6); font-size: 0.9rem; padding: 4px 0; transition: var(--transition); }
.site-footer .footer-grid > div > a:hover { color: var(--color-gold-light); padding-left: 4px; }
.footer-disclaimer { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,0.1); font-size: 0.82rem; line-height: 1.6; color: rgba(255,255,255,0.5); max-width: 1000px; }
.footer-disclaimer strong { color: rgba(255,255,255,0.75); }
.footer-bottom { margin-top: 1.5rem; padding: 1.5rem 0; border-top: 1px solid rgba(255,255,255,0.07); text-align: center; color: rgba(255,255,255,0.4); font-size: 0.8rem; }
.footer-bottom a { color: rgba(255,255,255,0.55); }
.footer-bottom a:hover { color: var(--color-gold-light); }

/* ==================== CHAT WIDGET ==================== */
.chat-launcher {
  position: fixed; bottom: 22px; right: 22px; z-index: 1200; width: 60px; height: 60px; border-radius: 50%;
  background: var(--color-primary); border: none; cursor: pointer; box-shadow: 0 8px 28px rgba(23,59,122,0.4);
  display: flex; align-items: center; justify-content: center; transition: var(--transition);
}
.chat-launcher:hover { background: var(--color-primary-dark); transform: scale(1.06); }
.chat-launcher::after { content: ''; position: absolute; top: 6px; right: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--color-red); border: 2px solid #fff; }
.chat-panel {
  position: fixed; bottom: 92px; right: 22px; z-index: 1200; width: min(380px, calc(100vw - 32px)); height: min(560px, calc(100vh - 130px));
  background: #fff; border-radius: var(--radius-lg); box-shadow: 0 24px 70px rgba(0,0,0,0.3); display: none; flex-direction: column; overflow: hidden;
}
.chat-panel.open { display: flex; }
.chat-header { background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark)); color: #fff; padding: 1rem 1.25rem; display: flex; justify-content: space-between; align-items: center; gap: 0.5rem; }
.chat-header strong { font-family: var(--font-heading); font-size: 1.05rem; }
.chat-header .sub { font-size: 0.72rem; color: rgba(255,255,255,0.75); margin-top: 2px; }
.chat-close { background: none; border: none; color: #fff; font-size: 1.6rem; line-height: 1; cursor: pointer; }
.chat-body { flex: 1; overflow-y: auto; padding: 1.1rem; display: flex; flex-direction: column; gap: 0.7rem; background: var(--color-bg); }
.chat-msg { max-width: 85%; padding: 0.7rem 0.95rem; border-radius: 14px; font-size: 0.9rem; line-height: 1.5; }
.chat-msg.bot { background: #fff; border: 1px solid rgba(23,59,122,0.1); color: var(--color-text); align-self: flex-start; border-bottom-left-radius: 4px; }
.chat-msg.user { background: var(--color-primary); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }
.chat-input-row { display: flex; gap: 8px; padding: 0.8rem; border-top: 1px solid rgba(23,59,122,0.1); background: #fff; }
.chat-input-row input { flex: 1; padding: 0.7rem 0.9rem; border: 1.5px solid rgba(23,59,122,0.15); border-radius: 50px; font-family: inherit; font-size: 0.9rem; }
.chat-input-row input:focus { outline: none; border-color: var(--color-primary); }
.chat-input-row button { background: var(--color-gold); color: var(--color-dark); border: none; border-radius: 50px; padding: 0 1.1rem; font-weight: 800; cursor: pointer; font-size: 0.9rem; }
.chat-input-row button:hover { background: var(--color-gold-light); }

/* ==================== STICKY MOBILE CTA ==================== */
.sticky-mobile-cta { position: fixed; bottom: 0; left: 0; right: 0; z-index: 1100; background: var(--color-primary); padding: 10px 14px; transform: translateY(100%); transition: transform .3s ease; display: none; }
.sticky-mobile-cta.is-visible { transform: translateY(0); }
.sticky-mobile-cta .review { display: block; text-align: center; background: var(--color-gold); color: var(--color-dark); font-weight: 800; padding: 0.85rem; border-radius: 10px; font-size: 0.95rem; }
@media (max-width: 760px) { .sticky-mobile-cta { display: block; } body.sticky-cta-on { padding-bottom: 70px; } .chat-launcher { bottom: 78px; } }

/* ==================== SCROLL REVEAL ==================== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ==================== MOBILE ==================== */
@media (max-width: 768px) {
  .arm-tl-phase { grid-template-columns: 52px 1fr; }
  .arm-tl-num { width: 34px; height: 34px; }
  .split-text { padding: 2.5rem 1.5rem; }
}
@media (max-width: 640px) {
  .section, .st-section { padding: 3.5rem 0; }
  .arm-tl-section, .arm-cmp-section { padding: 3.5rem 0; }
  .arm-section-wrap { padding: 0 16px; }
  .arm-cmp-outer { overflow-x: visible; }
  .arm-cmp-table { min-width: unset; width: 100%; border-radius: 0; box-shadow: none; }
  .arm-cmp-table thead { display: none; }
  .arm-cmp-table tbody tr { display: block; background: #fff; border-radius: 14px; margin-bottom: 14px; box-shadow: 0 3px 16px rgba(0,0,0,.08); border: 1px solid rgba(23,59,122,.06) !important; overflow: hidden; }
  .arm-cmp-table tbody tr:hover { background: #fff; }
  .arm-cmp-table td { display: block; padding: 14px 18px; border-bottom: 1px solid rgba(23,59,122,.05); }
  .arm-cmp-table td:last-child { border-bottom: none; }
  .arm-cmp-metric { background: var(--color-bg-warm); font-size: .68rem; text-transform: uppercase; letter-spacing: 1px; color: var(--color-primary); padding: 10px 18px; }
  .arm-cmp-alone::before { content: "Sin abogado"; display: block; font-size: .6rem; font-weight: 800; text-transform: uppercase; letter-spacing: 1.5px; color: var(--color-red); margin-bottom: 6px; }
  .arm-cmp-firm { border-left: 3px solid var(--color-primary); padding-left: 15px; }
  .arm-cmp-firm::before { content: "Con un abogado"; display: block; font-size: .6rem; font-weight: 800; text-transform: uppercase; letter-spacing: 1.5px; color: var(--color-primary); margin-bottom: 6px; }
}

/* helper used by content */
:root { --color-gold-dark: #cf8c12; }

/* faq_block wrapper + form wrap used by interior pages */
.section-alt { background: var(--color-bg-warm); padding: 5rem 0; }
.section-alt h2 { text-align: center; }
.hero-form-wrap { width: 100%; }
