/* Estilos generales */
.igv-calculator {
    font-family: 'Arial', sans-serif;
    max-width: 1000px;
    margin: 20px auto;
    padding: 25px;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.igv-calculator h1 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 25px;
    font-size: 28px;
    font-weight: 600;
}

/* Pestañas */
.igv-tabs {
    display: flex;
    margin-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
    justify-content: center;
}

.igv-tab {
    padding: 12px 35px;
    background: #f8f9fa;
    border: none;
    border-radius: 5px 5px 0 0;
    cursor: pointer;
    margin: 0 5px;
    font-weight: bold;
    color: #555;
    transition: all 0.3s ease;
    font-size: 15px;
}

.igv-tab.active {
    background: #3498db;
    color: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Contenido */
.igv-tab-content {
    display: none;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

/* Formularios */
.igv-form-group {
    margin-bottom: 18px;
}

.igv-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.igv-form-group input[type="number"],
.igv-form-group input[type="text"],
.igv-form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 15px;
    transition: border 0.3s;
}

.igv-form-group input:focus {
    border-color: #3498db;
    outline: none;
}

/* Checkbox y radios */
.igv-checkbox-group {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
}

.igv-checkbox-group input {
    margin-right: 10px;
}

/* Botones */
.igv-buttons {
    display: flex;
    gap: 12px;
    margin: 25px 0;
}

.igv-button {
    padding: 12px 25px;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 15px;
    transition: background 0.3s;
    flex: 1;
}

.igv-button:hover {
    background: #2980b9;
}

.igv-button.reset {
    background: #e74c3c;
}

.igv-button.reset:hover {
    background: #c0392b;
}

/* Resultados */
.igv-results {
    margin-top: 25px;
    padding: 18px;
    background: #e8f4fc;
    border-radius: 5px;
    border-left: 4px solid #3498db;
}

.igv-result-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 15px;
}

.igv-result-item span:first-child {
    font-weight: 600;
    color: #333;
}

/* Modo avanzado - Tabla */
.igv-products-table {
    width: 100%;
    margin-bottom: 20px;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.igv-table-header {
    display: flex;
    background: #3498db;
    color: white;
    font-weight: bold;
    padding: 10px 0;
}

.igv-table-col {
    flex: 1;
    padding: 0 10px;
    text-align: center;
}

/* Estilos combinados para filas de productos */
.igv-product-row {
    display: flex;
    padding: 12px 0;
    margin-bottom: 10px;
    background: white;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    align-items: center;
    transition: all 0.3s ease;
}

.igv-product-row:hover {
    border-color: #3498db;
    box-shadow: 0 3px 6px rgba(0,0,0,0.1);
}

.igv-product-row:last-child {
    border-bottom: none;
}

.igv-table-col input {
    width: 90%;
    margin: 0 auto;
    text-align: center;
}

/* Botón eliminar */
.igv-remove-col {
    flex: 0 0 50px;
}

.igv-remove-product {
    background: #e74c3c;
    color: white;
    border: none;
    border-radius: 50%;
    width: 25px;
    height: 25px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: transform 0.2s;
}

.igv-remove-product:hover {
    transform: scale(1.1);
}

/* Resultados por fila */
.igv-row-result {
    background: #f8f9fa;
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 5px;
    border-left: 3px solid #3498db;
}

.igv-row-result div {
    margin: 5px 0;
    font-size: 14px;
}

/* Placeholders opacos */
.igv-product-row input::placeholder {
    opacity: 0.6;
    font-size: 13px;
}

/* Ocultar tabla en modo básico */
#igv-basic .igv-products-table,
#igv-basic .igv-row-result {
    display: none !important;
}

/* Responsive */
@media (max-width: 768px) {
    .igv-product-row {
        flex-direction: column;
        gap: 10px;
        padding: 15px;
    }
    
    .igv-table-col {
        width: 100%;
        margin-bottom: 8px;
    }
    
    .igv-remove-col {
        width: 100%;
        justify-content: center;
        margin-top: 10px;
    }
    
    .igv-tab {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    /* Ocultar cabecera y mostrar placeholders en móvil */
    .igv-table-header {
        display: none;
    }
    
    .igv-product-row input::placeholder {
        opacity: 0.7;
    }
}