﻿: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;
}
.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);
}
.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; /* azul */
}
.alerta-success {
    background: #4CAF50; /* verde */
}
.alerta-error {
    background: #F44336; /* rojo */
}


/* **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;
    margin-bottom: 40px;
    position: relative;
}
.checkout-steps::before {
    content: "";
    position: absolute;
    top: 25px;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gris);
    z-index: 1;
}
.step {
    text-align: center;
    flex: 1;
    position: relative;
    z-index: 2;
    cursor: pointer; /* 🔹 Ahora son botones */
}
.step .icon {
    background: var(--gris);
    color: var(--blanco);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: auto;
    margin-bottom: 10px;
    font-size: 1.2rem;
    transition: background 0.3s;
    border: 2px solid var(--azul);
    color: var(--azul);
}
.step.active .icon {
    background: var(--verde);
    border: 2px solid var(--verde);
    color: white;
}
.checkout-content {
    text-align: center;
    background: var(--blanco);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    margin-top: -10px;
}
.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);
}

/* FOOTER */
footer {
    background: var(--azul);
    color: var(--blanco);
    padding: 40px 20px 20px;
    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);
}
/* .redes {
    display: flex;
    gap: 15px;
}
.redes a {
  color: var(--blanco);
  font-size: 1.4rem;
  transition: transform 0.3s, color 0.3s;
}
.redes a:hover {
  color: var(--naranja);
  transform: scale(1.2);
} */
.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: 992px) {
    header {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
    .buscador {
        margin: 10px 0;
        width: 450px;
    }
    .acciones {
        justify-content: center;
    }
} */

/* celulares */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        align-items: center;
        padding: 10px 15px;
        position: relative;
    }
    .logo {
        margin-top: 50px;
        text-align: center;
    }
    .logo img {
        max-width: 500px; 
        height: 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 {
        width: 100%;
        max-width: 500px;
        /* margin: 15px auto 0 auto; */
    }
    .buscador select{
        max-width: 110px;
    }
    .buscador select, 
    .buscador input {
        padding: 12px;
        font-size: 1rem;
    }
    .buscador button {
        font-size: 1.2rem;
        padding: 10px 12px;
    }
    main {
        padding: 15px;
    }
    .productos {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 15px;
    }
    .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: 1.5rem;
        padding: 15px;
    }
    .footer-col h3{
        font-size: 1.5rem;
    }
    .redes a{
        font-size: 2rem;
    }
    .footer-bottom p{
        font-size: 1.5rem;
    }
}