:root {
    --swiss-red: #D52B1E;
    --bg-color: #F5F7FA;
    --card-bg: #FFFFFF;
    --text-main: #2D3436;
    --accent: #0984E3;
}

body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    margin: 0;
    display: flex;
    justify-content: center;
    padding: 20px;
}

.container {
    max-width: 500px;
    width: 100%;
}

header { 
    text-align: center; 
    margin-bottom: 30px; 
}

header h1 { 
    color: var(--swiss-red); 
    margin-bottom: 5px;
    font-size: 2rem;
}

header p {
    color: #636E72;
    margin: 0;
}

.calculator-card {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.input-group {
    margin-bottom: 20px;
}

.input-group label { 
    display: block; 
    margin-bottom: 10px; 
    font-weight: bold; 
}

.input-group input {
    width: 100%;
    padding: 15px;
    font-size: 1.2rem;
    border: 2px solid #EFEFEF;
    border-radius: 12px;
    box-sizing: border-box;
    outline: none;
    transition: border 0.3s;
}

.input-group input:focus { 
    border-color: var(--swiss-red); 
}

.settings {
    margin: 20px 0;
}

.toggle-group {
    display: flex;
    margin-bottom: 20px;
    background: #F0F0F0;
    border-radius: 10px;
    padding: 5px;
}

.toggle-group button {
    flex: 1;
    border: none;
    padding: 12px 10px;
    border-radius: 8px;
    cursor: pointer;
    background: transparent;
    font-weight: bold;
    font-size: 0.95rem;
    transition: all 0.3s;
    color: var(--text-main);
}

.toggle-group button.active {
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    color: var(--swiss-red);
}

.rate-selector {
    margin-top: 15px;
}

.rates {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.rate-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.rate-option input[type="radio"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--swiss-red);
}

.rate-option span {
    cursor: pointer;
    text-align: center;
    font-size: 0.9rem;
    line-height: 1.3;
}

.result-area {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px dashed #EEE;
}

.result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.result-item strong {
    color: var(--swiss-red);
}

.result-item.sub { 
    font-size: 1rem; 
    color: #636E72; 
}

.btn-action {
    width: 100%;
    padding: 15px;
    background: var(--swiss-red);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    margin-top: 20px;
    transition: background 0.3s;
}

.btn-action:hover {
    background: #B82418;
}

.seo-text {
    margin-top: 30px;
    padding: 20px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
}

.seo-text h2 {
    color: var(--text-main);
    font-size: 1.3rem;
    margin-top: 0;
}

.seo-text p {
    line-height: 1.6;
    color: #636E72;
}

footer {
    text-align: center;
    margin-top: 40px;
    font-size: 14px;
    color: #666;
}

footer a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s;
}

footer a:hover {
    color: var(--swiss-red);
}

/* Responsive para móvil */
@media (max-width: 600px) {
    body {
        padding: 10px;
    }

    .calculator-card {
        padding: 20px;
    }

    header h1 {
        font-size: 1.6rem;
    }

    .toggle-group button {
        font-size: 0.85rem;
        padding: 10px 8px;
    }

    .rates {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .rate-option {
        flex-direction: row;
        justify-content: flex-start;
        gap: 12px;
    }

    .rate-option span {
        text-align: left;
    }

    .result-item {
        font-size: 1.1rem;
    }
}