/* ==============================================
   ITV CALCULATOR - ESTILOS PRINCIPALES
   ============================================== */

/* Container principal */
.itv-calc-wrapper {
    max-width: 700px;
    margin: 40px auto;
    padding: 30px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
}

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

.itv-calc-title {
    font-size: 2rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 10px 0;
}

.itv-calc-subtitle {
    font-size: 1.1rem;
    color: #666;
    margin: 0;
}

/* Formulario */
.itv-calc-form {
    margin-bottom: 20px;
}

/* === DISEÑO DE MATRÍCULA EUROPEA === */
.itv-matricula-wrapper {
    margin-bottom: 25px;
}

.itv-matricula-visual {
    display: flex;
    align-items: stretch;
    background: #ffffff;
    border: 3px solid #000;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
    max-width: 450px;
    margin: 0 auto;
    height: 80px;
}

/* Banda azul EU (izquierda) */
.itv-banda-eu {
    background: linear-gradient(180deg, #003399 0%, #0055cc 100%);
    width: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-evenly;
    padding: 8px 5px;
    color: #ffdd00;
    font-weight: bold;
}

.itv-estrella {
    font-size: 18px;
}

.itv-estrellas {
    font-size: 6px;
    line-height: 1;
    letter-spacing: -1px;
}

.itv-codigo-pais {
    font-size: 16px;
    font-weight: bold;
}

/* Input de matrícula */
.itv-input-container {
    flex: 1;
    display: flex;
    align-items: center;
    background: #fff;
    padding: 0 15px;
}

#itv-input-matricula {
    width: 100%;
    border: none;
    outline: none;
    font-size: 2.5rem;
    font-weight: 700;
    font-family: 'Courier New', monospace;
    text-transform: uppercase;
    letter-spacing: 8px;
    text-align: center;
    color: #000;
    background: transparent;
}

#itv-input-matricula::placeholder {
    color: #ccc;
    font-weight: 400;
}

.itv-input-ayuda {
    display: block;
    text-align: center;
    margin-top: 8px;
    font-size: 0.85rem;
    color: #666;
}

/* Selector de tipo de vehículo */
.itv-tipo-vehiculo {
    margin-bottom: 20px;
    text-align: center;
}

.itv-tipo-vehiculo label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

#itv-tipo-select {
    width: 100%;
    max-width: 350px;
    padding: 12px 15px;
    font-size: 1rem;
    border: 2px solid #ddd;
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.3s;
}

#itv-tipo-select:hover,
#itv-tipo-select:focus {
    border-color: #0066cc;
    outline: none;
}

/* Botón principal */
.itv-btn-primary {
    width: 100%;
    padding: 16px 30px;
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #0066cc 0%, #0099ff 100%);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 15px rgba(0,102,204,0.3);
}

.itv-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,102,204,0.4);
}

.itv-btn-primary:active {
    transform: translateY(0);
}

.itv-btn-primary:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

/* === RESULTADOS === */
.itv-resultado {
    margin-top: 30px;
    padding: 25px;
    border-radius: 10px;
    animation: slideIn 0.4s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Estados de semáforo */
.itv-resultado.estado-verde {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    border: 2px solid #28a745;
}

.itv-resultado.estado-amarillo {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border: 2px solid #ffc107;
}

.itv-resultado.estado-rojo {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    border: 2px solid #dc3545;
}

.itv-resultado h3 {
    margin: 0 0 15px 0;
    font-size: 1.5rem;
}

.itv-resultado p {
    margin: 10px 0;
    font-size: 1rem;
    line-height: 1.6;
}

.itv-resultado strong {
    font-weight: 700;
}

/* Disclaimer */
.itv-disclaimer {
    margin-top: 25px;
    padding: 15px;
    background: #f8f9fa;
    border-left: 4px solid #0066cc;
    border-radius: 4px;
    font-size: 0.9rem;
    color: #555;
}

.itv-disclaimer a {
    color: #0066cc;
    text-decoration: underline;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .itv-calc-wrapper {
        padding: 20px 15px;
        margin: 20px 10px;
    }
    
    .itv-calc-title {
        font-size: 1.6rem;
    }
    
    .itv-matricula-visual {
        height: 70px;
    }
    
    #itv-input-matricula {
        font-size: 2rem;
        letter-spacing: 5px;
    }
    
    .itv-banda-eu {
        width: 45px;
    }
}

@media (max-width: 480px) {
    #itv-input-matricula {
        font-size: 1.6rem;
        letter-spacing: 3px;
    }
    
    .itv-matricula-visual {
        height: 60px;
    }
    
    .itv-banda-eu {
        width: 40px;
    }
}
