:root {
    --primary-color: #E5FFF9; /* Azul/Verde Claro solicitado */
    --secondary-color: #50E3C2;
    --bg-color: #000000;      /* Negro */
    --text-color: #f0f0f0;    /* Texto claro */
    --card-bg: #121212;       /* Gris muy oscuro para tarjetas */
    --card-border: #333;
    
    --success-color: #2ECC71; /* Verde */
    --success-hover: #219150;
    
    --warning-color: #F1C40F; /* Amarillo */
    --warning-hover: #c09e0b;
    
    --danger-color: #E74C3C;  /* Rojo */
    --danger-hover: #c0392b;
    
    --font-main: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --spacing-unit: 1rem;
}

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

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 0;
}

/* Header */
header {
    background: #000;
    padding: 1.5rem 0;
    border-bottom: 1px solid #222;
    margin-bottom: 2rem;
}

.header-content {
    display: flex;
    justify-content: center; /* Centrado como se pidió implícitamente */
    align-items: center;
    width: 90%;
    max-width: 1000px;
    margin: 0 auto;
}

.logo {
    font-weight: bold;
    font-size: 1.5rem;
    color: var(--primary-color);
    text-decoration: none;
    letter-spacing: 1px;
}

/* Hero & Content Blocks */
.hero, .content-block, .question-card, .result-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    border: 1px solid var(--card-border);
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

.hero {
    text-align: center;
    padding: 3rem 1rem;
}

.hero h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.hero p {
    font-size: 1.1rem;
    color: #ccc;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

h2, h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Buttons */
.btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: #000; /* Texto oscuro para contraste con fondo claro */
    padding: 0.8rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    box-shadow: 0 0 10px rgba(229, 255, 249, 0.1);
}

.btn:hover {
    background-color: #bafff0; /* Un poco más intenso/oscuro dentro de la gama */
    transform: translateY(-2px);
    box-shadow: 0 0 15px rgba(229, 255, 249, 0.3);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: #000;
}

.disclaimer-text {
    font-size: 0.8rem;
    color: #777;
    margin-top: 1rem;
}

/* Quotes */
.quote-box {
    border-left: 4px solid var(--secondary-color);
    padding-left: 1rem;
    font-style: italic;
    color: #ddd;
    margin: 1.5rem 0;
    background: #1a1a1a;
    padding: 1rem;
    border-radius: 0 8px 8px 0;
}

/* Test Interface */
.hidden {
    display: none !important;
}

.progress-container {
    margin-bottom: 2rem;
}

.progress-bar {
    width: 100%;
    height: 10px;
    background-color: #333;
    border-radius: 5px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background-color: var(--primary-color);
    width: 0%;
    transition: width 0.3s ease;
}

.question-text {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    font-weight: 600;
    color: #fff;
}

.options-grid {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

/* Traffic Light Buttons */
.option-btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 700;
    transition: all 0.2s;
    min-width: 120px;
    font-size: 1rem;
    opacity: 0.9;
    background-color: #333; /* Default dark background */
    color: #fff;
    margin: 0.5rem;
}

/* Verde */
.option-btn[data-value="verde"] {
    background-color: var(--success-color) !important;
    color: #000 !important;
    border: 2px solid var(--success-color);
}
.option-btn[data-value="verde"]:hover, 
.option-btn[data-value="verde"].selected {
    background-color: var(--success-hover) !important;
    opacity: 1;
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(46, 204, 113, 0.6);
}

/* Amarillo */
.option-btn[data-value="amarillo"] {
    background-color: var(--warning-color) !important;
    color: #000 !important;
    border: 2px solid var(--warning-color);
}
.option-btn[data-value="amarillo"]:hover, 
.option-btn[data-value="amarillo"].selected {
    background-color: var(--warning-hover) !important;
    opacity: 1;
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(241, 196, 15, 0.6);
}

/* Rojo */
.option-btn[data-value="rojo"] {
    background-color: var(--danger-color) !important;
    color: #fff !important;
    border: 2px solid var(--danger-color);
}
.option-btn[data-value="rojo"]:hover, 
.option-btn[data-value="rojo"].selected {
    background-color: var(--danger-hover) !important;
    opacity: 1;
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(231, 76, 60, 0.6);
}

.habits-table-container {
    display: none;
}

/* Habit Card Styles */
.habit-card {
    background-color: #1a1a1a;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.habit-card h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.habit-options {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.habit-option {
    flex: 1;
    min-width: 120px;
    position: relative;
    cursor: pointer;
}

.habit-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.habit-option span {
    display: block;
    padding: 0.8rem;
    text-align: center;
    background-color: #2a2a2a;
    border: 1px solid #444;
    border-radius: 4px;
    transition: all 0.3s ease;
    color: #bbb;
    font-size: 0.9rem;
}

.habit-option input[type="radio"]:checked + span {
    background-color: var(--secondary-color);
    color: #000;
    border-color: var(--secondary-color);
    font-weight: bold;
}

.habit-option:hover span {
    border-color: var(--secondary-color);
}

.instruction-text {
    background-color: #222;
    padding: 1rem;
    border-left: 4px solid var(--secondary-color);
    margin-bottom: 2rem;
    border-radius: 4px;
    font-style: italic;
    color: #ddd;
}

.habit-example {
    font-size: 0.85rem;
    color: #999;
    margin-top: 0.3rem;
    font-style: italic;
    font-weight: 400;
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #ddd;
}

.form-control {
    width: 100%;
    padding: 0.8rem;
    background-color: #2a2a2a;
    border: 1px solid #444;
    border-radius: 4px;
    color: #fff;
    font-family: inherit;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(229, 255, 249, 0.1);
}

textarea.form-control {
    min-height: 100px;
    resize: vertical;
}

/* Results */
.score-display {
    font-size: 3rem;
    font-weight: bold;
    margin: 1rem 0;
}

.score-green { color: var(--success-color); }
.score-yellow { color: var(--warning-color); }
.score-red { color: var(--danger-color); }

.izari-recommendation {
    background-color: #1a2e2a; /* Verde oscuro muy sutil */
    border: 1px solid #2a5e50;
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    margin-top: 2rem;
}

.izari-recommendation h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.izari-recommendation p {
    color: #ddd;
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem;
    margin-top: 3rem;
    color: #666;
    font-size: 0.9rem;
    border-top: 1px solid #222;
}

footer a {
    color: #888;
    margin: 0 0.5rem;
    text-decoration: none;
}

footer a:hover {
    color: var(--primary-color);
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .hero h1 { font-size: 1.6rem; }
    .question-card { padding: 1.5rem; }
    .options-grid { flex-direction: column; }
    .option-btn { width: 100%; margin-bottom: 0.5rem; }
    
    /* Responsive Habits Table */
    .habits-table-container { overflow-x: visible; }
    .habits-table { display: block; }
    .habits-table thead { display: none; }
    .habits-table tbody { display: block; }
    
    .habits-table tr {
        display: flex;
        flex-wrap: wrap;
        background: #1a1a1a;
        margin-bottom: 1.5rem;
        border: 1px solid #333;
        border-radius: 8px;
        padding: 1rem 0.5rem;
    }
    
    .habits-table td {
        border: none;
        padding: 0.2rem;
    }
    
    /* Habit Title Row */
    .habits-table td:first-child {
        width: 100%;
        text-align: center;
        margin-bottom: 1rem;
        border-bottom: 1px solid #333;
        padding-bottom: 0.8rem;
        font-weight: bold;
        color: var(--primary-color);
    }
    
    /* Day Columns */
    .habits-table td:not(:first-child) {
        width: 14.28%; /* 100% / 7 days */
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
    }
    
    /* Inject Day Labels */
    .habits-table td:nth-child(2)::before { content: "L"; color: #888; font-size: 0.8rem; margin-bottom: 4px; }
    .habits-table td:nth-child(3)::before { content: "M"; color: #888; font-size: 0.8rem; margin-bottom: 4px; }
    .habits-table td:nth-child(4)::before { content: "X"; color: #888; font-size: 0.8rem; margin-bottom: 4px; }
    .habits-table td:nth-child(5)::before { content: "J"; color: #888; font-size: 0.8rem; margin-bottom: 4px; }
    .habits-table td:nth-child(6)::before { content: "V"; color: #888; font-size: 0.8rem; margin-bottom: 4px; }
    .habits-table td:nth-child(7)::before { content: "S"; color: #888; font-size: 0.8rem; margin-bottom: 4px; }
    .habits-table td:nth-child(8)::before { content: "D"; color: #888; font-size: 0.8rem; margin-bottom: 4px; }
    
    /* Make checkboxes larger on mobile */
    .habit-check {
        transform: scale(1.3);
    }
}
