/* ==========================================================================
   SueldoNeto - Estilos Principales
   Identidad visual: Verde / Teal, minimalista, limpio, moderno y accesible
   ========================================================================== */

/* 1. Variables CSS del Sistema de Diseño */
:root {
  /* Paleta Verde / Teal */
  --primary: #0d9488;         /* Teal 600 */
  --primary-hover: #0f766e;   /* Teal 700 */
  --primary-dark: #115e59;    /* Teal 800 */
  --primary-deep: #042f2e;    /* Teal 950 */
  --primary-light: #ccfbf1;   /* Teal 100 */
  --primary-subtle: #f0fdfa;  /* Teal 50 */

  /* Acentos y complementarios */
  --emerald: #10b981;
  --emerald-light: #d1fae5;
  --mint: #34d399;
  --amber: #f59e0b;
  --amber-light: #fef3c7;
  --rose: #f43f5e;
  --rose-light: #ffe4e6;

  /* Fondos del panel de resultados */
  --result-bg: #062322;
  --result-card-inner: #0b3534;
  --result-border: #14534f;
  --result-text: #ffffff;
  --result-muted: #99f6e4;
  --result-dim: #94a3b8;

  /* Superficies y Neutros */
  --bg-body: #f8fafc;
  --bg-card: #ffffff;
  --bg-subtle: #f1f5f9;
  --bg-hover: #e2e8f0;

  /* Tipografía y Textos */
  --text-main: #0f172a;       /* Slate 900 */
  --text-muted: #475569;      /* Slate 600 */
  --text-light: #64748b;      /* Slate 500 */
  --text-inverse: #ffffff;

  /* Bordes y Sombras */
  --border-color: #e2e8f0;
  --border-light: #f1f5f9;
  --border-focus: #0d9488;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  --shadow-sm: 0 1px 2px 0 rgba(15, 23, 42, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.07), 0 2px 4px -2px rgba(15, 23, 42, 0.05);
  --shadow-lg: 0 12px 28px -4px rgba(13, 148, 136, 0.08), 0 8px 16px -6px rgba(15, 23, 42, 0.04);
  --shadow-xl: 0 20px 35px -8px rgba(13, 148, 136, 0.12), 0 10px 15px -5px rgba(15, 23, 42, 0.04);

  /* Layout */
  --max-width: 1140px;
  --max-content: 1140px;
  --header-height: 74px;
}

/* 2. Reset y Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 105px;
  text-size-adjust: 100%;
}

/* Eliminar recuadros de foco o bordes azules no deseados en secciones y anclas */
:focus:not(:focus-visible),
[tabindex="-1"]:focus,
section:focus,
.calculator-section:focus,
#calculadora:focus,
.calculator-wrapper:focus {
  outline: none !important;
  box-shadow: none !important;
}

h1 {
  line-height: 1.15 !important;
  letter-spacing: -1.2px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
  background-color: var(--bg-body);
  color: var(--text-main);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover {
  color: var(--primary-hover);
}

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  background: none;
  border: none;
}

.container {
  width: min(var(--max-width), calc(100% - 32px));
  margin-inline: auto;
}

/* 3. Header y Navegación */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  transition: box-shadow 0.25s ease, background 0.25s ease;
}

.site-header.header-scrolled {
  box-shadow: var(--shadow-md);
  background: rgba(255, 255, 255, 0.98);
}

.nav-container {
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.6px;
  color: var(--text-main);
}

.logo-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, #042f2e 0%, #0d9488 100%);
  border: 1px solid rgba(52, 211, 153, 0.45);
  border-radius: 11px;
  color: #ffffff !important;
  font-weight: 900;
  font-size: 20px;
  box-shadow: 0 4px 10px rgba(4, 47, 46, 0.25);
  flex-shrink: 0;
}

.logo .logo-badge {
  color: #ffffff !important;
}

.logo-text {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.6px;
  color: #0f172a !important;
}

.logo-accent {
  color: #0d9488 !important;
  font-weight: 900;
}

.logo-domain {
  color: #0d9488 !important;
  font-weight: 800;
}

.footer-logo .logo-text {
  color: #ffffff !important;
}

.footer-logo .logo-accent {
  color: #34d399 !important;
}

.footer-logo .logo-domain {
  color: #34d399 !important;
  font-weight: 800;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.site-nav a {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-muted);
  padding: 6px 0;
  position: relative;
}

.site-nav a:hover, .site-nav a.active {
  color: var(--primary);
}

.site-nav a.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--primary-subtle);
  color: var(--primary-dark) !important;
  font-weight: 700 !important;
  padding: 8px 16px !important;
  border-radius: var(--radius-full);
  border: 1px solid var(--primary-light);
  transition: all 0.2s ease;
}

.nav-cta:hover {
  background: var(--primary);
  color: #ffffff !important;
  border-color: var(--primary);
  transform: translateY(-1px);
}

/* Botón Hamburguesa Móvil - Rediseño Elegante y Moderno */
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  width: 38px;
  height: 38px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  cursor: pointer;
  padding: 0;
  z-index: 110;
  transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.nav-toggle:hover {
  background-color: #f1f5f9;
  border-color: #cbd5e1;
}

.nav-toggle:active {
  transform: scale(0.94);
}

.nav-toggle:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 18px;
  background-color: #0f172a;
  border-radius: 2px;
  transition: transform 0.24s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.2s ease, background-color 0.2s ease;
  transform-origin: center;
}

/* 4. Hero Section */
.hero {
  position: relative;
  text-align: center;
  padding: 32px 0 20px;
  overflow: hidden;
}

.hero-pattern {
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 400px;
  pointer-events: none;
  z-index: -1;
  opacity: 0.7;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(13, 148, 136, 0.08);
  color: var(--primary-hover);
  border: none;
  font-size: 12.5px;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 12px;
  letter-spacing: 0.3px;
}

.eyebrow-dot {
  width: 7px;
  height: 7px;
  background-color: var(--emerald);
  border-radius: 50%;
}

.hero h1 {
  font-size: clamp(32px, 4.4vw, 50px);
  line-height: 1.14;
  letter-spacing: -1.4px;
  font-weight: 800;
  color: var(--text-main);
  max-width: 820px;
  margin: 0 auto 10px;
}

.hero h1 span {
  color: var(--primary);
}

.hero p {
  font-size: clamp(15px, 1.8vw, 18px);
  color: var(--text-muted);
  max-width: 650px;
  margin: 0 auto 18px;
  line-height: 1.5;
}

/* Trust Badges en Hero */
.hero-badges {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 10px;
}

.hero-badge-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
}

/* 5. Calculadora Principal */
.calculator-section,
#calculadora {
  padding-bottom: 50px;
  scroll-margin-top: 105px;
}

.calculator-wrapper {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  padding: 32px;
  position: relative;
}

.calc-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 32px;
  align-items: stretch;
}

/* Panel Izquierdo: Formulario */
.calc-panel {
  background: var(--bg-card);
  display: flex;
  flex-direction: column;
}

.panel-header {
  margin-bottom: 20px;
}

.panel-header h2 {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.4px;
  color: var(--text-main);
  margin-bottom: 4px;
}

.panel-header p {
  font-size: 13px;
  color: var(--text-light);
}

/* Pestañas Anual / Mensual */
.calc-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 5px;
  margin-bottom: 22px;
}

.calc-tab {
  height: 44px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 700;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.calc-tab:hover {
  color: var(--text-main);
}

.calc-tab.active {
  background: #ffffff;
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.calc-tab:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* Campos de Formulario */
.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 8px;
}

.input-container {
  position: relative;
  display: flex;
  align-items: center;
}

.currency-adornment {
  position: absolute;
  left: 16px;
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
  pointer-events: none;
}

.salary-input {
  width: 100%;
  height: 52px;
  padding: 0 16px 0 42px;
  font-size: 20px;
  font-weight: 800;
  color: var(--text-main);
  background: #ffffff;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.salary-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(13, 148, 136, 0.15);
}

.field-hint {
  display: block;
  font-size: 12px;
  color: var(--text-light);
  margin-top: 6px;
  line-height: 1.4;
}

/* Chips de Salarios Rápidos */
.preset-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.chip-btn {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  transition: all 0.15s ease;
}

.chip-btn:hover {
  background: var(--primary-subtle);
  color: var(--primary-dark);
  border-color: var(--primary-light);
}

/* Grid de 2 columnas para selectores */
.form-row-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* Estilos de Selects */
.select-wrapper {
  position: relative;
}

.styled-select {
  width: 100%;
  height: 48px;
  padding: 0 36px 0 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.styled-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.15);
}

.select-arrow {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: var(--text-light);
}

/* Botón Principal de Cálculo */
.calc-submit-btn {
  width: 100%;
  height: 52px;
  margin-top: 8px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
  color: #ffffff;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.3px;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 14px rgba(13, 148, 136, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.calc-submit-btn:hover {
  background: linear-gradient(135deg, var(--primary-hover) 0%, var(--primary-dark) 100%);
  box-shadow: 0 6px 18px rgba(13, 148, 136, 0.45);
  transform: translateY(-1px);
}

.calc-submit-btn:active {
  transform: translateY(1px);
  box-shadow: 0 2px 8px rgba(13, 148, 136, 0.3);
}

.calc-submit-btn:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
}

/* Panel Derecho: Resultados */
.result-panel {
  background: linear-gradient(160deg, #072a28 0%, #031c1b 100%);
  border: 1px solid var(--result-border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  color: var(--result-text);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.1), 0 12px 30px rgba(4, 47, 46, 0.3);
  position: relative;
  overflow: hidden;
}

.result-panel::before {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 160px;
  height: 160px;
  background: radial-gradient(circle, rgba(20, 184, 166, 0.25) 0%, transparent 70%);
  pointer-events: none;
}

.result-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  padding-bottom: 20px;
  margin-bottom: 20px;
}

.result-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--result-muted);
  background: rgba(13, 148, 136, 0.25);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  margin-bottom: 10px;
  border: 1px solid rgba(52, 211, 153, 0.25);
}

.result-main-value {
  font-size: clamp(38px, 4.2vw, 48px);
  font-weight: 900;
  color: #ffffff;
  letter-spacing: -1.5px;
  line-height: 1;
  margin-bottom: 8px;
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.result-subtext {
  font-size: 14px;
  color: var(--result-muted);
  font-weight: 500;
}

/* Barra de Distribución Visual */
.distribution-container {
  margin-bottom: 20px;
}

.dist-bar-track {
  display: flex;
  height: 10px;
  border-radius: var(--radius-full);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.1);
  margin-bottom: 8px;
}

.dist-bar-seg {
  height: 100%;
  transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.dist-net {
  background: linear-gradient(90deg, #10b981, #34d399);
}

.dist-tax {
  background: linear-gradient(90deg, #0d9488, #14b8a6);
}

.dist-ss {
  background: linear-gradient(90deg, #64748b, #94a3b8);
}

.dist-legend {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--result-dim);
}

.dist-legend span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.legend-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.dot-net { background: #34d399; }
.dot-tax { background: #14b8a6; }
.dot-ss { background: #94a3b8; }

/* Desglose de Filas */
.breakdown-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14px;
}

.breakdown-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.breakdown-row span {
  color: #cbd5e1;
  display: flex;
  align-items: center;
  gap: 6px;
}

.breakdown-row strong {
  color: #ffffff;
  font-weight: 700;
  letter-spacing: -0.2px;
}

.row-total-net {
  margin-top: 4px;
  padding-top: 14px;
  border-top: 1px solid rgba(52, 211, 153, 0.3);
  border-bottom: none;
}

.row-total-net span {
  color: #ffffff;
  font-weight: 700;
  font-size: 15px;
}

.row-total-net strong {
  color: #34d399;
  font-size: 20px;
  font-weight: 800;
}

.rate-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.12);
  color: #e2e8f0;
}

/* Avisos Adicionales de la Calculadora */
.alert-notice {
  margin-top: 16px;
  padding: 10px 12px;
  background: rgba(13, 148, 136, 0.18);
  border: 1px solid rgba(20, 184, 166, 0.3);
  border-radius: var(--radius-sm);
  font-size: 12px;
  line-height: 1.45;
  color: #ccfbf1;
  display: none;
}

/* 6. Tarjetas de Beneficios / Ventajas Rápidas */
.calc-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 24px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.feature-icon-wrap {
  width: 40px;
  height: 40px;
  background: var(--primary-subtle);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  flex-shrink: 0;
}

.feature-text b {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 3px;
}

.feature-text span {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
  display: block;
}

/* 7. Tablas Comparativas de Salarios */
.table-section {
  padding: 60px 0 40px;
}

.section-intro {
  text-align: left;
  max-width: 100%;
  margin: 0 0 32px;
}

.section-intro.text-center,
.section-intro.centered {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 36px;
}

.section-intro .tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 8px;
}

.section-intro h1 {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  line-height: 1.15 !important;
  letter-spacing: -1.2px;
  color: var(--text-main);
  margin-bottom: 14px;
}

.section-intro h2 {
  font-size: clamp(26px, 3.2vw, 36px);
  font-weight: 800;
  line-height: 1.2 !important;
  letter-spacing: -0.8px;
  color: var(--text-main);
  margin-bottom: 12px;
}

.section-intro p {
  font-size: 17px;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 100%;
}

.table-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.table-responsive-container {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.salary-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 14px;
  white-space: nowrap;
}

.salary-table th {
  background: var(--bg-subtle);
  color: var(--text-muted);
  font-weight: 700;
  padding: 14px 18px;
  border-bottom: 2px solid var(--border-color);
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.5px;
}

.salary-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-main);
}

.salary-table tr:hover td {
  background-color: var(--primary-subtle);
}

.salary-table tr.highlight td {
  background-color: rgba(13, 148, 136, 0.05);
  font-weight: 700;
}

.salary-table .num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.salary-table .net-column {
  color: var(--primary-dark);
  font-weight: 700;
}

.table-footnote {
  padding: 14px 20px;
  font-size: 12px;
  color: var(--text-light);
  background: #ffffff;
  border-top: 1px solid var(--border-color);
}

/* 8. Artículos y Guías SEO */
.articles-section {
  padding: 60px 0;
  background: var(--bg-body);
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.article-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.article-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-light);
}

.article-card-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--bg-subtle);
  overflow: hidden;
}

.article-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.article-card:hover .article-card-thumb img {
  transform: scale(1.03);
}

.article-card-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.article-badge-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.article-tag {
  font-size: 11px;
  font-weight: 700;
  color: var(--primary-dark);
  background: var(--primary-subtle);
  padding: 3px 8px;
  border-radius: 4px;
  text-transform: uppercase;
}

.article-read-time {
  font-size: 12px;
  color: var(--text-light);
}

.article-card h2,
.article-card h3 {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.4px;
  line-height: 1.35;
  color: var(--text-main);
  margin-bottom: 10px;
}

.article-card h2 a,
.article-card h3 a {
  color: inherit;
}

.article-card h2 a:hover,
.article-card h3 a:hover {
  color: var(--primary);
}

.article-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 18px;
  flex-grow: 1;
}

.article-card-footer {
  margin-top: auto;
  border-top: 1px solid var(--border-light);
  padding-top: 14px;
}

.read-more-link {
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.read-more-link:hover {
  color: var(--primary-dark);
  gap: 9px;
}

/* 9. Contenido Informativo y Educativo SEO */
.seo-content-section {
  padding: 60px 0 80px;
}

.seo-content-wrapper {
  max-width: var(--max-content);
  margin: 0 auto;
}

header.container h1,
article.container h1,
.seo-content-wrapper h1,
.seo-article-block h1 {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  line-height: 1.15 !important;
  letter-spacing: -1.2px;
  color: var(--text-main);
  margin-bottom: 16px;
}

.seo-article-block {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 36px 40px;
  margin-bottom: 32px;
  box-shadow: var(--shadow-sm);
}

.seo-article-block h2 {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.6px;
  color: var(--text-main);
  margin-bottom: 16px;
  position: relative;
}

.seo-article-block h3 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.4px;
  color: var(--text-main);
  margin: 24px 0 12px;
}

.seo-article-block p {
  font-size: 16px;
  line-height: 1.75;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.seo-article-block ul, .seo-article-block ol {
  margin: 16px 0 20px 24px;
  color: var(--text-muted);
}

.seo-article-block li {
  margin-bottom: 8px;
  line-height: 1.6;
}

.callout-box {
  background: var(--primary-subtle);
  border-left: 4px solid var(--primary);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 18px 22px;
  margin: 22px 0;
}

.callout-box strong {
  display: block;
  font-size: 15px;
  color: var(--primary-dark);
  margin-bottom: 4px;
}

.callout-box p {
  font-size: 14px;
  color: var(--text-main);
  margin-bottom: 0;
}

/* 10. Preguntas Frecuentes (FAQ) */
.faq-section {
  padding: 60px 0;
  background: var(--bg-body);
}

.faq-wrapper {
  max-width: var(--max-content);
  margin: 0 auto;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item details {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
  overflow: hidden;
}

.faq-item details[open] {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

.faq-item summary {
  list-style: none;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-main);
  padding: 20px 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  user-select: none;
}

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

.faq-chevron {
  width: 20px;
  height: 20px;
  color: var(--text-light);
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.faq-item details[open] .faq-chevron {
  transform: rotate(180deg);
  color: var(--primary);
}

.faq-item details p {
  padding: 0 24px 22px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-muted);
}

/* 11. Footer */
.site-footer {
  background: #09201f;
  color: #94a3b8;
  padding: 64px 0 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 48px;
}

.footer-brand {
  max-width: 320px;
}

.footer-logo {
  font-size: 22px;
  font-weight: 800;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  text-decoration: none;
}

.footer-logo .logo-badge {
  color: #ffffff !important;
}

.footer-logo .logo-text {
  color: #ffffff !important;
  font-weight: 800;
}

.footer-logo .logo-accent {
  color: #34d399 !important;
  font-weight: 900;
}

.footer-brand p {
  font-size: 14px;
  line-height: 1.6;
  color: #94a3b8;
  margin-bottom: 20px;
}

.footer-col h4 {
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 18px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col ul a {
  font-size: 14px;
  color: #94a3b8;
  transition: color 0.15s ease, transform 0.15s ease;
  display: inline-block;
}

.footer-col ul a:hover {
  color: #ffffff;
  transform: translateX(2px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 24px;
  text-align: center;
  font-size: 13px;
  color: #64748b;
  line-height: 1.6;
}

.footer-bottom-links {
  display: none;
}

/* Enlace de accesibilidad para saltar al contenido (solo visible con navegación por teclado) */
.skip-link {
  position: absolute;
  top: -9999px;
  left: -9999px;
  background: var(--primary);
  color: #ffffff;
  padding: 8px 16px;
  z-index: 999;
  border-radius: var(--radius-sm);
  font-weight: 700;
  transition: top 0.2s ease;
}

.skip-link:focus-visible {
  top: 16px;
  left: 16px;
}

/* 12. Banner de Cookies */
.cookie-banner {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(120%);
  width: min(920px, calc(100% - 32px));
  background: #062322;
  border: 1px solid #14534f;
  border-radius: var(--radius-lg);
  color: #ffffff;
  padding: 20px 24px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
  z-index: 9999;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
  opacity: 0;
  visibility: hidden;
}

.cookie-banner.show-banner {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  visibility: visible;
}

.cookie-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.cookie-text {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  flex: 1;
  min-width: 280px;
}

.cookie-icon {
  font-size: 26px;
  line-height: 1;
}

.cookie-text strong {
  display: block;
  font-size: 15px;
  color: #ffffff;
  margin-bottom: 4px;
}

.cookie-text p {
  font-size: 13px;
  line-height: 1.5;
  color: #cbd5e1;
  margin: 0;
}

.cookie-text a {
  color: #34d399;
  text-decoration: underline;
}

.cookie-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.cookie-btn {
  height: 40px;
  padding: 0 16px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.cookie-btn-accept {
  background: #10b981;
  color: #ffffff;
  border: none;
}

.cookie-btn-accept:hover {
  background: #059669;
}

.cookie-btn-essential {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.cookie-btn-essential:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* 13. Espacios Publicitarios Dinámicos */
.ad-slot-container {
  display: none;
  text-align: center;
  margin: 16px auto;
  max-width: var(--max-width);
  overflow: hidden;
  transition: all 0.2s ease;
}

.ad-slot-container:empty {
  display: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.ad-slot-top {
  margin-top: 14px;
  margin-bottom: 14px;
}

.ad-slot-bottom {
  margin-top: 36px;
  margin-bottom: 24px;
}

.ad-slot-middle {
  margin-top: 32px;
  margin-bottom: 32px;
}

/* ==========================================================================
   14. Banners de Afiliación Amazon (10 Productos Curados con tag gruposupay-21)
   ========================================================================== */
.amazon-ad-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: 12px 20px;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04), 0 1px 3px rgba(15, 23, 42, 0.02);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  text-decoration: none;
  color: inherit;
  position: relative;
  overflow: hidden;
  max-width: 980px;
  margin: 0 auto;
  text-align: left;
}

.amazon-ad-card:hover {
  transform: translateY(-2px);
  border-color: #cbd5e1;
  box-shadow: 0 12px 24px -6px rgba(15, 23, 42, 0.09), 0 4px 8px -2px rgba(15, 23, 42, 0.03);
}

.amazon-ad-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, #ff9900 0%, #10b981 100%);
}

.amazon-ad-media {
  flex-shrink: 0;
  width: 86px;
  height: 86px;
  background: #f8fafc;
  border: 1px solid #f1f5f9;
  border-radius: 10px;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.amazon-ad-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.25s ease;
}

.amazon-ad-card:hover .amazon-ad-media img {
  transform: scale(1.04);
}

.amazon-ad-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.amazon-ad-topline {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.amazon-ad-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 9999px;
  letter-spacing: 0.2px;
}

.amazon-ad-disclosure {
  font-size: 10.5px;
  color: #94a3b8;
  font-weight: 600;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.amazon-ad-title {
  font-size: 15px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.3;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.amazon-ad-desc {
  font-size: 12.5px;
  color: #475569;
  line-height: 1.4;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.amazon-ad-rating {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  color: #64748b;
  margin-top: 2px;
}

.amazon-ad-stars {
  color: #f59e0b;
  letter-spacing: 1px;
  font-size: 12px;
}

.amazon-ad-prime {
  color: #0284c7;
  font-weight: 700;
  font-size: 11px;
}

.amazon-ad-action {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.amazon-ad-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: #ff9900;
  background: linear-gradient(180deg, #ff9f1c 0%, #f08804 100%);
  color: #0f172a;
  font-size: 13.5px;
  font-weight: 800;
  padding: 10px 18px;
  border-radius: 8px;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(240, 136, 4, 0.25);
  border: 1px solid #d97706;
  transition: all 0.2s ease;
}

.amazon-ad-card:hover .amazon-ad-btn {
  background: linear-gradient(180deg, #ffa834 0%, #f58e0a 100%);
  box-shadow: 0 4px 12px rgba(240, 136, 4, 0.35);
  transform: scale(1.02);
}

.amazon-ad-tagline {
  font-size: 10.5px;
  color: #94a3b8;
  font-weight: 500;
}

/* Responsive para Móviles */
@media (max-width: 680px) {
  .amazon-ad-card {
    padding: 10px 12px;
    gap: 12px;
    flex-wrap: wrap;
  }
  .amazon-ad-media {
    width: 68px;
    height: 68px;
  }
  .amazon-ad-title {
    font-size: 13.5px;
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }
  .amazon-ad-desc {
    display: none;
  }
  .amazon-ad-action {
    width: 100%;
    align-items: stretch;
    margin-top: 2px;
  }
  .amazon-ad-btn {
    width: 100%;
    padding: 8px 14px;
    font-size: 13px;
  }
  .amazon-ad-tagline {
    text-align: center;
  }
}

