:root {
    --ccoo-red: #E30613;
    --ccoo-dark: #b3050f;
    --bg-dark: #0f0f0f;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --text-white: #ffffff;
    --text-grey: #a0a0a0;
    --accent: #ff4d4d;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: #fcebeb;
    /* Light reddish tint like CCOO */
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

.background-animation {
    display: none;
    /* Removed the dark radial gradient */
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

header {
    padding: 40px 0;
    text-align: center;
    background: white;
    border-bottom: 2px solid var(--ccoo-red);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.logo-area {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
}

.logo {
    width: 150px;
    height: auto;
    filter: drop-shadow(0 0 15px rgba(227, 6, 19, 0.4));
    animation: bounce 3s infinite ease-in-out;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

h1 {
    font-size: 3rem;
    font-weight: 700;
    letter-spacing: -1px;
    background: linear-gradient(90deg, #E30613, #ff6666);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle {
    color: #666;
    font-size: 1.1rem;
    margin-top: 10px;
}

main {
    padding-top: 30px;
}

.calculator-card {
    background: white;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
    color: #333;
}

.card-header h2 {
    font-size: 1.8rem;
    margin-bottom: 30px;
    color: var(--ccoo-red);
    font-weight: 700;
}

.input-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.input-group label {
    display: block;
    margin-bottom: 10px;
    color: #555;
    font-weight: 600;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

input,
select {
    width: 100%;
    padding: 15px 20px;
    background: #fdfdfd;
    border: 1px solid #ddd;
    border-radius: 8px;
    color: #333;
    font-size: 1.1rem;
    font-family: inherit;
    transition: all 0.3s ease;
}

input:focus,
select:focus {
    outline: none;
    border-color: var(--ccoo-red);
    background: rgba(255, 255, 255, 0.08);
}

.currency {
    position: absolute;
    right: 20px;
    color: var(--text-grey);
}

.comparison-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 20px;
}

.inflation-toggle,
.increase-toggle {
    padding: 15px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    border: 1px solid var(--glass-border);
}

.increase-toggle {
    border: 1px dashed #4ade80;
    background: rgba(74, 222, 128, 0.05);
}

.inflation-toggle {
    border: 1px dashed var(--ccoo-red);
    background: rgba(227, 6, 19, 0.05);
}

.comparison-grid p {
    font-size: 0.8rem;
    margin-bottom: 10px;
    color: var(--text-grey);
    text-transform: uppercase;
    font-weight: 600;
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.year-item {
    font-size: 0.8rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 5px 10px;
    border-radius: 10px;
    display: flex;
    justify-content: space-between;
}

.year-item strong {
    color: var(--ccoo-red);
}

button {
    width: 100%;
    margin-top: 40px;
    padding: 18px;
    background: var(--ccoo-red);
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

button:hover {
    background: var(--ccoo-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(227, 6, 19, 0.3);
}

.ethics-note {
    margin-top: 15px;
    font-size: 0.85rem;
    color: #d63031;
    font-style: italic;
    text-align: center;
    font-weight: 500;
}

/* Results */
.hidden {
    display: none;
}

.results-container {
    margin-top: 30px;
    animation: fadeIn 0.8s ease forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.results-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.result-card {
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    background: white;
    border: 1px solid #eee;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.result-card h3 {
    font-size: 1.1rem;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #555;
}

.illusion {
    border-left: 5px solid #4ade80;
}

.reality {
    border-left: 5px solid var(--ccoo-red);
}

.value {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.illusion .value {
    color: #4ade80;
}

/* Green for illusion */
.reality .value {
    color: #f87171;
}

/* Red for reality */

.percentage {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 10px 0;
}

.label {
    color: var(--text-grey);
    font-size: 0.9rem;
}

.disclaimer {
    font-size: 0.75rem;
    color: var(--text-grey);
    margin-top: 15px;
    font-style: italic;
}

.sarcastic-message {
    margin-top: 30px;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    font-style: italic;
    color: var(--ccoo-red);
}

#intersindical-signature {
    margin-top: 20px;
    text-align: center;
    animation: fadeIn 1s ease forwards;
}

#intersindical-logo {
    width: 200px;
    height: auto;
}

.references {
    margin-top: 80px;
    padding: 30px;
    border-top: 1px solid var(--glass-border);
}

.references h3 {
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.references ul {
    list-style: none;
}

.references li {
    font-size: 0.9rem;
    color: var(--text-grey);
    margin-bottom: 10px;
}

footer {
    padding: 40px;
    text-align: center;
    color: var(--text-grey);
    font-size: 0.8rem;
}

@media (max-width: 768px) {
    .results-grid {
        grid-template-columns: 1fr;
    }

    h1 {
        font-size: 2.2rem;
    }

    .logo-area {
        flex-direction: column;
        gap: 10px;
    }
}