/* ==========================================================================
   LOS CHANEQUES - SISTEMA DE DISEÑO Y HOJA DE ESTILOS PRINCIPAL
   Inocuidad, Calidad T.I.F. y Excelencia Gastronómica
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800;900&family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400&display=swap');

:root {
  /* Paleta Corporativa Los Chaneques */
  --chq-orange: #e04f16;
  --chq-orange-light: #ff6e38;
  --chq-orange-dark: #b83b0a;
  --chq-orange-subtle: rgba(224, 79, 22, 0.08);
  --chq-orange-glow: rgba(224, 79, 22, 0.25);

  --chq-gold: #daa667;
  --chq-gold-light: #edd1a9;
  --chq-gold-dark: #b58343;

  --chq-black: #141416;
  --chq-charcoal: #1c1d21;
  --chq-gray-dark: #272930;

  /* Tema Claro (Default) */
  --bg-body: #f8fafc;
  --bg-surface: #ffffff;
  --bg-surface-elevated: #ffffff;
  --bg-surface-alt: #f1f5f9;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --border-color: #e2e8f0;
  --border-light: #f1f5f9;
  --header-bg: rgba(255, 255, 255, 0.85);
  --header-border: rgba(226, 232, 240, 0.8);
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.09), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
  --shadow-orange: 0 10px 25px -5px rgba(224, 79, 22, 0.35);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 30px;
  --radius-full: 9999px;

  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  --container-max: 1280px;
}

[data-theme="dark"] {
  --bg-body: #0a0b0d;
  --bg-surface: #131418;
  --bg-surface-elevated: #1a1c22;
  --bg-surface-alt: #181a20;
  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #64748b;
  --border-color: #242730;
  --border-light: #1c1e24;
  --header-bg: rgba(19, 20, 24, 0.85);
  --header-border: rgba(36, 39, 48, 0.8);
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.5);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.6);
  --shadow-orange: 0 10px 25px -5px rgba(224, 79, 22, 0.45);
}

/* ==========================================================================
   RESET Y TIPOGRAFÍA BASE
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-body);
  color: var(--text-primary);
  line-height: 1.65;
  transition: background-color 0.3s ease, color 0.3s ease;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 800;
  line-height: 1.2;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.2rem, 4.5vw, 3.8rem); }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); }
h3 { font-size: clamp(1.35rem, 2.2vw, 1.85rem); }
h4 { font-size: 1.25rem; }

p {
  color: var(--text-secondary);
  font-size: 1.05rem;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.2s ease;
}

img, svg {
  max-width: 100%;
  height: auto;
  display: block;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

/* ==========================================================================
   LAYOUT Y CONTENEDORES
   ========================================================================== */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.section-py {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

@media (max-width: 768px) {
  .section-py {
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
  }
}

.section-header {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 3.5rem auto;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--chq-orange);
  background: var(--chq-orange-subtle);
  padding: 0.35rem 1rem;
  border-radius: var(--radius-full);
  margin-bottom: 1rem;
  border: 1px solid rgba(224, 79, 22, 0.2);
}

.section-title {
  margin-bottom: 1rem;
}

.section-desc {
  font-size: 1.15rem;
  color: var(--text-secondary);
}

/* ==========================================================================
   HEADER Y NAVBAR
   ========================================================================== */
.top-bar {
  background: var(--chq-black);
  color: #e2e8f0;
  font-size: 0.82rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.top-bar-items {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
}

.top-bar-item {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  color: #cbd5e1;
}

.top-bar-item a:hover {
  color: var(--chq-orange-light);
}

.top-bar-badge {
  background: rgba(218, 166, 103, 0.2);
  color: var(--chq-gold);
  padding: 0.15rem 0.65rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.75rem;
  border: 1px solid rgba(218, 166, 103, 0.35);
}

.main-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--header-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--header-border);
  transition: all 0.3s ease;
}

.main-header.scrolled {
  box-shadow: var(--shadow-md);
}

.header-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 82px;
}

.logo-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-brand img {
  height: 48px;
  width: auto;
}

.nav-menu {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 0.25rem;
}

.nav-item {
  position: relative;
}

.nav-link {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-primary);
  padding: 0.55rem 0.95rem;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 0.35rem;
  transition: all 0.2s ease;
}

.nav-link:hover, .nav-link.active {
  color: var(--chq-orange);
  background: var(--chq-orange-subtle);
}

/* Dropdown */
.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 290px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.65rem;
  box-shadow: var(--shadow-xl);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  list-style: none;
  z-index: 1010;
}

.nav-item:hover .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-link {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}

.dropdown-link:hover {
  background: var(--bg-surface-alt);
}

.dropdown-icon {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  background: var(--chq-orange-subtle);
  color: var(--chq-orange);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  flex-shrink: 0;
}

.dropdown-text h4 {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.15rem;
}

.dropdown-text p {
  font-size: 0.8rem;
  line-height: 1.35;
  color: var(--text-muted);
}

/* Acciones en Header */
.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.theme-toggle-btn {
  background: var(--bg-surface-alt);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  width: 42px;
  height: 42px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.theme-toggle-btn:hover {
  color: var(--chq-orange);
  border-color: var(--chq-orange);
}

.mobile-toggle-btn {
  display: none;
  background: var(--bg-surface-alt);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

@media (max-width: 1024px) {
  .top-bar { display: none; }
  .nav-menu { display: none; }
  .mobile-toggle-btn { display: flex; }
}

/* ==========================================================================
   BOTONES
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.98rem;
  padding: 0.8rem 1.6rem;
  border-radius: var(--radius-full);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  line-height: 1;
}

.btn-primary {
  background: var(--chq-orange);
  color: #ffffff;
  box-shadow: var(--shadow-orange);
}

.btn-primary:hover {
  background: var(--chq-orange-dark);
  transform: translateY(-2px);
  box-shadow: 0 14px 28px -6px rgba(224, 79, 22, 0.45);
}

.btn-secondary {
  background: var(--bg-surface-alt);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background: var(--bg-surface-elevated);
  border-color: var(--text-muted);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--chq-orange);
  border: 2px solid var(--chq-orange);
}

.btn-outline:hover {
  background: var(--chq-orange);
  color: #ffffff;
  transform: translateY(-2px);
}

.btn-gold {
  background: var(--chq-gold);
  color: #141416;
  font-weight: 800;
}

.btn-gold:hover {
  background: var(--chq-gold-dark);
  color: #ffffff;
}

.btn-lg {
  padding: 1.05rem 2.2rem;
  font-size: 1.1rem;
}

.btn-sm {
  padding: 0.55rem 1.1rem;
  font-size: 0.85rem;
}

/* ==========================================================================
   HERO SECTION CON VIDEO DE FONDO PROMOCIONAL Y MASCOTA OFICIAL
   ========================================================================== */
.hero-section {
  position: relative;
  overflow: hidden;
  padding: 6rem 0 6.5rem 0;
  min-height: 82vh;
  display: flex;
  align-items: center;
}

/* Capa Contenedora de Medios Panorámicos y Video con Parallax */
.hero-video-container {
  position: absolute;
  top: -12%;
  left: 0;
  width: 100%;
  height: 124%;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}

/* Escenas de Promoción Real de Fondo (Catering, Comedores, Suministro) */
.hero-promo-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1), transform 9s cubic-bezier(0.1, 1, 0.1, 1);
  will-change: opacity, transform;
  filter: brightness(0.68) contrast(1.22) saturate(1.25);
  z-index: 0;
}

.hero-promo-slide.active {
  opacity: 1;
  transform: scale(1.07);
}

.hero-bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
  filter: brightness(0.74) contrast(1.15) saturate(1.2);
  pointer-events: none;
  z-index: 2;
}

/* Overlay Oscuro y Definido para Contraste Cinematográfico Impecable */
.hero-video-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg, 
    rgba(8, 12, 24, 0.78) 0%, 
    rgba(15, 23, 42, 0.38) 52%, 
    rgba(8, 12, 24, 0.40) 100%
  ), radial-gradient(circle at 65% 45%, transparent 35%, rgba(4, 7, 16, 0.38) 100%);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  z-index: 3;
  pointer-events: none;
}

[data-theme="dark"] .hero-video-overlay {
  background: linear-gradient(
    90deg, 
    rgba(6, 9, 18, 0.88) 0%, 
    rgba(10, 15, 30, 0.55) 52%, 
    rgba(6, 9, 18, 0.70) 100%
  );
}

.hero-ambient-glow {
  position: absolute;
  top: 10%;
  right: 15%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(224, 79, 22, 0.25) 0%, rgba(218, 166, 103, 0.08) 50%, transparent 70%);
  filter: blur(60px);
  z-index: 2;
  pointer-events: none;
  animation: pulse-glow 8s ease-in-out infinite alternate;
}

@keyframes pulse-glow {
  0% { transform: scale(0.9) translate(0, 0); opacity: 0.7; }
  100% { transform: scale(1.15) translate(-20px, 20px); opacity: 1; }
}

.hero-container-content {
  position: relative;
  z-index: 3;
  width: 100%;
}

/* Controles Flotantes e Indicador de Promoción Real en Video de Fondo */
.hero-video-controls {
  position: absolute;
  bottom: 1.5rem;
  right: 2rem;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  background: rgba(15, 23, 42, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.22);
  padding: 0.4rem 0.95rem;
  border-radius: var(--radius-full);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all 0.3s ease;
}

[data-theme="dark"] .hero-video-controls {
  background: rgba(10, 15, 28, 0.88);
  border-color: rgba(255, 255, 255, 0.2);
}

.live-indicator {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-right: 0.4rem;
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  animation: live-pulse 1.6s infinite;
}

@keyframes live-pulse {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { box-shadow: 0 0 0 7px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.live-text {
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #f1f5f9;
}

.btn-video-ctrl {
  background: transparent;
  border: none;
  cursor: pointer;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  transition: background 0.2s, transform 0.2s, color 0.2s;
}

.btn-video-ctrl:hover {
  background: var(--chq-orange);
  color: #ffffff;
  transform: scale(1.12);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 3.5rem;
}

@media (max-width: 991px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #f8fafc;
  padding: 0.45rem 1.15rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
  margin-bottom: 1.5rem;
  backdrop-filter: blur(10px);
}

.hero-badge-pill .pulse-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { box-shadow: 0 0 0 9px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.hero-title {
  margin-bottom: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #ffffff;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.5);
}

.hero-title .highlight-orange {
  color: #ff7a29;
  text-shadow: 0 0 25px rgba(255, 122, 41, 0.45);
  position: relative;
}

.hero-lead {
  font-size: 1.22rem;
  color: #f1f5f9;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.45);
  margin-bottom: 2.2rem;
  max-width: 580px;
  line-height: 1.6;
  font-weight: 500;
}

.hero-lead strong {
  color: #ffffff;
  font-weight: 700;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.hero-cta-btn {
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 25px -5px rgba(224, 79, 22, 0.5);
}

.hero-cta-btn::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -60%;
  width: 40%;
  height: 200%;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.35) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: rotate(30deg);
  animation: btn-shimmer 4s infinite;
}

@keyframes btn-shimmer {
  0%, 75% { left: -60%; }
  100% { left: 140%; }
}

.hero-explore-btn {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(10px);
  transition: all 0.25s ease;
}

.hero-explore-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
  border-color: #ffffff;
  transform: translateY(-2px);
}

/* Glassmorphism en Tarjetas de Métricas */
.hero-glass-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  padding-top: 1rem;
}

.metric-glass-card {
  background: rgba(15, 23, 42, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: var(--radius-md);
  padding: 1rem 1.15rem;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}

.metric-glass-card:hover {
  transform: translateY(-4px);
  background: rgba(15, 23, 42, 0.45);
  border-color: var(--chq-orange);
  box-shadow: 0 12px 25px -8px rgba(224, 79, 22, 0.45);
}

[data-theme="dark"] .metric-glass-card {
  background: rgba(10, 15, 28, 0.42);
  border-color: rgba(255, 255, 255, 0.22);
}

@media (max-width: 768px) {
  .hero-glass-metrics {
    grid-template-columns: repeat(2, 1fr);
  }
  .hero-video-controls {
    bottom: 0.8rem;
    right: 1rem;
    padding: 0.3rem 0.6rem;
  }
}

.metric-num {
  font-family: var(--font-heading);
  font-size: 1.85rem;
  font-weight: 900;
  color: #ff7a29;
  line-height: 1;
  margin-bottom: 0.35rem;
  text-shadow: 0 0 15px rgba(255, 122, 41, 0.3);
}

.metric-label {
  font-size: 0.8rem;
  color: #cbd5e1;
  font-weight: 600;
  line-height: 1.3;
}

/* Visual 3D Hero Mascot (Ícono Oficial de Los Chaneques) */
.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mascot-card-wrapper {
  position: relative;
  width: 100%;
  max-width: 440px;
  transform-style: preserve-3d;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.mascot-image-main {
  width: 100%;
  animation: float 4.5s ease-in-out infinite;
  filter: drop-shadow(0 25px 25px rgba(0, 0, 0, 0.25));
}

@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-12px); }
  100% { transform: translateY(0px); }
}

.floating-badge {
  position: absolute;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  padding: 0.85rem 1.2rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  display: flex;
  align-items: center;
  gap: 0.85rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.badge-top-right {
  top: 5%;
  right: -5%;
}

.badge-bottom-left {
  bottom: 8%;
  left: -5%;
}

@media (max-width: 576px) {
  .badge-top-right { right: 0; }
  .badge-bottom-left { left: 0; }
}

.badge-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--chq-orange);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.badge-icon.gold {
  background: var(--chq-gold);
  color: #141416;
}

.badge-info h5 {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--text-primary);
}

.badge-info p {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ==========================================================================
   CARDS DE SERVICIOS
   ========================================================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

@media (max-width: 991px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

.service-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.2rem 2rem;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--chq-orange), var(--chq-gold));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: rgba(224, 79, 22, 0.3);
}

.service-card:hover::before {
  opacity: 1;
}

.service-icon-box {
  width: 58px;
  height: 58px;
  border-radius: var(--radius-md);
  background: var(--chq-orange-subtle);
  color: var(--chq-orange);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(224, 79, 22, 0.15);
  transition: all 0.3s ease;
}

.service-card:hover .service-icon-box {
  background: var(--chq-orange);
  color: #fff;
  transform: scale(1.06);
}

.service-badge-small {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--chq-gold-dark);
  margin-bottom: 0.45rem;
}

.service-title {
  font-size: 1.35rem;
  margin-bottom: 0.85rem;
}

.service-summary {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.75rem;
  flex-grow: 1;
}

.service-link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--chq-orange);
  margin-top: auto;
}

.service-link-arrow:hover {
  gap: 0.8rem;
}

/* ==========================================================================
   TIRA DE CERTIFICACIONES (SEAL OF QUALITY)
   ========================================================================== */
.certifications-section {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  padding: 3.5rem 0;
}

/* ==========================================================================
   TIRA DE CERTIFICACIONES EN SLIDE CONTINUO (HOME)
   ========================================================================== */
.home-cert-slider-wrap {
  position: relative;
  width: 100%;
  margin: 0 auto;
  padding: 0 3.2rem;
}

.home-cert-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  transition: all 0.25s ease;
}

.home-cert-arrow:hover {
  background: var(--chq-orange);
  color: #ffffff;
  border-color: var(--chq-orange);
  box-shadow: 0 6px 18px rgba(224, 79, 22, 0.35);
  transform: translateY(-50%) scale(1.08);
}

.home-cert-arrow.prev {
  left: 0;
}

.home-cert-arrow.next {
  right: 0;
}

.home-cert-viewport {
  overflow-x: hidden;
  overflow-y: hidden;
  width: 100%;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-behavior: auto;
}

.home-cert-viewport::-webkit-scrollbar {
  display: none;
}

.home-cert-viewport.is-dragging {
  cursor: grabbing;
}

.home-cert-track {
  display: flex;
  gap: 1.25rem;
  width: max-content;
  will-change: transform, scroll-position;
  align-items: stretch;
  padding: 0.5rem 0;
}

.home-cert-slide {
  flex: 0 0 180px;
  width: 180px;
  display: flex;
}

button.cert-badge-box,
.cert-badge-box {
  width: 100%;
  min-height: 96px;
  background: var(--bg-surface-alt);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.15rem 0.9rem;
  text-align: center;
  transition: all 0.25s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

button.cert-badge-box:hover,
.cert-badge-box:hover {
  border-color: var(--chq-orange);
  background: var(--bg-surface);
  box-shadow: 0 8px 22px rgba(224, 79, 22, 0.15);
  transform: translateY(-3px);
}

button.cert-badge-box:focus-visible {
  outline: 2px solid var(--chq-orange);
  outline-offset: 2px;
}

.cert-code {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 800;
  color: var(--chq-orange);
  margin-bottom: 0.35rem;
  line-height: 1.2;
  white-space: nowrap;
}

.cert-name {
  font-size: 0.74rem;
  color: var(--text-secondary);
  font-weight: 600;
  line-height: 1.3;
}

@media (max-width: 768px) {
  .home-cert-slider-wrap {
    padding: 0 2rem;
  }
  .home-cert-arrow {
    width: 32px;
    height: 32px;
  }
  .home-cert-slide {
    flex: 0 0 155px;
    width: 155px;
  }
}

/* ==========================================================================
   SECTORES ATENDIDOS
   ========================================================================== */
.sectors-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

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

.sector-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.2rem;
  position: relative;
}

.sector-header {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin-bottom: 1.5rem;
}

.sector-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--chq-orange-subtle);
  color: var(--chq-orange);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

.sector-features {
  list-style: none;
  margin-top: 1.2rem;
}

.sector-features li {
  position: relative;
  padding-left: 1.4rem;
  margin-bottom: 0.6rem;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.sector-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #10b981;
  font-weight: bold;
}

/* ==========================================================================
   BANNER DE COTIZACIÓN RÁPIDA / CTA
   ========================================================================== */
.cta-banner {
  background: linear-gradient(135deg, #1c1d21 0%, #101012 100%);
  border-radius: var(--radius-xl);
  padding: 4rem 3.5rem;
  color: #ffffff;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.cta-banner::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(224, 79, 22, 0.25) 0%, transparent 70%);
  pointer-events: none;
}

.cta-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
  align-items: center;
  position: relative;
  z-index: 2;
}

@media (max-width: 900px) {
  .cta-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.cta-banner h2 {
  color: #ffffff;
  margin-bottom: 1rem;
}

.cta-banner p {
  color: #94a3b8;
  font-size: 1.15rem;
}

/* ==========================================================================
   COTIZADOR INTERACTIVO WIZARD
   ========================================================================== */
.quote-wizard-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 3rem;
  box-shadow: var(--shadow-xl);
}

@media (max-width: 768px) {
  .quote-wizard-card {
    padding: 1.75rem;
  }
}

.wizard-steps {
  display: flex;
  justify-content: space-between;
  margin-bottom: 2.5rem;
  position: relative;
}

.wizard-steps::before {
  content: '';
  position: absolute;
  top: 18px;
  left: 30px;
  right: 30px;
  height: 2px;
  background: var(--border-color);
  z-index: 1;
}

.wizard-step-item {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.step-circle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--bg-surface-alt);
  border: 2px solid var(--border-color);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-family: var(--font-heading);
  transition: all 0.3s ease;
}

.wizard-step-item.active .step-circle {
  background: var(--chq-orange);
  border-color: var(--chq-orange);
  color: #fff;
  box-shadow: 0 0 0 4px var(--chq-orange-subtle);
}

.step-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
}

.wizard-step-item.active .step-title {
  color: var(--text-primary);
}

.wizard-options-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.option-radio-card {
  position: relative;
}

.option-radio-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.option-card-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.75rem;
  padding: 1.5rem 1rem;
  background: var(--bg-surface-alt);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s ease;
}

.option-radio-card input:checked + .option-card-label {
  border-color: var(--chq-orange);
  background: var(--chq-orange-subtle);
}

.option-icon {
  font-size: 1.8rem;
  color: var(--chq-orange);
}

.form-group {
  margin-bottom: 1.4rem;
}

.form-label {
  display: block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 0.45rem;
  color: var(--text-primary);
}

.form-control {
  width: 100%;
  padding: 0.85rem 1.1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  background: var(--bg-surface);
  color: var(--text-primary);
  outline: none;
  transition: border-color 0.2s ease;
}

.form-control:focus {
  border-color: var(--chq-orange);
  box-shadow: 0 0 0 3px var(--chq-orange-subtle);
}

/* ==========================================================================
   WHISTLEBLOWER TRACKING & ETHICS (ISO 37001)
   ========================================================================== */
.ethics-hero-card {
  background: linear-gradient(135deg, rgba(224, 79, 22, 0.08) 0%, rgba(218, 166, 103, 0.08) 100%);
  border: 1px solid rgba(224, 79, 22, 0.2);
  border-radius: var(--radius-xl);
  padding: 3rem;
  margin-bottom: 3rem;
}

.ethics-banner-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #10b981;
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 800;
  padding: 0.35rem 0.95rem;
  border-radius: var(--radius-full);
  margin-bottom: 1.2rem;
}

.tracking-box-result {
  background: var(--bg-surface);
  border: 2px solid #10b981;
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-top: 1.5rem;
}

.tracking-code-display {
  font-family: monospace;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--chq-orange);
  background: var(--bg-surface-alt);
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-sm);
  display: inline-block;
  letter-spacing: 0.15em;
  margin: 1rem 0;
  border: 1px dashed var(--border-color);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background: var(--chq-black);
  color: #94a3b8;
  padding-top: 5rem;
  padding-bottom: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 4rem;
}

@media (max-width: 991px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

.footer-col h4 {
  color: #ffffff;
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 32px;
  height: 2px;
  background: var(--chq-orange);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: #94a3b8;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.footer-links a:hover {
  color: var(--chq-orange-light);
  transform: translateX(4px);
}

.footer-contact-list {
  list-style: none;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1.1rem;
  color: #cbd5e1;
  font-size: 0.95rem;
}

.footer-contact-icon {
  color: var(--chq-orange);
  margin-top: 0.25rem;
  flex-shrink: 0;
}

.footer-brand-logo {
  display: inline-flex;
  margin-bottom: 1.2rem;
}

.footer-brand-img {
  height: 48px;
  width: auto;
}

.footer-desc {
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
  line-height: 1.6;
}

.footer-badges {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.footer-highlight-link {
  color: var(--chq-gold) !important;
}

.footer-highlight-link:hover {
  color: #ffd54f !important;
}

.footer-cta-box {
  margin-top: 1.5rem;
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.88rem;
}

.footer-legal-links {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  flex-wrap: wrap;
}

.footer-legal-link svg {
  margin-right: 5px;
  flex-shrink: 0;
}

/* ==========================================================================
   BOTÓN FLOTANTE DE WHATSAPP
   ========================================================================== */
.whatsapp-floating-btn {
  position: fixed;
  bottom: 25px;
  right: 25px;
  z-index: 999;
  width: 60px;
  height: 60px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 2rem;
  box-shadow: 0 10px 25px -5px rgba(37, 211, 102, 0.5);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
}

.whatsapp-floating-btn:hover {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 14px 30px -4px rgba(37, 211, 102, 0.65);
}

.whatsapp-floating-btn .tooltip-bubble {
  position: absolute;
  right: 70px;
  background: var(--bg-surface);
  color: var(--text-primary);
  padding: 0.5rem 0.95rem;
  border-radius: var(--radius-md);
  font-size: 0.82rem;
  font-weight: 700;
  box-shadow: var(--shadow-lg);
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transform: translateX(10px);
  transition: all 0.25s ease;
  border: 1px solid var(--border-color);
}

.whatsapp-floating-btn:hover .tooltip-bubble {
  opacity: 1;
  transform: translateX(0);
}

/* ==========================================================================
   MENÚ MÓVIL OFF-CANVAS
   ========================================================================== */
.mobile-nav-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 320px;
  max-width: 85vw;
  background: var(--bg-surface);
  z-index: 2000;
  box-shadow: var(--shadow-xl);
  padding: 2rem 1.5rem;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
}

.mobile-nav-drawer.open {
  transform: translateX(0);
}

.mobile-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 1999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.mobile-overlay.open {
  opacity: 1;
  visibility: visible;
}

.mobile-header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
}

.close-drawer-btn {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-primary);
  cursor: pointer;
}

.mobile-nav-links {
  list-style: none;
}

.mobile-nav-links li {
  margin-bottom: 0.5rem;
}

.mobile-nav-links a {
  display: block;
  padding: 0.75rem 1rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text-primary);
  border-radius: var(--radius-sm);
}

.mobile-nav-links a:hover {
  background: var(--chq-orange-subtle);
  color: var(--chq-orange);
}

/* ==========================================================================
   ALERTAS Y NOTIFICACIONES
   ========================================================================== */
.alert {
  padding: 1rem 1.4rem;
  border-radius: var(--radius-md);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.95rem;
}

.alert-success {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #065f46;
}

[data-theme="dark"] .alert-success {
  color: #34d399;
}

/* ==========================================================================
   TABLAS Y DETALLES TÉCNICOS
   ========================================================================== */
.table-responsive {
  overflow-x: auto;
}

.table-custom {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.table-custom th, .table-custom td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border-color);
}

.table-custom th {
  background: var(--bg-surface-alt);
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--text-primary);
}

/* ==========================================================================
   MODAL DE POLÍTICA Y AVISO DE PRIVACIDAD
   ========================================================================== */
.footer-legal-link {
  background: transparent;
  border: none;
  padding: 0;
  margin: 0;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text-muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  transition: all 0.2s ease;
  text-decoration: none;
}

.footer-legal-link:hover,
.footer-legal-link:focus-visible {
  color: var(--chq-orange);
  outline: none;
  transform: translateY(-1px);
}

.footer-subtle-link {
  font-size: 0.95rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-subtle-link:hover {
  color: var(--chq-orange);
}

/* Backdrop */
.chq-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(10, 11, 13, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s ease;
}

.chq-modal-backdrop.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Contenedor del Diálogo */
.chq-modal-dialog {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(224, 79, 22, 0.12);
  width: 100%;
  max-width: 840px;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: scale(0.94) translateY(24px);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.chq-modal-backdrop.is-open .chq-modal-dialog {
  transform: scale(1) translateY(0);
}

/* Cabecera */
.chq-modal-header {
  padding: 1.5rem 2rem 1.25rem 2rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.25rem;
  background: var(--bg-surface-elevated);
}

.chq-modal-header-info {
  flex: 1;
}

.chq-modal-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.25rem 0.75rem;
  background: var(--chq-orange-subtle);
  color: var(--chq-orange);
  border: 1px solid rgba(224, 79, 22, 0.2);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.5rem;
}

.chq-modal-title {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0;
  line-height: 1.25;
}

.chq-modal-subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0.3rem 0 0 0;
}

.chq-modal-close-btn {
  background: var(--bg-surface-alt);
  border: 1px solid var(--border-color);
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.chq-modal-close-btn:hover {
  background: var(--chq-orange);
  color: #ffffff;
  border-color: var(--chq-orange);
  transform: rotate(90deg);
}

/* Cuerpo con Scroll */
.chq-modal-body {
  padding: 1.75rem 2rem;
  overflow-y: auto;
  color: var(--text-secondary);
  line-height: 1.75;
  font-size: 0.95rem;
  scroll-behavior: smooth;
}

.chq-modal-body::-webkit-scrollbar {
  width: 8px;
}

.chq-modal-body::-webkit-scrollbar-track {
  background: var(--bg-surface-alt);
  border-radius: 4px;
}

.chq-modal-body::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 4px;
}

.chq-modal-body::-webkit-scrollbar-thumb:hover {
  background: var(--chq-orange);
}

/* Alerta informativa */
.chq-modal-alert {
  background: rgba(224, 79, 22, 0.07);
  border: 1px solid rgba(224, 79, 22, 0.22);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  margin-bottom: 1.75rem;
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  font-size: 0.92rem;
  color: var(--text-primary);
  line-height: 1.5;
}

.chq-modal-alert-icon {
  color: var(--chq-orange);
  flex-shrink: 0;
  margin-top: 2px;
}

/* Secciones de Contenido */
.privacy-section {
  margin-bottom: 1.75rem;
}

.privacy-section h4 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 0.6rem 0;
}

.privacy-section p {
  margin: 0 0 0.85rem 0;
  color: var(--text-secondary);
}

.privacy-section a {
  color: var(--chq-orange);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.privacy-list {
  margin: 0.5rem 0 1rem 1.25rem;
  padding: 0;
  list-style-type: disc;
}

.privacy-list li {
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
}

.privacy-list li strong {
  color: var(--text-primary);
}

/* Grid de Derechos ARCO */
.arco-box {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 0.85rem;
  margin: 1rem 0;
}

.arco-item {
  background: var(--bg-surface-alt);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.9rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.arco-item:hover {
  transform: translateY(-2px);
  border-color: rgba(224, 79, 22, 0.4);
}

.arco-item strong {
  color: var(--chq-orange);
  font-family: var(--font-heading);
  font-size: 0.95rem;
}

.arco-item span {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.45;
}

/* Pie del Modal */
.chq-modal-footer {
  padding: 1.25rem 2rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: var(--bg-surface-elevated);
  flex-wrap: wrap;
}

.chq-modal-link {
  font-size: 0.88rem;
  color: var(--text-muted);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  transition: color 0.2s ease;
}

.chq-modal-link:hover {
  color: var(--chq-orange);
  text-decoration: underline;
}

.chq-modal-footer-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.btn-print-action {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

/* Responsive Modal */
@media (max-width: 640px) {
  .chq-modal-backdrop {
    padding: 0.75rem;
  }

  .chq-modal-dialog {
    max-height: 94vh;
    border-radius: var(--radius-lg);
  }

  .chq-modal-header {
    padding: 1.25rem 1.25rem 1rem 1.25rem;
  }

  .chq-modal-title {
    font-size: 1.15rem;
  }

  .chq-modal-body {
    padding: 1.25rem;
  }

  .chq-modal-footer {
    padding: 1rem 1.25rem;
    flex-direction: column;
    align-items: stretch;
  }

  .chq-modal-footer-right {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .chq-modal-footer-left {
    text-align: center;
  }
}

/* ==========================================================================
   MÓDULO DE ACCESIBILIDAD UNIVERSAL LOS CHANEQUES (WCAG 2.1 AAA)
   ========================================================================== */

/* 1. Botón Flotante Tab estilo OneTap/UserWay (Lado Derecho Superior Bajo el Menú) */
.a11y-floating-trigger,
.a11y-fab-btn {
  position: fixed;
  top: 130px;
  right: 0;
  left: auto;
  bottom: auto;
  z-index: 9998;
  width: 58px;
  height: 58px;
  border-radius: 14px 0 0 14px;
  background: var(--chq-orange, #e04f16);
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.45);
  border-right: none;
  box-shadow: -4px 6px 20px rgba(0, 0, 0, 0.25);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.2s ease, box-shadow 0.25s ease;
  outline: none;
}

.a11y-floating-trigger:hover,
.a11y-floating-trigger:focus-visible,
.a11y-fab-btn:hover,
.a11y-fab-btn:focus-visible {
  transform: translateX(-5px);
  background: var(--chq-orange-light, #ff6b35);
  box-shadow: -6px 8px 24px rgba(224, 79, 22, 0.5);
}

.a11y-trigger-tooltip,
.a11y-fab-tooltip {
  position: absolute;
  right: calc(100% + 12px);
  left: auto;
  background: #141416;
  color: #ffffff;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transform: translateX(6px);
  transition: all 0.2s ease;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.a11y-floating-trigger:hover .a11y-trigger-tooltip,
.a11y-floating-trigger:focus-visible .a11y-trigger-tooltip,
.a11y-fab-btn:hover .a11y-fab-tooltip,
.a11y-fab-btn:focus-visible .a11y-fab-tooltip {
  opacity: 1;
  transform: translateX(0);
}

/* 2. Backdrop y Panel Lateral Deslizante desde la DERECHA */
.a11y-backdrop {
  position: fixed;
  inset: 0;
  z-index: 99995;
  background: rgba(10, 11, 13, 0.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s ease;
}

.a11y-backdrop.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.a11y-panel-drawer {
  position: fixed;
  top: 0;
  right: 0;
  left: auto;
  bottom: 0;
  width: 100%;
  max-width: 440px;
  background: var(--bg-surface);
  border-left: 1px solid var(--border-color);
  border-right: none;
  box-shadow: -14px 0 45px -10px rgba(0, 0, 0, 0.35);
  z-index: 99999;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.a11y-panel-drawer.is-open {
  transform: translateX(0);
}

/* Cabecera del Drawer */
.a11y-header {
  padding: 1.4rem 1.5rem;
  border-bottom: 1px solid var(--border-color);
  background: var(--bg-surface-elevated);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.a11y-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  background: var(--chq-orange-subtle);
  color: var(--chq-orange);
  border: 1px solid rgba(224, 79, 22, 0.2);
  margin-bottom: 0.4rem;
}

.a11y-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0;
  line-height: 1.2;
}

.a11y-subtitle {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin: 0.25rem 0 0 0;
  line-height: 1.4;
}

.a11y-header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.a11y-action-btn {
  border: 1px solid var(--border-color);
  background: var(--bg-surface-alt);
  color: var(--text-secondary);
  border-radius: var(--radius-md);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  font-family: inherit;
}

.a11y-btn-reset {
  padding: 0.45rem 0.75rem;
  font-size: 0.78rem;
  font-weight: 600;
  gap: 0.35rem;
}

.a11y-btn-reset:hover {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  border-color: rgba(239, 68, 68, 0.3);
}

.a11y-btn-close {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
}

.a11y-btn-close:hover {
  background: var(--chq-orange);
  color: #ffffff;
  border-color: var(--chq-orange);
  transform: rotate(90deg);
}

/* Barra de Multi-idioma / Traducción en Vivo estilo UserWay / AccessiBe */
.a11y-lang-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.75rem;
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid var(--a11y-border, rgba(255, 255, 255, 0.08));
  position: relative;
  z-index: 100;
}

.a11y-lang-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--a11y-muted, #94a3b8);
  font-size: 0.82rem;
  font-weight: 600;
}

.a11y-lang-icon {
  color: var(--chq-orange, #e04f16);
  flex-shrink: 0;
}

.a11y-lang-dropdown-wrapper {
  position: relative;
}

.a11y-lang-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.42rem 0.85rem;
  background: rgba(224, 79, 22, 0.12);
  border: 1px solid rgba(224, 79, 22, 0.45);
  border-radius: 9999px;
  color: #ffffff;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  outline: none;
}

.a11y-lang-pill-btn:hover,
.a11y-lang-pill-btn:focus-visible,
.a11y-lang-pill-btn[aria-expanded="true"] {
  background: rgba(224, 79, 22, 0.25);
  border-color: var(--chq-orange, #e04f16);
  box-shadow: 0 0 14px rgba(224, 79, 22, 0.35);
}

.a11y-lang-flag {
  font-size: 1.15rem;
  line-height: 1;
}

.a11y-lang-name {
  font-size: 0.84rem;
}

.a11y-lang-caret {
  transition: transform 0.2s ease;
  color: rgba(255, 255, 255, 0.7);
}

.a11y-lang-pill-btn[aria-expanded="true"] .a11y-lang-caret {
  transform: rotate(180deg);
}

/* Menú flotante del selector de idiomas */
.a11y-lang-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 270px;
  max-height: 320px;
  background: #141419;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.65);
  overflow: hidden;
  z-index: 1000;
  display: flex;
  flex-direction: column;
}

.a11y-lang-search-wrapper {
  padding: 0.6rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.25);
}

.a11y-lang-search-field {
  width: 100%;
  padding: 0.45rem 0.7rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  color: #ffffff;
  font-size: 0.80rem;
  outline: none;
  font-family: inherit;
}

.a11y-lang-search-field:focus {
  border-color: var(--chq-orange, #e04f16);
  background: rgba(255, 255, 255, 0.1);
}

.a11y-lang-list {
  list-style: none;
  margin: 0;
  padding: 0.35rem 0;
  overflow-y: auto;
  max-height: 250px;
}

.a11y-lang-list::-webkit-scrollbar {
  width: 6px;
}

.a11y-lang-list::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
}

.a11y-lang-item-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.55rem 0.85rem;
  background: transparent;
  border: none;
  color: #e2e8f0;
  font-size: 0.84rem;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.a11y-lang-item-btn:hover,
.a11y-lang-item-btn:focus-visible {
  background: rgba(224, 79, 22, 0.18);
  color: #ffffff;
}

.a11y-lang-item-btn.is-active {
  background: rgba(224, 79, 22, 0.28);
  color: #ff8c5a;
  font-weight: 700;
}

.a11y-lang-item-flag {
  font-size: 1.25rem;
  line-height: 1;
}

.a11y-lang-item-name {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.a11y-lang-item-check {
  font-size: 0.75rem;
  color: var(--chq-orange, #e04f16);
  font-weight: bold;
}

/* Ocultar banners e interferencias de Google Translate */
.chq-google-translate-hidden {
  display: none !important;
}

.goog-te-banner-frame.skiptranslate,
.goog-te-banner-frame,
iframe.goog-te-banner-frame {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
}

body {
  top: 0px !important;
  position: static !important;
}

#goog-gt-tt,
.goog-te-balloon-frame {
  display: none !important;
}

.goog-text-highlight {
  background: none !important;
  box-shadow: none !important;
}

/* Cuerpo del Drawer con Scroll */
.a11y-body {
  padding: 1.5rem;
  overflow-y: auto;
  flex: 1;
}

.a11y-body::-webkit-scrollbar {
  width: 6px;
}

.a11y-body::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 3px;
}

.a11y-section {
  margin-bottom: 1.75rem;
}

.a11y-section-title {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-heading);
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.35rem;
}

.a11y-section-title svg {
  color: var(--chq-orange);
}

.a11y-section-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0 0 0.85rem 0;
  line-height: 1.4;
}

/* Perfiles de 1 Clic (Tarjetas Toggle) */
.a11y-grid-profiles {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.a11y-card-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  background: var(--bg-surface-alt);
  color: var(--text-primary);
  cursor: pointer;
  text-align: left;
  transition: all 0.2s ease;
  font-family: inherit;
}

.a11y-card-toggle:hover {
  border-color: rgba(224, 79, 22, 0.4);
  transform: translateY(-1px);
}

.a11y-card-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--chq-orange);
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.a11y-card-info {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.a11y-card-info strong {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-primary);
}

.a11y-card-info span {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.3;
}

.a11y-status-pill {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-full);
  background: var(--border-color);
  color: var(--text-secondary);
  transition: all 0.2s ease;
}

.a11y-card-toggle.is-active {
  background: var(--chq-orange-subtle);
  border-color: var(--chq-orange);
}

.a11y-card-toggle.is-active .a11y-card-icon {
  background: var(--chq-orange);
  color: #ffffff;
  border-color: var(--chq-orange);
}

.a11y-card-toggle.is-active .a11y-status-pill {
  background: var(--chq-orange);
  color: #ffffff;
}

/* Stepper de Tamaño de Fuente */
.a11y-control-group {
  margin-bottom: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.a11y-control-label {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.a11y-font-stepper {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background: var(--bg-surface-alt);
  overflow: hidden;
}

.a11y-stepper-btn {
  border: none;
  background: transparent;
  padding: 0.4rem 0.9rem;
  cursor: pointer;
  color: var(--text-primary);
  transition: background 0.2s ease;
  font-family: inherit;
}

.a11y-stepper-btn:hover {
  background: rgba(224, 79, 22, 0.15);
  color: var(--chq-orange);
}

.a11y-stepper-indicator {
  padding: 0.4rem 0.75rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary);
  border-left: 1px solid var(--border-color);
  border-right: 1px solid var(--border-color);
  min-width: 60px;
  text-align: center;
}

/* Grid de Botones de Herramientas */
.a11y-button-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.6rem;
}

.a11y-tool-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.5rem;
  padding: 0.85rem 0.6rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  background: var(--bg-surface-alt);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.a11y-tool-btn svg {
  color: var(--text-muted);
  transition: color 0.2s ease, transform 0.2s ease;
}

.a11y-tool-btn:hover {
  border-color: rgba(224, 79, 22, 0.4);
  transform: translateY(-2px);
}

.a11y-tool-btn.is-active {
  background: var(--chq-orange-subtle);
  border-color: var(--chq-orange);
  color: var(--chq-orange-dark);
}

[data-theme="dark"] .a11y-tool-btn.is-active {
  color: var(--chq-orange-light);
}

.a11y-tool-btn.is-active svg {
  color: var(--chq-orange);
  transform: scale(1.15);
}

/* Pie del Panel */
.a11y-footer {
  padding: 1.25rem 1.5rem;
  border-top: 1px solid var(--border-color);
  background: var(--bg-surface-elevated);
}

.a11y-footer-status {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.76rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  justify-content: center;
}

.a11y-footer-status-icon {
  color: #10b981;
}

.a11y-footer-close-btn {
  width: 100%;
}

.a11y-section-last {
  margin-bottom: 0;
}

.a11y-tts-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  justify-content: center;
}

.a11y-tts-status {
  display: none;
  margin-top: 0.6rem;
  font-size: 0.8rem;
  color: #10b981;
  font-weight: 600;
  text-align: center;
}

.mobile-nav-a11y-btn {
  background: none;
  border: none;
  padding: 0.65rem 0;
  width: 100%;
  text-align: left;
  font-family: inherit;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--chq-orange);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color 0.2s ease;
}

.mobile-nav-a11y-btn:hover {
  color: var(--chq-orange-light);
}

/* ==========================================================================
   3. ESTILOS APLICADOS DINÁMICAMENTE AL CONTENIDO DE LA PÁGINA
   ========================================================================== */

/* Escala de texto */
html.a11y-font-scale-90 { font-size: 90% !important; }
html.a11y-font-scale-110 { font-size: 110% !important; }
html.a11y-font-scale-120 { font-size: 120% !important; }
html.a11y-font-scale-130 { font-size: 130% !important; }

/* Interlineado y espaciado de letras */
body.a11y-line-height-active p,
body.a11y-line-height-active li,
body.a11y-line-height-active h1,
body.a11y-line-height-active h2,
body.a11y-line-height-active h3,
body.a11y-line-height-active span {
  line-height: 2 !important;
}

body.a11y-letter-spacing-active * {
  letter-spacing: 0.1em !important;
  word-spacing: 0.16em !important;
}

/* Fuente hiperlegible para dislexia */
body.a11y-dyslexic-font-active,
body.a11y-dyslexic-font-active * {
  font-family: 'Trebuchet MS', 'Comic Sans MS', system-ui, -apple-system, sans-serif !important;
}

/* Resaltar enlaces */
body.a11y-highlight-links-active a {
  text-decoration: underline 3px solid var(--chq-orange) !important;
  text-underline-offset: 4px !important;
  font-weight: 700 !important;
  background-color: rgba(224, 79, 22, 0.08) !important;
  border-radius: 2px !important;
}

/* Resaltar títulos */
body.a11y-highlight-headings-active h1,
body.a11y-highlight-headings-active h2,
body.a11y-highlight-headings-active h3,
body.a11y-highlight-headings-active h4 {
  border-left: 6px solid var(--chq-orange) !important;
  padding-left: 0.75rem !important;
}

/* Escala de Grises / Monocromático */
body.a11y-grayscale-active {
  filter: grayscale(100%) !important;
}

/* Alto Contraste Oscuro */
body.a11y-contrast-dark-active {
  background-color: #000000 !important;
  color: #ffffff !important;
}

body.a11y-contrast-dark-active .card,
body.a11y-contrast-dark-active .site-footer,
body.a11y-contrast-dark-active .top-bar,
body.a11y-contrast-dark-active .main-header,
body.a11y-contrast-dark-active section {
  background-color: #0d0d0d !important;
  color: #ffffff !important;
  border-color: #333333 !important;
}

body.a11y-contrast-dark-active a {
  color: #ffee00 !important;
}

body.a11y-contrast-dark-active h1,
body.a11y-contrast-dark-active h2,
body.a11y-contrast-dark-active h3,
body.a11y-contrast-dark-active h4 {
  color: #ffffff !important;
}

/* Alto Contraste Claro */
body.a11y-contrast-light-active {
  background-color: #ffffff !important;
  color: #000000 !important;
}

body.a11y-contrast-light-active * {
  border-color: #000000 !important;
}

body.a11y-contrast-light-active p,
body.a11y-contrast-light-active li,
body.a11y-contrast-light-active span {
  color: #000000 !important;
}

/* Invertir Colores */
body.a11y-invert-colors-active {
  filter: invert(100%) hue-rotate(180deg) !important;
  background-color: #000000 !important;
}

body.a11y-invert-colors-active img,
body.a11y-invert-colors-active video,
body.a11y-invert-colors-active iframe,
body.a11y-invert-colors-active #chq-accessibility-suite {
  filter: invert(100%) hue-rotate(180deg) !important;
}

/* Detener Animaciones */
body.a11y-stop-animations-active *,
body.a11y-stop-animations-active *::before,
body.a11y-stop-animations-active *::after {
  animation: none !important;
  transition: none !important;
  scroll-behavior: auto !important;
}

/* Navegación por teclado / Foco gigante */
body.a11y-keyboard-nav-active *:focus-visible {
  outline: 4px solid #ffea00 !important;
  outline-offset: 4px !important;
  box-shadow: 0 0 0 8px #000000 !important;
}

/* Cursor Gigante */
body.a11y-big-cursor-active,
body.a11y-big-cursor-active * {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='44' viewBox='0 0 24 24' fill='%23141416' stroke='%23ffffff' stroke-width='2'%3E%3Cpath d='m4 4 7.07 17 2.51-7.39L21 11.07z'/%3E%3C/svg%3E"), auto !important;
}

body.a11y-big-cursor-active a,
body.a11y-big-cursor-active button,
body.a11y-big-cursor-active [role="button"] {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='44' viewBox='0 0 24 24' fill='%23e04f16' stroke='%23ffffff' stroke-width='2'%3E%3Cpath d='m4 4 7.07 17 2.51-7.39L21 11.07z'/%3E%3C/svg%3E"), pointer !important;
}

/* Guía de Lectura Flotante (Regla) */
.a11y-reading-guide {
  position: fixed;
  left: 0;
  right: 0;
  height: 12px;
  background: rgba(224, 79, 22, 0.75);
  box-shadow: 0 0 16px rgba(224, 79, 22, 0.6);
  border-top: 2px solid #ffffff;
  border-bottom: 2px solid #ffffff;
  pointer-events: none;
  z-index: 99996;
  display: none;
  transform: translateY(-50%);
}

.a11y-reading-guide.active {
  display: block;
}

/* Máscara de Enfoque para TDAH */
.a11y-reading-mask {
  position: fixed;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.75);
  pointer-events: none;
  z-index: 99994;
  display: none;
}

.a11y-reading-mask.active {
  display: block;
}

.a11y-reading-mask-top {
  top: 0;
}

.a11y-reading-mask-bottom {
  bottom: 0;
}

/* Adaptación responsive para pantallas móviles */
@media (max-width: 640px) {
  .a11y-floating-trigger,
  .a11y-fab-btn {
    top: 90px;
    right: 0;
    left: auto;
    bottom: auto;
    width: 48px;
    height: 50px;
    border-radius: 12px 0 0 12px;
  }

  .a11y-floating-trigger svg,
  .a11y-fab-btn svg {
    width: 26px;
    height: 26px;
  }

  .a11y-panel-drawer {
    max-width: 100%;
  }

  .a11y-header {
    padding: 1.15rem;
  }

  .a11y-body {
    padding: 1.15rem;
  }
}

/* ==========================================================================
   SHOWCASE DE 11 CERTIFICACIONES (DISPLAY DE 4 EN 4 Y MODAL INTERACTIVO)
   ========================================================================== */
.cert-showcase-section {
  padding: 4rem 0;
  background: var(--bg-surface);
  position: relative;
}

.cert-toolbar-container {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

.cert-toolbar-top {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.cert-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.9rem;
  background: var(--chq-orange-subtle);
  color: var(--chq-orange);
  border: 1px solid rgba(224, 79, 22, 0.25);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
}

.cert-view-toggle-wrap {
  display: inline-flex;
  background: var(--bg-surface-alt);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  padding: 4px;
  gap: 4px;
}

.cert-toggle-btn {
  background: transparent;
  border: none;
  padding: 0.45rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.2s ease;
}

.cert-toggle-btn:hover {
  color: var(--text-primary);
}

.cert-toggle-btn.is-active {
  background: var(--chq-orange);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(224, 79, 22, 0.3);
}

/* Barra de paginación interactiva (Bloques de 4) */
.cert-pagination-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--bg-surface-alt);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.cert-page-pills {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.cert-page-pill-btn {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 0.45rem 0.95rem;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
}

.cert-page-pill-btn:hover {
  border-color: var(--chq-orange);
  color: var(--chq-orange);
  transform: translateY(-1px);
}

.cert-page-pill-btn.is-active {
  background: var(--chq-orange);
  color: #ffffff;
  border-color: var(--chq-orange);
  box-shadow: 0 4px 12px rgba(224, 79, 22, 0.28);
}

.cert-nav-btn {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 0.5rem 1.1rem;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
}

.cert-nav-btn:hover:not(:disabled) {
  background: var(--chq-orange-subtle);
  border-color: var(--chq-orange);
  color: var(--chq-orange);
  transform: translateY(-1px);
}

.cert-nav-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}

/* ==========================================================================
   CAROUSEL SLIDER CONTINUO DE CERTIFICACIONES
   ========================================================================== */
.cert-slider-container {
  position: relative;
  width: 100%;
  margin-top: 1.5rem;
}

.cert-slider-viewport {
  overflow-x: auto;
  overflow-y: hidden;
  width: 100%;
  position: relative;
  border-radius: var(--radius-lg);
  padding: 0.6rem 0.25rem 1.25rem 0.25rem;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-behavior: auto;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
}

.cert-slider-viewport::-webkit-scrollbar {
  display: none;
}

.cert-slider-viewport:active {
  cursor: grabbing;
}

.cert-slider-track {
  display: flex;
  gap: 1.5rem;
  width: max-content;
  align-items: stretch;
  will-change: scroll-position;
}

/* Modo cuadrícula (todas las 11 certificaciones) */
.cert-slider-track.is-grid-mode {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  width: 100%;
}

@media (max-width: 1140px) {
  .cert-slider-track.is-grid-mode {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 820px) {
  .cert-slider-track.is-grid-mode {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }
}

@media (max-width: 540px) {
  .cert-slider-track.is-grid-mode {
    grid-template-columns: 1fr;
  }
}

/* Diapositiva individual del Carousel */
.cert-card-slide {
  flex: 0 0 285px;
  width: 285px;
  box-sizing: border-box;
  display: flex;
}

.cert-slider-track.is-grid-mode .cert-card-slide {
  flex: none;
  width: 100%;
}

.cert-slider-track.is-grid-mode .cert-card-slide.is-clone {
  display: none !important;
}

@media (max-width: 820px) {
  .cert-card-slide {
    flex: 0 0 260px;
    width: 260px;
  }
  .cert-slider-track {
    gap: 1.15rem;
  }
}

@media (max-width: 540px) {
  .cert-card-slide {
    flex: 0 0 240px;
    width: 240px;
  }
  .cert-slider-track {
    gap: 1rem;
  }
}

/* Flechas flotantes laterales */
.cert-floating-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  backdrop-filter: blur(8px);
}

.cert-floating-arrow.prev {
  left: -24px;
}

.cert-floating-arrow.next {
  right: -24px;
}

.cert-floating-arrow:hover {
  background: var(--chq-orange);
  color: #ffffff;
  border-color: var(--chq-orange);
  transform: translateY(-50%) scale(1.12);
  box-shadow: 0 10px 28px rgba(224, 79, 22, 0.45);
}

@media (max-width: 768px) {
  .cert-floating-arrow {
    width: 38px;
    height: 38px;
  }
  .cert-floating-arrow.prev {
    left: -8px;
  }
  .cert-floating-arrow.next {
    right: -8px;
  }
}

/* Tarjeta individual de Certificación */
.cert-card-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.6rem 1.35rem;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}

.cert-card-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--chq-orange), var(--chq-orange-light));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.cert-card-box:hover {
  transform: translateY(-6px);
  border-color: rgba(224, 79, 22, 0.5);
  box-shadow: 0 16px 36px -10px rgba(224, 79, 22, 0.15), 0 4px 16px rgba(0, 0, 0, 0.06);
}

.cert-card-box:hover::before {
  opacity: 1;
}

.cert-card-box:focus-visible {
  outline: 2px solid var(--chq-orange);
  outline-offset: 3px;
}

.cert-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.1rem;
}

.cert-index-number {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--text-muted);
  background: var(--bg-surface-alt);
  border: 1px solid var(--border-color);
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.cert-card-badge {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-full);
  background: var(--chq-orange-subtle);
  color: var(--chq-orange);
  border: 1px solid rgba(224, 79, 22, 0.15);
}

.cert-card-image-wrap {
  height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  padding: 0.5rem;
  background: radial-gradient(circle, var(--bg-surface-alt) 0%, transparent 70%);
  border-radius: var(--radius-md);
}

.cert-card-img {
  max-height: 95px;
  max-width: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.08));
}

.cert-card-box:hover .cert-card-img {
  transform: scale(1.08);
}

.cert-card-code {
  font-family: var(--font-heading);
  font-size: 1.18rem;
  font-weight: 800;
  color: var(--chq-orange);
  margin-bottom: 0.35rem;
  line-height: 1.25;
}

.cert-card-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.65rem;
  line-height: 1.35;
  min-height: 2.5rem;
}

.cert-card-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 1.25rem;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cert-card-action {
  margin-top: auto;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border-color);
}

.cert-open-modal-btn {
  width: 100%;
  background: var(--bg-surface-alt);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.6rem 0.9rem;
  border-radius: var(--radius-md);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.cert-card-box:hover .cert-open-modal-btn,
.cert-open-modal-btn:hover {
  background: var(--chq-orange);
  color: #ffffff;
  border-color: var(--chq-orange);
  box-shadow: 0 4px 14px rgba(224, 79, 22, 0.28);
}

/* Animación para el cambio de bloques */
.cert-card-box.anim-enter {
  animation: certFadeIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes certFadeIn {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ==========================================================================
   MODAL DE DETALLE DE CERTIFICACIÓN
   ========================================================================== */
.cert-modal-body-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2rem;
  align-items: flex-start;
}

@media (max-width: 820px) {
  .cert-modal-body-layout {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

.cert-modal-badge-sidebar {
  background: var(--bg-surface-alt);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.25rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cert-modal-seal-frame {
  width: 160px;
  height: 160px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  margin-bottom: 1.25rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.cert-modal-seal-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.12));
}

.cert-modal-verified-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(40, 167, 69, 0.12);
  color: #1e7e34;
  border: 1px solid rgba(40, 167, 69, 0.3);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
  margin-bottom: 1rem;
}

[data-theme="dark"] .cert-modal-verified-tag {
  background: rgba(40, 167, 69, 0.22);
  color: #75b798;
}

.cert-modal-meta-box {
  width: 100%;
  text-align: left;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1rem;
  font-size: 0.82rem;
  margin-top: 0.75rem;
}

.cert-modal-meta-row {
  margin-bottom: 0.65rem;
}

.cert-modal-meta-row:last-child {
  margin-bottom: 0;
}

.cert-modal-meta-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: block;
}

.cert-modal-meta-value {
  color: var(--text-primary);
  font-weight: 600;
  line-height: 1.3;
}

.cert-modal-content-main {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.cert-modal-quote-box {
  background: linear-gradient(135deg, var(--chq-orange-subtle) 0%, rgba(224, 79, 22, 0.03) 100%);
  border-left: 4px solid var(--chq-orange);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 1.25rem 1.5rem;
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--text-primary);
  font-weight: 500;
  font-style: italic;
}

.cert-modal-section-title {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.cert-modal-section-title svg {
  color: var(--chq-orange);
}

.cert-modal-scope-box {
  background: var(--bg-surface-alt);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

.cert-modal-highlights-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.cert-modal-highlight-item {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--text-primary);
}

.cert-modal-highlight-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: #28a745;
  margin-top: 2px;
}

/* Footer de Navegación del Modal */
.cert-modal-nav-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.cert-modal-nav-counter {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-secondary);
  padding: 0 0.5rem;
  white-space: nowrap;
}

/* ==========================================================================
   POLÍTICAS CORPORATIVAS - GRID 2x2 INTERACTIVO Y RESPONSIVO
   ========================================================================== */
.policies-section-wrap {
  max-width: 1140px;
  margin: 0 auto;
}

.policies-controls-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding: 0.75rem 1.25rem;
  background: var(--bg-surface-alt);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
}

.policies-count-hint {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.policies-actions-group {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.policies-bulk-btn {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  padding: 0.4rem 0.9rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  transition: all 0.2s ease;
}

.policies-bulk-btn:hover {
  color: var(--chq-orange);
  border-color: rgba(224, 79, 22, 0.3);
  background: var(--chq-orange-subtle);
}

.policies-grid-2x2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.75rem;
  align-items: start;
}

@media (max-width: 920px) {
  .policies-grid-2x2 {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
}

.policy-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 1.85rem;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.03);
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
  position: relative;
}

.policy-card:hover {
  border-color: rgba(224, 79, 22, 0.35);
  box-shadow: 0 10px 28px rgba(224, 79, 22, 0.08);
}

.policy-card.is-open {
  border-color: rgba(224, 79, 22, 0.5);
  box-shadow: 0 12px 32px rgba(224, 79, 22, 0.1);
}

.policy-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.1rem;
}

.policy-header-meta {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.policy-number-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--chq-orange-subtle);
  color: var(--chq-orange);
  font-weight: 800;
  font-size: 0.95rem;
  flex-shrink: 0;
}

.policy-tag-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.8rem;
  border-radius: var(--radius-full);
  background: var(--bg-surface-alt);
  border: 1px solid var(--border-color);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.policy-icon-wrapper {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--chq-orange-subtle);
  color: var(--chq-orange);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.25s ease;
}

.policy-card:hover .policy-icon-wrapper {
  transform: scale(1.08);
}

.policy-card-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0 0 0.8rem 0;
  line-height: 1.35;
}

.policy-card-intro {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

/* Sección Desplegable con CSS Grid Smooth Transition */
.policy-expandable-section {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.policy-card.is-open .policy-expandable-section {
  grid-template-rows: 1fr;
}

.policy-expandable-inner {
  overflow: hidden;
}

.policy-commitments-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--chq-orange);
  margin-bottom: 0.85rem;
  padding-top: 0.6rem;
  border-top: 1px dashed var(--border-color);
}

.policy-commitments-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.25rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.policy-commitment-item {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--text-primary);
}

.policy-check-bullet {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--chq-orange-subtle);
  color: var(--chq-orange);
  flex-shrink: 0;
  margin-top: 2px;
}

.policy-whistleblower-box {
  margin: 0 0 1.25rem 0;
  padding-top: 0.35rem;
}

.policy-whistleblower-btn {
  width: 100%;
  justify-content: center;
}

/* Botón de toggle en el pie de la tarjeta */
.policy-card-footer {
  margin-top: auto;
  padding-top: 0.75rem;
}

.policy-toggle-trigger {
  width: 100%;
  padding: 0.7rem 1.1rem;
  background: var(--bg-surface-alt);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  transition: all 0.2s ease;
}

.policy-toggle-trigger:hover {
  background: var(--chq-orange-subtle);
  border-color: rgba(224, 79, 22, 0.35);
  color: var(--chq-orange);
}

.policy-card.is-open .policy-toggle-trigger {
  background: var(--chq-orange-subtle);
  border-color: rgba(224, 79, 22, 0.4);
  color: var(--chq-orange);
}

.policy-toggle-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.policy-card.is-open .policy-toggle-icon {
  transform: rotate(180deg);
}
