:root {
    --bg-color: #F4F4F4; /* Gris muy claro, no blanco puro */
    --text-color: #111111;
    --border-color: #111111;
    --border-light: rgba(17, 17, 17, 0.2);
    --caja-color:  rgba(111, 111, 111);
}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

.site-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 0;
    border-bottom: 1px solid var(--border-light);
    font-size: 0.9rem;
    font-weight: 500;
}

.header nav a {
    color: var(--text-color);
    text-decoration: none;
    margin-left: 30px;
}

/* Hero Section */
.hero {
    padding: 100px 0 80px 0;
    border-bottom: 1px solid var(--border-color);
}

.hero-title {
    font-size: clamp(4rem, 8vw, 8rem); /* Tipografía gigante */
    font-weight: 800;
    line-height: 0.95;
    letter-spacing: -0.03em;
    margin-bottom: 30px;
}

.hero-subtitle {
    font-size: 1.2rem;
    max-width: 600px;
    color: #444;
}

/* Grid de Calculadora */
.calculator-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-bottom: 1px solid var(--border-color);
}

/* Columnas */
.calc-inputs {
    padding: 60px 60px 60px 0;
    border-right: 1px solid var(--border-color);
}

.calc-results {
    padding: 60px 0 60px 60px;
    background-color: #EBEBEB; /* Un gris ligeramente más oscuro para el contraste */
}

.section-header h2 {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-light);
}

/* Formulario */
.input-group {
    margin-bottom: 30px;
}

.input-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 10px;
}

.input-group input, 
.input-group select {
    width: 100%;
    padding: 15px;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 0; /* Cero bordes redondeados */
    font-family: inherit;
    font-size: 1rem;
    outline: none;
    transition: all 0.2s;
}

.input-group input:focus, 
.input-group select:focus {
    background: #fff;
}

/* Botón */
.btn-primary {
    display: inline-block;
    width: 100%;
    padding: 20px;
    background-color: var(--text-color);
    color: var(--bg-color);
    border: none;
    border-radius: 0;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    margin-top: 20px;
    transition: background 0.3s;
}

.btn-primary:hover {
    background-color: #333;
}

/* Resultados */
.result-box {
    margin-bottom: 50px;
}

.result-label {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

#resultado-total {
    font-size: clamp(3rem, 5vw, 5rem);
    font-weight: 800;
    line-height: 1;
    margin-top: 10px;
    word-break: break-word;
}

.result-details .detail-item {
    display: flex;
    justify-content: space-between;
    padding: 20px 0;
    border-bottom: 1px solid var(--border-light);
    font-size: 1.1rem;
}

/* Footer */
.footer {
    display: flex;
    justify-content: space-between;
    padding: 40px 0;
    font-size: 0.85rem;
    color: #666;
}

.footer-links a {
    color: #666;
    text-decoration: none;
    margin-left: 20px;
}

/* Responsive */
@media (max-width: 900px) {
    .calculator-grid {
        grid-template-columns: 1fr;
    }
    .calc-inputs {
        padding: 40px 0;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }
    .calc-results {
        padding: 40px 0;
        background: transparent;
    }
    .site-wrapper { padding: 0 20px; }
}

/* Nuevo Logo Tipográfico */
.header-logo {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    color: var(--text-color);
}

.logo-box {
    background-color: var(--text-color);
    color: var(--bg-color);
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.2rem;
    letter-spacing: -1px;
}

.logo-text {
    line-height: 1.1;
    text-transform: uppercase;
}

.logo-text strong { font-weight: 800; font-size: 1.1rem; }
.logo-text span { font-size: 0.8rem; font-weight: 500; color: #666; }

/* Botón del Header */
.header-right {
    display: flex;
    align-items: center;
    gap: 30px;
}

.btn-header {
    background-color: var(--text-color);
    color: var(--bg-color) !important;
    padding: 10px 20px;
    font-weight: 600;
    text-decoration: none;
    font-size: 0.9rem;
    transition: background 0.2s;
}

.btn-header:hover { background-color: #333; }

/* Insignia del Hero (Badge) */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--border-color);
    padding: 8px 16px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 30px;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background-color: #000;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 0, 0, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(0, 0, 0, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 0, 0, 0); }
}

/* --- NUEVAS SECCIONES INDEX --- */

/* Sección 3 Pasos */
.info-section, .guides-section, .faq-section {
    padding: 60px 0;
    border-bottom: 1px solid var(--border-color);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 30px;
}

.step-card {
    border: 1px solid var(--border-color);
    padding: 30px;
    background-color: #fff;
    transition: transform 0.2s;
}

.step-card:hover { transform: translateY(-5px); }

.step-number {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: var(--border-light);
    margin-bottom: 15px;
    line-height: 1;
}

.step-card h3 { font-size: 1.3rem; margin-bottom: 15px; }
.step-card p { font-size: 0.95rem; color: #555; }

/* Sección Guías (Tarjetas) */
.guides-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 30px;
}

.guide-card {
    display: block;
    padding: 40px;
    background-color: var(--text-color);
    color: var(--bg-color);
    text-decoration: none;
    transition: background 0.3s;
}

.guide-card:hover { background-color: #333; }

.guide-tag {
    display: inline-block;
    border: 1px solid var(--bg-color);
    padding: 5px 10px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.guide-card h3 { font-size: 1.8rem; margin-bottom: 15px; }
.guide-card p { font-size: 1rem; margin-bottom: 30px; opacity: 0.9; }
.guide-link { font-weight: 800; font-size: 1.1rem; }

/* Sección FAQ */
.faq-list { margin-top: 30px; }

.faq-item {
    padding: 30px 0;
    border-bottom: 1px solid var(--border-light);
}

.faq-item:last-child { border-bottom: none; }
.faq-item h3 { font-size: 1.2rem; margin-bottom: 15px; }
.faq-item p { font-size: 1.05rem; color: #444; max-width: 900px; }

/* Responsive */
@media (max-width: 900px) {
    .steps-grid, .guides-grid { grid-template-columns: 1fr; }
}

/* --- SECCIÓN EDITORIAL (SEO) --- */
.editorial-section {
    padding: 60px 0;
    border-bottom: 1px solid var(--border-color);
}

.editorial-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 30px;
}

.editorial-col {
    display: flex;
    flex-direction: column;
}

.editorial-col h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.editorial-col p {
    font-size: 1rem;
    color: #444;
    line-height: 1.6;
}

/* Columna de Acción (El Botón y su caja) */
.action-col {
    border-left: 1px solid var(--border-color);
    padding-left: 40px;
}

.action-wrapper {
    background-color: var(--bg-color);
    border: 1px solid var(--border-color);
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.action-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 800;
    color: #888;
    margin-bottom: 15px;
}

.action-wrapper h4 {
    font-size: 1.5rem;
    margin-bottom: 30px;
    font-weight: 800;
    line-height: 1.1;
}

/* El Botón Brutalista */
.btn-brutalist {
    display: inline-block;
    width: 100%;
    text-align: center;
    background-color: transparent;
    color: var(--text-color);
    border: 2px solid var(--text-color);
    padding: 15px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-brutalist:hover {
    background-color: var(--text-color);
    color: var(--bg-color);
}

/* Responsive para móviles */
@media (max-width: 900px) {
    .editorial-grid {
        grid-template-columns: 1fr;
    }
    .action-col {
        border-left: none;
        padding-left: 0;
        margin-top: 20px;
    }
}

/* --- AVISO DE COOKIES BRUTALISTA --- */
/* --- OVERLAY BLOQUEADOR --- */
.cookie-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7); /* Fondo negro al 70% */
    backdrop-filter: blur(4px); /* Desenfoca la calculadora de fondo */
    z-index: 9998; /* Un punto por debajo del banner (9999) */
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

.cookie-overlay.show {
    opacity: 1;
    pointer-events: auto; /* Bloquea los clics en la web */
}

/* Clase para bloquear el scroll de la web */
body.bloquear-scroll {
    overflow: hidden;
}
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--text-color);
    color: var(--bg-color);
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 9999;
    transform: translateY(100%);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    font-size: 0.9rem;
    border-top: 2px solid var(--border-color);
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-banner p {
    margin: 0;
    max-width: 800px;
    line-height: 1.5;
}

.cookie-banner a {
    color: #fff;
    text-decoration: underline;
    font-weight: 800;
}

.btn-cookie {
    background: var(--bg-color);
    color: var(--text-color);
    border: none;
    padding: 12px 24px;
    font-weight: 800;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.8rem;
    transition: background 0.2s;
}

.btn-cookie:hover {
    background: #ccc;
}

@media (max-width: 768px) {
    .cookie-banner {
        flex-direction: column;
        gap: 15px;
        text-align: center;
        padding: 20px;
    }
    .btn-cookie { width: 100%; }
}