/* ============================================================
   OEP INFOCA 2026 · Stylesheet
   CCOO EMA INFOCA · infoema.com
   Identidad corporativa CCOO dominante
   ============================================================ */

/* ---------- DESIGN TOKENS ---------- */
:root {
  /* CCOO — Paleta oficial dominante */
  --ccoo-red: #d52b1e;
  --ccoo-red-dark: #a81810;
  --ccoo-red-deep: #7a0f08;
  --ccoo-red-soft: #fde8e6;
  --ccoo-red-wash: #fef4f2;
  
  /* INFOCA — Verde forestal */
  --infoca-green: #2d5a3d;
  --infoca-green-dark: #1a3a27;
  --infoca-green-soft: #e6efe8;
  
  /* Neutros */
  --ink: #1a1a1a;
  --ink-soft: #3a3a3a;
  --ink-muted: #6b6b6b;
  --ink-subtle: #9ca3af;
  
  --paper: #fafaf8;
  --paper-white: #ffffff;
  --paper-warm: #f5f2ed;
  
  --line: #e5e3dd;
  --line-soft: #f0ede7;
  --line-strong: #c8c4b8;
  
  --amber-soft: #fef3e2;
  
  /* Tipografía */
  --font-display: 'Fraunces', 'Playfair Display', Georgia, serif;
  --font-body: 'Instrument Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', 'Courier New', monospace;
  
  --container: 1180px;
  --container-narrow: 800px;
  
  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 18px;
  
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.09);
  --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.13);
  --shadow-red: 0 8px 24px rgba(213, 43, 30, 0.22);
  
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- RESET ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 120px; }

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); text-decoration: none; }

a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 3px solid var(--ccoo-red);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}

::selection { background: var(--ccoo-red); color: white; }

/* ---------- SKIP LINK ---------- */
.skip-link {
  position: absolute;
  top: -60px;
  left: 20px;
  background: var(--ccoo-red);
  color: white;
  padding: 12px 24px;
  z-index: 200;
  font-weight: 700;
  border-radius: var(--r-sm);
  transition: top 0.2s;
}
.skip-link:focus { top: 20px; color: white; }

/* ---------- UTILITIES ---------- */
.wrap { max-width: var(--container); margin: 0 auto; padding: 0 28px; }
.wrap-narrow { max-width: var(--container-narrow); margin: 0 auto; padding: 0 28px; }

/* ============================================
   TOP BAR CCOO — Marca siempre visible
   ============================================ */
.topbar {
  background: var(--ccoo-red);
  color: white;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 10px 0;
  font-family: var(--font-mono);
  position: relative;
  z-index: 101;
}
.topbar .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.topbar .left {
  display: flex;
  align-items: center;
  gap: 10px;
}
.topbar .left::before {
  content: '';
  width: 6px;
  height: 6px;
  background: white;
  border-radius: 50%;
  animation: pulse 2s infinite;
}
.topbar a { color: white; transition: opacity 0.2s; }
.topbar a:hover { opacity: 0.75; color: white; }
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
@media (max-width: 700px) {
  .topbar { font-size: 11px; }
  .topbar .right { display: none; }
}

/* ============================================
   HEADER PRINCIPAL
   ============================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 250, 248, 0.94);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 4px 0 var(--ccoo-red);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 18px;
  padding-bottom: 18px;
}

.brand { display: flex; align-items: center; gap: 14px; color: var(--ink); }

/* Logo CCOO EMA INFOCA */
.brand-logo {
  width: 52px;
  height: 52px;
  background: var(--ccoo-red);
  border-radius: 6px;
  display: grid;
  place-items: center;
  position: relative;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(213, 43, 30, 0.25);
  overflow: hidden;
}
.brand-logo::before {
  content: 'CC.OO';
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 14px;
  color: white;
  letter-spacing: -0.02em;
  line-height: 1;
  position: relative;
  z-index: 2;
}
.brand-logo::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 8px;
  background: var(--infoca-green);
}

.brand-text { line-height: 1.15; }
.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.brand-sub {
  font-size: 10.5px;
  color: var(--ccoo-red);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-top: 3px;
  font-family: var(--font-mono);
}

.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--ccoo-red);
  color: white;
  padding: 12px 22px;
  border-radius: 100px;
  font-weight: 700;
  font-size: 14px;
  transition: all 0.25s var(--ease);
  box-shadow: 0 2px 0 var(--ccoo-red-dark);
}
.header-cta:hover {
  background: var(--ccoo-red-dark);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 0 var(--ccoo-red-deep);
}
.header-cta .arrow { transition: transform 0.3s var(--ease); }
.header-cta:hover .arrow { transform: translateX(3px); }

@media (max-width: 700px) {
  .brand-name { font-size: 16px; }
  .brand-sub { font-size: 9.5px; }
  .header-cta { padding: 10px 16px; font-size: 13px; }
  .brand-logo { width: 44px; height: 44px; }
  .brand-logo::before { font-size: 12px; }
}

/* ============================================
   HERO
   ============================================ */
.hero {
  padding: 80px 28px 60px;
  position: relative;
  overflow: hidden;
  background: var(--paper-white);
}

.hero::before {
  content: '';
  position: absolute;
  top: -120px;
  right: -200px;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(213, 43, 30, 0.08) 0%, transparent 60%);
  border-radius: 50%;
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -100px;
  left: -100px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(45, 90, 61, 0.05) 0%, transparent 60%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-inner {
  max-width: var(--container);
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.hero-seal {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--ccoo-red);
  color: white;
  padding: 8px 20px;
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 28px;
  box-shadow: var(--shadow-red);
}
.hero-seal::before {
  content: '';
  width: 6px;
  height: 6px;
  background: white;
  border-radius: 50%;
}

.hero-meta {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 32px;
  padding-bottom: 20px;
  border-bottom: 2px solid var(--ccoo-red);
  flex-wrap: wrap;
}
.hero-meta strong { color: var(--ccoo-red); font-weight: 700; }
.hero-meta .divider { opacity: 0.3; margin: 0 4px; }

.hero h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.6rem, 6.5vw, 5.2rem);
  line-height: 0.98;
  letter-spacing: -0.035em;
  color: var(--ink);
  margin-bottom: 32px;
  max-width: 15ch;
}
.hero h1 .line-1 { display: block; font-weight: 600; }
.hero h1 .line-2 { 
  display: block; 
  font-style: italic; 
  color: var(--ccoo-red); 
  font-weight: 400;
}
.hero h1 .amp {
  font-weight: 300;
  color: var(--ink-muted);
  font-style: italic;
}

.hero-lead {
  font-size: clamp(1.1rem, 1.8vw, 1.25rem);
  color: var(--ink-soft);
  max-width: 620px;
  line-height: 1.55;
  margin-bottom: 48px;
}
.hero-lead strong { color: var(--ccoo-red); font-weight: 700; }

/* Stats */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin: 48px 0 40px;
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  padding: 28px 0;
  position: relative;
}
.hero-stats::before {
  content: '';
  position: absolute;
  top: -2px;
  left: 0;
  width: 120px;
  height: 2px;
  background: var(--ccoo-red);
}
.hero-stats::after {
  content: '';
  position: absolute;
  bottom: -2px;
  right: 0;
  width: 120px;
  height: 2px;
  background: var(--ccoo-red);
}

.hero-stat {
  position: relative;
  padding: 0 20px;
}
.hero-stat:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 10%;
  bottom: 10%;
  width: 1px;
  background: var(--line);
}
.hero-stat:first-child { padding-left: 0; }
.hero-stat:last-child { padding-right: 0; }

.stat-num {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  font-weight: 600;
  line-height: 0.95;
  color: var(--ccoo-red);
  letter-spacing: -0.035em;
  font-feature-settings: "tnum";
  display: flex;
  align-items: baseline;
  gap: 4px;
}
.stat-num .unit {
  font-size: 0.5em;
  font-weight: 400;
  color: var(--ink-muted);
  font-style: italic;
}
.stat-label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-muted);
  margin-top: 8px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
}

@media (max-width: 700px) {
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 24px 0; }
  .hero-stat:nth-child(2)::after { display: none; }
  .hero-stat { padding: 0 16px; }
}

/* Hero actions */
.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 28px;
  border-radius: 100px;
  font-weight: 700;
  font-size: 15px;
  transition: all 0.3s var(--ease);
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  letter-spacing: 0.01em;
}
.btn .arrow { transition: transform 0.3s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

.btn-primary {
  background: var(--ccoo-red);
  color: white;
  box-shadow: 0 3px 0 var(--ccoo-red-dark);
}
.btn-primary:hover {
  background: var(--ccoo-red-dark);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 5px 0 var(--ccoo-red-deep);
}

.btn-secondary {
  background: var(--paper-white);
  color: var(--ink);
  border: 2px solid var(--ink);
}
.btn-secondary:hover { background: var(--ink); color: white; }

.btn-whatsapp { background: #25d366; color: #0b3d1f; font-weight: 700; box-shadow: 0 3px 0 #1a9b48; }
.btn-whatsapp:hover { background: #1fb954; transform: translateY(-2px); box-shadow: 0 5px 0 #127a38; }

/* TOC Chips */
.toc-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
  margin-top: 40px;
}
.toc-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: var(--paper-white);
  border: 1px solid var(--line);
  color: var(--ink-soft);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.2s var(--ease);
}
.toc-chip::before {
  content: '';
  width: 5px;
  height: 5px;
  background: var(--ccoo-red);
  border-radius: 50%;
}
.toc-chip:hover {
  background: var(--ccoo-red);
  color: white;
  border-color: var(--ccoo-red);
}
.toc-chip:hover::before { background: white; }

/* ============================================
   DIVIDER CON MARCA CCOO
   ============================================ */
.brand-divider {
  padding: 24px 28px;
  background: var(--ink);
  color: white;
  position: relative;
  overflow: hidden;
}
.brand-divider::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 3px;
  background: var(--ccoo-red);
}
.brand-divider .wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  text-align: center;
}
.brand-divider strong { color: var(--ccoo-red); }
.brand-divider .sep { opacity: 0.3; }

/* ============================================
   ALERT BANNER
   ============================================ */
.alert-banner {
  background: linear-gradient(135deg, var(--amber-soft), #fff8e7);
  border: 2px solid var(--ccoo-red);
  padding: 32px 32px 28px;
  border-radius: var(--r-lg);
  margin: 48px auto;
  max-width: var(--container-narrow);
  display: flex;
  gap: 20px;
  align-items: flex-start;
  position: relative;
  box-shadow: var(--shadow-md);
}
.alert-banner::before {
  content: 'CCOO EMA INFOCA INFORMA';
  position: absolute;
  top: -12px;
  left: 24px;
  background: var(--ccoo-red);
  color: white;
  padding: 4px 14px;
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
}
.alert-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: var(--ccoo-red);
  color: white;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 18px;
  font-family: var(--font-display);
}
.alert-content strong {
  display: block;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.alert-content p { font-size: 15.5px; color: var(--ink-soft); line-height: 1.6; margin: 0; }

/* ============================================
   SECTIONS BASE
   ============================================ */
section { padding: 100px 28px; position: relative; }

.section-kicker {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ccoo-red);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 16px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
}
.section-kicker::before {
  content: '';
  width: 30px;
  height: 2px;
  background: var(--ccoo-red);
}

.section-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin-bottom: 20px;
  max-width: 620px;
}
.section-title em { font-style: italic; color: var(--ccoo-red); font-weight: 400; }

.section-intro {
  font-size: 1.1rem;
  color: var(--ink-soft);
  max-width: 620px;
  line-height: 1.55;
  margin-bottom: 56px;
}

/* ============================================
   PLAZAS SECTION
   ============================================ */
.plazas-section {
  background: var(--paper-white);
  border-top: 4px solid var(--ccoo-red);
  border-bottom: 1px solid var(--line);
}

.plazas-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 32px;
}
.plazas-table thead th {
  text-align: left;
  padding: 18px 20px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: white;
  background: var(--ink);
  border-bottom: 3px solid var(--ccoo-red);
}
.plazas-table th:first-child { padding-left: 24px; }
.plazas-table th:last-child, .plazas-table td:last-child { text-align: right; }
.plazas-table tbody td {
  padding: 22px 20px;
  border-bottom: 1px solid var(--line-soft);
  font-size: 16px;
  transition: background 0.2s;
}
.plazas-table tbody td:first-child { padding-left: 24px; }
.plazas-table tbody tr:hover td { background: var(--ccoo-red-wash); }
.plazas-table .role {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.005em;
}
.plazas-table .group {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}
.plazas-table .total td {
  background: var(--ccoo-red);
  color: white;
  border-bottom: none;
  padding: 24px 20px;
}
.plazas-table .total .role { color: white; font-family: var(--font-display); font-size: 18px; }
.plazas-table .total .group { color: rgba(255,255,255,0.7); }

.plaza-count {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 26px;
  letter-spacing: -0.02em;
}
.plaza-count.hot { color: var(--ccoo-red); }
.plaza-count .label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 400;
  color: var(--ink-subtle);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

@media (max-width: 700px) {
  .plazas-table th:nth-child(2), .plazas-table td:nth-child(2) { display: none; }
  .plazas-table tbody td { padding: 16px 14px; font-size: 14px; }
  .plaza-count { font-size: 20px; }
}

/* Reserva discapacidad */
.reserve-note {
  background: var(--ccoo-red-wash);
  border: 2px solid var(--ccoo-red-soft);
  border-left: 4px solid var(--ccoo-red);
  padding: 28px 32px;
  border-radius: var(--r-md);
  margin-top: 48px;
  display: flex;
  gap: 20px;
  align-items: center;
}
.reserve-icon {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  background: var(--ccoo-red);
  color: white;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 24px;
}
.reserve-note strong {
  font-family: var(--font-display);
  font-size: 17px;
  color: var(--ink);
  display: block;
  margin-bottom: 4px;
}
.reserve-note p { color: var(--ink-soft); margin: 0; font-size: 15px; }

/* ============================================
   REQUISITOS CARDS
   ============================================ */
.reqs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}
.req-card {
  background: var(--paper-white);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 28px 26px;
  transition: all 0.3s var(--ease);
  position: relative;
  overflow: hidden;
}
.req-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 0;
  height: 3px;
  background: var(--ccoo-red);
  transition: width 0.4s var(--ease);
}
.req-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--ccoo-red);
}
.req-card:hover::before { width: 100%; }

.req-number {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ccoo-red);
  letter-spacing: 0.1em;
  margin-bottom: 16px;
  display: block;
  font-weight: 700;
}
.req-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--r-sm);
  background: var(--ccoo-red-wash);
  color: var(--ccoo-red);
  display: grid;
  place-items: center;
  font-size: 22px;
  margin-bottom: 18px;
}
.req-card h4 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 10px;
  letter-spacing: -0.015em;
}
.req-card p { font-size: 15px; color: var(--ink-muted); line-height: 1.6; margin: 0; }

/* ============================================
   STEPS
   ============================================ */
.steps-intro {
  background: var(--paper-white);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  position: relative;
}
.steps-intro::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 4px;
  background: var(--ccoo-red);
}

.steps {
  counter-reset: step;
  max-width: var(--container-narrow);
  margin: 0 auto;
}

.step {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 32px;
  padding: 48px 0;
  border-bottom: 1px dashed var(--line-strong);
  position: relative;
}
.step:first-child { padding-top: 20px; }
.step:last-child { border-bottom: none; padding-bottom: 20px; }

.step-marker {
  counter-increment: step;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  position: sticky;
  top: 130px;
  align-self: start;
}
.step-num {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 56px;
  line-height: 1;
  color: var(--ccoo-red);
  letter-spacing: -0.04em;
  font-feature-settings: "tnum";
}
.step-num::before { content: "0" counter(step); }
.step-line {
  width: 2px;
  height: 60px;
  background: linear-gradient(var(--ccoo-red), transparent);
}

.step-body h3 {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.3vw, 1.8rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 16px;
  color: var(--ink);
}
.step-body p {
  color: var(--ink-soft);
  margin-bottom: 16px;
  font-size: 16.5px;
  line-height: 1.65;
}
.step-body strong { color: var(--ink); font-weight: 700; }
.step-body em { font-style: italic; color: var(--ccoo-red); }

.step-body ul, .step-body ol {
  margin: 20px 0 20px 4px;
  list-style: none;
}
.step-body ul li, .step-body ol li {
  color: var(--ink-soft);
  margin-bottom: 10px;
  padding-left: 24px;
  position: relative;
  font-size: 16px;
}
.step-body ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 11px;
  width: 14px;
  height: 2px;
  background: var(--ccoo-red);
}
.step-body ol { counter-reset: substep; }
.step-body ol li::before {
  counter-increment: substep;
  content: counter(substep) ".";
  position: absolute;
  left: 0;
  top: 0;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ccoo-red);
  font-weight: 700;
}

.step-body a {
  color: var(--ccoo-red);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
  font-weight: 600;
  transition: all 0.2s;
}
.step-body a:hover { color: var(--ccoo-red-dark); background: var(--ccoo-red-wash); }

.step-callout {
  margin-top: 24px;
  padding: 22px 26px;
  background: var(--paper-warm);
  border-radius: var(--r-md);
  border-left: 4px solid var(--ccoo-red);
  font-size: 15.5px;
  color: var(--ink-soft);
  line-height: 1.6;
}
.step-callout strong {
  color: var(--ccoo-red);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 12px;
  display: block;
  margin-bottom: 8px;
  font-family: var(--font-mono);
  font-weight: 700;
}

.step-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  padding: 13px 24px;
  background: var(--ccoo-red);
  color: white !important;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 700;
  transition: all 0.25s var(--ease);
  text-decoration: none !important;
  box-shadow: 0 3px 0 var(--ccoo-red-dark);
}
.step-link:hover {
  background: var(--ccoo-red-dark);
  color: white !important;
  transform: translateY(-2px);
  box-shadow: 0 5px 0 var(--ccoo-red-deep);
}
.step-link .arrow { transition: transform 0.3s var(--ease); }
.step-link:hover .arrow { transform: translateX(4px); }

/* ============================================
   RESPONSIVE STEPS - Rediseño móvil
   ============================================ */
@media (max-width: 760px) {
  /* Rompemos el grid de 2 columnas para pasar a 1 columna */
  .step {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 36px 0 40px;
  }
  
  /* El marker deja de ser sticky y se convierte en una "etiqueta de paso" horizontal */
  .step-marker {
    position: static;
    flex-direction: row;
    align-items: center;
    gap: 16px;
    align-self: start;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--ccoo-red);
    width: 100%;
  }
  
  /* Número grande pero proporcionado */
  .step-num {
    font-size: 52px;
    color: var(--ccoo-red);
    line-height: 0.85;
    margin: 0;
  }
  
  /* La línea vertical desaparece; la línea horizontal del border-bottom la sustituye */
  .step-line {
    display: none;
  }
  
  /* Añadimos una etiqueta "PASO X" tras el número */
  .step-marker::after {
    content: 'PASO';
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;
    color: var(--ink-muted);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-left: -4px;
    padding-top: 18px;
  }
  
  /* El body ocupa todo el ancho */
  .step-body {
    width: 100%;
  }
  
  .step-body h3 {
    font-size: 1.5rem;
    margin-bottom: 14px;
    line-height: 1.2;
  }
  
  .step-body p {
    font-size: 16px;
    line-height: 1.6;
  }
  
  .step-body ul li, .step-body ol li {
    font-size: 15.5px;
    padding-left: 22px;
  }
  
  .step-callout {
    padding: 18px 20px;
    font-size: 15px;
  }
  
  .step-link {
    padding: 14px 22px;
    font-size: 14px;
  }
}

/* Móviles muy pequeños (≤380px) */
@media (max-width: 380px) {
  .step {
    padding: 28px 0 32px;
  }
  .step-num {
    font-size: 44px;
  }
  .step-body h3 {
    font-size: 1.3rem;
  }
  .step-body p {
    font-size: 15px;
  }
}

/* ============================================
   RESPONSIVE SECTIONS - Móvil optimizado
   ============================================ */
@media (max-width: 760px) {
  /* Secciones más compactas en móvil */
  section {
    padding: 64px 20px;
  }
  
  .wrap-narrow, .wrap {
    padding: 0 20px;
  }
  
  /* Títulos de sección más ajustados */
  .section-title {
    font-size: 2rem;
    line-height: 1.1;
  }
  
  .section-intro {
    font-size: 1rem;
  }
  
  /* Hero más compacto */
  .hero {
    padding: 50px 20px 40px;
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .hero-lead {
    font-size: 1.05rem;
  }
  
  /* Ajustes al header en móvil */
  .site-header .wrap {
    padding-top: 12px;
    padding-bottom: 12px;
  }
  
  .brand-logo {
    width: 44px;
    height: 44px;
  }
  
  .brand-name {
    font-size: 15px;
    line-height: 1.2;
  }
  
  .brand-sub {
    font-size: 10px;
  }
  
  /* Videotutoriales próximamente más proporcionados en móvil */
  .video-coming {
    padding: 28px 20px;
  }
  
  .video-coming h4 {
    font-size: 1.2rem;
  }
  
  .video-coming p {
    font-size: 14.5px;
  }
  
  /* Tasas card en móvil */
  .tasa-card {
    padding: 28px 22px;
  }
  
  .tasa-amount {
    font-size: 2.6rem;
  }
  
  /* Méritos cajas */
  .meritos-box {
    padding: 24px 20px;
  }
  
  .meritos-box h4 {
    font-size: 1.15rem;
    flex-wrap: wrap;
  }
  
  .merito-item {
    padding: 12px 0;
    flex-wrap: wrap;
    gap: 8px;
  }
  
  .merito-name {
    font-size: 14.5px;
  }
  
  .merito-points {
    font-size: 16px;
  }
  
  /* FAQ en móvil */
  .faq-item summary {
    padding: 22px 0;
    font-size: 1.05rem;
    gap: 16px;
  }
  
  .faq-item summary::after {
    font-size: 26px;
  }
  
  .faq-answer {
    font-size: 15px;
  }
  
  /* Requisitos cards */
  .req-card {
    padding: 24px 22px;
  }
  
  /* Campos del modelo 046 */
  .field {
    padding: 18px 20px;
  }
  
  .field-value {
    font-size: 14px;
    padding: 8px 12px;
    word-break: break-word;
  }
  
  /* Ejemplares en móvil: apilados */
  .ejemplar {
    padding: 22px 20px;
  }
  
  /* Modelo 046 títulos */
  .modelo-h3 {
    font-size: 1.45rem;
  }
  
  /* Tabla de plazas más compacta */
  .plazas-table tbody td {
    padding: 14px 12px;
    font-size: 14px;
  }
  
  .plazas-table .role {
    font-size: 14.5px;
  }
  
  .plazas-table thead th {
    padding: 12px 10px;
    font-size: 10px;
  }
  
  .plaza-count {
    font-size: 20px;
  }
  
  /* Alert banner */
  .alert-banner {
    padding: 28px 22px 22px;
    flex-direction: column;
    gap: 14px;
    margin: 32px 20px;
  }
  
  .alert-banner::before {
    font-size: 9px;
    letter-spacing: 0.12em;
  }
  
  .alert-icon {
    width: 36px;
    height: 36px;
    font-size: 16px;
  }
  
  .alert-content strong {
    font-size: 15px;
  }
  
  .alert-content p {
    font-size: 14.5px;
  }
  
  /* Reserva discapacidad */
  .reserve-note {
    padding: 24px 22px;
    flex-direction: column;
    text-align: center;
    gap: 14px;
    margin-top: 36px;
  }
  
  .reserve-icon {
    margin: 0 auto;
  }
  
  /* CTA final */
  .cta-final {
    padding: 80px 24px;
  }
  
  .cta-final h2 {
    font-size: 2rem;
  }
  
  .cta-final p {
    font-size: 1rem;
  }
  
  /* Brand divider más compacto */
  .brand-divider {
    padding: 20px 20px;
  }
  
  .brand-divider .wrap {
    font-size: 11px;
    gap: 8px;
    letter-spacing: 0.1em;
  }
  
  /* Sesiones banner */
  .sesiones-banner {
    padding: 32px 22px;
    gap: 18px;
  }
  
  .sesiones-icon {
    width: 64px;
    height: 64px;
    font-size: 30px;
  }
  
  .sesiones-content h3 {
    font-size: 1.35rem;
  }
  
  .sesiones-content p {
    font-size: 14.5px;
  }
  
  /* TOC chips más legibles */
  .toc-chip {
    font-size: 12px;
    padding: 7px 14px;
  }
  
  /* Hero stats */
  .hero-stats {
    padding: 22px 0;
  }
  
  .stat-num {
    font-size: 2.2rem;
  }
  
  .stat-label {
    font-size: 10px;
  }
  
  /* Botones */
  .btn {
    padding: 14px 22px;
    font-size: 14px;
    width: auto;
  }
}

/* ============================================
   TASAS - Fondo oscuro con rojo
   ============================================ */
.tasas-section {
  background: var(--ink);
  color: white;
  position: relative;
}
.tasas-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--ccoo-red);
}
.tasas-section .section-title,
.tasas-section .section-intro { color: white; }
.tasas-section .section-title em { color: #ff6b6b; }
.tasas-section .section-intro { color: rgba(255,255,255,0.75); }
.tasas-section .section-kicker { color: #ff6b6b; }
.tasas-section .section-kicker::before { background: #ff6b6b; }

.tasas-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
}
.tasa-card {
  background: rgba(255, 255, 255, 0.04);
  padding: 36px 28px;
  border-radius: var(--r-md);
  border: 1px solid rgba(255, 255, 255, 0.1);
  text-align: left;
  position: relative;
  transition: all 0.3s var(--ease);
}
.tasa-card:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.07);
  border-color: var(--ccoo-red);
}
.tasa-label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: #ff6b6b;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.tasa-label::before {
  content: '';
  width: 20px;
  height: 2px;
  background: var(--ccoo-red);
}
.tasa-amount {
  font-family: var(--font-display);
  font-size: 3.2rem;
  font-weight: 500;
  color: white;
  line-height: 0.95;
  letter-spacing: -0.04em;
  margin-bottom: 16px;
  font-feature-settings: "tnum";
}
.tasa-amount .currency {
  font-size: 0.6em;
  font-weight: 400;
  color: rgba(255,255,255,0.5);
}
.tasa-desc {
  font-size: 14.5px;
  color: rgba(255,255,255,0.7);
  line-height: 1.55;
  padding-top: 16px;
  border-top: 1px dashed rgba(255,255,255,0.15);
}

@media (max-width: 800px) {
  .tasas-grid { grid-template-columns: 1fr; }
}

/* Exenciones */
.exenciones {
  background: rgba(255, 255, 255, 0.04);
  padding: 40px;
  border-radius: var(--r-md);
  border: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 48px;
}
.exenciones h4 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: 20px;
  letter-spacing: -0.015em;
  color: white;
}
.exenciones ul {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 6px;
}
.exenciones li {
  padding: 12px 0 12px 32px;
  position: relative;
  color: rgba(255,255,255,0.75);
  font-size: 15px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.exenciones li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 12px;
  width: 22px;
  height: 22px;
  background: var(--ccoo-red);
  color: white;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
}

/* ============================================
   MODELO 046
   ============================================ */
.modelo-section { background: var(--paper-white); border-top: 1px solid var(--line); }

.video-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--ccoo-red);
  color: white;
  padding: 10px 20px;
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 20px;
  box-shadow: var(--shadow-red);
}
.video-label::before {
  content: '';
  border-left: 8px solid white;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
}

.video-wrap {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  background: var(--ink);
  border-radius: var(--r-lg);
  overflow: hidden;
  margin: 20px 0 40px;
  box-shadow: var(--shadow-lg);
  border: 3px solid var(--ccoo-red);
}
.video-wrap iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: 0;
}

/* ============================================
   VIDEOTUTORIAL - bloque integrado en los pasos
   ============================================ */
.videotutorial {
  background: linear-gradient(180deg, #1a1a1a 0%, #0a0a0a 100%);
  border-radius: var(--r-lg);
  margin: 24px 0 8px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25), 0 4px 8px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(213, 43, 30, 0.35);
}
.videotutorial::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--ccoo-red) 0%, #ffb300 100%);
  z-index: 2;
}

.videotutorial-header {
  padding: 22px 26px 18px;
  color: white;
}
.videotutorial-badge {
  display: inline-block;
  background: var(--ccoo-red);
  color: white;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 5px 12px;
  border-radius: 4px;
  margin-bottom: 12px;
}
.videotutorial-header h4 {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  font-weight: 600;
  color: white;
  margin: 0 0 6px;
  letter-spacing: -0.01em;
  line-height: 1.3;
}
.videotutorial-sub {
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.65);
  margin: 0;
  line-height: 1.5;
}

/* Contenedor del iframe — formato 16:9 por defecto */
.videotutorial-embed {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 */
  background: #000;
  overflow: hidden;
}
/* Variante cuadrada 1:1 */
.videotutorial-embed--square {
  padding-bottom: 100%;
  max-width: 600px;
  margin: 0 auto;
}
.videotutorial-embed iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.videotutorial-footer {
  padding: 14px 26px 18px;
  display: flex;
  justify-content: flex-end;
  background: rgba(255, 255, 255, 0.03);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.videotutorial-link {
  color: rgba(255, 255, 255, 0.75);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 4px;
  transition: all 0.2s var(--ease);
}
.videotutorial-link:hover {
  color: white;
  background: rgba(213, 43, 30, 0.2);
}
.videotutorial-link span {
  color: var(--ccoo-red);
  font-weight: 700;
  transition: transform 0.2s var(--ease);
}
.videotutorial-link:hover span {
  transform: translate(2px, -2px);
}

@media (max-width: 700px) {
  .videotutorial-header { padding: 18px 20px 14px; }
  .videotutorial-footer { padding: 12px 20px 14px; }
}

/* Videotutoriales a pantalla completa en móvil —
   rompen los paddings laterales del section (20px) y del propio step-body */
@media (max-width: 760px) {
  .videotutorial {
    margin-left: -20px;
    margin-right: -20px;
    border-radius: 0;
    border-left: 0;
    border-right: 0;
  }
  .videotutorial-embed--square {
    max-width: none;
  }
}

.modelo-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin: 32px 0 60px;
}

.modelo-h3 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 40px 0 12px;
  padding-top: 40px;
  border-top: 2px solid var(--ccoo-red);
  position: relative;
}
.modelo-h3::before {
  content: '';
  position: absolute;
  top: -2px;
  left: 0;
  width: 60px;
  height: 2px;
  background: var(--ink);
}
.modelo-intro-text {
  color: var(--ink-soft);
  font-size: 16.5px;
  margin-bottom: 24px;
}

/* Fields */
.fields {
  background: var(--paper-warm);
  border: 1px solid var(--line);
  border-left: 4px solid var(--ccoo-red);
  border-radius: var(--r-md);
  overflow: hidden;
  margin: 24px 0;
}
.field {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 24px;
  padding: 22px 28px;
  border-bottom: 1px solid var(--line-soft);
  align-items: baseline;
}
.field:last-child { border-bottom: none; }
.field:hover { background: var(--paper-white); }
.field-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ccoo-red);
}
.field-value {
  font-family: var(--font-mono);
  font-size: 15px;
  color: var(--ink);
  background: var(--paper-white);
  padding: 10px 16px;
  border-radius: var(--r-sm);
  border: 1px dashed var(--ccoo-red);
  display: inline-block;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.field-note {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--ink-muted);
  margin-top: 8px;
  display: block;
  line-height: 1.5;
}

@media (max-width: 700px) {
  .field { grid-template-columns: 1fr; gap: 8px; padding: 18px 20px; }
}

/* ============================================
   AVISO CÓDIGO TERRITORIAL - Modelo 046
   ============================================ */
.codigo-aviso {
  background: linear-gradient(135deg, #fff4e8 0%, #ffeacf 100%);
  border: 2px solid var(--ccoo-red);
  border-radius: var(--r-lg);
  padding: 0;
  margin: 28px 0 0;
  overflow: hidden;
  position: relative;
}
.codigo-aviso::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--ccoo-red);
}
.codigo-aviso-head {
  background: rgba(213, 43, 30, 0.08);
  border-bottom: 1px solid rgba(213, 43, 30, 0.2);
  padding: 24px 28px 22px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-items: center;
}
.codigo-aviso-icon {
  font-size: 34px;
  line-height: 1;
  flex-shrink: 0;
  filter: drop-shadow(0 1px 2px rgba(213, 43, 30, 0.25));
}
.codigo-aviso-title strong {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--ccoo-red);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 8px;
}
.codigo-aviso-title h4 {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.2vw, 1.35rem);
  font-weight: 600;
  color: var(--ink);
  margin: 0;
  letter-spacing: -0.015em;
  line-height: 1.25;
}
.codigo-aviso-title h4 code {
  background: var(--ink);
  color: white;
  padding: 2px 10px;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 0.85em;
  font-weight: 700;
  letter-spacing: 0.05em;
}
.codigo-aviso-body {
  padding: 26px 28px 28px;
}
.codigo-aviso-body > p {
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.65;
  margin: 0 0 20px;
}
.codigo-aviso-body > p strong { color: var(--ink); font-weight: 700; }
.codigo-aviso-body > p code {
  background: white;
  color: var(--ccoo-red);
  padding: 2px 8px;
  border: 1px solid rgba(213, 43, 30, 0.3);
  border-radius: 5px;
  font-family: var(--font-mono);
  font-size: 0.9em;
  font-weight: 700;
}

/* Captura de pantalla */
.codigo-captura {
  margin: 0 0 24px;
  padding: 0;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}
.codigo-captura img {
  display: block;
  width: 100%;
  height: auto;
}
.codigo-captura figcaption {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 10px 14px;
  background: var(--paper-warm);
  border-top: 1px solid var(--line);
  text-align: center;
  font-weight: 600;
}

/* Lista de valores a seleccionar */
.codigo-valores {
  display: grid;
  gap: 10px;
  margin: 0 0 22px;
}
.codigo-valor {
  background: white;
  border: 1px solid var(--line);
  border-left: 4px solid var(--ccoo-red);
  border-radius: var(--r-sm);
  padding: 14px 18px;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 16px;
  align-items: center;
}
.codigo-valor-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--ccoo-red);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  line-height: 1.3;
}
.codigo-valor-value {
  font-family: var(--font-mono);
  font-size: 13.5px;
  color: var(--ink);
  font-weight: 600;
  background: var(--paper-warm);
  padding: 8px 12px;
  border-radius: 5px;
  word-break: break-word;
  line-height: 1.4;
}

/* Nota final de confirmación */
.codigo-nota {
  background: white;
  border-left: 3px solid #2d7a3e;
  border-radius: var(--r-sm);
  padding: 14px 18px;
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.6;
}
.codigo-nota strong {
  color: #2d7a3e;
  display: inline;
  font-weight: 700;
}

@media (max-width: 700px) {
  .codigo-aviso-head {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 22px 22px 18px;
    text-align: left;
  }
  .codigo-aviso-icon { font-size: 28px; }
  .codigo-aviso-body { padding: 20px 22px 24px; }
  .codigo-valor {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 12px 14px;
  }
  .codigo-valor-value { font-size: 12.5px; }
}

/* ============================================
   ALERTA CRÍTICA - Incidencia activa
   ============================================ */
.alerta-critica {
  background: #0a0a0a;
  border: 2px solid var(--ccoo-red);
  border-radius: var(--r-lg);
  overflow: hidden;
  margin: 32px 0;
  box-shadow: 0 12px 32px rgba(213, 43, 30, 0.18), 0 4px 8px rgba(0, 0, 0, 0.3);
  position: relative;
}

/* Banda superior */
.alerta-critica-banda {
  background: var(--ccoo-red);
  color: white;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}
.alerta-critica-pulse {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ffeb3b;
  flex-shrink: 0;
  box-shadow: 0 0 0 0 rgba(255, 235, 59, 0.7);
  animation: pulse-dot 1.8s infinite;
}
@keyframes pulse-dot {
  0% { box-shadow: 0 0 0 0 rgba(255, 235, 59, 0.9); }
  70% { box-shadow: 0 0 0 12px rgba(255, 235, 59, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 235, 59, 0); }
}
.alerta-critica-label {
  flex-grow: 1;
}
.alerta-critica-fecha {
  opacity: 0.85;
  font-weight: 600;
  font-size: 10.5px;
}

/* Cuerpo */
.alerta-critica-body {
  padding: 28px 32px 30px;
  color: #f0f0f0;
}
.alerta-critica-body h4 {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.6vw, 1.55rem);
  font-weight: 600;
  color: white;
  margin: 0 0 18px;
  line-height: 1.25;
  letter-spacing: -0.015em;
}
.alerta-critica-body > p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 15px;
  line-height: 1.68;
  margin: 0 0 18px;
}
.alerta-critica-body > p strong { color: white; font-weight: 700; }
.alerta-critica-body > p code {
  background: rgba(255, 255, 255, 0.1);
  color: #ffdada;
  padding: 2px 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 5px;
  font-family: var(--font-mono);
  font-size: 0.9em;
  font-weight: 700;
}

/* Caja del error SUR-04494 */
.alerta-error-box {
  background: linear-gradient(135deg, rgba(213, 43, 30, 0.15) 0%, rgba(213, 43, 30, 0.05) 100%);
  border: 1px solid rgba(213, 43, 30, 0.4);
  border-left: 4px solid var(--ccoo-red);
  border-radius: var(--r-sm);
  padding: 16px 22px;
  margin: 6px 0 22px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px;
  align-items: center;
}
.alerta-error-codigo {
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 800;
  color: #ff6b5e;
  letter-spacing: 0.05em;
  white-space: nowrap;
}
.alerta-error-texto {
  color: rgba(255, 255, 255, 0.92);
  font-size: 14.5px;
  font-weight: 500;
  line-height: 1.45;
}

/* Bloque de acción CCOO */
.alerta-accion-ccoo {
  background: rgba(213, 43, 30, 0.12);
  border: 1px solid rgba(213, 43, 30, 0.35);
  border-radius: var(--r-sm);
  padding: 20px 24px;
  margin: 22px 0;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-items: start;
}
.alerta-accion-icon {
  font-size: 28px;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 2px;
}
.alerta-accion-texto strong {
  display: block;
  color: white;
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 8px;
}
.alerta-accion-texto p {
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
}

/* Desplegable del email */
.alerta-desplegable {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--r-sm);
  margin: 18px 0 10px;
  overflow: hidden;
  transition: border-color 0.25s var(--ease);
}
.alerta-desplegable[open] {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.06);
}
.alerta-desplegable summary {
  padding: 16px 22px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  list-style: none;
  color: white;
  font-weight: 600;
  font-size: 14px;
  transition: background 0.2s var(--ease);
  user-select: none;
}
.alerta-desplegable summary::-webkit-details-marker { display: none; }
.alerta-desplegable summary:hover { background: rgba(255, 255, 255, 0.04); }
.alerta-desplegable-label {
  font-family: var(--font-body);
  color: rgba(255, 255, 255, 0.95);
}
.alerta-desplegable-arrow {
  font-size: 16px;
  color: #ff6b5e;
  transition: transform 0.25s var(--ease);
  display: inline-block;
}
.alerta-desplegable[open] .alerta-desplegable-arrow {
  transform: rotate(180deg);
}
.alerta-desplegable-contenido {
  background: white;
  color: var(--ink);
  padding: 26px 30px;
  animation: desplegable-fade-in 0.3s var(--ease);
}
@keyframes desplegable-fade-in {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Cabecera del email */
.email-header {
  background: var(--paper-warm);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 14px 18px;
  margin-bottom: 22px;
  display: grid;
  gap: 8px;
}
.email-campo {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 12px;
  font-size: 13px;
  line-height: 1.4;
}
.email-campo-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--ccoo-red);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding-top: 1px;
}
.email-campo-value {
  color: var(--ink);
  font-weight: 500;
}

/* Cuerpo del email */
.email-cuerpo p {
  font-size: 14.5px;
  color: var(--ink-soft);
  line-height: 1.68;
  margin: 0 0 14px;
}
.email-cuerpo p strong { color: var(--ink); font-weight: 700; }
.email-error {
  background: #fff4f4;
  border-left: 3px solid var(--ccoo-red);
  padding: 12px 16px !important;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 13.5px !important;
  color: var(--ccoo-red) !important;
  margin: 16px 0 18px !important;
}
.email-error strong { color: var(--ccoo-red) !important; }
.email-lista {
  padding-left: 22px;
  margin: 0 0 16px;
}
.email-lista li {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.65;
  margin-bottom: 10px;
}
.email-lista li strong { color: var(--ink); font-weight: 700; }
.email-firma {
  margin-top: 22px !important;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 14px !important;
}

/* Consejo final */
.alerta-consejo {
  background: rgba(255, 235, 59, 0.08);
  border: 1px dashed rgba(255, 235, 59, 0.4);
  border-radius: var(--r-sm);
  padding: 14px 20px;
  margin: 22px 0 0 !important;
  font-size: 14px !important;
  color: rgba(255, 235, 59, 0.95) !important;
  line-height: 1.6 !important;
}
.alerta-consejo strong { color: #ffeb3b !important; }

@media (max-width: 700px) {
  .alerta-critica-banda {
    padding: 10px 18px;
    font-size: 10.5px;
    flex-wrap: wrap;
    gap: 8px;
  }
  .alerta-critica-fecha { font-size: 9.5px; width: 100%; order: 3; }
  .alerta-critica-body { padding: 22px 20px 24px; }
  .alerta-error-box {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 14px 16px;
  }
  .alerta-error-codigo { font-size: 14.5px; }
  .alerta-accion-ccoo {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 16px 18px;
  }
  .alerta-accion-icon { font-size: 24px; }
  .alerta-desplegable summary { padding: 14px 16px; font-size: 13px; }
  .alerta-desplegable-contenido { padding: 20px 18px; }
  .email-campo {
    grid-template-columns: 1fr;
    gap: 2px;
  }
}

/* Pasos de solución numerados */
.pasos-solucion {
  margin: 20px 0;
  display: grid;
  gap: 12px;
}
.paso-solucion {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 14px;
  align-items: start;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 14px 18px;
}
.paso-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--ccoo-red);
  color: white;
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.paso-texto {
  font-size: 14.5px;
  color: var(--ink-soft);
  line-height: 1.55;
  padding-top: 5px;
}
.paso-texto strong { color: var(--ink); font-weight: 700; }
.paso-texto code {
  background: var(--paper-warm);
  color: var(--ccoo-red);
  padding: 1px 7px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.88em;
  font-weight: 600;
}

@media (max-width: 700px) {
  .paso-solucion { padding: 12px 14px; gap: 10px; grid-template-columns: 32px 1fr; }
  .paso-num { width: 28px; height: 28px; font-size: 13px; }
  .paso-texto { font-size: 13.5px; }
}

/* Ejemplares */
.ejemplares {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 28px 0;
}
.ejemplar {
  background: var(--paper-warm);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 24px 20px;
  position: relative;
  transition: all 0.3s var(--ease);
}
.ejemplar-num {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 400;
  color: var(--ink-subtle);
  line-height: 1;
  margin-bottom: 12px;
  letter-spacing: -0.03em;
}
.ejemplar strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.ejemplar span { font-size: 14px; color: var(--ink-muted); line-height: 1.55; }
.ejemplar.highlight {
  background: var(--ccoo-red-wash);
  border-color: var(--ccoo-red);
  box-shadow: var(--shadow-red);
}
.ejemplar.highlight .ejemplar-num { color: var(--ccoo-red); font-weight: 600; }
.badge-key {
  position: absolute;
  top: -10px;
  right: 16px;
  background: var(--ccoo-red);
  color: white;
  font-family: var(--font-mono);
  font-size: 10px;
  padding: 5px 12px;
  border-radius: 100px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

@media (max-width: 800px) { .ejemplares { grid-template-columns: 1fr; } }

/* ============================================
   MÉRITOS
   ============================================ */
.meritos-section { background: var(--paper-warm); }

.meritos-box {
  background: var(--paper-white);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 32px;
  margin-top: 20px;
  transition: all 0.3s var(--ease);
}
.meritos-box:hover { border-color: var(--ccoo-red); box-shadow: var(--shadow-sm); }

.meritos-box h4 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: 20px;
  letter-spacing: -0.015em;
  padding-bottom: 16px;
  border-bottom: 3px solid var(--ccoo-red);
  display: flex;
  align-items: center;
  gap: 12px;
}
.meritos-emoji {
  font-size: 24px;
  width: 44px;
  height: 44px;
  background: var(--ccoo-red-wash);
  border-radius: var(--r-sm);
  display: grid;
  place-items: center;
}
.merito-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px dashed var(--line);
  gap: 20px;
}
.merito-item:last-child { border-bottom: none; }
.merito-name {
  font-size: 15px;
  color: var(--ink-soft);
  flex: 1;
  line-height: 1.5;
}
.merito-points {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  color: var(--ccoo-red);
  flex-shrink: 0;
  font-feature-settings: "tnum";
  letter-spacing: -0.01em;
  white-space: nowrap;
}

/* ============================================
   MÉRITOS DETALLADOS — rediseño
   ============================================ */

/* Header del perfil */
.merito-perfil-header {
  background: var(--ink);
  color: white;
  padding: 28px 32px;
  border-radius: var(--r-md) var(--r-md) 0 0;
  position: relative;
  overflow: hidden;
}
.merito-perfil-header::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--ccoo-red);
}
.merito-perfil-label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ccoo-red-light, #ff6b6b);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.merito-perfil-label::before {
  content: '';
  width: 24px;
  height: 2px;
  background: var(--ccoo-red);
}
.merito-perfil-title {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.5vw, 1.65rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 0;
  color: white;
}

/* Cuerpo de la tarjeta de méritos */
.merito-perfil-body {
  background: var(--paper-white);
  border: 1px solid var(--line);
  border-top: none;
  border-radius: 0 0 var(--r-md) var(--r-md);
  padding: 32px;
  margin-bottom: 28px;
}

/* Bloques de méritos (Titulación, Formación, Experiencia) */
.merito-bloque {
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.merito-bloque:last-child { border-bottom: none; padding-bottom: 0; }
.merito-bloque:first-child { padding-top: 0; }

.merito-bloque-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.merito-bloque-letra {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.merito-bloque-letra span {
  width: 28px;
  height: 28px;
  background: var(--ccoo-red);
  color: white;
  border-radius: var(--r-sm);
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
}
.merito-bloque-limite {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ccoo-red);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: var(--ccoo-red-wash);
  padding: 4px 12px;
  border-radius: 100px;
  white-space: nowrap;
}

/* Items específicos dentro de un bloque */
.merito-detail {
  padding: 14px 16px;
  background: var(--paper-warm);
  border-radius: var(--r-sm);
  margin-top: 8px;
  border-left: 3px solid var(--ccoo-red);
}
.merito-detail + .merito-detail { margin-top: 10px; }
.merito-detail-name {
  font-size: 15px;
  color: var(--ink);
  margin-bottom: 10px;
  line-height: 1.5;
  font-weight: 500;
}
.merito-detail-name strong { color: var(--ink); font-weight: 700; }

/* Grid para mostrar puntuación INFOCA vs otras CCAA */
.merito-puntos-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 12px;
}
.merito-pts-box {
  padding: 12px 14px;
  border-radius: var(--r-sm);
  background: var(--paper-white);
  border: 1px solid var(--line);
}
.merito-pts-box.infoca {
  background: var(--ccoo-red);
  color: white;
  border-color: var(--ccoo-red);
}
.merito-pts-box.otras {
  background: var(--paper-white);
  border-color: var(--line-strong);
}
.merito-pts-label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 6px;
  opacity: 0.8;
}
.merito-pts-box.infoca .merito-pts-label { color: rgba(255,255,255,0.85); }
.merito-pts-box.otras .merito-pts-label { color: var(--ink-muted); }
.merito-pts-value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  line-height: 1;
  letter-spacing: -0.02em;
  font-feature-settings: "tnum";
}
.merito-pts-box.infoca .merito-pts-value { color: white; }
.merito-pts-box.otras .merito-pts-value { color: var(--ink); }
.merito-pts-unit {
  font-size: 11px;
  font-weight: 500;
  opacity: 0.75;
  margin-left: 4px;
  font-family: var(--font-body);
}

@media (max-width: 520px) {
  .merito-puntos-grid { grid-template-columns: 1fr; }
}

/* Puntuación simple (un solo valor) */
.merito-pts-simple {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--ccoo-red);
  letter-spacing: -0.02em;
}
.merito-pts-simple .unit {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-muted);
}

/* Desplegables de info extra */
.merito-info {
  margin-top: 14px;
  background: var(--paper-cream, #fefbf6);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  overflow: hidden;
}
.merito-info summary {
  padding: 12px 16px;
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  user-select: none;
}
.merito-info summary::-webkit-details-marker { display: none; }
.merito-info summary::after {
  content: '+';
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 300;
  color: var(--ccoo-red);
  transition: transform 0.3s var(--ease);
}
.merito-info[open] summary::after { transform: rotate(45deg); }
.merito-info summary:hover { color: var(--ccoo-red); }
.merito-info-body {
  padding: 0 16px 16px;
  font-size: 14.5px;
  color: var(--ink-soft);
  line-height: 1.6;
  border-top: 1px solid var(--line);
  padding-top: 14px;
  margin-top: 0;
}
.merito-info-body p { margin-bottom: 10px; }
.merito-info-body p:last-child { margin-bottom: 0; }
.merito-info-body ul { margin: 10px 0 10px 20px; }
.merito-info-body li { margin-bottom: 6px; }
.merito-info-body strong { color: var(--ink); }

/* Bloque de "principios generales" al principio */
.merito-principios {
  background: linear-gradient(135deg, var(--amber-soft), #fff8e7);
  border: 2px solid var(--ccoo-red);
  border-radius: var(--r-lg);
  padding: 32px;
  margin-bottom: 40px;
  position: relative;
}
.merito-principios::before {
  content: 'LEE ESTO PRIMERO';
  position: absolute;
  top: -12px;
  left: 24px;
  background: var(--ccoo-red);
  color: white;
  padding: 4px 14px;
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
}
.merito-principios h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 16px;
  letter-spacing: -0.015em;
}
.merito-principios-lista {
  list-style: none;
  margin: 0;
  padding: 0;
}
.merito-principios-lista li {
  padding: 10px 0 10px 32px;
  position: relative;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.55;
  border-bottom: 1px dashed rgba(213, 43, 30, 0.2);
}
.merito-principios-lista li:last-child { border-bottom: none; }
.merito-principios-lista li::before {
  content: '→';
  position: absolute;
  left: 4px;
  color: var(--ccoo-red);
  font-weight: 700;
}
.merito-principios-lista li strong { color: var(--ink); }

/* Bloque de "NO PUNTÚA" */
.merito-nopuntua {
  background: rgba(213, 43, 30, 0.05);
  border: 1px solid rgba(213, 43, 30, 0.25);
  border-left: 4px solid var(--ccoo-red);
  border-radius: var(--r-md);
  padding: 24px 28px;
  margin: 32px 0;
}

/* Bloque de convocatorias anteriores */
.merito-convocatorias-anteriores {
  background: linear-gradient(135deg, #fff9eb 0%, #fef5d8 100%);
  border: 2px solid #d4a82c;
  border-radius: var(--r-lg);
  padding: 36px 32px;
  margin: 40px 0;
  position: relative;
}
.mca-badge {
  position: absolute;
  top: -14px;
  left: 28px;
  background: #1a1a1a;
  color: white;
  padding: 6px 16px;
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  box-shadow: 0 2px 0 var(--ccoo-red);
}
.merito-convocatorias-anteriores h3 {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.5vw, 1.6rem);
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 14px;
  letter-spacing: -0.015em;
  line-height: 1.2;
}
.mca-intro {
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.6;
  margin: 0 0 24px;
}
.mca-intro strong { color: var(--ink); }

.mca-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
}
.mca-card {
  background: white;
  border-radius: var(--r-md);
  padding: 22px 24px;
  border: 1px solid rgba(0,0,0,0.08);
}
.mca-card-yes {
  border-top: 4px solid #2d7a3e;
}
.mca-card-no {
  border-top: 4px solid var(--ccoo-red);
}
.mca-card-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 18px;
  font-weight: 700;
  color: white;
  margin-bottom: 12px;
}
.mca-card-yes .mca-card-icon { background: #2d7a3e; }
.mca-card-no .mca-card-icon { background: var(--ccoo-red); }
.mca-card-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--ink);
  margin-bottom: 14px;
  letter-spacing: -0.01em;
}
.mca-card ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.mca-card ul li {
  padding: 7px 0 7px 22px;
  position: relative;
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--ink-soft);
  border-bottom: 1px dashed var(--line);
}
.mca-card ul li:last-child { border-bottom: none; }
.mca-card-yes ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 7px;
  color: #2d7a3e;
  font-weight: 700;
}
.mca-card-no ul li::before {
  content: '●';
  position: absolute;
  left: 2px;
  top: 6px;
  color: var(--ccoo-red);
  font-size: 11px;
}
.mca-card ul li strong { color: var(--ink); font-weight: 700; }

.mca-warning {
  background: white;
  border-left: 4px solid var(--ccoo-red);
  border-radius: var(--r-md);
  padding: 20px 22px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: flex-start;
  margin-top: 8px;
}
.mca-warning-icon {
  font-size: 28px;
  line-height: 1;
  padding-top: 2px;
}
.mca-warning-content strong {
  display: block;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  color: var(--ccoo-red);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 10px;
}
.mca-warning-content p {
  color: var(--ink-soft);
  font-size: 14.5px;
  line-height: 1.6;
  margin: 0 0 10px;
}
.mca-warning-content p:last-child { margin-bottom: 0; }
.mca-warning-content p strong {
  display: inline;
  font-family: inherit;
  font-size: inherit;
  font-weight: 700;
  color: var(--ink);
  text-transform: none;
  letter-spacing: normal;
  margin: 0;
}

@media (max-width: 700px) {
  .mca-grid { grid-template-columns: 1fr; }
  .merito-convocatorias-anteriores { padding: 32px 22px 26px; }
  .mca-badge { left: 20px; font-size: 9.5px; }
  .mca-warning { grid-template-columns: 1fr; gap: 10px; padding: 18px 20px; }
  .mca-warning-icon { font-size: 24px; }
}
.merito-nopuntua h4 {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--ccoo-red);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 12px;
}
.merito-nopuntua ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.merito-nopuntua li {
  padding: 8px 0 8px 28px;
  position: relative;
  color: var(--ink-soft);
  font-size: 14.5px;
  line-height: 1.5;
}
.merito-nopuntua li::before {
  content: '✕';
  position: absolute;
  left: 0;
  top: 8px;
  width: 20px;
  height: 20px;
  background: var(--ccoo-red);
  color: white;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 700;
}

/* Nota/Aviso especial dentro del bloque */
.merito-nota {
  margin-top: 12px;
  padding: 12px 16px;
  background: var(--ccoo-red-wash);
  border-radius: var(--r-sm);
  border-left: 3px solid var(--ccoo-red);
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.55;
}
.merito-nota strong { color: var(--ccoo-red); font-weight: 700; }

/* Desempate */
.desempate-box {
  background: var(--ink);
  color: white;
  padding: 32px;
  border-radius: var(--r-lg);
  margin-top: 48px;
  position: relative;
  overflow: hidden;
}
.desempate-box::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--ccoo-red);
}
.desempate-box h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  color: white;
  margin-bottom: 20px;
  letter-spacing: -0.015em;
}
.desempate-lista {
  list-style: none;
  counter-reset: desempate;
  margin: 0;
  padding: 0;
}
.desempate-lista li {
  counter-increment: desempate;
  padding: 16px 0 16px 56px;
  position: relative;
  color: rgba(255,255,255,0.85);
  font-size: 15px;
  line-height: 1.55;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.desempate-lista li:last-child { border-bottom: none; }
.desempate-lista li::before {
  content: counter(desempate);
  position: absolute;
  left: 0;
  top: 14px;
  width: 36px;
  height: 36px;
  background: var(--ccoo-red);
  color: white;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
}
.desempate-lista strong { color: white; }

@media (max-width: 700px) {
  .merito-perfil-header { padding: 22px 24px; }
  .merito-perfil-body { padding: 22px; }
  .merito-bloque-head { flex-direction: column; gap: 8px; align-items: flex-start; }
  .merito-principios { padding: 26px 22px; }
  .desempate-box { padding: 26px 22px; }
}

/* ============================================
   PRUEBAS
   ============================================ */
.pruebas-section { background: var(--paper-white); border-top: 1px solid var(--line); }

/* ============================================
   FAQ
   ============================================ */
.faq-section {
  background: var(--paper-warm);
  border-top: 4px solid var(--ccoo-red);
}

.faq-item {
  border-bottom: 1px solid var(--line-strong);
  transition: all 0.2s;
}
.faq-item summary {
  padding: 28px 0;
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  list-style: none;
  color: var(--ink);
  transition: color 0.2s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--ccoo-red); }
.faq-item summary::after {
  content: '+';
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 300;
  color: var(--ccoo-red);
  transition: all 0.3s var(--ease);
  flex-shrink: 0;
  line-height: 1;
}
.faq-item[open] summary::after {
  transform: rotate(45deg);
}
.faq-answer {
  padding: 0 0 32px 0;
  color: var(--ink-soft);
  line-height: 1.7;
  font-size: 16px;
  max-width: 720px;
}
.faq-answer p { margin-bottom: 12px; }
.faq-answer p:last-child { margin-bottom: 0; }
.faq-answer strong { color: var(--ink); }

/* ============================================
   CTA FINAL - ROJO CCOO
   ============================================ */
.cta-final {
  background: var(--ccoo-red);
  color: white;
  padding: 120px 28px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-final::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(ellipse 60% 40% at 20% 30%, rgba(255, 255, 255, 0.12) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 80% 70%, rgba(0, 0, 0, 0.15) 0%, transparent 60%);
}
.cta-final::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 6px;
  background: var(--ink);
}
.cta-final > * { position: relative; z-index: 2; }

.cta-kicker {
  font-family: var(--font-mono);
  font-size: 12px;
  color: rgba(255,255,255,0.9);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-bottom: 24px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.cta-kicker::before, .cta-kicker::after {
  content: '';
  width: 30px;
  height: 1px;
  background: white;
}

.cta-final h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  line-height: 1;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
  color: white;
}
.cta-final h2 em {
  font-style: italic;
  color: white;
  font-weight: 400;
  text-decoration: underline;
  text-decoration-color: rgba(255,255,255,0.5);
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}

.cta-final p {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.9);
  max-width: 560px;
  margin: 0 auto 40px;
  line-height: 1.55;
}
.cta-final p strong { color: white; font-weight: 700; }

.cta-buttons {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}
.btn-outline-light {
  background: transparent;
  color: white;
  border: 2px solid white;
}
.btn-outline-light:hover { background: white; color: var(--ccoo-red); }

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: var(--ink);
  color: rgba(255,255,255,0.55);
  padding: 56px 28px 32px;
  font-size: 13px;
  border-top: 4px solid var(--ccoo-red);
}
.site-footer .wrap {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: start;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand { display: flex; gap: 16px; align-items: flex-start; }
.footer-brand .brand-logo { width: 48px; height: 48px; flex-shrink: 0; }
.footer-brand .brand-logo::before { font-size: 13px; }
.footer-brand-text strong {
  color: white;
  font-family: var(--font-display);
  font-size: 18px;
  display: block;
  margin-bottom: 4px;
}
.footer-brand-text .sub {
  color: var(--ccoo-red);
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
  margin-bottom: 12px;
}
.footer-brand-text p { margin: 0; line-height: 1.55; max-width: 520px; color: rgba(255,255,255,0.5); }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a {
  color: rgba(255,255,255,0.8);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: color 0.2s;
}
.footer-links a::before {
  content: '→';
  color: var(--ccoo-red);
  font-weight: 700;
}
.footer-links a:hover { color: white; }

.footer-bottom {
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.footer-bottom strong { color: var(--ccoo-red); }

/* Disclaimer legal discreto al final */
.footer-disclaimer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 28px;
  padding: 22px 0;
  background: rgba(0, 0, 0, 0.25);
}
.footer-disclaimer .wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
  display: block;
}
.footer-disclaimer p {
  font-family: var(--font-body);
  font-size: 11.5px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.45);
  margin: 0;
  letter-spacing: 0.01em;
  text-transform: none;
  max-width: 900px;
}
.footer-disclaimer p strong {
  color: rgba(255, 255, 255, 0.7);
  font-weight: 700;
}
.footer-disclaimer p a {
  color: rgba(255, 130, 130, 0.85);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 0.2s var(--ease);
}
.footer-disclaimer p a:hover {
  color: #ff6b6b;
}

@media (max-width: 700px) {
  .site-footer .wrap { grid-template-columns: 1fr; }
  .footer-disclaimer { padding: 18px 0; margin-top: 22px; }
  .footer-disclaimer .wrap { padding: 0 20px; }
  .footer-disclaimer p { font-size: 11px; line-height: 1.6; }
}

/* ============================================
   CUENTA ATRÁS — FIN DEL PLAZO
   ============================================ */
.countdown-section {
  background: var(--ink);
  color: white;
  padding: 48px 28px;
  position: relative;
  overflow: hidden;
}
.countdown-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--ccoo-red);
}
.countdown-section::after {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(ellipse 40% 60% at 10% 50%, rgba(213, 43, 30, 0.15) 0%, transparent 60%),
    radial-gradient(ellipse 40% 60% at 90% 50%, rgba(213, 43, 30, 0.1) 0%, transparent 60%);
  pointer-events: none;
}

.countdown-wrap {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.countdown-info {
  color: white;
}
.countdown-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--ccoo-red);
  color: white;
  padding: 6px 16px;
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 14px;
}
.countdown-kicker::before {
  content: '';
  width: 6px;
  height: 6px;
  background: white;
  border-radius: 50%;
  animation: pulse 2s infinite;
}
.countdown-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 600;
  color: white;
  margin-bottom: 6px;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.countdown-title em {
  color: #ff6b6b;
  font-style: italic;
  font-weight: 400;
}
.countdown-subtitle {
  font-family: var(--font-mono);
  font-size: 13px;
  color: rgba(255,255,255,0.7);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.countdown-subtitle strong { color: white; }

.countdown-boxes {
  display: flex;
  gap: 12px;
}
.countdown-box {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--r-md);
  padding: 18px 20px 14px;
  min-width: 92px;
  text-align: center;
  position: relative;
  backdrop-filter: blur(10px);
}
.countdown-box::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 2px;
  background: var(--ccoo-red);
}
.countdown-num {
  font-family: var(--font-display);
  font-size: 3.2rem;
  font-weight: 600;
  color: white;
  line-height: 1;
  letter-spacing: -0.04em;
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
  margin-bottom: 6px;
  transition: color 0.3s;
}
.countdown-box.urgent .countdown-num { color: #ff6b6b; }
.countdown-label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
}

.countdown-ended {
  background: var(--ccoo-red);
  color: white;
  padding: 20px 28px;
  border-radius: var(--r-md);
  text-align: center;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  display: none;
}

/* Consejo práctico dentro del contador */
.countdown-tip {
  max-width: var(--container);
  margin: 32px auto 0;
  padding: 24px 28px;
  background: rgba(213, 43, 30, 0.12);
  border: 1px solid rgba(213, 43, 30, 0.3);
  border-left: 4px solid var(--ccoo-red);
  border-radius: var(--r-md);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px;
  align-items: flex-start;
  position: relative;
  z-index: 2;
  backdrop-filter: blur(8px);
}
.countdown-tip-icon {
  font-size: 32px;
  line-height: 1;
  padding-top: 2px;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 4px rgba(213, 43, 30, 0.4));
}
.countdown-tip-content strong {
  display: block;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  color: #ff8a8a;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 10px;
}
.countdown-tip-content p {
  color: rgba(255, 255, 255, 0.92);
  font-size: 15.5px;
  line-height: 1.65;
  margin: 0;
}

@media (max-width: 700px) {
  .countdown-tip {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 20px 22px;
    margin-top: 28px;
  }
  .countdown-tip-icon { font-size: 28px; }
  .countdown-tip-content p { font-size: 14.5px; }
}

/* Responsive */
@media (max-width: 900px) {
  .countdown-wrap {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 28px;
  }
  .countdown-kicker { margin-left: auto; margin-right: auto; }
  .countdown-boxes { justify-content: center; flex-wrap: wrap; }
}
@media (max-width: 500px) {
  .countdown-box { min-width: 72px; padding: 14px 12px 10px; }
  .countdown-num { font-size: 2.4rem; }
  .countdown-label { font-size: 9.5px; }
}

/* ============================================
   VIDEOTUTORIALES PRÓXIMAMENTE
   ============================================ */
.video-coming {
  background: var(--paper-warm);
  border: 2px dashed var(--ccoo-red);
  border-radius: var(--r-lg);
  padding: 40px 28px;
  text-align: center;
  margin: 20px 0 40px;
  position: relative;
  transition: all 0.3s var(--ease);
}
.video-coming:hover {
  background: var(--ccoo-red-wash);
  transform: translateY(-2px);
}
.video-coming-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--ccoo-red);
  color: white;
  padding: 6px 16px;
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 16px;
  box-shadow: var(--shadow-red);
}
.video-coming-badge::before {
  content: '⏳';
  font-size: 12px;
}
.video-coming-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  background: var(--ccoo-red);
  color: white;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 28px;
  box-shadow: var(--shadow-red);
  position: relative;
}
.video-coming-icon::after {
  content: '';
  position: absolute;
  inset: -4px;
  border: 2px solid var(--ccoo-red);
  border-radius: 50%;
  opacity: 0.3;
  animation: coming-pulse 2s infinite;
}
@keyframes coming-pulse {
  0%, 100% { transform: scale(1); opacity: 0.3; }
  50% { transform: scale(1.1); opacity: 0.1; }
}
.video-coming h4 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 10px;
  letter-spacing: -0.015em;
}
.video-coming p {
  color: var(--ink-soft);
  font-size: 15.5px;
  max-width: 480px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ============================================
   SESIONES INFORMATIVAS BANNER
   ============================================ */
.sesiones-banner {
  background: linear-gradient(135deg, var(--ccoo-red) 0%, var(--ccoo-red-dark) 100%);
  color: white;
  padding: 48px 40px;
  border-radius: var(--r-lg);
  margin: 48px 0;
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: 28px;
  align-items: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.sesiones-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(ellipse 60% 40% at 20% 30%, rgba(255,255,255,0.1) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 80% 70%, rgba(0,0,0,0.15) 0%, transparent 60%);
  pointer-events: none;
}
.sesiones-banner > * { position: relative; z-index: 2; }

.sesiones-icon {
  width: 80px;
  height: 80px;
  background: white;
  color: var(--ccoo-red);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 36px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}

.sesiones-content {
  color: white;
}
.sesiones-kicker {
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(255,255,255,0.85);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}
.sesiones-kicker::before {
  content: '';
  width: 6px;
  height: 6px;
  background: white;
  border-radius: 50%;
  animation: pulse 2s infinite;
}
.sesiones-content h3 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 600;
  margin-bottom: 10px;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: white;
}
.sesiones-content p {
  color: rgba(255,255,255,0.9);
  font-size: 15.5px;
  line-height: 1.55;
  margin: 0;
  max-width: 580px;
}
.sesiones-content strong { color: white; font-weight: 700; }

.sesiones-btn {
  background: white;
  color: var(--ccoo-red);
  padding: 16px 26px;
  border-radius: 100px;
  font-weight: 700;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.25s var(--ease);
  text-decoration: none !important;
  white-space: nowrap;
  box-shadow: 0 4px 0 rgba(0,0,0,0.15);
}
.sesiones-btn:hover {
  background: var(--ink);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 0 rgba(0,0,0,0.2);
}
.sesiones-btn .arrow { transition: transform 0.3s var(--ease); }
.sesiones-btn:hover .arrow { transform: translateX(4px); }

@media (max-width: 800px) {
  .sesiones-banner {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 36px 28px;
    gap: 20px;
  }
  .sesiones-icon { margin: 0 auto; }
  .sesiones-kicker { justify-content: center; }
}

/* ============================================
   ANIMATIONS
   ============================================ */
@media (prefers-reduced-motion: no-preference) {
  .fade-up {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  }
  .fade-up.visible {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================
   BOTÓN FLOTANTE WHATSAPP — CCOO EMA INFOCA
   ============================================ */
.wa-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 90;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #25d366;
  color: #0b3d1f;
  padding: 14px 22px 14px 18px;
  border-radius: 100px;
  font-weight: 700;
  font-size: 15px;
  font-family: var(--font-body);
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4), 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: all 0.3s var(--ease);
  animation: wa-entrance 0.6s var(--ease) 1.5s backwards, wa-pulse 2.5s ease-in-out 3s infinite;
  letter-spacing: 0.01em;
}

.wa-float:hover {
  background: #1fb954;
  color: #0b3d1f;
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 32px rgba(37, 211, 102, 0.5), 0 6px 16px rgba(0, 0, 0, 0.2);
  animation-play-state: paused;
}

.wa-float:active {
  transform: translateY(-1px) scale(1);
}

.wa-float-icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  position: relative;
}

.wa-float-icon svg {
  width: 100%;
  height: 100%;
  fill: #0b3d1f;
}

.wa-float-icon::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  z-index: -1;
  animation: wa-ring 2s ease-out infinite;
}

.wa-float-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  gap: 2px;
}

.wa-float-text .main {
  font-size: 14.5px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.wa-float-text .sub {
  font-size: 10.5px;
  font-weight: 600;
  color: #0b3d1f;
  opacity: 0.7;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* Badge CCOO en la esquina */
.wa-float-badge {
  position: absolute;
  top: -6px;
  left: -6px;
  background: var(--ccoo-red);
  color: white;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 100px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 2px 6px rgba(213, 43, 30, 0.4);
  white-space: nowrap;
  border: 2px solid white;
}

/* Animaciones */
@keyframes wa-entrance {
  from {
    opacity: 0;
    transform: translateY(80px) scale(0.7);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes wa-pulse {
  0%, 100% {
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4), 0 4px 12px rgba(0, 0, 0, 0.15);
  }
  50% {
    box-shadow: 0 8px 28px rgba(37, 211, 102, 0.7), 0 4px 12px rgba(0, 0, 0, 0.15), 0 0 0 8px rgba(37, 211, 102, 0.1);
  }
}

@keyframes wa-ring {
  0% {
    transform: scale(1);
    opacity: 0.8;
  }
  100% {
    transform: scale(1.8);
    opacity: 0;
  }
}

/* Móvil: solo icono + badge */
@media (max-width: 700px) {
  .wa-float {
    padding: 14px;
    gap: 0;
    bottom: 18px;
    right: 18px;
  }
  .wa-float-text {
    display: none;
  }
  .wa-float-icon {
    width: 30px;
    height: 30px;
  }
  .wa-float-badge {
    top: -8px;
    left: -8px;
    font-size: 8px;
    padding: 2px 6px;
  }
}

/* Prefiere movimiento reducido: sin animaciones */
@media (prefers-reduced-motion: reduce) {
  .wa-float {
    animation: none;
  }
  .wa-float-icon::before {
    animation: none;
    display: none;
  }
}
