/* ============================================
   ESTILOS PARA EL COTIZADOR DE ACUARIOS
   ============================================ */

/* Sección del Cotizador */
.quoter {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 80px 20px;
    color: white;
}

.quoter .section-title {
    color: white;
    margin-bottom: 15px;
}

.quoter .section-subtitle {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
}

/* Formulario del Cotizador */
.quoter-form {
    background: white;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 900px;
    margin: 0 auto;
}

.form-section {
    margin-bottom: 35px;
}

.form-section h3 {
    color: #333;
    font-size: 24px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #667eea;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    color: #555;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 14px;
}

.form-group input,
.form-group select {
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: white;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.help-text {
    color: #888;
    font-size: 13px;
    margin-top: 5px;
    display: block;
}

/* Botones */
.form-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
}

.btn-calculate,
.btn-submit {
    padding: 15px 40px;
    font-size: 18px;
    font-weight: 600;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-calculate {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.btn-calculate:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

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

.btn-submit {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(245, 87, 108, 0.4);
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 87, 108, 0.6);
}

.btn-icon {
    font-size: 20px;
}

.spinner {
    animation: spin 1s linear infinite;
    display: inline-block;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Resultado del Cotizador */
#resultado-cotizador {
    margin-top: 40px;
    animation: fadeInUp 0.5s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Precio Principal */
.resultado-precio {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    margin-bottom: 25px;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.resultado-precio h3 {
    color: white;
    font-size: 20px;
    margin-bottom: 15px;
    font-weight: 500;
}

.precio-display {
    margin-bottom: 15px;
}

.precio-valor {
    font-size: 48px;
    font-weight: 700;
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.precio-iva {
    display: block;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 5px;
}

.info-adicional {
    display: flex;
    justify-content: center;
    gap: 30px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 16px;
}

/* Avisos de Seguridad */
#avisos-seguridad {
    margin-bottom: 25px;
}

.aviso {
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.aviso-peligro {
    background: #ffebee;
    border-left: 5px solid #f44336;
}

.aviso-ok {
    background: #e8f5e9;
    border-left: 5px solid #4caf50;
}

.aviso-header {
    color: #333;
    margin-bottom: 10px;
}

.aviso-body {
    color: #555;
}

.aviso-body ul {
    margin: 10px 0;
    padding-left: 25px;
}

.aviso-body li {
    margin: 8px 0;
    line-height: 1.6;
}

/* Sección de Mejoras */
.mejoras-section {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 25px;
}

.mejoras-section h3 {
    color: #333;
    margin-bottom: 10px;
    font-size: 22px;
}

.opciones-optico {
    display: grid;
    gap: 15px;
    margin-top: 20px;
}

.optico-option {
    background: white;
    padding: 15px 20px;
    border-radius: 8px;
    border: 2px solid #e0e0e0;
    transition: all 0.3s ease;
    cursor: pointer;
}

.optico-option:hover {
    border-color: #667eea;
    box-shadow: 0 2px 10px rgba(102, 126, 234, 0.1);
}

.optico-option input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.optico-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex: 1;
    margin-left: 15px;
}

.optico-precio {
    color: #667eea;
    font-weight: 700;
    font-size: 18px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
}

/* Precio Total con Mejoras */
.precio-total-mejoras {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    padding: 20px;
    border-radius: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    box-shadow: 0 4px 15px rgba(245, 87, 108, 0.3);
}

.precio-final {
    font-size: 32px;
    font-weight: 700;
}

/* ============================================
   ESTILOS PARA NUEVA PÁGINA COTIZADOR
   ============================================ */

/* CTA en Index.html */
.cta-box {
    background: white;
    border-radius: 20px;
    padding: 50px;
    max-width: 800px;
    margin: 0 auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    text-align: center;
}

.cta-content h3 {
    color: #333;
    font-size: 32px;
    margin-bottom: 20px;
}

.cta-content p {
    color: #666;
    font-size: 18px;
    margin-bottom: 30px;
    line-height: 1.6;
}

.cta-features {
    list-style: none;
    padding: 0;
    margin: 30px 0;
    text-align: left;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.cta-features li {
    color: #555;
    font-size: 16px;
    padding: 10px 0;
    border-bottom: 1px solid #e0e0e0;
}

.cta-features li:last-child {
    border-bottom: none;
}

.btn-cta-large {
    display: inline-block;
    padding: 20px 50px;
    font-size: 22px;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
    transition: all 0.3s ease;
    margin-top: 20px;
}

.btn-cta-large:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.6);
}

.btn-cta-large .btn-icon {
    margin-right: 10px;
}

/* Página del Cotizador */
.cotizador-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 40px 20px 80px 20px;
}

.cotizador-header {
    text-align: center;
    color: white;
    margin-bottom: 40px;
}

.cotizador-header h1 {
    font-size: 42px;
    margin-bottom: 15px;
}

.cotizador-header p {
    font-size: 20px;
    opacity: 0.95;
}

.cotizador-container {
    max-width: 900px;
    margin: 0 auto;
}

.cotizador-form {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    margin-bottom: 30px;
}

.cotizador-form h2 {
    color: #333;
    font-size: 28px;
    margin-bottom: 10px;
}

.form-hint {
    color: #888;
    font-size: 15px;
    margin-bottom: 30px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 25px;
}

.input-group {
    display: flex;
    flex-direction: column;
}

.input-group label {
    color: #555;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 15px;
}

.input-group input,
.input-group select {
    padding: 14px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.input-group input:focus,
.input-group select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.refuerzos-section {
    margin: 30px 0;
    padding: 25px;
    background: #f8f9fa;
    border-radius: 12px;
}

.refuerzos-section h3 {
    color: #333;
    font-size: 20px;
    margin-bottom: 20px;
}

.checkbox-group {
    margin: 15px 0;
}

.checkbox-group input[type="checkbox"] {
    display: none;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    cursor: pointer;
    color: #555;
    font-size: 16px;
}

.checkbox-custom {
    width: 24px;
    height: 24px;
    border: 2px solid #667eea;
    border-radius: 6px;
    margin-right: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.checkbox-group input[type="checkbox"]:checked + label .checkbox-custom {
    background: #667eea;
}

.checkbox-group input[type="checkbox"]:checked + label .checkbox-custom::after {
    content: "✓";
    color: white;
    font-weight: bold;
}

.btn-calculate {
    width: 100%;
    padding: 18px;
    font-size: 20px;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
    margin-top: 20px;
}

.btn-calculate:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(102, 126, 234, 0.6);
}

.btn-calculate:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Resultados */
.cotizador-results {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* Avisos de Seguridad */
.warnings-container {
    margin-bottom: 30px;
}

.warning-box {
    display: flex;
    align-items: flex-start;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 15px;
    border-left: 5px solid;
}

.warning-danger {
    background: #fff3cd;
    border-color: #ff9800;
}

.warning-success {
    background: #d4edda;
    border-color: #28a745;
}

.warning-icon {
    font-size: 32px;
    margin-right: 15px;
}

.warning-content h4 {
    color: #333;
    font-size: 18px;
    margin-bottom: 8px;
}

.warning-content p {
    color: #666;
    font-size: 15px;
    line-height: 1.6;
    margin: 0;
}

/* Información Básica */
.result-info {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.info-item {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
}

.info-label {
    display: block;
    color: #888;
    font-size: 14px;
    margin-bottom: 8px;
}

.info-value {
    display: block;
    color: #333;
    font-size: 24px;
    font-weight: 700;
}

/* Sección de Ópticos */
.opticos-section {
    margin: 30px 0;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 15px;
}

.opticos-section h3 {
    color: #333;
    font-size: 24px;
    margin-bottom: 10px;
}

.opticos-hint {
    color: #888;
    font-size: 15px;
    margin-bottom: 25px;
}

.opticos-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.optico-item label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.optico-item input[type="checkbox"]:checked + label {
    border-color: #667eea;
    background: #f0f4ff;
}

.optico-name {
    flex: 1;
    margin-left: 10px;
    color: #555;
    font-weight: 600;
}

.optico-price {
    color: #667eea;
    font-weight: 700;
    font-size: 16px;
}

/* Precio Final */
.price-box {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    margin: 30px 0;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}

.price-label {
    font-size: 18px;
    opacity: 0.95;
    margin-bottom: 10px;
}

.price-value {
    font-size: 48px;
    font-weight: 700;
}

/* Botones de Acción */
.action-buttons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.btn-recalcular {
    flex: 1;
    padding: 18px;
    font-size: 18px;
    font-weight: 600;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 6px 15px rgba(102, 126, 234, 0.4);
    transition: all 0.3s ease;
}

.btn-recalcular:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.6);
}

/* Botón de Presupuesto */
.btn-presupuesto {
    flex: 2;
    display: block;
    padding: 20px;
    font-size: 20px;
    font-weight: 700;
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
    color: white;
    text-decoration: none;
    text-align: center;
    border-radius: 50px;
    box-shadow: 0 8px 20px rgba(238, 90, 111, 0.4);
    transition: all 0.3s ease;
}

.btn-presupuesto:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(238, 90, 111, 0.6);
}

/* Responsive */
@media (max-width: 768px) {
    .quoter-form {
        padding: 25px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .btn-calculate,
    .btn-submit {
        width: 100%;
        justify-content: center;
    }
    
    .precio-valor {
        font-size: 36px;
    }
    
    .info-adicional {
        flex-direction: column;
        gap: 10px;
    }
    
    .precio-total-mejoras {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .result-info {
        grid-template-columns: 1fr;
    }
    
    .opticos-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-box {
        padding: 30px 20px;
    }
    
    .cotizador-header h1 {
        font-size: 32px;
    }
    
    .price-value {
        font-size: 36px;
    }
}
