* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 20px;
    scroll-behavior: smooth;
}

body  {
    background-image: url("../assets/Icons/fondo.jpg");
    background-size: cover;      /* La imagen cubre toda la pantalla */
    background-position: center; /* Centrada */
    background-repeat: no-repeat; /* No se repite */
}


h1 {
    font-size: clamp(1.8rem, 4vw, 3rem);
    color: #ffffff; */cambiar color de la frase*/
    text-shadow: 0 0 20px rgba(132, 255, 114, 0.3);
    text-align: center;
    margin-bottom: 20px;
    font-weight: 700;
}

h2,
h3 {
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    color: #ffffff;
    margin-bottom: 15px;
    text-align: center;
}

p {
    font-size: clamp(0.9rem, 2.2vw, 1.1rem);
    margin-bottom: 10px;
}

.index {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.categoria {
    background: linear-gradient(145deg, #000000, #504d4d);/*color del borde de la imagen*/
    padding: 25px;
    border-radius: 20px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgb(255, 255, 255);
    border: 2px solid transparent;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.categoria:hover {
    background: linear-gradient(145deg, #000000, #000000);
    transform: translateY(-8px) scale(1.02);
    border-color: rgb(0, 0, 0);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
}

.categoria a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.categoria p {
    font-weight: bold;
    color: #fdfdfd;/*color del titulo de la bebidas*/
    margin-bottom: 15px;
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.categoria img,
.producto-img {
    width: 100%;
    height: 180px;
    object-fit: contain;
    border-radius: 15px;
    background-color: #fefffe;
    padding: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease;
}

.categoria:hover img,
.producto:hover .producto-img {
    transform: scale(1.05);
}

.catalogo {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.producto {
    background: linear-gradient(145deg, #000000, #1e1e1e);
    padding: 25px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(132, 255, 114, 0.1);
    position: relative;
    overflow: hidden;
}

.producto::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(132, 255, 114, 0.1) 0%, transparent 70%);
    transform: scale(0);
    transition: transform 0.5s ease;
}

.producto:hover::before {
    transform: scale(1);
}

.producto:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
    border-color: rgba(0, 0, 0, 0.4);
}

.producto h2 {
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-weight: 600;
    position: relative;
    z-index: 1;
}

.producto p {
    font-size: clamp(1.2rem, 3vw, 1.6rem);
    color: #fdfdfd;*/color del precio*/
    font-weight: bold;
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

button {
    background: linear-gradient(45deg, #84ff72, #5cdb4a);
    border: none;
    padding: 15px 25px;
    border-radius: 12px;
    cursor: pointer;
    color: #030303; /*color del boton de la letra de agregar carrito*/
    font-weight: bold;
    font-size: clamp(0.9rem, 2.2vw, 1.1rem);
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(132, 255, 114, 0.3);
    position: relative;
    overflow: hidden;
    width: 100%;
    text-transform: uppercase;
    letter-spacing: 1px;
}

button:hover {
    background: linear-gradient(45deg, #f7f7f760, #ffffff);/*color de la barra del agregar carrito*/
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(132, 255, 114, 0.5);
}

button:active {
    transform: translateY(0);
    box-shadow: 0 4px 15px rgb(230, 8, 212);
}

.verCarritoDesdeIndex {
    all: unset;
    cursor: pointer;
    display: block;
    width: 100%;
}

.botones-fijos {
    position: fixed;
    bottom: 25px;
    right: 25px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 999;
}

.botones-fijos button,
.botones-fijos a {
    width: 70px;
    height: 70px;
    background: linear-gradient(45deg, #ffffff, #5cdb4a);/*color de los botones laterales*/
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(141, 12, 120, 0.4);
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.botones-fijos button::before,
.botones-fijos a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    transform: scale(0);
    transition: transform 0.3s ease;
}

.botones-fijos button:hover::before,
.botones-fijos a:hover::before {
    transform: scale(1);
}

.botones-fijos button:hover,
.botones-fijos a:hover {
    background: linear-gradient(45deg, #e060d9, #4ac938);
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(255, 114, 243, 0.6);
}

.botones-fijos img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

#carritoBtn {
    position: relative;
}

.carrito-contador {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #ff4444;
    color: #fff;
    border-radius: 50%;
    width: 25px;
    height: 25px;
    font-size: 12px;
    font-weight: bold;
    display: none;
    align-items: center;
    justify-content: center;
    border: 2px solid rgb(255, 255, 255);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

.carrito-lateral {
    position: fixed;
    top: 0;
    right: -100%;
    width: min(400px, 90vw);
    height: 100vh;
    background: linear-gradient(145deg, #2a2a2a, #1e1e1e);
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.7);
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1001;
    padding: 25px;
    overflow-y: auto;
    border-left: 3px solid #000000;
}

.carrito-lateral.abierto {
    right: 0;
}

.carrito-lateral h2 {
    color: #84ff72;
    margin-bottom: 25px;
    font-size: clamp(1.3rem, 3vw, 1.8rem);
    text-align: center;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(132, 255, 114, 0.3);
}

#cerrarCarrito {
    background: linear-gradient(45deg, #ff6b6b, #ff5252);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    font-weight: bold;
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

#cerrarCarrito:hover {
    background: linear-gradient(45deg, #ff5252, #f44336);
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.5);
}

/* Lista del carrito */
#carrito {
    margin-bottom: 25px;
    max-height: 300px;
    overflow-y: auto;
}

.item-carrito {
    background: rgba(132, 255, 114, 0.1);
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 12px;
    border-left: 4px solid #84ff72;
    transition: all 0.3s ease;
    position: relative;
}

.item-carrito:hover {
    background: rgba(132, 255, 114, 0.15);
}

.item-nombre {
    font-weight: bold;
    margin-bottom: 8px;
    color: #ffffff;
}

.item-precio {
    color: #84ff72;
    font-weight: bold;
    margin-bottom: 10px;
}

.item-controles {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.cantidad-controles {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(0, 0, 0, 0.3);
    padding: 8px;
    border-radius: 8px;
}

.btn-cantidad {
    background: #84ff72;
    border: none;
    color: #000000;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.btn-cantidad:hover {
    background: #72e060;
    transform: scale(1.1);
}

.cantidad {
    font-weight: bold;
    min-width: 30px;
    text-align: center;
    color: #84ff72;
}



.carrito-total {
    background: linear-gradient(45deg, #84ff72, #5cdb4a);
    color: #000000;
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    margin-bottom: 20px;
    font-size: clamp(1.3rem, 3vw, 1.6rem);
    font-weight: bold;
    box-shadow: 0 5px 15px rgba(132, 255, 114, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
}

#vaciarCarritoBtn {
    background: linear-gradient(45deg, #ff6b6b, #ff5252);
    color: white;
    margin-bottom: 15px;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

#vaciarCarritoBtn:hover {
    background: linear-gradient(45deg, #ff5252, #f44336);
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.5);
}

#copiarCarritoBtn {
    background: linear-gradient(45deg, #4ecdc4, #26a69a);
    color: white;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(78, 205, 196, 0.3);
}

#copiarCarritoBtn:hover {
    background: linear-gradient(45deg, #26a69a, #00897b);
    box-shadow: 0 8px 25px rgba(78, 205, 196, 0.5);
}

.carrito-info {
    background: rgba(132, 255, 114, 0.1);
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    border: 1px solid rgba(132, 255, 114, 0.3);
    margin-top: 20px;
}

.carrito-info p {
    margin-bottom: 15px;
    font-weight: 500;
    color: #ffffff;
}

.carrito-numero {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 12px 0;
    padding: 12px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    transition: all 0.3s ease;
    color: #84ff72;
}

.carrito-numero:hover {
    background: rgba(0, 0, 0, 0.5);
    transform: translateX(3px);
}

.copiar-numero {
    background: #84ff72;
    border: none;
    color: #000000;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    font-size: 12px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.copiar-numero:hover {
    background: #72e060;
    transform: scale(1.05);
}

.copiar-numero img {
    width: 16px;
    height: 16px;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.catalogo {
    animation: fadeInUp 0.8s ease;
}

.producto {
    animation: fadeInUp 0.6s ease;
    animation-fill-mode: both;
}

/* RESPONSIVE OPTIMIZADO PARA MÓVILES */

/* Tablets grandes */
@media (max-width: 1024px) {
    .catalogo {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        padding: 0 15px;
    }
}

/* Tablets pequeñas y móviles grandes */
@media (max-width: 768px) {
    body {
        padding: 15px;
        font-size: 16px;
    }

    h1 {
        font-size: clamp(2.2rem, 6vw, 3rem);
        margin-bottom: 25px;
    }

    .index {
        grid-template-columns: 1fr;
        gap: 25px;
        margin: 30px auto;
        padding: 0 10px;
    }

    .categoria {
        padding: 30px;
        min-height: 300px;
    }

    .categoria p {
        font-size: clamp(1.3rem, 4vw, 1.6rem);
        margin-bottom: 20px;
    }

    .categoria img,
    .producto-img {
        height: 200px;
        padding: 15px;
    }

    .catalogo {
        grid-template-columns: 1fr;
        gap: 25px;
        padding: 0 10px;
    }

    .producto {
        padding: 30px;
        border-radius: 20px;
        min-height: 350px;
    }

    .producto h2 {
        min-height: 70px;
        font-size: clamp(1.3rem, 4vw, 1.6rem);
        margin-bottom: 25px;
    }

    .producto p {
        font-size: clamp(1.6rem, 5vw, 2rem);
        margin-bottom: 25px;
    }

    button {
        padding: 18px 30px;
        font-size: clamp(1.1rem, 3.5vw, 1.4rem);
        color: #000;
        border-radius: 15px;
        font-weight: bold;
    }

    .botones-fijos {
        bottom: 20px;
        right: 20px;
        gap: 20px;
    }

    .botones-fijos button,
    .botones-fijos a {
        width: 70px;
        height: 70px;
    }

    .botones-fijos img {
        width: 32px;
        height: 32px;
    }

    .carrito-contador {
        width: 28px;
        height: 28px;
        font-size: 14px;
        top: -8px;
        right: -8px;
    }

    .carrito-lateral {
        width: 100vw;
        padding: 30px;
        font-size: 18px;
    }

    .carrito-lateral h2 {
        font-size: clamp(1.8rem, 5vw, 2.2rem);
        color: #84ff72;
        margin-bottom: 30px;
        padding-bottom: 20px;
    }

    .item-carrito {
        padding: 25px;
        margin-bottom: 20px;
        background: rgba(132, 255, 114, 0.1);
        border-radius: 15px;
    }

    .item-nombre {
        font-size: clamp(1.2rem, 4vw, 1.5rem);
        font-weight: bold;
        color: #ffffff;
        margin-bottom: 15px;
    }

    .item-precio {
        font-size: clamp(1.1rem, 3.5vw, 1.3rem);
        color: #84ff72;
        font-weight: bold;
        margin-bottom: 20px;
    }

    .item-subtotal {
        font-size: clamp(1.2rem, 4vw, 1.4rem);
        color: #84ff72;
        font-weight: bold;
        margin-top: 20px;
        padding-top: 20px;
        border-top: 2px solid #84ff72;
        text-align: center;
        background: rgba(132, 255, 114, 0.05);
        padding: 15px;
        border-radius: 10px;
    }

    .cantidad-controles {
        gap: 20px;
        background: rgba(0, 0, 0, 0.4);
        padding: 15px;
        border-radius: 12px;
    }

    .btn-cantidad {
        width: 50px;
        height: 50px;
        font-size: 22px;
        color: #000000;
        font-weight: bold;
        border-radius: 10px;
    }

    .cantidad {
        font-size: clamp(1.3rem, 4vw, 1.6rem);
        color: #84ff72;
        font-weight: bold;
        min-width: 50px;
    }

    .btnEliminar {
        padding: 15px 25px;
        font-size: clamp(1rem, 3vw, 1.2rem);
        color: #ffffff;
        border-radius: 10px;
    }

    #cerrarCarrito {
        width: 50px;
        height: 50px;
        font-size: 24px;
        color: #ffffff;
        top: 25px;
        right: 25px;
    }

    .carrito-lateral p {
        color: #ffffff;
        font-size: clamp(1.1rem, 3.5vw, 1.4rem);
        font-weight: bold;
        background: rgba(132, 255, 114, 0.1);
        padding: 20px;
        border-radius: 12px;
        text-align: center;
        margin: 20px 0;
    }

    #total {
        color: #84ff72;
        font-size: clamp(1.6rem, 5vw, 2rem);
        font-weight: bold;
    }

    #vaciarCarritoBtn,
    #copiarCarritoBtn {
        padding: 20px;
        font-size: clamp(1.1rem, 3.5vw, 1.4rem);
        margin-bottom: 20px;
        color: #ffffff;
        border-radius: 12px;
        font-weight: bold;
    }

    .carrito-info {
        background: rgba(132, 255, 114, 0.1);
        padding: 25px;
        border-radius: 15px;
    }

    .carrito-info p {
        font-size: clamp(1.1rem, 3.5vw, 1.3rem);
        color: #ffffff;
        font-weight: bold;
        margin-bottom: 20px;
    }

    .carrito-numero {
        font-size: clamp(1.1rem, 3.5vw, 1.3rem);
        color: #84ff72;
        font-weight: bold;
        background: rgba(0, 0, 0, 0.3);
        padding: 20px;
        margin: 20px 0;
        border-radius: 12px;
    }

    .copiar-numero {
        padding: 15px 25px;
        font-size: clamp(1rem, 3vw, 1.2rem);
        margin-top: 15px;
        border-radius: 10px;
        font-weight: bold;
    }
}

/* Móviles pequeños */
@media (max-width: 480px) {
    body {
        padding: 10px;
    }

    h1 {
        font-size: clamp(2rem, 7vw, 2.8rem);
        margin-bottom: 20px;
    }

    .categoria {
        padding: 25px;
        min-height: 280px;
    }

    .producto {
        padding: 25px;
        min-height: 320px;
    }

    .producto h2 {
        font-size: clamp(1.2rem, 4.5vw, 1.5rem);
        min-height: 65px;
    }

    .producto p {
        font-size: clamp(1.5rem, 6vw, 1.8rem);
    }

    button {
        padding: 16px 25px;
        font-size: clamp(1rem, 4vw, 1.3rem);
        border-radius: 12px;
    }

    .botones-fijos {
        bottom: 15px;
        right: 15px;
    }

    .botones-fijos button,
    .botones-fijos a {
        width: 65px;
        height: 65px;
    }

    .botones-fijos img {
        width: 30px;
        height: 30px;
    }

    .carrito-lateral {
        padding: 20px;
    }

    .item-carrito {
        padding: 20px;
    }

    .btn-cantidad {
        width: 45px;
        height: 45px;
        font-size: 20px;
    }

    .cantidad-controles {
        padding: 12px;
        gap: 15px;
    }

    .btnEliminar {
        padding: 12px 20px;
        font-size: clamp(0.9rem, 3vw, 1.1rem);
    }
}

/* Móviles muy pequeños */
@media (max-width: 360px) {
    .catalogo {
        gap: 20px;
        padding: 0 5px;
    }

    .producto {
        padding: 20px;
        min-height: 300px;
    }

    .carrito-lateral {
        padding: 15px;
    }

    .item-carrito {
        padding: 18px;
    }
}

.item-subtotal {
    margin-top: 10px;
    font-weight: bold;
    color: #84ff72;
    text-align: right;
    padding-top: 10px;
    border-top: 1px solid rgba(132, 255, 114, 0.3);
    background: rgba(255, 255, 255, 0.1);
    padding: 10px;
    border-radius: 5px;
}

/* ==== FORZAR UNA COLUMNA Y UI MÁS GRANDE EN MÓVILES (override final) ==== */
@media (max-width: 992px) {
  /* Forzar 1 columna en index y catalogo */
  .index,
  .catalogo {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
    padding: 0 12px !important;
    max-width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .categoria,
  .producto {
    padding: 20px !important;
    min-height: auto !important;
    border-radius: 16px !important;
  }

  /* Imágenes más grandes y con altura adaptable */
  .categoria img,
  .producto-img {
    width: 100% !important;
    height: auto !important;
    max-height: 250px !important;
    object-fit: contain !important;
    padding: 12px !important;
  }

  .producto p {
    font-size: 1.4rem !important;
    margin-bottom: 18px !important;
  }

  button {
    padding: 10px 15px !important;
    font-size: 0.85rem !important;
    border-radius: 12px !important;
  }

  .botones-fijos {
    right: 12px !important;
    bottom: 12px !important;
  }

  /* Carrito lateral ocupa pantalla completa en móviles */
  .carrito-lateral {
    width: 100vw !important;
padding: 18px !important;
  }
}

.botones-fijos .whatsapp-btn {
    background: linear-gradient(45deg, #25d366, #128c7e);
}
.botones-fijos .whatsapp-btn:hover {
    background: linear-gradient(45deg, #20ba5c, #0f735e);
}

/* Fin override */
