/* =============================================
   CALCULADORA.CSS — CeroKM Dark Tech Theme
   ============================================= */

/* ── Global ── */
body { background-color: #030b1a; color: #e2e8f0; }

/* ── Tech grid background ── */
.tech-bg-main {
  background-color: #030b1a;
  background-image:
    linear-gradient(rgba(0,229,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,229,255,0.03) 1px, transparent 1px);
  background-size: 44px 44px;
}

/* ── Hero ── */
.hero-tech-bg {
  background-color: #05122e;
  background-image:
    radial-gradient(circle at 15% 50%, rgba(14,98,228,0.25) 0%, transparent 55%),
    radial-gradient(circle at 85% 30%, rgba(0,229,255,0.2) 0%, transparent 55%),
    linear-gradient(rgba(0,229,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,229,255,0.04) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 32px 32px, 32px 32px;
  position: relative;
}

/* ── Header ── */
.glass-header {
  background: rgba(2,6,23,0.97);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0,229,255,0.22);
  box-shadow: 0 0 30px rgba(0,229,255,0.05), 0 4px 20px rgba(0,0,0,0.5);
}

/* ── Calculator card ── */
.calc-card {
  background: rgba(8,22,58,0.85);
  border: 1px solid rgba(0,229,255,0.18);
  border-radius: 1.5rem;
  box-shadow:
    0 0 0 1px rgba(0,229,255,0.05),
    0 25px 60px -15px rgba(0,0,0,0.9),
    0 0 50px rgba(14,98,228,0.12),
    inset 0 1px 0 rgba(255,255,255,0.04);
  backdrop-filter: blur(20px);
  position: relative;
  overflow: hidden;
}
.calc-card::before {
  content: '';
  position: absolute; top: 0; left: 15%; right: 15%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0,229,255,0.9), transparent);
}

/* ── Input fields ── */
.input-field {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1.5px solid rgba(0,229,255,0.2);
  border-radius: 0.75rem;
  font-size: 1rem;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  color: #e2e8f0;
  background: rgba(3,11,26,0.9);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}
.input-field:focus {
  border-color: rgba(0,229,255,0.75);
  box-shadow: 0 0 0 3px rgba(0,229,255,0.09), 0 0 22px rgba(0,229,255,0.14);
  background: rgba(3,11,26,1);
}
.input-field option { background: #05122e; color: #e2e8f0; }

.input-label {
  display: block;
  font-size: 0.71rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(0,229,255,0.75);
  margin-bottom: 0.4rem;
}

/* ── Price input prefix ── */
.calc-card .absolute.left-3 { color: rgba(0,229,255,0.6); }

/* ── Result rows ── */
.result-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.85rem 1rem;
  border-radius: 0.75rem;
  margin-bottom: 0.5rem;
  border: 1px solid rgba(0,229,255,0.08);
  background: rgba(3,11,26,0.7);
  transition: all 0.25s ease;
}
.result-row:hover {
  border-color: rgba(0,229,255,0.22);
  background: rgba(14,98,228,0.1);
}
.result-row.highlight {
  background: rgba(14,98,228,0.15);
  border-color: rgba(14,98,228,0.4);
}
.result-row .label { font-weight: 600; color: #94a3b8; font-size: 0.9rem; }
.result-row .value {
  font-weight: 800; color: #00e5ff; font-size: 1rem;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 14px rgba(0,229,255,0.5);
}

/* ── Total box ── */
.total-box {
  background: linear-gradient(135deg, #05122e, #0a1d47);
  border: 1px solid rgba(0,229,255,0.3);
  border-radius: 1rem;
  padding: 1.5rem;
  margin-top: 1rem;
  color: white;
  box-shadow: 0 0 40px rgba(0,229,255,0.13), 0 10px 30px rgba(14,98,228,0.35);
  position: relative; overflow: hidden;
}
.total-box::before {
  content: '';
  position: absolute; top: 0; left: 10%; right: 10%; height: 1px;
  background: linear-gradient(90deg, transparent, #00e5ff, transparent);
}
.total-box .total-label {
  font-size: 0.75rem; text-transform: uppercase;
  letter-spacing: 0.12em; color: #00e5ff; font-weight: 700;
}
.total-box .total-amount {
  font-size: 2.1rem; font-weight: 900; letter-spacing: -0.02em;
  text-shadow: 0 0 28px rgba(0,229,255,0.5);
}

/* ── Insurance card ── */
.insurance-card {
  background: rgba(18,10,2,0.88);
  border: 1px solid rgba(251,191,36,0.22);
  border-radius: 1rem;
  padding: 1.25rem;
  position: relative; overflow: hidden;
}
.insurance-card::before {
  content: '';
  position: absolute; top: 0; left: 15%; right: 15%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(251,191,36,0.7), transparent);
}
.insurance-option {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.65rem 0.85rem;
  border-radius: 0.5rem;
  margin-bottom: 0.4rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(251,191,36,0.1);
}

/* ── Botón WhatsApp ── */
.cta-btn {
  display: flex; align-items: center; justify-content: center; gap: 0.5rem;
  background: linear-gradient(135deg, #25D366, #1aab52);
  color: white; font-weight: 800; font-size: 1rem;
  padding: 1rem 1.5rem; border-radius: 0.875rem;
  text-decoration: none; transition: all 0.22s;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4), 0 0 40px rgba(37,211,102,0.1);
}
.cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(37,211,102,0.55), 0 0 50px rgba(37,211,102,0.2);
}
.cta-btn-secondary {
  display: flex; align-items: center; justify-content: center; gap: 0.5rem;
  background: rgba(14,98,228,0.2);
  border: 1px solid rgba(14,98,228,0.5);
  color: #93c5fd; font-weight: 700; font-size: 0.9rem;
  padding: 0.85rem 1.25rem; border-radius: 0.875rem;
  text-decoration: none; transition: all 0.22s;
}
.cta-btn-secondary:hover {
  background: rgba(14,98,228,0.4);
  border-color: rgba(14,98,228,0.9);
  color: #fff;
  box-shadow: 0 0 22px rgba(14,98,228,0.35);
}

/* ── Radio pills ── */
.radio-pill { display: none; }
.radio-pill + label {
  display: inline-flex; align-items: center;
  padding: 0.5rem 1rem; border-radius: 2rem;
  border: 1.5px solid rgba(0,229,255,0.18);
  cursor: pointer; font-weight: 600; font-size: 0.88rem;
  color: #cbd5e1; background: rgba(3,11,26,0.7);
  transition: all 0.18s; user-select: none;
}
.radio-pill:checked + label {
  background: rgba(14,98,228,0.25);
  border-color: rgba(0,229,255,0.65);
  color: #00e5ff;
  box-shadow: 0 0 18px rgba(0,229,255,0.2);
}

/* ── Right column content cards ── */
.content-card {
  background: rgba(8,22,58,0.7);
  border: 1px solid rgba(0,229,255,0.12);
  border-radius: 1.25rem;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(12px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.5);
  position: relative; overflow: hidden;
}
.content-card::before {
  content: '';
  position: absolute; top: 0; left: 20%; right: 20%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0,229,255,0.5), transparent);
}

/* ── Tech table ── */
.tech-table thead tr { border-bottom: 2px solid rgba(0,229,255,0.15); }
.tech-table thead th {
  color: rgba(0,229,255,0.7);
  font-size: 0.7rem; text-transform: uppercase;
  letter-spacing: 0.08em; padding-bottom: 0.6rem;
  font-weight: 700;
}
.tech-table tbody tr { border-bottom: 1px solid rgba(0,229,255,0.06); }
.tech-table tbody td { color: #cbd5e1; padding: 0.6rem 0; font-size: 0.87rem; }
.tech-table tbody td:last-child { color: #e2e8f0; font-weight: 700; text-align: right; }
.tech-table tbody tr:last-child { border-bottom: none; }
.tech-table tbody tr:hover td { color: #94a3b8; }
.tech-table tbody tr:hover td:last-child { color: #00e5ff; }

/* ── DNRPA badge boxes ── */
.badge-national {
  background: rgba(14,98,228,0.12);
  border: 1px solid rgba(14,98,228,0.3);
  border-radius: 0.75rem; padding: 0.75rem; text-align: center;
}
.badge-import {
  background: rgba(234,88,12,0.1);
  border: 1px solid rgba(234,88,12,0.3);
  border-radius: 0.75rem; padding: 0.75rem; text-align: center;
}

/* ── Step number badges ── */
.step-badge {
  width: 1.75rem; height: 1.75rem;
  background: rgba(14,98,228,0.35);
  border: 1px solid rgba(14,98,228,0.6);
  border-radius: 50%;
  color: #00e5ff; font-weight: 900;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; font-size: 0.75rem;
  box-shadow: 0 0 12px rgba(14,98,228,0.3);
}

/* ── FAQ ── */
.faq-item { border-bottom: 1px solid rgba(0,229,255,0.08); padding: 1.25rem 0; }
.faq-q {
  font-weight: 700; color: #cbd5e1; font-size: 0.97rem;
  cursor: pointer; display: flex; justify-content: space-between; align-items: center;
  transition: color 0.2s;
}
.faq-q:hover { color: #00e5ff; }
.faq-a { color: #94a3b8; font-size: 0.92rem; line-height: 1.75; margin-top: 0.75rem; display: none; }
.faq-item.open .faq-a { display: block; }
.faq-item.open .faq-icon { transform: rotate(45deg); color: #00e5ff; }
.faq-icon { transition: transform 0.2s, color 0.2s; flex-shrink: 0; margin-left: 0.75rem; color: #1e3a5f; }

/* ── Placeholder ── */
#placeholder-calc { color: #1e3a5f; }

/* ── Footer ── */
footer { background: #020810 !important; border-top: 1px solid rgba(0,229,255,0.08); }

/* ── Animations ── */
@keyframes pulse-glow {
  0%   { box-shadow: 0 0 0 0 rgba(37,211,102,0.55), 0 4px 20px rgba(37,211,102,0.4); }
  70%  { box-shadow: 0 0 0 12px rgba(37,211,102,0), 0 4px 20px rgba(37,211,102,0.4); }
  100% { box-shadow: 0 0 0 0 rgba(37,211,102,0), 0 4px 20px rgba(37,211,102,0.4); }
}
.pulse-green { animation: pulse-glow 2.2s infinite; }

@keyframes countUp {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.animate-result { animation: countUp 0.4s ease forwards; }

@media (min-width: 1024px) { .sticky-calc { position: sticky; top: 100px; } }
