/* ═══════════════════════════════════════════════════════════════
   IDATA Chile — planes.css
   Estilos específicos de la página Planes
═══════════════════════════════════════════════════════════════ */

/* ─── Hero Planes ────────────────────────────────────────────── */
.planes-hero {
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(30,107,255,0.18) 0%, transparent 70%),
              var(--idata-bg-dark);
  padding: calc(var(--navbar-height) + 4rem) 0 4rem;
  text-align: center;
}

/* ─── Sección contenedora ────────────────────────────────────── */
.planes-section { padding-top: 0; padding-bottom: 6rem; }

/* ─── Plan Card ──────────────────────────────────────────────── */
.plan-card {
  background: var(--idata-surface);
  border: 1px solid var(--idata-border);
  border-radius: 1.25rem;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  position: relative;
  transition: var(--transition-base);
}

.plan-card:hover {
  transform: translateY(-8px);
  border-color: rgba(30,107,255,0.45);
  box-shadow: 0 0 48px rgba(30,107,255,0.18);
}

/* Plan destacado */
.plan-featured {
  border-color: var(--idata-blue);
  background: linear-gradient(160deg, var(--idata-bg-card) 0%, rgba(30,107,255,0.08) 100%);
  box-shadow: 0 0 40px rgba(30,107,255,0.2);
}

.plan-featured:hover {
  box-shadow: 0 0 64px rgba(30,107,255,0.35);
}

.plan-featured-ribbon {
  position: absolute;
  top: 1.25rem;
  right: -2.5rem;
  background: var(--idata-blue);
  color: var(--idata-white);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 0.3rem 3rem;
  transform: rotate(45deg);
  transform-origin: center;
  pointer-events: none;
  z-index: 1;
}

/* ─── Plan Header ────────────────────────────────────────────── */
.plan-header {
  padding: 2.25rem 2rem 1.25rem;
  border-bottom: 1px solid var(--idata-border);
}

.plan-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.plan-icon-starter    { background: rgba(59,130,246,0.15); color: var(--pilar-ingenieria); }
.plan-icon-pro        { background: rgba(139,92,246,0.15); color: var(--pilar-inteligencia); }
.plan-icon-empresa    { background: rgba(6,182,212,0.15);  color: var(--pilar-datos); }

.plan-badge-label {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  margin-bottom: 0.5rem;
  background: rgba(30,107,255,0.12);
  color: var(--idata-blue-light);
}

.plan-badge-pro     { background: rgba(139,92,246,0.15); color: var(--pilar-inteligencia); }
.plan-badge-empresa { background: rgba(6,182,212,0.15);  color: var(--pilar-datos); }

.plan-name {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--idata-white);
  margin-bottom: 0.4rem;
}

.plan-target {
  font-size: 0.85rem;
  color: var(--idata-muted);
  margin: 0;
}

/* ─── Plan Body ──────────────────────────────────────────────── */
.plan-body {
  padding: 1.5rem 2rem;
  flex: 1;
}

.plan-desc {
  color: var(--idata-muted);
  font-size: 0.875rem;
  margin-bottom: 1.25rem;
  line-height: 1.6;
}

.plan-includes-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--idata-blue-light);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 0.85rem;
  padding: 0.3rem 0.6rem;
  background: rgba(30,107,255,0.08);
  border-left: 3px solid var(--idata-blue);
  border-radius: 0 4px 4px 0;
}

.plan-features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.plan-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}

.feat-icon {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  margin-top: 1px;
}

.feat-icon-blue   { background: rgba(59,130,246,0.12);  color: var(--pilar-ingenieria); }
.feat-icon-purple { background: rgba(139,92,246,0.12);  color: var(--pilar-inteligencia); }
.feat-icon-cyan   { background: rgba(6,182,212,0.12);   color: var(--pilar-datos); }

.plan-features li span:last-child {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.plan-features li strong {
  font-size: 0.9rem;
  color: var(--idata-white);
  font-weight: 600;
}

.plan-features li small {
  font-size: 0.78rem;
  color: var(--idata-muted);
  line-height: 1.4;
}

/* ─── Plan Footer ────────────────────────────────────────────── */
.plan-footer {
  padding: 1.25rem 2rem 2rem;
}

/* ─── Nota inferior ──────────────────────────────────────────── */
.planes-nota {
  color: var(--idata-muted);
  font-size: 0.9rem;
  background: var(--idata-surface);
  border: 1px solid var(--idata-border);
  border-radius: 0.75rem;
  padding: 1rem 1.5rem;
  display: inline-block;
}

/* ─── Tabla comparativa ──────────────────────────────────────── */
.planes-table {
  color: var(--idata-text);
  border-color: var(--idata-border);
  margin: 0;
}

.planes-table thead th {
  background: var(--idata-surface);
  color: var(--idata-white);
  font-weight: 700;
  font-size: 0.9rem;
  border-color: var(--idata-border);
  padding: 1rem 1.25rem;
  white-space: nowrap;
}

.planes-table tbody td {
  background: var(--idata-bg-card);
  border-color: var(--idata-border);
  padding: 0.85rem 1.25rem;
  font-size: 0.9rem;
  color: var(--idata-text);
  vertical-align: middle;
}

.planes-table tbody tr:hover td {
  background: var(--idata-surface);
}

.table-featured-col {
  background: rgba(30,107,255,0.07) !important;
  border-left: 1px solid rgba(30,107,255,0.3) !important;
  border-right: 1px solid rgba(30,107,255,0.3) !important;
}

thead .table-featured-col {
  background: rgba(30,107,255,0.18) !important;
  color: var(--idata-blue-light) !important;
}

.bi-dash { color: var(--idata-muted); font-size: 1.1rem; }
.bi-check-circle-fill { font-size: 1.1rem; }

/* ─── Responsive ─────────────────────────────────────────────── */
@media (max-width: 991.98px) {
  .plan-featured { order: -1; }
}

@media (max-width: 575.98px) {
  .plan-header,
  .plan-body,
  .plan-footer { padding-left: 1.25rem; padding-right: 1.25rem; }
  .planes-table { font-size: 0.8rem; }
  .planes-table thead th,
  .planes-table tbody td { padding: 0.65rem 0.75rem; }
}
