/* Variables globales */
:root {
    --primary: #2c3e50;
    --secondary: #3498db;
    --success: #27ae60;
    --warning: #f39c12;
    --danger: #e74c3c;
    --light: #f8f9fa;
    --dark: #34495e;
    --text: #333333;
    --border: #e0e0e0;
    --background: #ffffff;
    --card-bg: #ffffff;
    --whatsapp: #25D366;
}

/* Reset y estilos generales */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--light);
    color: var(--text);
    line-height: 1.6;
    padding: 20px;
    min-height: 100vh;
}

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

.card {
    background: var(--card-bg);
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    padding: 30px;
    margin-bottom: 30px;
    border: 1px solid var(--border);
}

/* Encabezados */
h1, h2, h3, h4 {
    color: var(--primary);
    margin-bottom: 20px;
    font-weight: 600;
}

h1 {
    font-size: 2.2rem;
    text-align: center;
}

h2 {
    font-size: 1.8rem;
}

h3 {
    font-size: 1.4rem;
}

.subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 25px;
    font-size: 1.1rem;
}

/* Formularios */
.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--dark);
}

input[type="email"],
input[type="text"] {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 16px;
    transition: border 0.3s;
    background: #fff;
}

input:focus {
    border-color: var(--secondary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

button, .btn {
    background: var(--secondary);
    color: white;
    border: none;
    padding: 14px 25px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: inline-block;
    text-align: center;
    transition: all 0.3s;
}

button:hover, .btn:hover {
    background: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.alert {
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-weight: 500;
}

.error {
    background: #fce4e2;
    color: var(--danger);
    border-left: 4px solid var(--danger);
}

/* Cuestionario */
.header {
    text-align: center;
    margin-bottom: 30px;
}

.progress-container {
    margin-bottom: 30px;
}

.progress-bar {
    height: 10px;
    background: #e0e0e0;
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress {
    height: 100%;
    background: var(--secondary);
    width: 0%;
    transition: width 0.5s ease;
    border-radius: 5px;
}

.contador {
    text-align: right;
    font-size: 0.9rem;
    color: #666;
    font-weight: 500;
}

.tema-indicador {
    display: inline-block;
    background: #e0f0ff;
    color: var(--secondary);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.pregunta {
    display: none;
    margin-bottom: 30px;
}

.pregunta h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: var(--dark);
    line-height: 1.4;
}

.opciones {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

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

.opcion {
    padding: 18px;
    border: 2px solid var(--border);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    background: #fff;
}

.opcion:hover {
    border-color: var(--secondary);
    background: #f8fbff;
}

.opcion input {
    margin-right: 12px;
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.opcion-texto {
    font-size: 1rem;
    color: var(--text);
    line-height: 1.4;
}

/* Navegación */
.navigation {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    justify-content: center;
    flex-wrap: wrap;
}

.navigation .btn {
    padding: 12px 25px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    min-width: 150px;
    border: none;
}

.btn.prev {
    background: #f8f9fa;
    color: var(--dark);
    border: 2px solid var(--border);
}

.btn.next {
    background: var(--secondary);
    color: white;
}

.btn.submit {
    background: var(--success);
    color: white;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* Resultados */
.header-resultados {
    text-align: center;
    margin-bottom: 30px;
}

.resumen-resultados {
    background: #f0f7ff;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
    border: 1px solid #d0e0f0;
}

.puntuacion-global {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
}

.puntuacion-circular {
    width: 150px;
    height: 150px;
    position: relative;
}

.circular-chart {
    display: block;
    width: 100%;
    height: 100%;
}

.circle-bg {
    fill: none;
    stroke: #e0e0e0;
    stroke-width: 3.8;
}

.circle {
    fill: none;
    stroke-width: 3.8;
    stroke-linecap: round;
    stroke: var(--secondary);
    animation: progress 1s ease-out forwards;
}

@keyframes progress {
    0% { stroke-dasharray: 0 100; }
}

.percentage {
    fill: var(--primary);
    font-size: 0.5em;
    font-weight: 700;
    text-anchor: middle;
    dominant-baseline: middle;
}

.puntuacion-info {
    max-width: 500px;
}

.puntuacion-info h2 {
    font-size: 1.6rem;
    margin-bottom: 10px;
}

.puntuacion-info p {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 15px;
    color: #555;
}

.nivel-recomendacion {
    padding: 12px;
    border-radius: 8px;
    font-weight: 600;
    display: flex;
    align-items: center;
    font-size: 1rem;
    margin-top: 15px;
}

.nivel-recomendacion i {
    margin-right: 8px;
}

.nivel-recomendacion.bajo {
    background: #fce4e2;
    color: var(--danger);
}

.nivel-recomendacion.medio {
    background: #fef5e7;
    color: var(--warning);
}

.nivel-recomendacion.alto {
    background: #eafaf1;
    color: var(--success);
}

/* Tarjetas de resultados */
.resultados-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
    margin: 30px 0;
}

@media (min-width: 768px) {
    .resultados-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.tema-card {
    background: var(--card-bg);
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    border-top: 4px solid var(--secondary);
    border: 1px solid var(--border);
}

.tema-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.tema-header h3 {
    margin: 0;
    font-size: 1.3rem;
    color: var(--dark);
}

.score {
    background: var(--primary);
    color: white;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.3rem;
}

.progress-bar {
    height: 10px;
    background: #e0e0e0;
    border-radius: 5px;
    margin: 15px 0;
    overflow: hidden;
    position: relative;
}

.progress {
    height: 100%;
    background: var(--secondary);
    width: 0%;
    transition: width 1s ease-out;
    border-radius: 5px;
}

.consejo {
    margin-top: 15px;
    font-size: 0.95rem;
    line-height: 1.5;
    color: #555;
    background: #f9f9f9;
    padding: 15px;
    border-radius: 8px;
    border-left: 3px solid var(--secondary);
}

.consejo-header {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.consejo-header i {
    font-size: 1.2rem;
    color: var(--secondary);
    margin-right: 8px;
}

.consejo-header strong {
    font-size: 1rem;
    color: var(--dark);
}

/* Conclusión y oferta */
.conclusion {
    background: #f8fbff;
    border-radius: 12px;
    padding: 25px;
    margin-top: 30px;
    border: 1px solid #d0e0f0;
}

.conclusion h2 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.conclusion h2 i {
    margin-right: 10px;
    color: var(--secondary);
}

.conclusion p {
    font-size: 1rem;
    margin-bottom: 15px;
    color: #555;
    line-height: 1.6;
}

.conclusion ul {
    padding-left: 20px;
    margin: 20px 0;
}

.conclusion li {
    margin-bottom: 12px;
    font-size: 1rem;
    color: #555;
    line-height: 1.5;
    display: flex;
    align-items: flex-start;
}

.conclusion li i {
    margin-right: 8px;
    color: var(--success);
    min-width: 20px;
    font-size: 1rem;
    margin-top: 4px;
}

.oferta {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.precio-container {
    display: flex;
    align-items: center;
    justify-content: center;
	gap: 15px;
    margin-bottom: 15px;
}

.precio {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--primary);
    margin-right: 10px;
}

.badge {
    background: var(--warning);
    color: white;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.btn.whatsapp {
    background: var(--whatsapp);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 15px auto;
    max-width: 350px;
    width: 100%;
    font-size: 1.1rem;
    padding: 15px;
    border-radius: 8px;
    color: white;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.btn.whatsapp i {
    margin-right: 10px;
    font-size: 1.4rem;
}

.btn.whatsapp:hover {
    background: #128C7E;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.garantia {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    color: #666;
    margin-top: 15px;
    gap: 8px;
}

.garantia i {
    color: var(--success);
    font-size: 1.1rem;
}

/* Media queries para móviles */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    .card {
        padding: 20px;
        border-radius: 10px;
    }
    
    h1 {
        font-size: 1.8rem;
    }
    
    .puntuacion-global {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .puntuacion-info h2 {
        font-size: 1.4rem;
    }
    
    .navigation .btn {
        min-width: 100%;
        margin-bottom: 10px;
    }
    
    .opciones {
        grid-template-columns: 1fr;
    }
    
    .tema-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .score {
        margin-top: 10px;
        align-self: flex-start;
    }
    
    .btn.whatsapp {
        font-size: 1rem;
        padding: 14px;
    }
}

@media (max-width: 480px) {
    .card {
        padding: 15px;
    }
    
    h1 {
        font-size: 1.6rem;
    }
    
    .puntuacion-circular {
        width: 120px;
        height: 120px;
    }
}