:root {
  --primary: #059669;
  --primary-hover: #047857;
  --primary-light: #ecfdf5;
  --primary-dark: #064e3b;
  --primary-gradient: linear-gradient(135deg, #059669 0%, #10b981 100%);
  --accent-gold: #f59e0b;
  --accent-blue: #2563eb;
  --up-color: #10b981;
  --down-color: #ef4444;
  --neutral-color: #64748b;
  
  --bg-main: #f8fafc;
  --card-bg: #ffffff;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --border-color: #e2e8f0;
  --border-focus: #10b981;
  --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-card: 0 10px 25px -5px rgba(5, 150, 105, 0.08), 0 8px 10px -6px rgba(5, 150, 105, 0.04);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-main);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Container */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ========================================================
   BARRA MARQUESINA ESTILO TERMINAL / BOLSA (FONDO NEGRO)
   ======================================================== */
.ticker-wrapper {
  background: #000000;
  color: #ffffff;
  display: flex;
  align-items: center;
  height: 40px;
  border-bottom: 1px solid #1a1a1a;
  position: relative;
  z-index: 60;
  overflow: hidden;
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
}

.ticker-controls-area {
  display: flex;
  align-items: center;
  background: #000000;
  height: 100%;
  flex-shrink: 0;
  z-index: 10;
  border-right: 1px solid #222222;
  box-shadow: 4px 0 10px rgba(0, 0, 0, 0.6);
}

.ticker-pause-btn {
  background: transparent;
  border: none;
  color: #ffffff;
  width: 40px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 14px;
  letter-spacing: -1px;
  transition: opacity 0.2s, background 0.2s, color 0.2s;
  padding: 0 10px;
}

.ticker-pause-btn:hover {
  background: #18181b;
  color: #00e676;
}

.ticker-date-badge {
  background: #09090b;
  color: #e4e4e7;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 14px;
  height: 100%;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  white-space: nowrap;
  letter-spacing: 0.04em;
  border-left: 1px solid #27272a;
}

.ticker-date-badge svg {
  color: #00e676;
}

.ticker-marquee {
  flex: 1;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  mask-image: linear-gradient(to right, transparent, black 15px, black calc(100% - 15px), transparent);
}

.ticker-track {
  display: flex;
  align-items: center;
  white-space: nowrap;
  animation: ticker-slide 32s linear infinite;
  will-change: transform;
}

.ticker-track.paused,
.ticker-track:hover {
  animation-play-state: paused;
}

@keyframes ticker-slide {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-right: 32px;
  font-size: 13px;
  white-space: nowrap;
}

.ticker-item .asset-name {
  color: #ffffff;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.ticker-item .asset-val {
  color: #ffffff;
  font-weight: 700;
  font-family: 'JetBrains Mono', monospace;
  margin-left: 1px;
}

.ticker-icon-up {
  color: #00e676;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
}

.ticker-icon-down {
  color: #ff3b30;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
}

.ticker-var-up {
  color: #00e676;
  font-weight: 800;
  font-size: 12px;
  font-family: 'JetBrains Mono', monospace;
}

.ticker-var-down {
  color: #ff3b30;
  font-weight: 800;
  font-size: 12px;
  font-family: 'JetBrains Mono', monospace;
}

/* ========================================================
   SECCIONES Y MÓDULOS DE SOLUCIONES (INTEGRACIÓN NATIVA)
   ======================================================== */
.solution-feature-wrapper {
  margin: 16px auto;
  display: block;
  width: 100%;
}

.solution-feature-box {
  background: linear-gradient(135deg, #0f766e 0%, #0369a1 60%, #0284c7 100%);
  border: 1px solid rgba(255, 255, 255, 0.25);
  text-decoration: none;
  color: #ffffff;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 14px rgba(3, 105, 161, 0.22);
  transition: all 0.25s ease;
  width: 100%;
}

.solution-feature-box:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(3, 105, 161, 0.35);
  border-color: #38bdf8;
}

.solution-info-layout {
  display: flex;
  align-items: center;
  gap: 14px;
}

.solution-media-thumb {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.18);
  border: 2px solid rgba(255, 255, 255, 0.8);
  padding: 3px;
  overflow: hidden;
}

.solution-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.solution-text-block h4 {
  font-size: 16.5px;
  font-weight: 800;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 8px;
  line-height: 1.2;
}

.solution-tag-pill {
  background: #a7f3d0;
  color: #064e3b;
  font-size: 10.5px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 4px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.solution-tagline-text {
  display: block;
  font-size: 14px;
  font-weight: 800;
  color: #fef08a;
  margin-top: 2px;
  letter-spacing: -0.01em;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

.solution-body-text {
  font-size: 12.5px;
  color: #ffffff;
  font-weight: 600;
  margin-top: 3px;
  line-height: 1.35;
  opacity: 0.98;
}

.solution-button-link {
  background: #ffffff;
  color: #0369a1;
  font-size: 13px;
  font-weight: 800;
  padding: 9px 18px;
  border-radius: 6px;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.12);
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.solution-feature-box:hover .solution-button-link {
  background: #f0fdf4;
  color: #059669;
  transform: scale(1.02);
}

@media (max-width: 820px) {
  .solution-feature-box {
    flex-direction: column;
    align-items: flex-start;
    padding: 14px 16px;
  }
  .solution-button-link {
    width: 100%;
    justify-content: center;
    margin-top: 6px;
  }
}

/* ========================================================
   MÓDULO DE PRODUCTO 2: A2 SOFTWAY ADMINISTRATIVO
   ======================================================== */
.software-solution-wrapper {
  margin: 22px auto 16px auto;
  display: block;
  width: 100%;
}

.software-solution-card {
  background: linear-gradient(135deg, #ffffff 0%, #f0fdf4 100%);
  border: 2px solid rgba(5, 150, 105, 0.35);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--text-primary);
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  box-shadow: 0 4px 16px rgba(5, 150, 105, 0.08);
  transition: all 0.25s ease;
  width: 100%;
}

.software-solution-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(5, 150, 105, 0.18);
  border-color: var(--primary);
}

.software-content-layout {
  display: flex;
  align-items: center;
  gap: 18px;
}

.software-media-box {
  width: 76px;
  height: 76px;
  background: #ffffff;
  border-radius: 10px;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--border-color);
}

.software-media-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.software-body-block h4 {
  font-size: 16px;
  font-weight: 800;
  color: #064e3b;
  display: flex;
  align-items: center;
  gap: 10px;
  line-height: 1.2;
}

.software-status-pill {
  background: var(--primary-light);
  color: var(--primary);
  border: 1px solid rgba(5, 150, 105, 0.3);
  font-size: 11px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.software-body-desc {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 4px;
  line-height: 1.4;
  max-width: 680px;
}

.software-action-button {
  background: var(--primary-gradient);
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
  padding: 10px 20px;
  border-radius: 8px;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.25);
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.software-solution-card:hover .software-action-button {
  box-shadow: 0 6px 16px rgba(5, 150, 105, 0.35);
  transform: translateX(2px);
}

@media (max-width: 860px) {
  .software-solution-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 16px;
  }
  .software-action-button {
    width: 100%;
    justify-content: center;
    margin-top: 8px;
  }
}

/* Header */
.site-header {
  background: #ffffff;
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(8px);
}

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

.brand-area {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}

.brand-logo-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 3px 8px rgba(5, 150, 105, 0.25);
  flex-shrink: 0;
}

.brand-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.brand-logo-icon svg {
  width: 26px;
  height: 26px;
}

.brand-info h1 {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 6px;
}

.brand-info h1 span.tag-pro {
  font-size: 11px;
  background: var(--primary-light);
  color: var(--primary);
  padding: 2px 7px;
  border-radius: 999px;
  font-weight: 700;
  border: 1px solid rgba(5, 150, 105, 0.2);
}

.brand-info p {
  font-size: 12px;
  color: var(--text-secondary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.live-dot {
  width: 8px;
  height: 8px;
  background-color: var(--primary);
  border-radius: 50%;
  display: inline-block;
  animation: pulse-dot 1.8s infinite;
}

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

.btn-autobcv {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary-gradient);
  color: white;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  padding: 9px 16px;
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 10px rgba(5, 150, 105, 0.25);
  transition: all 0.2s ease;
}

.btn-autobcv:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(5, 150, 105, 0.35);
}

/* ========================================================
   ENCABEZADO COMPACTO DE PÁGINA (PONE LA TABLA AL FRENTE)
   ======================================================== */
.page-top-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding: 20px 0 14px 0;
}

.top-title-area h2 {
  font-size: 24px;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.2;
}

.top-title-area h2 span {
  color: var(--primary);
}

.top-title-area p {
  font-size: 13.5px;
  color: var(--text-secondary);
  margin-top: 3px;
}

.top-badges-area {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* ========================================================
   CALCULADORA DE CONVERSIÓN COMPACTA
   ======================================================== */
.calc-compact-card {
  background: var(--card-bg);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  padding: 16px 20px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 26px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.calc-compact-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  flex-wrap: wrap;
  gap: 8px;
}

.calc-compact-title {
  display: flex;
  align-items: center;
  gap: 8px;
}

.calc-compact-title h4 {
  font-size: 15px;
  font-weight: 800;
  color: var(--text-primary);
}

.calc-compact-rate-badge {
  font-size: 11.5px;
  color: var(--primary-dark);
  background: var(--primary-light);
  border: 1px solid rgba(5, 150, 105, 0.25);
  padding: 3px 10px;
  border-radius: 6px;
  font-weight: 700;
  font-family: 'JetBrains Mono', monospace;
}

.calc-compact-body {
  display: flex;
  align-items: flex-end;
  gap: 14px;
  flex-wrap: wrap;
}

.calc-field-group {
  flex: 1;
  min-width: 200px;
}

.calc-field-group label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 4px;
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.calc-compact-input-row {
  display: flex;
  align-items: center;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 6px 12px;
  transition: all 0.2s;
}

.calc-compact-input-row:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.15);
}

.calc-compact-input-row input {
  border: none;
  background: transparent;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  width: 100%;
  outline: none;
  font-family: 'JetBrains Mono', monospace;
}

.calc-compact-input-row select {
  border: none;
  background: transparent;
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
  cursor: pointer;
  outline: none;
  padding-left: 6px;
}

.btn-swap-compact {
  background: #ffffff;
  border: 1px solid var(--border-color);
  width: 38px;
  height: 38px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s;
  flex-shrink: 0;
  margin-bottom: 1px;
}

.btn-swap-compact:hover {
  background: var(--primary-light);
  border-color: var(--primary);
  transform: scale(1.05);
}

.calc-compact-result-box {
  background: #ecfdf5;
  border: 1px solid rgba(5, 150, 105, 0.3);
  border-radius: var(--radius-sm);
  padding: 6px 14px;
  font-size: 18px;
  font-weight: 800;
  color: var(--primary-dark);
  font-family: 'JetBrains Mono', monospace;
  display: flex;
  align-items: center;
  min-height: 38px;
}

@media (max-width: 680px) {
  .calc-compact-body {
    flex-direction: column;
    align-items: stretch;
  }
  .btn-swap-compact {
    align-self: center;
    margin: 4px 0;
  }
}

/* ========================================================
   ESTRUCTURA DE TABLA CON BARRA VERTICAL (DESKTOP / MÓVIL)
   ======================================================== */
.table-sidebar-layout {
  display: grid;
  grid-template-columns: 1fr 310px;
  gap: 22px;
  align-items: start;
  margin-bottom: 24px;
}

.table-main-col {
  min-width: 0; /* Evita desborde en CSS grid */
}

.table-sidebar-col {
  position: sticky;
  top: 80px;
}

.sidebar-solution-card {
  background: #18181b;
  border: 1px solid #27272a;
  border-radius: 10px;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
  min-height: 380px;
  justify-content: center;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.sidebar-solution-card:hover {
  border-color: #52525b;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

.sidebar-solution-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 100%;
}

.sidebar-a2-logo-wrap {
  width: 90px;
  height: 90px;
  background: #ffffff;
  border-radius: 10px;
  padding: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #e4e4e7;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  margin: 4px auto 2px auto;
}

.sidebar-a2-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 6px;
  display: block;
}

.sidebar-solution-card .solution-category-tag {
  background: #27272a;
  color: #d4d4d8;
  border: 1px solid #3f3f46;
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.sidebar-solution-inner h5 {
  font-size: 16px;
  font-weight: 700;
  color: #fafafa;
  line-height: 1.35;
  margin-top: 4px;
}

.sidebar-solution-inner p {
  font-size: 12.5px;
  color: #a1a1aa;
  line-height: 1.5;
}

.sidebar-solution-inner p strong {
  color: #f4f4f5;
}

.sidebar-solution-card .sidebar-action-button {
  margin-top: 8px;
  background: #ffffff;
  color: #09090b;
  border: 1px solid #ffffff;
  font-size: 13px;
  font-weight: 700;
  padding: 10px 18px;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  max-width: 220px;
  justify-content: center;
}

.sidebar-solution-card .sidebar-action-button:hover {
  background: #e4e4e7;
  border-color: #e4e4e7;
  color: #000000;
  box-shadow: 0 2px 8px rgba(255, 255, 255, 0.12);
}

/* Historical Table Section */
.historical-section {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  padding: 22px;
  box-shadow: var(--shadow-sm);
}

.table-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.table-search-box {
  display: flex;
  align-items: center;
  background: #f8fafc;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 8px 14px;
  width: 100%;
  max-width: 320px;
  transition: all 0.2s;
}

.table-search-box:focus-within {
  border-color: var(--primary);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.15);
}

.table-search-box svg {
  color: var(--text-muted);
  margin-right: 8px;
}

.table-search-box input {
  border: none;
  background: transparent;
  outline: none;
  font-size: 13px;
  width: 100%;
  color: var(--text-primary);
}

.table-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn-filter, .btn-export {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ffffff;
  border: 1px solid var(--border-color);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s;
}

.btn-export {
  background: #ecfdf5;
  border-color: rgba(5, 150, 105, 0.3);
  color: var(--primary-dark);
}

.btn-export:hover {
  background: #d1fae5;
}

.btn-filter:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
}

/* Custom Table */
.data-table-container {
  overflow-x: auto;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
}

.currency-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 14px;
}

.currency-table thead th {
  background: #f8fafc;
  color: var(--text-secondary);
  font-weight: 700;
  padding: 12px 14px;
  border-bottom: 2px solid var(--border-color);
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.currency-table thead th:not(:first-child) {
  text-align: right;
}

.currency-table tbody tr {
  border-bottom: 1px solid var(--border-color);
  transition: background 0.15s;
}

.currency-table tbody tr:hover {
  background: #f0fdf4;
}

.currency-table tbody td {
  padding: 12px 14px;
  color: var(--text-primary);
  font-family: 'JetBrains Mono', monospace, sans-serif;
  font-size: 14px;
  white-space: nowrap;
}

.currency-table tbody td:not(:first-child) {
  text-align: right;
}

.currency-table tbody td.col-date {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 600;
  color: var(--text-primary);
  text-align: left;
}

.currency-table tbody td.col-usd {
  font-weight: 800;
  color: var(--primary-dark);
}

/* ========================================================
   ADAPTACIÓN PROFUNDA A CELULARES Y DISPOSITIVOS MÓVILES
   ======================================================== */
@media (max-width: 960px) {
  .table-sidebar-layout {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .table-sidebar-col {
    position: static;
  }
  .sidebar-solution-card {
    min-height: auto;
    padding: 16px;
  }
}

@media (max-width: 680px) {
  .container {
    padding: 0 14px;
  }

  /* Marquesina Ticker en Móvil */
  .ticker-wrapper {
    height: 42px;
  }
  .ticker-pause-btn {
    font-size: 13px;
    padding: 0 10px;
  }
  .ticker-date-badge {
    font-size: 11px;
    padding: 0 8px;
  }
  .ticker-item {
    font-size: 13px;
    padding: 0 14px;
    gap: 7px;
  }
  .ticker-item .asset-name {
    font-size: 11px;
  }
  .ticker-item .asset-val {
    font-size: 13.5px;
    font-weight: 800;
  }

  /* Tarjeta Superior MiSistemaVeterinario en Móvil */
  .solution-feature-wrapper {
    margin: 14px auto 10px auto;
  }
  .solution-feature-box {
    padding: 16px 14px;
    gap: 12px;
  }
  .solution-info-layout {
    gap: 12px;
  }
  .solution-media-thumb {
    width: 56px;
    height: 56px;
    border-radius: 12px;
  }
  .solution-text-block h4 {
    font-size: 16.5px;
    gap: 6px;
    flex-wrap: wrap;
  }
  .solution-tag-pill {
    font-size: 10px;
    padding: 2px 7px;
  }
  .solution-tagline-text {
    font-size: 13.5px;
    line-height: 1.35;
    margin-top: 4px;
  }
  .solution-body-text {
    font-size: 12.5px;
    line-height: 1.45;
    margin-top: 4px;
  }
  .solution-button-link {
    width: 100%;
    justify-content: center;
    font-size: 14px;
    font-weight: 800;
    padding: 11px 16px;
    margin-top: 6px;
  }

  /* Cabecera Móvil */
  .header-inner {
    height: auto;
    padding: 12px 0;
    flex-wrap: wrap;
    gap: 10px;
  }
  .brand-logo-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
  }
  .brand-info h1 {
    font-size: 17.5px;
  }
  .brand-info p {
    font-size: 12px;
  }
  .btn-autobcv {
    padding: 8px 12px;
    font-size: 12px;
    font-weight: 700;
  }
  .live-badge {
    display: none;
  }

  /* Encabezado antes de la tabla */
  .page-top-header {
    padding: 16px 0 12px 0;
  }
  .top-title-area h2 {
    font-size: 21px;
    line-height: 1.3;
  }
  .top-title-area p {
    font-size: 13px;
    line-height: 1.4;
  }

  /* Contenedor de la Tabla Histórica en Celulares */
  .historical-section {
    padding: 16px 12px;
    border-radius: var(--radius-md);
  }

  .table-toolbar {
    margin-bottom: 14px;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .table-toolbar h3 {
    font-size: 18px !important;
  }
  .table-toolbar p {
    font-size: 13px !important;
    margin-top: 2px;
  }

  .table-search-box {
    width: 100%;
    max-width: 100%;
    padding: 10px 14px;
    border-radius: 8px;
  }
  .table-search-box input {
    font-size: 14.5px;
  }

  /* CELDAS Y TIPOGRAFÍA DE LA TABLA (Claras, amplias y de lectura rápida) */
  .currency-table thead th {
    padding: 10px 6px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.02em;
    color: var(--text-secondary);
  }

  .currency-table tbody td {
    padding: 12px 6px;
    font-size: 14px;
  }

  .currency-table tbody td.col-date {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
  }

  .currency-table tbody td.col-usd {
    font-size: 15px;
    font-weight: 800;
    color: #047857;
  }

  .currency-table tbody td:nth-child(3) {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text-primary);
  }

  .currency-table tbody td:nth-child(4) {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text-secondary);
  }

  .table-pagination-bar {
    font-size: 13px;
    margin-top: 14px;
  }
  .page-btn {
    padding: 7px 14px;
    font-size: 13px;
  }

  /* Tarjeta a2 Softway en Móvil */
  .software-solution-wrapper {
    margin: 18px auto 14px auto;
  }
  .software-solution-card {
    padding: 16px 14px;
  }
  .software-content-layout {
    gap: 14px;
  }
  .software-media-box {
    width: 72px;
    height: 72px;
  }
  .software-body-block h4 {
    font-size: 16.5px;
    line-height: 1.3;
  }
  .software-body-desc {
    font-size: 13px;
    line-height: 1.45;
  }
  .software-action-button {
    width: 100%;
    justify-content: center;
    font-size: 14px;
    padding: 11px 16px;
  }

  /* Tarjeta Lateral AutoBCV en Móvil */
  .sidebar-solution-card {
    padding: 22px 16px;
  }
  .sidebar-a2-logo-wrap {
    width: 86px;
    height: 86px;
  }
  .sidebar-solution-inner h5 {
    font-size: 16.5px;
    line-height: 1.35;
  }
  .sidebar-solution-inner p {
    font-size: 13px;
    line-height: 1.45;
  }
  .sidebar-solution-card .sidebar-action-button {
    font-size: 14px;
    padding: 11px 18px;
    max-width: 100%;
  }

  /* Calculadora Compacta en Móvil */
  .calc-compact-header h4 {
    font-size: 16px;
  }
  .calc-compact-rate-badge {
    font-size: 12.5px;
  }
  .calc-field-group label {
    font-size: 12px;
  }
  .calc-compact-input-row input {
    font-size: 16px;
    padding: 10px;
  }
  .calc-compact-input-row select {
    font-size: 14.5px;
  }
  .calc-result-box {
    font-size: 18px;
    padding: 10px 14px;
  }
}

.table-pagination-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 18px;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: var(--text-secondary);
}

.pagination-controls {
  display: flex;
  gap: 6px;
}

.page-btn {
  background: #ffffff;
  border: 1px solid var(--border-color);
  padding: 6px 12px;
  border-radius: 6px;
  font-weight: 700;
  cursor: pointer;
  color: var(--text-primary);
  transition: all 0.15s;
}

.page-btn.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.page-btn:hover:not(.active):not(:disabled) {
  background: #f1f5f9;
}

.page-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.copy-rate-btn {
  background: transparent;
  border: none;
  color: var(--primary);
  font-weight: 600;
  font-size: 12px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 6px;
  border-radius: 4px;
  transition: background 0.15s;
}

.copy-rate-btn:hover {
  background: var(--primary-light);
}

/* ========================================================
   SECCIÓN DEL GRÁFICO (AHORA UBICADA DESPUÉS DE LA TABLA)
   ======================================================== */
.chart-section {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  padding: 26px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 28px;
}

.chart-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 14px;
}

.chart-title-area h3 {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.chart-title-area p {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 2px;
}

.period-pills {
  display: flex;
  gap: 6px;
  background: #f1f5f9;
  padding: 4px;
  border-radius: var(--radius-sm);
}

.period-pill {
  border: none;
  background: transparent;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-secondary);
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s;
}

.period-pill.active {
  background: #ffffff;
  color: var(--primary);
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* Native AutoBCV Feature Card */
.autobcv-feature-box {
  background: linear-gradient(135deg, #064e3b 0%, #065f46 50%, #047857 100%);
  border-radius: var(--radius-lg);
  padding: 30px;
  color: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 30px;
  box-shadow: 0 10px 25px rgba(6, 78, 59, 0.25);
  position: relative;
  overflow: hidden;
}

.autobcv-feature-box::after {
  content: "";
  position: absolute;
  top: -60px;
  right: -60px;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(52, 211, 153, 0.2) 0%, transparent 70%);
  border-radius: 50%;
}

.autobcv-content h3 {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.autobcv-tag {
  background: rgba(255, 255, 255, 0.2);
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.autobcv-content p {
  font-size: 14px;
  color: #d1fae5;
  max-width: 650px;
}

.btn-autobcv-cta {
  background: #ffffff;
  color: #064e3b;
  font-weight: 800;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-autobcv-cta:hover {
  background: #ecfdf5;
  transform: translateY(-2px);
}

@media (max-width: 820px) {
  .autobcv-feature-box {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* SEO Content Section */
.seo-content-section {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  padding: 30px;
  margin-bottom: 40px;
}

.seo-content-section h2 {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.seo-content-section p {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 14px;
}

/* AI & Search Engine FAQ Accordion */
.ai-faq-block {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px dashed var(--border-color);
}

.ai-faq-heading {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.ai-faq-heading svg {
  color: var(--primary);
  flex-shrink: 0;
}

.ai-faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background: #f8fafc;
  overflow: hidden;
  transition: border-color var(--transition-fast), background-color var(--transition-fast);
}

.faq-item[open] {
  background: #ffffff;
  border-color: #cbd5e1;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.faq-question {
  padding: 14px 18px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
  list-style: none;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-icon {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-secondary);
  transition: transform var(--transition-fast), color var(--transition-fast);
}

.faq-item[open] .faq-icon {
  transform: rotate(45deg);
  color: var(--primary);
}

.faq-answer {
  padding: 0 18px 14px 18px;
  font-size: 13.5px;
  line-height: 1.6;
  color: #475569;
}

.faq-answer p {
  margin-bottom: 0;
  font-size: 13.5px;
  line-height: 1.6;
  color: #475569;
}

@media (max-width: 680px) {
  .ai-faq-heading {
    font-size: 15px;
  }
  .faq-question {
    padding: 12px 14px;
    font-size: 13px;
  }
  .faq-answer {
    padding: 0 14px 12px 14px;
    font-size: 12.5px;
  }
  .faq-answer p {
    font-size: 12.5px;
  }
}

/* Footer */
.site-footer {
  background: #0f172a;
  color: #94a3b8;
  padding: 40px 0 20px;
  font-size: 13px;
  border-top: 4px solid var(--primary);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 30px;
}

.footer-col h4 {
  color: #ffffff;
  font-size: 15px;
  margin-bottom: 12px;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 8px;
}

.footer-col ul li a {
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.15s;
}

.footer-col ul li a:hover {
  color: #ffffff;
}

.footer-bottom {
  border-top: 1px solid #1e293b;
  padding-top: 20px;
  text-align: center;
  font-size: 12px;
}
