/* ECOSAVE MX V35 — Estilos suplementarios mejorados (accesibilidad + UX) */

/* === ACCESIBILIDAD GLOBAL === */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, [tabindex="0"]:focus-visible {
  outline: 3px solid #A6532A;
  outline-offset: 3px;
  border-radius: 4px;
}
.skip:focus {
  position: fixed; top: 12px; left: 12px;
  background: #1C1916; color: #F2EBD9;
  padding: 12px 18px; z-index: 9999;
  border-radius: 6px; text-decoration: none;
  font-size: 14px; font-weight: 600;
}
@media (max-width: 720px) {
  .v26-btn, .btn, button, .calc-opt, .indice-card,
  a[href^="tel:"], a[href^="https://wa.me"] { min-height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* === HERO CARD DARK === */
.hero-card-dark {
  background: #FBF7EE;
  border: 1px solid rgba(166,83,42,0.18);
  border-radius: 16px;
  padding: 48px 36px;
  color: #1C1916;
  display: flex; flex-direction: column;
  justify-content: center; text-align: center;
  min-height: 240px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.28);
  margin: 24px;
}
.hero-card-dark .big-num {
  font-size: 96px; line-height: 1; color: #A6532A;
  font-weight: 700; margin-bottom: 16px; letter-spacing: -0.02em;
}
.hero-card-dark .eyebrow-dark {
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #5E3D14;
  font-weight: 700;
}
.hero-card-dark .hero-card-divider {
  height: 1px; background: rgba(166,83,42,0.22);
  margin: 22px auto; width: 60%;
}

/* === GLOSARIO === */
.glosario-list { display: grid; gap: 22px; margin: 0; }
.glosario-list dt {
  font-size: 17px; color: #1C1916; margin: 0 0 4px 0;
  letter-spacing: -0.005em;
}
.glosario-list dt strong { color: #A6532A; font-weight: 700; }
.glosario-list dd {
  font-size: 15px; line-height: 1.65; color: #2A241F;
  margin: 0 0 8px 0; padding-left: 16px;
  border-left: 2px solid #E8DFC8;
}

/* === ÍNDICE TARJETAS GLOSARIO === */
.indice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px; margin-top: 24px;
}
.indice-card {
  display: flex; align-items: center; gap: 16px;
  padding: 18px 20px; background: #fff; border: 1px solid #E8DFC8;
  border-radius: 12px; text-decoration: none; color: #1C1916;
  transition: all 0.18s ease; min-height: 72px;
}
.indice-card:hover, .indice-card:focus-visible {
  border-color: #A6532A; background: #FBF7EE;
  transform: translateY(-2px); box-shadow: 0 6px 20px rgba(166,83,42,0.1);
}
.indice-num {
  font-size: 26px; font-weight: 700; color: #A6532A;
  letter-spacing: -0.02em; min-width: 36px;
  font-variant-numeric: tabular-nums;
}
.indice-text { flex: 1; }
.indice-text strong {
  display: block; font-size: 15px; color: #1C1916;
  margin-bottom: 2px; font-weight: 600;
}
.indice-text span {
  display: block; font-size: 12.5px; color: #6B6052; line-height: 1.4;
}

/* === TABLAS DE DATOS === */
.table-wrap {
  overflow-x: auto; border-radius: 12px; border: 1px solid #E8DFC8;
  background: #fff; -webkit-overflow-scrolling: touch;
}
.data-table {
  width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 720px;
}
.data-table thead th {
  background: #1C1916; color: #F2EBD9; padding: 14px;
  text-align: left; font-weight: 600; font-size: 11.5px;
  letter-spacing: 0.08em; text-transform: uppercase;
  position: sticky; top: 0; z-index: 1;
}
.data-table tbody td {
  padding: 12px 14px; border-bottom: 1px solid #F2EBD9;
  vertical-align: top; color: #1C1916;
}
.data-table tbody tr:hover { background: #FBF7EE; }
.data-table tbody tr:last-child td { border-bottom: 0; }

@media (max-width: 720px) {
  .table-wrap { position: relative; }
  .table-wrap::before {
    content: '← Desliza para ver toda la tabla →';
    display: block; padding: 10px; font-size: 12px; color: #6B6052;
    text-align: center; background: #FBF7EE;
    border-bottom: 1px solid #E8DFC8;
  }
}

/* === BADGES === */
.badge {
  display: inline-block; padding: 4px 10px; border-radius: 4px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.02em;
  white-space: nowrap;
}
.badge-ok { background: #C8E6C9; color: #1B4D1F; }
.badge-warn { background: #FAE0B5; color: #5E3D14; }
.badge-danger { background: #ECC8C8; color: #5C1F1F; }

/* === CALCULADORAS & WIZARD === */
.calc-step, .wiz-step { display: none; }
.calc-step.active, .wiz-step.active { display: block; }

.calc-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px; max-width: 760px; margin: 0 auto;
}
.calc-opt {
  display: block; width: 100%; text-align: left;
  background: #FBF7EE; border: 2px solid #E8DFC8;
  border-radius: 12px; padding: 20px 22px;
  cursor: pointer; transition: all 0.18s ease;
  font-family: inherit; color: #1C1916; min-height: 80px;
}
.calc-opt:hover, .calc-opt:focus-visible {
  border-color: #A6532A; background: #fff;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(166, 83, 42, 0.08);
}
.calc-opt:active { transform: translateY(0); background: #F2EBD9; }
.calc-opt strong {
  display: block; font-size: 15.5px; color: #1C1916;
  margin-bottom: 4px; font-weight: 600;
}
.calc-opt span {
  display: block; font-size: 13px; color: #4A4036; line-height: 1.4;
}

#progress-dots .dot, #wiz-dots .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #E8DFC8; transition: background 0.18s;
}
#progress-dots .dot.active, #wiz-dots .dot.active { background: #A6532A; }

.calc-nav { max-width: 760px; margin-left: auto; margin-right: auto; }

/* === NORMA CARD === */
.norma-card {
  background: #fff; border-radius: 12px;
  border: 1px solid #E8DFC8; transition: border-color 0.18s;
}
.norma-card:hover { border-color: #A6532A; }

/* === AI-STATEMENT === */
.ai-statement {
  background: #FBF7EE; border-left: 3px solid #A6532A;
  padding: 22px 26px; border-radius: 0 12px 12px 0;
  font-size: 15.5px; line-height: 1.65; color: #1C1916;
  margin: 24px 0;
}

/* === SLA BLOCK === */
.sla-block {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 12px 18px; background: rgba(166, 83, 42, 0.08);
  border: 1px solid rgba(166, 83, 42, 0.2);
  border-radius: 999px; font-size: 13.5px;
  color: #1C1916; margin: 12px 0; line-height: 1.4;
}
.sla-block::before {
  content: ''; width: 10px; height: 10px; border-radius: 50%;
  background: #2D7A2D; box-shadow: 0 0 0 4px rgba(45, 122, 45, 0.2);
  flex-shrink: 0;
}
.sla-block strong { color: #A6532A; }

/* === MÉTODO BADGE === */
.metodo-badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 16px; background: #1C1916; color: #F2EBD9;
  border-radius: 6px; font-size: 12px; letter-spacing: 0.06em;
  text-transform: uppercase; font-weight: 600;
}
.metodo-badge::before {
  content: ''; width: 12px; height: 12px;
  background: #D08856; border-radius: 50%; flex-shrink: 0;
}

/* === TIMELINE === */
.timeline-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px; margin: 28px 0; position: relative;
}
.timeline-row::before {
  content: ''; position: absolute; top: 28px; left: 5%; right: 5%;
  height: 2px; background: #E8DFC8; z-index: 0;
}
.timeline-step { position: relative; padding: 0 8px; text-align: center; z-index: 1; }
.timeline-dot {
  width: 56px; height: 56px; border-radius: 50%;
  background: #A6532A; color: #F2EBD9;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 12px; font-weight: 700; font-size: 18px;
  border: 4px solid #FBF7EE;
}
.timeline-label { font-size: 13px; font-weight: 600; color: #1C1916; margin-bottom: 4px; }
.timeline-day { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: #6B6052; }

/* === BOTÓN FLOTANTE WHATSAPP === */
.wa-fab {
  position: fixed; bottom: 84px; right: 18px; z-index: 999;
  width: 56px; height: 56px; background: #25D366;
  color: #fff; border-radius: 50%;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
  display: flex; align-items: center; justify-content: center;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.wa-fab:hover, .wa-fab:focus-visible {
  transform: scale(1.08);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.55);
}
.wa-fab svg { width: 30px; height: 30px; fill: #fff; }
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); border: 0;
}
@media (min-width: 900px) {
  .wa-fab { bottom: 24px; right: 24px; }
}

/* === MEDIA MOBILE === */
@media (max-width: 720px) {
  .data-table { font-size: 12.5px; }
  .data-table thead th, .data-table tbody td { padding: 10px; }
  .calc-opt { padding: 18px 20px; }
  .calc-opt strong { font-size: 14.5px; }
  .timeline-row::before { display: none; }
  .indice-card { padding: 14px 16px; min-height: 60px; }
  .indice-num { font-size: 22px; min-width: 30px; }
  .hero-card-dark { padding: 32px 24px; }
  .hero-card-dark .big-num { font-size: 72px; }
}

/* =================== V36 — Estilos para páginas nuevas =================== */

/* === RAZONES CARDS === */
.razones-grid {
  display: grid;
  gap: 24px;
  max-width: 1080px;
  margin: 0 auto;
}
.razon-card {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 24px;
  padding: 32px;
  background: #fff;
  border: 1px solid #E8DFC8;
  border-radius: 16px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.razon-card:hover {
  border-color: #A6532A;
  transform: translateY(-2px);
}
.razon-num {
  font-size: 56px;
  font-weight: 700;
  color: #A6532A;
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.razon-content h3 {
  font-size: 22px;
  color: #1C1916;
  margin: 0 0 6px 0;
  letter-spacing: -0.01em;
}
.razon-subtitulo {
  font-size: 14px;
  color: #A6532A;
  margin: 0 0 16px 0;
  font-weight: 600;
}
.razon-detalle {
  font-size: 14.5px;
  line-height: 1.7;
  color: #2A241F;
  margin: 0 0 16px 0;
}
.razon-evidencia {
  font-size: 13px;
  line-height: 1.5;
  color: #6B6052;
  background: #FBF7EE;
  padding: 12px 16px;
  border-left: 3px solid #A6532A;
  border-radius: 0 8px 8px 0;
  margin: 0;
}

/* === PROCESO STEPS === */
.proceso-list {
  display: grid;
  gap: 20px;
  max-width: 1080px;
  margin: 0 auto;
}
.proceso-step {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 24px;
  padding: 28px;
  background: #fff;
  border: 1px solid #E8DFC8;
  border-radius: 16px;
}
.proceso-num-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  padding-top: 4px;
}
.proceso-num {
  font-size: 36px;
  font-weight: 700;
  color: #A6532A;
  line-height: 1;
  letter-spacing: -0.02em;
}
.proceso-tiempo {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #6B6052;
  font-weight: 600;
}
.proceso-content h3 {
  font-size: 20px;
  color: #1C1916;
  margin: 0 0 6px 0;
}
.proceso-duracion {
  font-size: 13px;
  color: #6B6052;
  margin: 0 0 16px 0;
}
.proceso-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.proceso-detail-grid > div span.eyebrow {
  display: block;
  margin-bottom: 6px;
}
.proceso-detail-grid > div p {
  font-size: 13.5px;
  line-height: 1.5;
  color: #2A241F;
  margin: 0;
}

@media (max-width: 720px) {
  .razon-card,
  .proceso-step {
    grid-template-columns: 1fr;
    padding: 22px;
  }
  .razon-num,
  .proceso-num { font-size: 42px; }
  .proceso-num-wrap {
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
  }
  .proceso-detail-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

/* === COMPROMISOS / GARANTIAS === */
.compromisos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 18px;
  max-width: 1180px;
  margin: 0 auto;
}
.compromiso-card {
  background: #fff;
  border: 1px solid #E8DFC8;
  border-radius: 14px;
  padding: 26px 24px;
  transition: border-color 0.2s ease;
}
.compromiso-card:hover { border-color: #A6532A; }
.compromiso-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}
.compromiso-num {
  font-size: 32px;
  font-weight: 700;
  color: #A6532A;
  line-height: 1;
  letter-spacing: -0.02em;
}
.compromiso-tipo {
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 4px;
  font-weight: 700;
}
.compromiso-tipo-sla { background: #1C1916; color: #F2EBD9; }
.compromiso-tipo-compromiso { background: #A6532A; color: #fff; }
.compromiso-tipo-condicion { background: #E8DFC8; color: #5E3D14; }
.compromiso-card h3 {
  font-size: 17px;
  color: #1C1916;
  margin: 0 0 12px 0;
  letter-spacing: -0.005em;
}
.compromiso-card p {
  font-size: 14px;
  line-height: 1.6;
  color: #2A241F;
  margin: 0 0 12px 0;
}
.compromiso-falla {
  font-size: 13px;
  line-height: 1.5;
  color: #6B6052;
  background: #FBF7EE;
  padding: 10px 14px;
  border-radius: 8px;
  border-left: 3px solid #D08856;
  margin: 0;
}

/* === SECTORES (bloque de credibilidad para home) === */
.sectores-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  max-width: 1180px;
  margin: 24px auto 0;
}
.sector-card {
  background: #FBF7EE;
  border: 1px solid #E8DFC8;
  border-radius: 12px;
  padding: 22px 20px;
  transition: all 0.18s ease;
}
.sector-card:hover {
  background: #fff;
  border-color: #A6532A;
  transform: translateY(-2px);
}
.sector-card .sector-icon {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #A6532A;
  font-weight: 700;
  margin-bottom: 8px;
  display: block;
}
.sector-card h4 {
  font-size: 15px;
  color: #1C1916;
  margin: 0 0 6px 0;
  font-weight: 600;
}
.sector-card p {
  font-size: 12.5px;
  color: #6B6052;
  margin: 0;
  line-height: 1.4;
}

/* === KPI BLOCK (números agregados para home) === */
.kpis-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 24px;
  max-width: 1180px;
  margin: 0 auto;
}
.kpi-card {
  text-align: center;
  padding: 32px 20px;
}
.kpi-num {
  font-size: 56px;
  font-weight: 700;
  color: #D08856;
  line-height: 1;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
  font-variant-numeric: tabular-nums;
}
.kpi-label {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(245,240,229,0.85);
  font-weight: 600;
}
.kpi-sub {
  font-size: 12px;
  color: rgba(245,240,229,0.55);
  margin-top: 4px;
}

/* === V37 — Formato "El Hecho / La Evidencia" en razones === */
.razon-hecho,
.razon-evidencia-block {
  margin-top: 14px;
  padding: 14px 18px;
  border-radius: 10px;
}
.razon-hecho {
  background: #FBF7EE;
  border-left: 3px solid #1C1916;
}
.razon-evidencia-block {
  background: rgba(166, 83, 42, 0.06);
  border-left: 3px solid #A6532A;
}
.razon-hecho .eyebrow,
.razon-evidencia-block .eyebrow {
  font-size: 10.5px;
  letter-spacing: 0.12em;
  margin-bottom: 6px;
  display: block;
}
.razon-hecho .eyebrow { color: #1C1916; }
.razon-evidencia-block .eyebrow { color: #A6532A; }
.razon-hecho p,
.razon-evidencia-block p {
  font-size: 14px;
  line-height: 1.6;
  color: #2A241F;
  margin: 0;
}

/* === V38 — Prosa fluida en razones y proceso === */
.razon-cuerpo {
  font-size: 14.5px;
  line-height: 1.7;
  color: #2A241F;
  margin: 8px 0 0 0;
}
.proceso-cuerpo {
  font-size: 14.5px;
  line-height: 1.7;
  color: #2A241F;
  margin: 12px 0 0 0;
}
.compromiso-cuerpo {
  font-size: 14px;
  line-height: 1.65;
  color: #2A241F;
  margin: 0;
}

/* Quitar las antiguas cajas hecho/evidencia si quedan referencias */
.razon-hecho,
.razon-evidencia-block,
.compromiso-falla {
  display: none !important;
}
