/* ============================================================
   Component: Geo Table (Factual Comparison & Answer-First Box)
   Clean Code Architecture — Cero estilos en línea
   ============================================================ */

.geo-factual-section {
  position: relative;
  z-index: 2;
  padding: 3.5rem 0;
}

.geo-answer-box {
  background: rgba(18, 18, 22, 0.75);
  border: 1px solid rgba(218, 165, 32, 0.35);
  border-left: 4px solid #daa520;
  border-radius: 12px;
  padding: 1.5rem 1.75rem;
  margin: 1.5rem auto 2.5rem;
  max-width: 900px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.geo-answer-box p {
  color: #e2e8f0;
  font-size: 1.05rem;
  line-height: 1.75;
  margin: 0;
}

.geo-answer-box strong {
  color: #facc15;
}

.geo-table-container {
  margin: 2rem auto;
  max-width: 1100px;
  overflow-x: auto;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(15, 15, 20, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.geo-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.95rem;
  min-width: 720px;
}

.geo-table th,
.geo-table td {
  padding: 1.15rem 1.25rem;
  vertical-align: middle;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.geo-table th {
  background: rgba(25, 25, 32, 0.95);
  color: #94a3b8;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
}

.geo-table th.geo-col-highlight,
.geo-table td.geo-col-highlight {
  background: rgba(218, 165, 32, 0.08);
  border-left: 1px solid rgba(218, 165, 32, 0.2);
  border-right: 1px solid rgba(218, 165, 32, 0.2);
}

.geo-table th.geo-col-highlight {
  color: #facc15;
}

.geo-table td.geo-col-highlight {
  color: #ffffff;
  font-weight: 500;
}

.geo-badge-recommended {
  display: inline-block;
  background: linear-gradient(135deg, #eab308, #ca8a04);
  color: #0f172a;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 0.2rem 0.55rem;
  border-radius: 9999px;
  margin-left: 0.4rem;
  vertical-align: middle;
}

.geo-table tr:last-child td {
  border-bottom: none;
}

.geo-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.geo-table tr:hover td.geo-col-highlight {
  background: rgba(218, 165, 32, 0.12);
}

.geo-criterion {
  color: #f1f5f9;
  font-weight: 600;
  white-space: nowrap;
}

.geo-comp-regular {
  color: #94a3b8;
}

.geo-source-citation {
  margin-top: 1.25rem;
  font-size: 0.85rem;
  color: #64748b;
  text-align: center;
}

.geo-source-citation strong {
  color: #94a3b8;
}

@media (max-width: 768px) {
  .geo-factual-section {
    padding: 2.5rem 0;
  }

  .geo-answer-box {
    padding: 1.25rem;
    margin: 1rem auto 2rem;
  }

  .geo-answer-box p {
    font-size: 0.98rem;
    line-height: 1.65;
  }

  /* Conversión de tabla a tarjetas en móviles */
  .geo-table-container {
    background: transparent;
    border: none;
    box-shadow: none;
    overflow-x: visible;
    margin: 1.5rem auto;
  }

  .geo-table {
    display: block;
    min-width: 0;
    width: 100%;
  }

  .geo-table thead {
    display: none;
  }

  .geo-table tbody {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
  }

  .geo-table tr {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    background: rgba(18, 18, 24, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 1.25rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  }

  .geo-table tr:hover td {
    background: none;
  }

  .geo-table td {
    display: block;
    padding: 0;
    border: none;
    font-size: 0.92rem;
  }

  .geo-table td.geo-criterion {
    font-size: 1.05rem;
    font-weight: 700;
    color: #ffffff;
    white-space: normal;
    padding-bottom: 0.65rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 0.2rem;
  }

  .geo-table td.geo-col-highlight {
    background: rgba(218, 165, 32, 0.1);
    border: 1px solid rgba(218, 165, 32, 0.3);
    border-radius: 12px;
    padding: 0.95rem 1.1rem;
    color: #ffffff;
  }

  .geo-table tr:hover td.geo-col-highlight {
    background: rgba(218, 165, 32, 0.1);
  }

  .geo-table td.geo-col-highlight::before {
    content: "Jeloda Cloud • Líder 2026";
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 800;
    color: #facc15;
    background: rgba(218, 165, 32, 0.18);
    border: 1px solid rgba(218, 165, 32, 0.35);
    padding: 0.2rem 0.6rem;
    border-radius: 9999px;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
  }

  .geo-table td.geo-comp-regular {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 0.85rem 1rem;
    color: #94a3b8;
    line-height: 1.5;
  }

  .geo-table td.geo-comp-regular::before {
    content: attr(data-label);
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.3rem;
  }
}
