﻿:root {
  --azul: #234083;
  --verde: #9BCB3C;
  --naranja: #F37021;
  --rojo: #E1251B;
  --blanco: #ffffff;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family:'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
}

/* HEADER */
header {
    background-color: var(--azul);
    color: var(--blanco);
    padding: 30px 50px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}
.logo img {
    max-width: 400px; 
}
.buscadorysede {
    display: block;
}
.buscador {
    flex: 1;
    margin: 0 30px;
    display: flex;
    width: 600px;
}
.buscador select, 
.buscador input {
    padding: 20px;
    border: none;
    outline: none;
    font-size: 1.2rem;
}
.buscador select {
    background: var(--verde);
    color: var(--blanco);
    border-radius: 5px 0 0 5px;
    appearance: none; 
    -webkit-appearance: none;  
    -moz-appearance: none;    
    padding: 8px 12px;
    border: none;              
    cursor: pointer;
    max-width: 150px;
}
.buscador select option {
    background: var(--verde);
    color: var(--blanco);
    border: none;
    padding: 20px;
}
.buscador select option:hover {
    background: var(--naranja);
    color: var(--blanco);
}
.buscador input {
    flex: 1;
}
.buscador button {
    background: var(--naranja);
    color: var(--blanco);
    border: none;
    padding: 8px 15px;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
    font-size: 1.5rem;
}
.sede {
    margin-top: 20px;
    text-align: center;
}
.sede label{
    margin-right: 10px;
    color: var(--blanco);
    font-size: 1.5rem;
}
.sede select{
    background: var(--verde);
    color: var(--blanco);
    border: none;
    padding: 8px 12px;
    border-radius: 5px;
    font-size: 0.9rem;
    cursor: pointer;
    width: 200px;
}
.sede select option{
    background: var(--azul);
    color: var(--blanco);
}
.sede button{
    color: var(--blanco);
    padding: 3px;
    background: var(--azul);
    border: none;
    cursor: pointer;
    font-size: 1.3rem;
}
.acciones {
    display: flex;
    gap: 20px;
}
.acciones a {
    color: var(--blanco);
    text-decoration: none;
    font-weight: bold;
    display: flex;
    flex-direction: column; 
    align-items: center;
    font-size: 1rem;
}
.acciones a i {
    font-size: 2rem;
    margin-bottom: 5px;
    color: var(--blanco);
}
.acciones a:hover {
    color: var(--naranja);
}
.acciones a i:hover {
    color: var(--naranja);
}

/* PRODUCTOS */
main {
    padding: 30px;
}
.marquee-container {
    width: 100%;
    overflow: hidden;
    background-color: var(--naranja);
    height: 32px;
    display: flex;
    align-items: center;
    position: relative;
}
.marquee-text {
    display: inline-block;
    white-space: nowrap;
    color: #fff;
    font-size: 16px; 
    animation: marquee 15s linear infinite;
}
@keyframes marquee {
    0% {
        transform: translateX(100%);
    }
    100% {
        transform: translateX(-100%);
    }
}
.productos {
  padding: 5px;
  text-align: center;
}
.productos-contenedor {
    position: relative;
    max-height: 500px;
    overflow: hidden;
    transition: max-height 0.5s ease;
}
.productos-contenedor.expandido {
  max-height: 2000px;
}
.productos {
    display: grid;
    grid-template-columns: repeat(auto-fit, 230px);
    gap: 20px;
}
.producto {
    background: var(--blanco);
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    padding: 15px;
    text-align: center;
    position: relative;
    width: 220px;
}
.producto img {
    max-width: 100%;
    /* border-radius: 5px; */
}
.producto h3 {
    margin: 10px 0;
    font-size: 1.1rem;
}
.producto p {
    margin: 5px 0;
    font-size: 0.9rem;
}
.precio {
    font-weight: bold;
    color: var(--azul);
}
.oferta {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--rojo);
    color: var(--blanco);
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.8rem;
    font-weight: bold;
}
.producto button {
    margin-top: 10px;
    background: var(--verde);
    border: none;
    padding: 10px;
    color: var(--blanco);
    cursor: pointer;
    border-radius: 5px;
    width: 100%;
}
.producto button:hover {
    background: var(--naranja);
}
.hidden-product {
    display: none !important;
}


/* ALERTA */
.alerta {
    position: fixed;
    top: 20px;
    right: -300px; 
    background: #234083; 
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: bold;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    z-index: 9999;
    opacity: 0;
    transition: all 0.5s ease;
}
.alerta.mostrar {
    right: 20px;
    opacity: 1;
}
.alerta-info {
    background: #234083; 
}
.alerta-success {
    background: #4CAF50; 
}
.alerta-error {
    background: #F44336; 
}


/* **CARRITO** */
.overlay-carrito {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
    z-index: 999;
}
.carrito {
    position: fixed;
    top: 0; right: -400px;
    width: 350px;
    max-width: 90%;
    height: 100%;
    background: var(--blanco);
    box-shadow: -2px 0 8px rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column;
    transition: 0.3s;
    z-index: 1000;
}
.overlay-carrito.activo {
    opacity: 1;
    visibility: visible;
}
.carrito.activo {
    right: 0;
}
.carrito-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: var(--azul);
    color: var(--blanco);
}
.cerrar-btn {
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--blanco);
    cursor: pointer;
  
}
.carrito-contenido {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
}
.carrito-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}
.carrito-item img {
    width: 60px;
    border-radius: 5px;
    margin-right: 10px;
}
.carrito-detalle h3 {
    font-size: 1rem;
    margin: 0;
}
.carrito-detalle p {
    margin: 5px 0;
    color: var(--azul);
    font-weight: bold;
}
.trash {
    padding: 7px 15px 7px 15px;
    background-color: var(--azul);
    border: 1px solid var(--azul);
    margin: 15px 5px 5px 35px;
    border-radius: 10px;
    color: #ffffff;
}
.trash:hover {
    background-color: var(--naranja);
    border: 1px solid var(--naranja);
}
.carrito-footer {
    padding: 15px;
    border-top: 1px solid #ddd;
}
.checkout-btn {
    width: 100%;
    background: var(--naranja);
    color: var(--blanco);
    border: none;
    padding: 12px;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
}
.checkout-btn:hover {
    background: var(--verde);
}


/* CHECKOUT */
.checkout-steps {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    /* margin-bottom: 40px; */
}
.step {
    /* background: #fff; */
    border: 2px solid var(--gris);
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    transition: border 0.3s, box-shadow 0.3s;
    cursor: pointer;

    flex: 1;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.step.active {
    border: 2px solid var(--verde);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.step .icon {
    background: var(--gris);
    color: var(--azul);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: auto;
    margin-bottom: 10px;
    font-size: 1.5rem;
    transition: background 0.3s, color 0.3s;
}
.step.active .icon {
    background: var(--verde);
    color: #fff;
}
.step-content {
    display: none;
    margin-top: 15px;
}
.step.active .step-content {
    display: block;
}
.btn-next {
    background: var(--verde);
    color: var(--blanco);
    border: none;
    padding: 10px 15px;
    border-radius: 8px;
    cursor: pointer;
    margin-top: 15px;
    font-size: 1rem;
}
.btn-next:hover {
    background: var(--naranja);
}

.datosp input{
    padding: 10px;
    border: 2px solid var(--verde);
    border-radius: 10px;
    width: 300px;
}
.observacion {
    padding: 10px;
    border: 2px solid var(--verde);
    border-radius: 10px;
    width: 300px;
}
.pago button{
    padding: 10px;
    border: 2px solid var(--verde);
    border-radius: 10px;
    margin: 8px;
    background-color: #ffffff;
}
.pago button:hover {
    background-color: var(--verde);
    color: #ffffff;
}
.pago button i{
    margin: 7px;
}


/* WHATSAPP  */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 999;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    border-radius: 50%;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s ease;
    color: var(--blanco);
    font-size: 2rem;
    text-decoration: none;
}
.whatsapp-float:hover {
    transform: scale(1.1);
}


/* FOOTER */
footer {
    background: var(--azul);
    color: var(--blanco);
    padding: 40px 60px 30px 60px;
    margin-top: 30px;
    font-size: 0.95rem;
}
/* .footer-contenedor {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: auto;
} */
.footer-col h3 {
    margin-bottom: 15px;
    color: var(--verde);
    font-size: 1.2rem;
    border-bottom: 2px solid var(--naranja);
    display: inline-block;
    padding-bottom: 5px;
}
.footer-col p, 
.footer-col li {
    margin: 8px 0;
}
.footer-col ul {
    list-style: none;
    padding: 0;
}
.footer-col ul li a {
    color: var(--blanco);
    text-decoration: none;
    transition: color 0.3s;
}
.footer-col ul li a:hover {
    color: var(--naranja);
}
.footer-bottom {
    text-align: center;
    margin-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.2);
    padding-top: 15px;
    font-size: 0.85rem;
}





/* ***RESPONSIVE*** */
/* tablet */
@media (max-width: 1200px) {
    .logo img {
        max-width: 300px; 
        height: auto;
    }
    .buscador {
        flex-direction: row; 
        width: 100%; 
        max-width: 100%;
    }
    .buscador select {
        max-width: 100px;
        font-size: 1rem;
    }
    .buscador input {
        font-size: 1rem;
        padding: 20px;
    }
    .buscador button {
        font-size: 1.5rem;
        padding: 20px;
    }
}

/* celulares */
@media (max-width: 992px) {
    header {
        flex-direction: column;
        align-items: center;
        padding: 10px 15px;
        position: relative;
    }
    .logo {
        margin: 60px 20px 20px 20px;
        text-align: center;
    }
    .logo img {
        max-width: 300px; 
        /* height: auto;
        height: auto;
        display: block;
        margin: auto; */
    }
    .acciones {
        position: absolute;
        top: 10px;
        right: 15px;
        gap: 15px;
    }
    .acciones a {
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 15px;
    }
    .acciones a span {
        display: none;
    }
    .acciones a i {
        font-size: 2rem; 
    }
    .buscador {
        flex-direction: row; 
        width: 100%; 
        max-width: 300px;
    }
    .buscador select {
        max-width: 90px;
        font-size: 0.9rem;
    }
    .buscador input {
        font-size: 0.9rem;
        padding: 10px;
    }
    .buscador button {
        font-size: 1rem;
        padding: 10px;
    }
    main {
        padding: 15px;
    }
    .productos {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 15px;
    }
    .producto {
        width: 100%;
        max-width: 180px;
        margin: auto;
    }
    .producto h3 {
        font-size: 1rem;
    }
    .producto button {
        font-size: 0.9rem;
        padding: 8px;
    }

    /* CARRITO */
    .carrito {
        font-size: 1rem;
    }
    .checkout-btn {
        font-size: 1rem;
    }
    .carrito-detalle h3 {
        font-size: 1rem;
    }

    /* CHECKOUT */
    .checkout-steps {
        flex-direction: column;
        gap: 20px;
    }
    .checkout-steps::before {
        display: none;
    }

    /* footer */
    footer {
        font-size: 1rem;
        padding: 15px;
    }
    .footer-col h3{
        font-size: 1.2rem;
    }
    .footer-bottom p{
        font-size: 1.2rem;
    }
}


/* error en campos no ingresados */

.input-error {
  border: 2px solid var(--rojo) !important;
  background-color: #ffe6e6;
}

.error-label {
  color: red;
  font-weight: bold;
}


