:root {
    --nux-bg: #080e14;           /* Fondo Oscuro */
    --nux-card-bg: #0d1520;      /* Fondo de tarjetas ligeramente más claro */
    --nux-cyan: #06b6d4;         /* Azul radiológico brillante */
    --nux-green: #10b981;        /* Verde esmeralda */
    --text-white: #ffffff;       /* Texto principal */
    --text-muted: #8fa0b5;       /* Texto secundario grisáceo */
    --border-color: #1e293b;     /* Bordes sutiles oscuros */
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--nux-bg);
    color: var(--text-white);
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
}

/* ==========================================================================
   ESTILOS DE CABECERA Y LOGOTIPO EN IMAGEN
   ========================================================================== */
.header {
    text-align: center;
    margin-bottom: 40px;
    max-width: 700px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.logo {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-img {
    max-width: 280px;  /* Controla el ancho máximo de tu logotipo en pantalla */
    height: auto;      /* Mantiene la proporción original de la imagen */
    display: block;
}

.header h1 {
    font-size: 2rem;
    color: var(--text-white);
    margin-bottom: 12px;
    font-weight: 700;
}

.header p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    max-width: 580px;
}

/* Formación de la doble hélice / rombo de tu logo */
.cube-1 { top: 0; left: 12px; }
.cube-2 { top: 12px; left: 0; }
.cube-3 { top: 12px; left: 24px; }
.cube-4 { bottom: 0; left: 12px; }

.nux-sub {
    font-size: 1.1rem;
    letter-spacing: 6px;
    color: var(--nux-cyan);
    font-weight: 500;
    text-transform: uppercase;
    margin-bottom: 20px;
    padding-left: 6px; /* Balancear el tracking */
}

/* Botón Ovalado Streamlined idéntico a tu captura */
.badge-streamlined {
    display: inline-block;
    border: 1px solid #143342;
    background-color: #0b1c26;
    color: #38bdf8;
    padding: 6px 20px;
    font-size: 0.72rem;
    font-weight: 700;
    border-radius: 30px;
    letter-spacing: 1px;
    margin-bottom: 25px;
    text-transform: uppercase;
}

.header-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    max-width: 550px;
}

/* ==========================================================================
   ESTRUCTURA DE LA CALCULADORA EN MODO OSCURO
   ========================================================================== */
.calculator-container {
    display: flex;
    flex-direction: row;
    gap: 25px;
    max-width: 1250px;
    width: 100%;
    background: var(--nux-card-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 35px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.column {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.column h2 {
    font-size: 1rem;
    color: var(--nux-cyan);
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.inputs-grid {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.input-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-white);
}

.input-wrapper input {
    width: 100%;
    padding: 11px 14px;
    font-size: 1rem;
    font-family: inherit;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    outline: none;
    background: #080e14;
    color: var(--text-white);
    transition: all 0.2s;
}

.input-wrapper input:focus {
    border-color: var(--nux-cyan);
    box-shadow: 0 0 0 2px rgba(6, 182, 212, 0.15);
}

/* Bloques de Configuración y Retención */
.retention-group {
    margin-bottom: 16px;
    background: #080e14;
    padding: 14px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
}

.retention-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 8px;
}

.retention-dropdown {
    width: 100%;
    padding: 10px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    font-family: inherit;
    font-size: 0.9rem;
    background: var(--nux-card-bg);
    color: var(--text-white);
    cursor: pointer;
    outline: none;
}

.modules-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.checkbox-card {
    display: flex;
    align-items: start;
    gap: 12px;
    background: #080e14;
    padding: 14px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: all 0.2s;
}

.checkbox-card:hover:not(.disabled) {
    border-color: var(--nux-cyan);
    background: #0c1a24;
}

.checkbox-card.disabled {
    cursor: not-allowed;
    opacity: 0.4;
}

.checkbox-card input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: var(--nux-cyan);
}

.checkbox-info label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-white);
    cursor: pointer;
}

.checkbox-info p {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 4px;
    line-height: 1.4;
}

/* Columna de Resultados y Tarjeta Activa */
.results-column {
    background: #080e14;
    border-radius: 16px;
    padding: 25px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 1px solid var(--border-color);
}

.plan-display {
    background: var(--nux-card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 22px;
    margin-bottom: 16px;
}

.plan-display.active {
    border: 2px solid var(--nux-green);
}

.plan-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-white);
    margin-bottom: 10px;
}

.plan-cost {
    font-size: 1.5rem;
    color: var(--nux-green);
}

.plan-desc-text {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.client-metrics-box {
    background: var(--nux-card-bg);
    padding: 16px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    margin-bottom: 16px;
}

.metric-line {
    font-size: 0.85rem;
    color: var(--text-white);
    margin-bottom: 6px;
    display: flex;
    justify-content: space-between;
}

.metric-line strong {
    color: var(--nux-cyan);
}

.tax-note {
    font-size: 0.72rem;
    color: var(--text-muted);
    border-top: 1px solid var(--border-color);
    padding-top: 8px;
    margin-top: 8px;
    font-style: italic;
    line-height: 1.4;
}

/* Botón de WhatsApp Streamlined */
.btn-submit {
    display: block;
    text-align: center;
    background: linear-gradient(135deg, #0a3a40, #0c4d37);
    border: 1px solid var(--nux-green);
    color: var(--text-white);
    padding: 14px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    font-size: 1rem;
    width: 100%;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-submit:hover {
    background: linear-gradient(135deg, #0e525a, #11684b);
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.2);
}

/* Footer de Cumplimiento Legal */
.footer-compliance {
    margin-top: 40px;
    text-align: center;
    font-size: 0.85rem;
    color: var(--nux-cyan);
    letter-spacing: 2px;
    line-height: 1.8;
}

.footer-compliance span {
    font-size: 0.72rem;
    color: var(--text-muted);
    letter-spacing: 1px;
}

@media (max-width: 992px) {
    .calculator-container {
        flex-direction: column;
        padding: 20px;
    }
}