body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f9;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    color: #333;
}

.container-main{
    width: 100%;
    margin-top: 25vh;
}

main {
    width: 100%;
    max-width: 1200px;
    margin: 20px;
    padding: 20px;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

.search-bar {
    width: 100%;
    max-width: 600px;
    padding: 10px;
    margin: 20px auto;
    font-size: 16px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.product-catalog {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.product {
    border: 1px solid #ddd;
    padding: 20px;
    margin: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 220px;
    text-align: center;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    transition: transform 0.2s;
}

.product:hover {
    transform: scale(1.05);
}

.product img {
    width: 100%;
    height: auto;
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
    margin-bottom: 10px;
}

.product h2 {
    font-size: 18px;
    margin: 10px 0;
}

.product p {
    margin: 5px 0;
}

.quote-button {
    background-color: #4CAF50;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.quote-button:hover {
    background-color: #45a049;
}

.pagination {
    text-align: center;
    margin-top: 20px;
}

.pagination-button {
    background-color: #4CAF50;
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin: 5px;
    transition: background-color 0.3s;
}

.pagination-button:hover {
    background-color: #45a049;
}

.pagination-button.disabled {
    background-color: #ddd;
    cursor: not-allowed;
}

.pagination-info {
    display: inline-block;
    margin: 0 10px;
}

.pagination-input {
    width: 50px;
    text-align: center;
    padding: 5px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}



.header {
    background-color: #f9f9f9;
    color: #000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.contacto-top {
    position: fixed;
    z-index: 1000;
    background-color: white; 
    transition: top 0.3s; 
    display: grid;
    grid-template-columns: repeat(11, 1fr);
    background-color: #F5F5F5;
    box-shadow: 0 2px 5px #ccc;
    width: 100%;
}

.container-h {
    position: fixed;
    margin-top: 5vh;
    top: 0;
    width: 100%;
    z-index: 1000;
    background-color: white; 
    box-shadow: 0 2px 5px rgba(0,0,0,0.1); 
}

.cotizacion{
    grid-column: 2/6;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 1rem;
    align-items: center;
    justify-content: center;
}

.cotizacion div:nth-child(1){
    grid-column: 1;
}
.cotizacion div:nth-child(1) p{
    font-size: 0.8em;
}

.cotizacion div:nth-child(2){
    grid-column: 2;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cotizacion div:nth-child(2) a{
    font-size: 0.8em;
    text-decoration: none;
    color: #000;
    transition: font-size 0.3s ease;
}


.cotizacion div:nth-child(2) a:hover{
    font-size: 1em;
    color: #F88311;
}

.contacto-links {
    grid-column: 10;
    display: flex;
    justify-content: right;
    padding: 0.3em 20% 0.3em 0;
    gap: 0.7rem;
    margin: 0 auto;
}
    
.contacto-links a {
    text-decoration: none;
}

.contacto-links img {
    width: 1.5em;
    height: auto;
    transition: transform 0.3s ease;
}

.contacto-links a:hover img {
    transform: scale(1.2);
}

.contacto-top img{
    width: 1.5em;
}


.header-top {
    padding: 1.5vh 0 1vh;
}



.header nav {
    background-color: #1A3668;
}

.nav-list {
    list-style: none;
    margin: 0;
    display: flex;
    justify-content: space-around;
    padding: 0;
    position: relative;
    width: 100%;
}

.nav-list li {
    margin: 0 1rem;
    position: relative;
}

.nav-list a {
    color: #fff;
    text-decoration: none;
    position: relative;
    display: inline-block;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
}

.nav-list a::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #F88311;
    visibility: hidden;
    transform: scaleX(0);
    transition: all 0.3s ease-in-out;
}

.nav-list a:hover::before {
    visibility: visible;
    transform: scaleX(1);
}

.nav-list a:hover {
    color: #F88311;
}

.nav-list .dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #e9e9e9;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    z-index: 1;
    min-width: 200px;
    text-align: center;
    padding: 0;
    box-sizing: border-box;
}

.nav-list .dropdown li {
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav-list .dropdown a {
    padding: 1rem;
    color: #1A3668;
    display: block;
    text-align: left;
}

.nav-list li:hover .dropdown {
    display: block;
}


.space {
    background-color: #F88311;
    height: 1em;

}

.footer {
    background-color: #313131;
    color: white;
    padding: 2rem 0;
    text-align: left;
}

.container-f {
    max-width: 1200px;
    margin: auto;
    padding: 0 20px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.footer-section {
    flex: 1;
    margin: 1rem;
    min-width: 250px;
}

.footer-section h2 {
    margin-bottom: 15px;
    color: #f8f8f8;
}

.footer-section p, .footer-section a {
    color: #bbb;
    line-height: 1.6;
}

.footer-section a {
    text-decoration: none;
    color: #bbb;
}

.footer-section a:hover {
    color: #F88311;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    display: flex;
    align-items: center;
    color: white;
    text-decoration: none;
}

.social-links img {
    width: 24px;
    height: 24px;
    transition: transform 0.3s ease;
}

.social-links a:hover img {
    transform: scale(1.2);
}

.ubi-frame iframe {
    width: 100%;
    height: 250px;
    border: none;
}

.footer-bottom {
    width: 100%;
    text-align: center;
    padding: 10px 0;
    background: #222;
    color: #bbb;
}

.footer-bottom p {
    margin: 0;
}

main{
    padding: 20%, 2em,5em;
    margin: 0 auto;
}

.header-title {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    padding: 0;
    margin: 0;
    align-items: center;
    text-align: center;
}

.logo {
    grid-column: 1/3;
    width: 24vh;
    height: auto;
    margin: 0 auto;
}

.header-title h1 {
    font-family: 'Arial', sans-serif;
    grid-column: 3/5;
    font-size: 2em;
    margin: 0;
}

.cart-icon {
    grid-column: 6/7;
    position: relative;
    width: 30px;
    height: 30px;
    margin-left: 12vh; /* Ajusta el margen derecho según sea necesario */
    cursor: pointer;
}

.cart-modal {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    padding: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    width: 80%;
    max-width: 600px;
    z-index: 1000;
}

/* Fondo de pantalla para oscurecer el resto de la página */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
    display: none;
}

/* Mostrar el fondo oscuro cuando el modal esté abierto */
.modal-backdrop.open {
    display: block;
}


.cart-icon img {
    width: 100%;
    height: auto;
}

.cart-count {
    position: absolute;
    top: -10px;
    right: -10px;
    background-color: red;
    color: white;
    border-radius: 50%;
    padding: 5px;
    font-size: 12px;
    width: 16px;
    height: 16px;
    text-align: center;
}

.cart {
    position: fixed;
    top: 0;
    right: 0;
    width: 300px;
    height: 100%;
    background: white;
    box-shadow: -2px 0 5px rgba(0, 0, 0, 0.1);
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
}

.cart.open {
    transform: translateX(0);
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid #ddd;
}

.cart-items {
    padding: 1rem;
    overflow-y: auto;
    max-height: 80%;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.cart-item p {
    margin: 5px 0;
}

#close-cart {
    display: block;
    margin-top: 20px;
    padding: 10px;
    background-color: #f44336;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

#close-cart:hover {
    background-color: #d32f2f;
}


.quantity-controls {
    display: flex;
    align-items: center;
}

.quantity-controls input {
    width: 40px;
    text-align: center;
}

.quantity-controls button {
    width: 30px;
    height: 30px;
    border: none;
    background: #ddd;
    cursor: pointer;
}

#send-quote {
    width: 100%;
    padding: 1rem;
    background: #4CAF50;
    color: white;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s;
}

#send-quote:hover {
    background: #45a049;
}

#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8); /* Fondo blanco semi-transparente */
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}

.spinner {
    border: 8px solid #f3f3f3;
    border-radius: 50%;
    border-top: 8px solid #3498db;
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}


.delete-modal {
    display: none; /* Oculto por defecto */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7); /* Fondo más oscuro */
    justify-content: center;
    align-items: center;
    z-index: 2000; /* Asignar un z-index mayor que el modal del carrito */
}

.delete-modal-content {
    background: white;
    padding: 30px; /* Mayor padding */
    border-radius: 12px; /* Esquinas más redondeadas */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2); /* Sombra más pronunciada */
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease; /* Animación suave al aparecer */
}

.delete-modal-content h3 {
    margin: 0 0 20px 0; /* Espaciado entre título y contenido */
    font-family: 'Arial', sans-serif; /* Cambiar la fuente */
    color: #333; /* Color del texto */
}

.delete-modal-content p {
    margin: 5px 0; /* Espaciado para párrafos */
    font-size: 16px; /* Tamaño de fuente */
    color: #555; /* Color del texto */
}

.delete-modal-content input {
    margin: 10px 0;
    padding: 10px; /* Espaciado interno */
    border: 1px solid #ccc; /* Borde más suave */
    border-radius: 5px; /* Esquinas redondeadas en input */
    font-size: 14px; /* Tamaño de fuente */
    width: 80%; /* Ancho del input */
}

.delete-modal-content button {
    margin: 5px;
    padding: 10px 20px;
    cursor: pointer;
    border: none; /* Sin borde */
    border-radius: 5px; /* Esquinas redondeadas en botones */
    font-size: 16px; /* Tamaño de fuente */
    background-color: #28a745; /* Color de fondo verde */
    color: white; /* Color del texto */
    transition: background-color 0.3s ease; /* Transición para color de fondo */
}

.delete-modal-content button:hover {
    background-color: #218838; /* Color más oscuro al pasar el mouse */
}

#delete-all-button {
    background-color: #dc3545; /* Color de fondo rojo para eliminar todo */
}

#delete-all-button:hover {
    background-color: #c82333; /* Color más oscuro al pasar el mouse */
}

#cancel-delete-button {
    background-color: #6c757d; /* Color de fondo gris para cancelar */
}

#cancel-delete-button:hover {
    background-color: #5a6268; /* Color más oscuro al pasar el mouse */
}