/* Variables de color */
:root { 
    --primary: #2563eb; 
    --bg: #f8fafc; 
    --text: #1e293b; 
    --border: #e2e8f0; 
    --success: #22c55e;
}

/* Configuración General */
body { 
    font-family: 'Inter', -apple-system, sans-serif; 
    background: var(--bg); 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    padding: 20px; 
    color: var(--text); 
    line-height: 1.6; 
    margin: 0;
}

/* Contenedor Principal */
.calculator-container { 
    background: white; 
    max-width: 550px; 
    width: 100%; 
    padding: 2rem; 
    border-radius: 24px; 
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1); 
    box-sizing: border-box;
    margin-bottom: 2rem;
}

h1 { 
    text-align: center; 
    font-size: 1.7rem; 
    margin-bottom: 1.5rem; 
    color: #0f172a; 
    font-weight: 800; 
}

/* Formulario */
.input-grid { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 1.2rem; 
}

.input-grid-half {
    grid-column: span 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
}

.full { grid-column: span 2; }

.input-group { 
    display: flex; 
    flex-direction: column; 
    gap: 6px; 
}

label { 
    font-size: 0.75rem; 
    font-weight: 700; 
    color: #64748b; 
    text-transform: uppercase; 
    letter-spacing: 0.05em; 
}

.input-with-symbol { 
    position: relative; 
    display: flex; 
    align-items: center; 
}

.input-with-symbol input { 
    padding-right: 35px; 
    font-size: 1.2rem; 
    font-weight: 600;
    color: #0f172a; 
}

.input-with-symbol .symbol { 
    position: absolute; 
    right: 15px; 
    color: #94a3b8; 
    font-weight: 600; 
}

input, select { 
    padding: 12px; 
    border: 1px solid var(--border); 
    border-radius: 12px; 
    font-size: 1rem; 
    width: 100%; 
    transition: all 0.2s; 
    background: #fff; 
    box-sizing: border-box; 
}

select { 
    cursor: pointer; 
    appearance: none; 
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E"); 
    background-repeat: no-repeat; 
    background-position: right 12px center; 
    background-size: 1.1em; 
}

input:focus, select:focus { 
    border-color: var(--primary); 
    outline: none; 
    box-shadow: 0 0 0 4px rgba(37,99,235,0.1); 
}

/* Ajustes Avanzados */
.advanced-toggle { 
    cursor: pointer; 
    color: var(--primary); 
    font-size: 0.85rem; 
    font-weight: 700; 
    text-align: center; 
    margin-top: 10px; 
    padding: 10px; 
    border-radius: 10px; 
    background: #eff6ff; 
    transition: background 0.2s;
}

.advanced-toggle:hover { background: #dbeafe; }
.hidden { display: none; }

.checkbox-group { 
    flex-direction: row !important; 
    align-items: center; 
    gap: 10px !important; 
}

.checkbox-group input { width: 20px; height: 20px; margin: 0; cursor: pointer; }

/* Resultados */
.results-container { 
    margin-top: 2rem; 
    background: #f8fafc; 
    border-radius: 24px; 
    padding: 1.8rem; 
    border: 1px solid #f1f5f9; 
}

.main-net { text-align: center; margin-bottom: 1.5rem; }
.main-net .label { font-size: 0.85rem; font-weight: 700; color: #64748b; text-transform: uppercase; }
.main-net .value { 
    font-size: 3rem; 
    font-weight: 900; 
    color: var(--primary); 
    letter-spacing: -0.05em; 
    margin: 5px 0;
}

.retention-badge { 
    font-size: 0.8rem; 
    background: #dcfce7; 
    color: #166534; 
    padding: 6px 16px; 
    border-radius: 99px; 
    font-weight: 700; 
    margin-top: 10px;
}

.breakdown { margin-top: 1.5rem; }
.breakdown .row { 
    display: flex; 
    justify-content: space-between; 
    margin-bottom: 10px; 
    font-size: 0.95rem; 
}

.row span:last-child { font-weight: 700; color: #0f172a; }
.neg { color: #e11d48 !important; }
.highlight { 
    border-top: 2px dashed #e2e8f0; 
    padding-top: 15px; 
    margin-top: 15px; 
    font-size: 1.2rem; 
}
.highlight span:last-child { color: var(--success) !important; font-size: 1.4rem; }

/* Sección SEO y Tabla */
.seo-content {
    max-width: 800px;
    margin: 2rem auto;
    padding: 0 20px;
    color: #475569;
}

.seo-content h2 { color: #0f172a; margin-top: 3rem; }
.seo-content h3 { color: #1e293b; margin-top: 2rem; }

table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
}

table th, table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #f1f5f9;
}

table th { background: #f8fafc; color: #64748b; font-size: 0.8rem; text-transform: uppercase; }

/* Footer */
.site-footer {
    text-align: center;
    padding: 3rem 1rem;
    font-size: 0.9rem;
    color: #94a3b8;
    border-top: 1px solid #e2e8f0;
    width: 100%;
    background: white;
}

/* Responsivo */
@media (max-width: 550px) {
    .input-grid-half { grid-template-columns: 1fr; }
    .main-net .value { font-size: 2.2rem; }
    .calculator-container { padding: 1.5rem; border-radius: 0; }
}

/* ... (Todo el estilo anterior que te pasé) ... */

/* --- BOTONES DE COMPARTIR RECUPERADOS --- */
.share-container {
    margin-top: 1.5rem;
    text-align: center;
    border-top: 1px dashed #cbd5e1;
    padding-top: 1.2rem;
}
.share-container p { font-size: 0.75rem; color: #64748b; margin-bottom: 1rem; font-weight: 700; text-transform: uppercase; }
.share-buttons { display: flex; gap: 10px; justify-content: center; }
.share-btn {
    text-decoration: none; color: white !important; padding: 10px 15px; border-radius: 12px;
    font-size: 0.85rem; font-weight: 700; display: flex; align-items: center; gap: 8px; transition: transform 0.2s;
}
.share-btn:hover { transform: translateY(-2px); }
.whatsapp { background-color: #25D366; }
.x-twitter { background-color: #000; }

/* --- BANNER DE COOKIES RECUPERADO --- */
.cookie-overlay {
    position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%);
    width: 90%; max-width: 500px; background: #1e293b; color: white;
    padding: 1.2rem; border-radius: 20px; box-shadow: 0 15px 30px rgba(0,0,0,0.3);
    z-index: 9999; text-align: center;
}
.cookie-content p { font-size: 0.85rem; margin-bottom: 15px; color: #cbd5e1; }
.cookie-content a { color: #60a5fa; text-decoration: underline; }
.btn-accept { background: var(--primary); border: none; color: white; padding: 8px 20px; border-radius: 8px; cursor: pointer; font-weight: 700; margin-right: 10px; }
.btn-reject { background: transparent; border: 1px solid #475569; color: #cbd5e1; padding: 8px 20px; border-radius: 8px; cursor: pointer; }

/* ... (Resto del responsivo) ... */

/* --- ESTILO PARA EL GRÁFICO --- */
.chart-box {
    width: 100%;
    max-width: 350px; /* Tamaño máximo para que no sea gigante */
    height: 300px;
    margin: 30px auto; /* Centrado */
}

/* --- BLOQUE PROMO NUEVA HERRAMIENTA --- */
.tool-promo {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border: 2px solid #bae6fd;
    padding: 1.8rem;
    border-radius: 20px;
    margin: 20px 0; /* Para que quede dentro del contenedor blanco */
    text-align: center;
}

.promo-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.tool-promo h3 { 
    margin: 0; 
    color: #0369a1; 
    font-size: 1.2rem; 
    font-weight: 800;
}

.tool-promo p { 
    font-size: 0.9rem; 
    color: #0c4a6e; 
    margin: 0.8rem 0 1.2rem 0; 
}

.promo-link {
    display: inline-block;
    background: #0284c7;
    color: white !important;
    padding: 12px 24px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
}

.promo-link:hover { 
    background: #0369a1;
    transform: translateY(-2px); 
}
