body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #2c3e50;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    background-color: #ecf0f1;
    display: flex;
    flex-direction: column;
}

.contenedor {
    width: 90%;
    max-width: 600px;
    text-align: center;
    background-color: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin: 2rem auto;
    flex: 1;
}

.home-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

h1 {
    color: #4a90e2;
    margin-bottom: 1rem;
    font-size: 2.5rem;
}

h2 {
    color: #3498db;
    margin-bottom: 1rem;
    font-size: 2rem;
}

p {
    margin-bottom: 2rem;
    font-size: 1.1rem;
    color: #34495e;
}

.logo {
    max-width: 150px;
    max-height: 150px;
    margin-bottom: 1.5rem;
}

.btn-primary {
    background-color: #e74c3c;
    color: white;
    border: none;
    padding: 12px 24px;
    font-size: 1.1rem;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn-primary:hover {
    background-color: #c0392b;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 1rem;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    margin-top: 10px;
}

.btn-secondary:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
}

form {
    display: flex;
    flex-direction: column;
    align-items: start;
    gap: 1rem;
}

label {
    font-weight: bold;
    color: #2c3e50;
}

input[type="text"],
input[type="file"],
input[type="number"] {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #bdc3c7;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

input[type="text"]:focus,
input[type="file"]:focus,
input[type="number"]:focus {
    outline: none;
    border-color: #3498db;
}

input[type="text"]:hover,
input[type="file"]:hover,
input[type="number"]:hover {
    border-color: #2980b9;
}

.item-cotizacion {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.item-cotizacion input {
    flex: 1;
    min-width: 150px;
}

#totalCotizacion {
    font-weight: bold;
    font-size: 1.2rem;
    margin-top: 1rem;
    color: #2c3e50;
}

.iva-checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.iva-checkbox input[type="checkbox"] {
    width: auto;
}

#vistaPreviaCotizacion {
    text-align: left;
    margin-bottom: 2rem;
    padding: 1rem;
    border: 1px solid #bdc3c7;
    border-radius: 5px;
    background-color: #f9f9f9;
}

#vistaPreviaCotizacion h2 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

#vistaPreviaCotizacion ul {
    list-style-type: none;
    padding: 0;
}

#vistaPreviaCotizacion li {
    margin-bottom: 0.5rem;
}

#vistaPreviaCotizacion p {
    margin-top: 1rem;
    font-weight: bold;
}

footer {
    text-align: center;
    padding: 20px 0;
    background-color: #f8f9fa;
    width: 100%;
}

.social-icons {
    margin-bottom: 10px;
}

.social-icons a {
    color: #333;
    font-size: 24px;
    margin: 0 10px;
    transition: color 0.3s ease;
}

.social-icons a:hover {
    color: #4a90e2;
}

footer p {
    margin: 0;
    font-size: 0.9rem;
    color: #333;
}

a.btn-secondary {
    display: inline-block;
    text-decoration: none;
    margin-top: 1rem;
}

/* Style for form inputs */
input[type="tel"],
input[type="email"] {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #bdc3c7;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

input[type="tel"]:focus,
input[type="email"]:focus {
    outline: none;
    border-color: #3498db;
}

/* Button container for alignment */
.button-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
}

.button-container .btn-secondary {
    margin-top: 0;
}

/* Ensure buttons have the same width */
.button-container .btn-primary,
.button-container .btn-secondary {
    width: 48%; /* Adjust as needed */
}

/* Group 'Nombre Contacto' and 'Tel/Email' on the same line */
.input-group {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.input-half {
    flex: 1;
}

/* Left align 'Volver al Inicio' and right align 'Siguiente' */
.align-buttons {
    display: flex;
    justify-content: space-between;
}

input[type="text"], input[type="file"] {
    width: 100%;
}

.center-buttons {
    display: flex;
    justify-content: center;
    gap: 2rem; /* Add space between buttons */
}

@media (max-width: 600px) {
    .contenedor {
        padding: 1.5rem;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    p {
        font-size: 1rem;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        padding: 10px 20px;
    }

    .item-cotizacion {
        flex-direction: column;
    }

    .item-cotizacion input {
        width: 100%;
    }
    
    .button-container {
        flex-direction: column;
    }

    .button-container .btn-primary,
    .button-container .btn-secondary {
        width: 100%;
        margin-top: 0.5rem;
    }
}