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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    overflow: hidden;
}

header {
    background: linear-gradient(135deg, #2A5D3C 0%, #3a7d54 100%);
    color: white;
    padding: 40px 30px;
    text-align: center;
}

.logo {
    max-width: 200px;
    height: auto;
    margin-bottom: 20px;
    background: white;
    padding: 10px;
    border-radius: 10px;
}

h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.subtitle {
    font-size: 1.1em;
    opacity: 0.9;
}

.form-section {
    padding: 40px 30px;
    display: none;
}

.form-section.active {
    display: block;
}

h2 {
    color: #2A5D3C;
    margin-bottom: 30px;
    font-size: 1.8em;
    border-bottom: 3px solid #C9A66B;
    padding-bottom: 10px;
}

h3 {
    color: #2A5D3C;
    margin: 20px 0 15px 0;
    font-size: 1.3em;
}

/* NUEVO: Selector de Tipo de Uva */
.tipo-uva-selector {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin: 30px 0;
}

.tipo-uva-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 3px solid #dee2e6;
    border-radius: 15px;
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tipo-uva-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(42, 93, 60, 0.2);
    border-color: #2A5D3C;
}

.tipo-uva-icon {
    font-size: 4em;
    margin-bottom: 20px;
}

.tipo-uva-card h3 {
    color: #2A5D3C;
    margin: 15px 0 10px 0;
    font-size: 1.5em;
}

.tipo-uva-card p {
    color: #666;
    font-size: 0.95em;
}

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

label {
    display: block;
    margin-bottom: 8px;
    color: #2A5D3C;
    font-weight: 600;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    font-size: 1em;
    transition: border-color 0.3s;
}

input:focus,
select:focus {
    outline: none;
    border-color: #2A5D3C;
}

small {
    display: block;
    margin-top: 5px;
    color: #666;
    font-size: 0.85em;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    font-weight: normal;
    cursor: pointer;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    margin-right: 10px;
    cursor: pointer;
}

/* Botones */
.btn {
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-primary {
    background: linear-gradient(135deg, #2A5D3C 0%, #3a7d54 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(42, 93, 60, 0.3);
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
}

.btn-outline {
    background: white;
    color: #2A5D3C;
    border: 2px solid #2A5D3C;
}

.btn-outline:hover {
    background: #2A5D3C;
    color: white;
}

.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.form-actions button {
    flex: 1;
}

/* Resultados */
.info-box {
    background: #f8f9fa;
    border-left: 4px solid #2A5D3C;
    padding: 20px;
    margin-bottom: 30px;
    border-radius: 8px;
}

.info-box p {
    margin: 8px 0;
    color: #333;
}

.info-box strong {
    color: #2A5D3C;
}

.resultados-container {
    display: grid;
    gap: 20px;
    margin: 20px 0;
}

.variedad-card {
    background: white;
    border: 2px solid #dee2e6;
    border-radius: 12px;
    padding: 25px;
    transition: all 0.3s;
}

.variedad-card:hover {
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transform: translateY(-3px);
}

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

.variedad-nombre {
    font-size: 1.4em;
    color: #2A5D3C;
    font-weight: 700;
}

.variedad-badge {
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 600;
    color: white;
}

.badge-tinta {
    background: #8B0000;
}

.badge-blanca {
    background: #C9A66B;
}

.badge-rosada {
    background: #E75480;
}

.variedad-info {
    margin: 10px 0;
    color: #555;
    line-height: 1.6;
}

.variedad-info strong {
    color: #2A5D3C;
}

.puntuacion {
    display: inline-block;
    background: linear-gradient(135deg, #2A5D3C 0%, #3a7d54 100%);
    color: white;
    padding: 8px 20px;
    border-radius: 25px;
    font-weight: 700;
    font-size: 1.1em;
    margin-top: 10px;
}

/* NUEVO: Ver Más Alternativas */
.ver-mas-container {
    text-align: center;
    margin: 30px 0;
}

.alternativas-extra {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 3px solid #dee2e6;
}

.alternativas-extra h3 {
    color: #5a6268;
}

.alternativas-extra .variedad-card {
    opacity: 0.95;
}

/* Footer */
footer {
    background: #2A5D3C;
    color: white;
    text-align: center;
    padding: 30px 20px;
    margin-top: 0;
}

footer p {
    margin: 8px 0;
    font-size: 0.9em;
}

footer a {
    color: #C9A66B;
    text-decoration: none;
    font-weight: 600;
}

footer a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        margin: 10px;
    }
    
    h1 {
        font-size: 1.8em;
    }
    
    .form-section {
        padding: 30px 20px;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .tipo-uva-selector {
        grid-template-columns: 1fr;
    }
    
    /* Agrandar checkbox de políticas en móviles */
    .checkbox-group input[type="checkbox"] {
        width: 24px;
        height: 24px;
        margin-right: 15px;
        transform: scale(1.5);
    }
    
    .checkbox-group label {
        font-size: 1.05em;
        line-height: 1.6;
        padding: 15px 0;
    }
}

