Skip to main content

Overview

The ITV Gestion Concesionario application uses a modern glassmorphism design with customizable CSS variables, gradient colors, and responsive layouts. All styling is contained in source/css/styles.css.

Primary Color Scheme

The application uses a beautiful gradient color scheme throughout:
/* Main body gradient background */
body {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* Header gradient */
.header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* Primary button gradient */
.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}
The primary gradient colors are #667eea (purple-blue) to #764ba2 (purple). These colors are used consistently across the header, buttons, and accent elements.

Customizing the Color Palette

To change the main color scheme, update these gradient values in styles.css:

Example: Change to Green Theme

/* Replace the gradient values */
body {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.header {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.btn-primary {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

Glassmorphism Container

The main container uses a glassmorphism effect with backdrop blur:
.container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 0.75rem;
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 
                0 4px 6px -4px rgb(0 0 0 / 0.1), 
                0 0 0 1px rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}
backdrop-filter: blur(10px) creates the frosted glass effect. Adjust the blur value to increase or decrease the effect.

Key CSS Classes

Form Section Styling

.form-section {
    background: #ffffff;
    padding: 2rem;
    border-radius: 0.75rem;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 
                0 2px 4px -2px rgb(0 0 0 / 0.1);
    border: 1px solid #e5e7eb;
    border-top: 3px solid #667eea;
}

Input Field Styling

input[type="text"] {
    padding: 0.875rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: all 0.2s ease;
    background: #ffffff;
    width: 100%;
}

input[type="text"]:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    transform: translateY(-1px);
}

Button Styling

.btn-primary {
    margin: 2rem auto 0;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}
When customizing button hover effects, ensure sufficient color contrast for accessibility (WCAG AA compliance).

Vehicle Block Styling

.bloque {
    background: #ffffff;
    padding: 1.5rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    transition: all 0.3s ease;
    border-top: 3px solid #f093fb;
}

.bloque:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1);
}

Approved Status Styling

.aprobados {
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    border: 2px solid #10b981;
    border-radius: 0.5rem;
    padding: 1rem;
    margin: 1rem 0;
}

.aprobados label {
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.3);
}

.aprobados label:hover {
    background: rgba(16, 185, 129, 0.2);
    border-color: #10b981;
}

Typography

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #1f2937;
    line-height: 1.6;
}

h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    font-weight: 300;
}

Responsive Design

The application includes responsive breakpoints for mobile devices:
@media (max-width: 768px) {
    .container {
        margin: 1rem;
        padding: 1rem;
    }
    h1 {
        font-size: 2rem;
    }
    .bloque1 {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.75rem;
    }
    .btn-primary {
        padding: 0.875rem 1.5rem;
        font-size: 0.95rem;
    }
}

Animations

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

.bloque {
    animation: fadeIn 0.5s ease-out;
}

.bloque:nth-child(even) {
    animation-delay: 0.1s;
}

Quick Customization Checklist

1

Change Primary Colors

Update the gradient values in body, .header, and .btn-primary classes
2

Adjust Container Opacity

Modify the rgba(255, 255, 255, 0.95) value in .container background
3

Customize Border Radius

Search for border-radius values and adjust for sharper or rounder corners
4

Update Font Family

Change the font-family in the body selector
5

Modify Shadow Effects

Adjust box-shadow values for lighter or heavier shadows
After making changes to styles.css, clear your browser cache or do a hard refresh (Ctrl+Shift+R) to see the updates.

Build docs developers (and LLMs) love