@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
}

/* VARIABLES (Si no las tienes) */
:root {
    --red: #e74c3c; /* Color de ejemplo */
    --dark-red: #c0392b; /* Color oscuro de ejemplo */
    --white: #ffffff;
    --black: #000000;
}

body {
    font-family: 'Poppins', sans-serif;
    background-image: url(Birrieria/near.jpg);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
}

header {
    background-image: url(Birrieria/near.jpg);
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.menu {
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 1000;
}

.logo {
    width: 150px;

}

.menu .navbar ul {
 font-family: Arial, sans-serif;
   
    display: flex;
    justify-content: center;
    align-items: center;
}

.menu-container {
    position: fixed;
    right: 60px;
    top: 40%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: flex-end;
    z-index: 1000;
}

.menu {
    display: flex;
    gap: 20px;
}

.btn-menu {
    background: linear-gradient(45deg, #ff006a, #ff8c00);
    color: white;
    padding: 15px 30px;
    font-size: 18px;
    border-radius: 40px;
    border: none;
    cursor: pointer;
    transition: 0.3s;
    position: relative;
    overflow: hidden;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%,100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

.btn-menu:hover {
    transform: scale(1.12);
    box-shadow: 0 0 25px #ff0088, 0 0 45px #ff7700;
}

.btn-menu::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.3);
    transform: skewX(-45deg);
    transition: 0.5s;
}

.btn-menu:hover::before {
    left: 200%;
}

.info-box {
    width: 380px;
    min-height: 150px;
    background: rgba(255,255,255,0.07);
    border: 2px solid #ff006a;
    box-shadow: 0 0 20px rgba(255,0,106,0.33);
    border-radius: 20px;
    padding: 20px;
    color: white;
    backdrop-filter: blur(8px);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    display: none;
}

.info-box.show {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.info-box.hide {
    opacity: 0;
    transform: translateY(20px);
}

.fade-text {
    animation: fadeInText 0.45s ease;
}

@keyframes fadeInText {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 600px) {
    .menu-container { right: 20px; top: 30%; }
    .info-box { width: 300px; }
}

#menu {
    display: none;
}

.menu-icono {
    width: 25px;
}

.menu label {
    cursor: pointer;
    display: none;
}

.header-content {
    display: flex;
    align-items: center;
    padding: 200px 0 150px 0;
}

.header-txt {
    width: 40%;
    padding-right: 25px;
}

.header-txt h1 {
    font-size: 55px;
    line-height: 70px;
    font-weight: 800;
    color: #FDFDFD;
    margin-bottom: 25px;
}

.header-txt p {
    font-size: 18px;
    color: #A0A0A0;
}

.header-img {
    width: 60%;
}

.hamburger {
    width: 60%;
}

.botones {
    display: flex;
    margin-top: 50px;
}

.btn-1 {
    display: inline-block;
    background: linear-gradient(90deg, #e73e0b 0%, #ebe6e6 100%);
    padding: 10px 35px;
    margin-right: 20px;
    color: #000000;
    border-radius: 25px;
}

.btn-2 {
    display: inline-block;
    border: 1px solid #FDFDFD;
    padding: 10px 35px;
    margin-right: 20px;
    color: #FDFDFD;
    border-radius: 25px;
}

.btn-1:hover {
    background: linear-gradient(90deg, #f3031f 0%, #bc0217 100%);
}

.btn-2:hover {
    border: 1px solid #f50f2a;
}

.icon {
    width: 20px;
}

.product-menu {
    padding: 50px 0 150px 0;
}

.title {
    color: #FDFDFD;
    font-size: 45px;
    text-transform: uppercase;
    margin-bottom: 45px;
}

.product {
    display: flex;
    position: relative;
}

.hoja {
    right: 0;
    position: absolute;
    bottom: -130px;
    width: 150px;
}

.menu-nav {
    display: flex;
    margin-bottom: 45px;
}

.tab {
    margin-right: 20px;
    text-align: center;
    padding: 10px 35px;
    border-radius: 25px;
    color: #A0A0A0;
    font-size: 16px;
    font-weight: 800;
    background-color: #242529;
    cursor: pointer;
}

.tab.active {
    background: linear-gradient(90deg,#E70B25 0%, #900314 100%);
    color: #FDFDFD;
}

.tab.active::after {
    content: "";
    position: absolute;
    width: 100%;
}

.tab-content {
    display: none;
}

.tab-content.visible {
    display: initial;
}

.box-container-1,
.box-container-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.box-1:nth-child(1),
.box-1:nth-child(2),
.box-1:nth-child(3),
.box-1:nth-child(4) {
    display: inline-block;
}

.box-3:nth-child(1),
.box-3:nth-child(2),
.box-3:nth-child(3),
.box-3:nth-child(4) {
    display: inline-block;
}

.image {
    margin-bottom: 20px;
    text-align: center;
}

.image img {
    width: 180px;
}

.content h3 {
    font-size: 20px;
    color: #afDFDFDF;
}

.content p {
    font-size: 15px;
    color: #A0A0A0;
    line-height: 2;
    font-size: 15px;
    padding: 15px 0;
}

.btn {
    display: inline-block;
    padding: 10px 30px;
    border: 1px solid #334;
    color: #334;
    font-size: 16px;
}

.btn:hover {
    background-color: rgb(220, 20, 60);
    border-color: rgb(202, 11, 49);
    color: #553333;
}

.icons {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #334;
}

.price {
    font-size: 14px;
    color: #A0A0A0;
}

.buy {
    padding: 1px 15px 0px 15px;
    border-radius: 15px;
    background: linear-gradient(90deg, #95B52C 0%, #586E25 100%);
}

.buy img {
    width: 15px;
}

.load-more {

    margin-top: 50px;
    display: inline-block;
    padding: 13px 35px;
    border-radius: 25px;
    border: 1px solid #707070;
    color: #A0A0A0;
    font-size: 16px;
    cursor: pointer;

}

.load-more:hover {
    background: linear-gradient(90deg, rgba(209, 124, 38, 0.733) 0% , #940415 100%);
    border-color: rgb(220, 20, 60);
    color: #FDFDFD;
}

.info {
    background-image: linear-gradient(rgba(247, 153, 12, 0.5), rgba(105, 99, 86, 0.5)), url(images/bg-info.jpg);
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    height: 50vh;
}
.info-content {
    display: flex;
    position: relative;
}

.info-txt{
    width: 60%;
    margin-top: 85px;
}

.info-txt h2 {
    color: #FDFDFD;
    font-size: 55px;
    margin-bottom: 25px;
}

.info-txt p {
    font-size: 20px;
    color: #A0A0A0;
    margin-bottom: 25px;
}

.info-sec {
    display: flex;
}

.info-1 {
    display: flex;
}

.info-1 img {
    width: 80px;
}

.info-2 {
    margin-left: 25px;
}

.info-2 h3 {
    color: #FDFDFD;
    font-size: 25px;
}

.info-2 p {
    color: #A0A0A0;
    font-size: 16px;
}

.info-img {
    position: absolute;
    right: -55px;
    top: -103px;
}

.info-img img {
    width: 650px;

}

.logo-2 {
    width: 150px;
}

.links h4 {
    color: #FDFDFD;
    text-transform: uppercase;
    margin-bottom: 25px;
}

.links ul li a {
    color: #FDFDFD;
    font-size: 16px;
    margin-bottom: 5px;
    display: inline-block;
}

.socials {
    display: flex;
}

.social {
    margin: 0 10px;
    height: 40px;
    width: 40px;
    border: 1px solid #DD241B;
    border-radius: 50%;
}

.social:hover {
    background-color: #DD241B;
}
.social img {
    margin: 8px 0 0 10px;
}






.box-1, .box-3 {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 0.8s ease forwards;
}

.box-1:hover,
.box-3:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.box-1 .image img,
.box-3 .image img {
    transition: transform 0.4s ease;
}

.box-1:hover .image img,
.box-3:hover .image img {
    transform: scale(1.05);
}

/* Aparición escalonada */
.box-1:nth-child(1),
.box-3:nth-child(1) { animation-delay: 0.1s; }

.box-1:nth-child(2),
.box-3:nth-child(2) { animation-delay: 0.2s; }

.box-1:nth-child(3),
.box-3:nth-child(3) { animation-delay: 0.3s; }

.box-1:nth-child(4),
.box-3:nth-child(4) { animation-delay: 0.4s; }

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ------------------------------------------------------ */
/* === ANIMACIÓN DE CAMBIO DE PESTAÑAS (.tab-content) === */
/* ------------------------------------------------------ */

.tab-content.visible {
    animation: fadeSlide 0.6s ease forwards;
    opacity: 0;
    transform: translateY(20px);
}

@keyframes fadeSlide {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* ------------------------------------------------------ */
/* === ANIMACIÓN PARA LAS TABS (hover + underline) === */
/* ------------------------------------------------------ */

.tab {
    position: relative;
    overflow: hidden;
    transition: color 0.3s ease, transform 0.3s ease;
}

/* Zoom al pasar el mouse */
.tab:hover {
    transform: scale(1.05);
}

/* Subrayado dinámico */
.tab::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 5px;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg,#E70B25 0%, #900314 100%);
    transition: all 0.4s ease;
    transform: translateX(-50%);
    border-radius: 5px;
}

.tab:hover::after {
    width: 80%;
}

.tab.active::after {
    width: 100%;
}

/* Rebote al hacer clic */
.tab:active {
    animation: tabBounce 0.100s ease;
}

@keyframes tabBounce {
    0% { transform: scale(1); }
    50% { transform: scale(0.90); }
    100% { transform: scale(1); }
}

/* ------------------------------------------------------ */
/* === ANIMACIÓN PARA BOTONES (comprar) === */
/* ------------------------------------------------------ */

.buy {
    transition: transform 1s ease;
}

.buy:hover {
    transform: scale(2);
}

.buy:active {
    animation: bounce 0.3s;
}

@keyframes bounce {
    0% { transform: scale(2); }
    50% { transform: scale(0.85); }
    100% { transform: scale(1); }
}

/* ------------------------------------------------------ */
/* === ANIMACIÓN DEL HEADER AL CARGAR === */
/* ------------------------------------------------------ */

.header-txt, .header-img {
    opacity: 0;
    transform: translateY(70px);
    animation: headerFade 1s ease forwards;
}

.header-txt { animation-delay: 0.2s; }
.header-img { animation-delay: 0.5s; }

@keyframes headerFade {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ------------------------------------------------------ */
/* === EFECTO DE SCROLL (aparece al bajar) === */
/* ------------------------------------------------------ */

.scroll-animate {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.scroll-animate.visible {
    opacity: 1;
    transform: translateY(0);
}
.tab.active {
    animation: activeTab .4s ease-in-out;
}

@keyframes activeTab {
    0% { transform: scale(5); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}
/* ------------------------------------------------------ */
/* === agranda el marco cafe y agrega un borde brillante === */
/* ------------------------------------------------------ */

.box-1:hover,
.box-3:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 0 25px rgba(75, 0, 0, 0.7);
  border: 5px solid #e4750d;
}

/* En móvil, quita el zoom para que no se desborde */
@media (max-width: 768px) {
  .box-1:hover,
  .box-3:hover {
    transform: none;
    box-shadow: none;
    border-width: 20px;
  }
}
@keyframes show {
    from{
        opacity: 0;
        scale: 25%;
    }

    to{
        opacity: 1;
        scale: 100%;
    }
}
img {
    view-timeline-name: --image;
    view-timeline-axis: block;

    animation-timeline: --image;
    animation-name: show;

    animation-range: entry 25% cover 30%;
    animation-fill-mode: both;
}
/* EFECTO SCROLL PARA LAS TARJETAS */
@keyframes cardScroll {
from {
    opacity: 0;
    transform: translateY(20px);
}
to {
    opacity: 1;
    transform: translateY(0);
}
}

.box-1, .box-2, .box-3 {
opacity: 0;
animation: cardScroll 1s ease-out both;
animation-timeline: view();
animation-range: entry 25% cover 30%;
}
/* ✨ Efecto Neón para el texto de la descripción */
.neon-text {
    color: #ffffff;
    text-shadow:
        0 0 5px #ff003c,
        0 0 10px #ff003c,
        0 0 20px #ff003c,
        0 0 40px #ff003c,
        0 0 80px #ff003c;
    animation: neonPulse 2s ease-in-out infinite alternate;
}

@keyframes neonPulse {
    0% {
        opacity: 0.6;
        text-shadow:
            0 0 5px #ff003c,
            0 0 10px #ff003c,
            0 0 20px #ff003c;
    }
    100% {
        opacity: 1;
        text-shadow:
            0 0 10px #ff003c,
            0 0 20px #ff003c,
            0 0 40px #ff003c,
            0 0 80px #ff003c;
    }
}
/* ✨ Neón con movimiento */
.neon-move {
    color: #ffffff;
    font-size: 18px;
    text-shadow:
        0 0 5px #ff003c,
        0 0 10px #ff003c,
        0 0 20px #ff003c,
        0 0 40px #ff003c,
        0 0 80px #ff003c;
    position: relative;
    animation: neonGlow 2s ease-in-out infinite alternate,
            floatMove 3s ease-in-out infinite;
}

/* Brillo neón */
@keyframes neonGlow {
    0% {
        opacity: 0.6;
        text-shadow:
            0 0 5px #000000,
            0 0 10px #000000,
            0 0 20px #ff003c;
    }
    100% {
        opacity: 1;
        text-shadow:
            0 0 10px #000000,
            0 0 20px #000000,
            0 0 40px #000000,
            0 0 80px #000000;
    }
}

/* Movimiento suave */
@keyframes floatMove {
    0%   { transform: translateX(0px); }
    50%  { transform: translateX(10px); }
    100% { transform: translateX(0px); }
}
/* 🔥 Botones Ultra Pro Chidos */
.btn-1, .btn-2 {
    position: relative;
    overflow: hidden;
    transition: all 0.25s ease-in-out;
    border-radius: 25px;
    font-weight: 700;
    letter-spacing: 1px;
    z-index: 1;
}

/* Fondo con gradiente animado */
.btn-1, .btn-2 {
    background: linear-gradient(270deg, #ff003c, #ff6a00, #ff003c);
    background-size: 300% 300%;
    animation: gradientMove 4s ease infinite;
}

@keyframes gradientMove {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Destello cruzando */
.btn-1::before, .btn-2::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(
        120deg,
        transparent,
        rgba(255,255,255,0.8),
        transparent
    );
    transform: skewX(-25deg);
    transition: 0.7s;
}

.btn-1:hover::before, .btn-2:hover::before {
    left: 150%;
}

/* Brillo Neón fuerte */
.btn-1:hover, .btn-2:hover {
    transform: scale(1.12);
    box-shadow:
        0 0 10px #e6e6e625,
        0 0 20px #e4890081,
        0 0 40px #e7730673,
        0 0 80px #eb850083;
}

/* Pulso suave permanente */
.btn-1, .btn-2 {
    animation: gradientMove 4s ease infinite, neonPulse 2.2s infinite alternate ease-in-out;
}

@keyframes neonPulse {
    0% { transform: scale(1); }
    100% { transform: scale(1.05); }
}


/* Icono de Carrito en el menú */
.cart-icon-link {
    display: block;
    padding: 10px;
    background-color: #FF5733;
    border-radius: 50%;
    transition: background-color 0.3s;
    margin-right: 30px;
    /* CAMBIO: Necesario para que el contador sea relativo a este elemento */
    position: relative; 
}

.cart-icon-link:hover {
    background-color: #C70039;
}

.cart-icon {
    width: 25px;
    height: 25px;
    filter: invert(1);
    display: block;
}

/* --- ESTILOS PARA EL CONTADOR DEL CARRITO --- */
.menu .navbar #cart-btn {
    /* Posicionamiento fijo */
    position: fixed;
    top: 2rem; 
    right: 2rem; 
    z-index: 1000; 

    /* Estilos de forma */
    background: var(--red); 
    border-radius: 50%; /* ¡Esto lo hace redondo! */
    height: 5rem; /* Altura y ancho iguales para el círculo */
    width: 5rem; 
    
    /* Centrado de contenido (imagen y contador) */
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all .2s linear;
}
/* FIN ESTILOS PARA EL CONTADOR DEL CARRITO */
.menu .navbar #cart-btn:hover {
    background: var(--dark-red); 
}


.menu .navbar #cart-btn .cart-icon {
    width: 60%; /* Ajusta el tamaño del ícono */
    height: 60%;
    /* Asegura que la imagen esté centrada si no lo estaba */
}

/* --- ESTILOS PARA EL CONTADOR DE PRODUCTOS (el número "0") --- */
.menu .navbar #cart-count {
    position: absolute;
    top: 0;
    right: 0;
    font-size: 1.5rem;
    padding: 0.2rem 0.5rem;
    background: var(--black); 
    color: var(--white);
    border-radius: 50%;
    min-width: 2rem; /* Ancho mínimo para que se vea bien con números de 1 o 2 dígitos */
    text-align: center;
    transform: translate(25%, -25%); /* Desplaza el contador fuera del borde superior derecho */
}

/* Estilos del Sidebar de Carrito/Pago */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 400px; /* Ancho fijo para el sidebar */
    height: 100%;
    background-color: #1a1a1f; /* Fondo oscuro del sidebar */
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.5);
    z-index: 2000; /* Asegurar que esté encima de todo */
    transform: translateX(100%); /* Oculto por defecto */
    transition: transform 0.4s ease-in-out;
    padding: 20px;
    overflow-y: auto;
}

.cart-sidebar.open {
    transform: translateX(0); /* Mostrar sidebar */
}

/* Permite que el carrito aparezca */
.cart-sidebar.visible {
    transform: translateX(0);
}


.close-sidebar-btn {
    position: absolute;
    top: 10px;
    right: 25px;
    font-size: 40px;
    font-weight: 300;
    color: #EAEAEA;
    transition: color 0.3s;
    line-height: 1;
}

.close-sidebar-btn:hover {
    color: #FF5733;
}

.sidebar-content {
    padding-top: 50px; /* Espacio para el botón de cerrar */
}
/* Fin Estilos de Sidebar */

/* ESTILOS DE LISTA DE PRODUCTOS Y RESUMEN */
.cart-summary {
    padding: 15px 0 25px 0;
    margin-bottom: 20px;
    border-bottom: 1px solid #333333;
    display: none; 
}

/* 🔥 Asegura que el contenido del carrito se muestre correctamente */
#cart-summary,
#cart-items-list {
    display: block !important;
    visibility: visible !important;
}


.cart-summary.active-content {
    display: block;
}

.cart-summary h3 {
    font-size: 24px;
    color: #FDFDFD;
    margin-bottom: 20px;
    text-align: center;
}

/* Contenedor de Items del Carrito */
.cart-items {
    max-height: 250px; /* Limitar altura para hacer scroll si hay muchos productos */
    overflow-y: auto;
    margin-bottom: 20px;
    padding-right: 10px; 
    border-bottom: 1px solid #333333;
    padding-bottom: 15px;
}

/* Scrollbar styling for a dark theme */
.cart-items::-webkit-scrollbar {
    width: 6px;
}

.cart-items::-webkit-scrollbar-track {
    background: #1a1a1f;
}

.cart-items::-webkit-scrollbar-thumb {
    background: #444449;
    border-radius: 3px;
}

.cart-items::-webkit-scrollbar-thumb:hover {
    background: #FF5733;
}

/* Item individual */
.cart-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    border-top: 1px solid #28282D; /* Separador sutil entre productos */
}

.cart-item:first-child {
    border-top: none;
}

.item-details {
    display: flex;
    align-items: center;
    flex-grow: 1;
}

.item-image {
    width: 50px;
    height: 50px;
    object-fit: contain;
    margin-right: 15px;
    border-radius: 4px;
    padding: 5px;
    background-color: #24252A;
}

.item-name {
    font-size: 15px;
    color: #FDFDFD;
    line-height: 1.2;
}

.item-quantity {
    font-size: 14px;
    color: #A0A0A0;
}

.item-price {
    font-size: 16px;
    color: #FF5733;
    font-weight: 600;
    white-space: nowrap; 
}

/* Resumen Total */
.summary-line {
    display: flex;
    justify-content: space-between;
    font-size: 16px;
    color: #A0A0A0;
    margin-bottom: 10px;
    padding: 5px 0;
}

.summary-line strong {
    color: #FDFDFD;
}

.summary-line.total {
    font-size: 18px;
    color: #FF5733; /* Color de acento para el total */
    padding-top: 10px;
    border-top: 1px dashed #333333;
}

.cart-summary .btn-1 {
    width: 100%;
    margin-top: 20px;
    margin-right: 0;
}
/* FIN ESTILOS DE LISTA DE PRODUCTOS Y RESUMEN */

/* Reglas para mostrar/ocultar los contenidos DENTRO DEL SIDEBAR */
.header-initial-content {
    /* Mantenemos el active-content de la cabecera principal, pero ocultamos la versión dentro del sidebar */
}
.cart-sidebar .header-txt {
    display: none; /* Oculta todo el contenido dentro del sidebar por defecto */
    flex-direction: column; 
    padding: 0;
}

.cart-sidebar .header-txt.active-content {
    display: flex;
}

.header-payment-content,
.header-form-content {
    /* Estos solo se muestran si tienen la clase active-content */
    display: none; 
}
/* Fin Reglas para mostrar/ocultar */

/* Contenido Inicial de la cabecera */
.header-content {
    display: flex;
    align-items: center;
    padding: 200px 0 150px 0;
}

.header-txt {
    width: 40%;
    padding-right: 25px;
}

.header-txt h1,
.header-txt h2 {
    font-size: 55px;
    line-height: 70px;
    font-weight: 800;
    color: #FDFDFD;
    margin-bottom: 25px;
}

/* Estilos específicos para la sección de pagos y formularios DENTRO DEL SIDEBAR */
.payment-txt h2 {
    font-size: 30px; /* Tamaño más pequeño para sidebar */
    line-height: 40px;
    margin-bottom: 30px;
    color: #FDFDFD;
}

.payment-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 25px;
}

/* Estilos de Opción de Pago */
.payment-option {
    font-size: 16px; 
    color: #EAEAEA;
    padding: 15px 20px;
    background-color: #24252A; 
    border: 1px solid #333333;
    border-radius: 8px; 
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.payment-option:hover {
    background-color: #313238;
    border-color: #FF5733;
    transform: translateY(-1px);
    box-shadow: 0 3px 6px rgba(255, 87, 51, 0.15);
}

.payment-icon {
    width: 25px; 
    height: 25px;
    margin-right: 10px;
    filter: invert(1); /* Mantiene el filtro para los íconos de opción de pago */
}

/* --- ESTILOS PARA LOGOS DENTRO DE FORMULARIOS --- */
/* Contenedor de logos de tarjeta */
.card-logos {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #333333; /* Separador sutil */
}

.card-logos p {
    color: #A0A0A0;
    font-size: 14px;
    margin-right: 5px;
}

.card-logos img {
    height: 20px; /* Tamaño adecuado para logos de tarjeta */
}

/* Logo grande para PayPal y OXXO */
.large-payment-logo {
    display: block;
    width: 100px; /* Tamaño grande */
    height: auto;
    margin: 10px auto 20px auto; /* Centrar logo */
}

/* --- FIN ESTILOS PARA LOGOS --- */

/* Estilos de Formularios */
.payment-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

.form-input {
    padding: 12px;
    border-radius: 6px;
    border: 1px solid #333333;
    background-color: #24252A; 
    color: #FDFDFD;
    font-size: 16px;
    transition: border-color 0.3s;
}

.form-input:focus {
    border-color: #FF5733;
    outline: none;
}

.card-details-group {
    display: flex;
    gap: 15px;
}

.card-details-group .small-input {
    flex: 1;
}

.payment-form .btn-1, 
.payment-form .btn-2 {
    margin-top: 5px;
    width: 100%; /* Asegurar que los botones del formulario ocupen todo el ancho */
}


/* Botones Generales */
.header-txt p {
    color: #A0A0A0;
    margin-bottom: 30px;
}

.botones {
    display: flex;
    align-items: center;
}

.btn-1, .pagar-btn {
    display: inline-block;
    background: linear-gradient(90deg, #FF5733 0%, #C70039 100%);
    padding: 12px 40px;
    margin-right: 20px;
    color: #FFFFFF;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(255, 87, 51, 0.4);
    transition: all 0.3s ease;
    border: none;
    text-align: center;
}

.btn-2, .back-to-payments-btn, .back-to-summary-btn {
    display: inline-block;
    border: 1px solid #5C5C5C;
    padding: 12px 40px;
    margin-right: 20px;
    color: #EAEAEA;
    border-radius: 50px;
    transition: all 0.3s ease;
    text-align: center;
}

/* Botones dentro del formulario del sidebar */
.payment-form .btn-1, .payment-form .btn-2 {
    margin-right: 0;
}

/* Botón de regreso en selección de pago */
.payment-txt .btn-2 {
    width: 100%;
    margin-right: 0;
}

.btn-1:hover {
    background: linear-gradient(90deg, #FF7043 0%, #E71D3A 100%);
    box-shadow: 0 6px 20px rgba(255, 87, 51, 0.6);
}

.btn-2:hover {
    border: 1px solid #FF5733;
    color: #FF5733;
}

.icon {
    width: 20px;
}

/* Contenido del menú (Productos) */
.product-menu {
    padding: 50px 0 150px 0;
}

.title {
    color: #FDFDFD;
    font-size: 45px;
    text-transform: uppercase;
    margin-bottom: 45px;
}

.product {
    display: flex;
    position: relative;
}

.hoja {
    right: 0;
    position: absolute;
    bottom: -130px;
    width: 150px;
}

.menu-nav {
    display: flex;
    margin-bottom: 50px;
    border-bottom: 1px solid #333333;
}

.tab {
    padding: 10px 20px;
    font-size: 18px;
    color: #A0A0A0;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    top: 1px;
}

.tab:hover,
.tab.active {
    color: #FDFDFD;
    border-bottom: 3px solid #FF5733;
}

.tab-content {
    display: none;
}

.tab-content.visible {
    display: block;
}

/* Grid de Productos */
.box-container-1,
.box-container-2,
.box-container-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.box-1,
.box-2,
.box-3 {
    text-align: center;
    background-color: #1a1a1f; /* Fondo oscuro para cada caja */
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    display: none; /* Oculto por defecto para Load More */
}

/* Mostrar los primeros 4 productos */
.box-container-1 .box-1:nth-child(1),
.box-container-1 .box-1:nth-child(2),
.box-container-1 .box-1:nth-child(3),
.box-container-1 .box-1:nth-child(4),
.box-container-2 .box-2:nth-child(1),
.box-container-2 .box-2:nth-child(2),
.box-container-2 .box-2:nth-child(3),
.box-container-2 .box-2:nth-child(4),
.box-container-3 .box-3:nth-child(1),
.box-container-3 .box-3:nth-child(2),
.box-container-3 .box-3:nth-child(3),
.box-container-3 .box-3:nth-child(4) {
    display: inline-block;
}

.box-1:hover,
.box-2:hover,
.box-3:hover {
    transform: translateY(-5px);
    transition: transform 0.3s ease;
}

.box .image {
    padding: 15px;
    height: 250px;
    background-color: #24252A;
    border-radius: 8px;
    margin-bottom: 15px;
}

.box .image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.box .content h3 {
    font-size: 20px;
    color: #FDFDFD;
    margin-bottom: 5px;
}

.box .content p {
    font-size: 14px;
    color: #A0A0A0;
    margin-bottom: 15px;
    padding: 15px 0;
}

.icons {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #334;
}

.price {
    font-size: 18px;
    color: #FF5733; /* Color de acento para el precio */
    font-weight: 600;
}

.buy {
    padding: 5px 15px;
    border-radius: 50px;
    background: linear-gradient(90deg, #95B52C 0%, #586E25 100%);
    cursor: pointer;
    transition: all 0.3s;
}

.buy:hover {
    opacity: 0.8;
}

.buy img {
    width: 15px;
    filter: invert(1);
}

.load-more {
    margin-top: 50px;
    display: inline-block;
    padding: 13px 35px;
    border-radius: 50px;
    border: 1px solid #A0A0A0;
    color: #A0A0A0;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.load-more:hover {
    background: linear-gradient(90deg, #FF5733 0% , #C70039 100%);
    border-color: #FF5733;
    color: #FDFDFD;
}

/* Info Section (Estilos de ejemplo) */
.info {
    background-image: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url(images/bg-info.jpg);
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    padding: 100px 0;
}

.info-content {
    display: flex;
    align-items: center;
    position: relative;
}

.info-txt {
    width: 50%;
    margin-top: 50px;
}

.info-txt h2 {
    font-size: 50px;
    color: #FDFDFD;
    line-height: 60px;
    margin-bottom: 25px;
}

.info-txt p {
    color: #A0A0A0;
    margin-bottom: 45px;
}

.info-sec {
    position: absolute;
    top: 50px;
    right: 0;
    display: flex;
    align-items: center;
    gap: 20px;
    background-color: #1a1a1f;
    padding: 20px 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
}

.info-sec img {
    width: 50px;
}

.info-sec h4 {
    color: #FDFDFD;
    font-size: 18px;
}

.info-sec p {
    color: #A0A0A0;
    margin: 0;
}

/* Footer (Estilos de ejemplo) */

footer .container {
    display: flex;
    justify-content: space-between;
}

.links {
    width: 20%;
}

.links h4 {
    color: #FDFDFD;
    font-size: 18px;
    margin-bottom: 15px;
}

.links ul {
    list-style: none;
}

.links ul li a {
    color: #A0A0A0;
    font-size: 16px;
    display: block;
    margin-bottom: 10px;
    transition: color 0.3s;
}

.links ul li a:hover {
    color: #FF5733;
}

.socials {
    display: flex;
    gap: 10px;
}

.social {
    width: 40px;
    height: 40px;
    background-color: #24252A;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.3s;
}

.social:hover {
    background-color: #FF5733;
}

.social img {
    width: 20px;
    filter: invert(1);
}


.item-actions {
    order: 4; /* Acciones después del precio */
    margin-top: 10px;
}

@media (max-width: 991px) {
  .menu {
    padding: 30px;
  }

  .menu label {
    display: initial;
  }

  .menu .navbar {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #1a1a1f;
    display: none;
  }

  #menu:checked ~ .navbar {
    display: block;
  }

  .menu .navbar ul li {
    width: 100%;
  }

  .menu .navbar ul li a:hover {
    color: #FF5733;
  }

  .header-content {
    flex-direction: column;
    padding: 120px 30px 30px 30px;
  }

  .header-txt {
    width: 100%;
    padding: 0;
    text-align: center;
  }

  .header-txt h1,
  .header-txt h2 {
    font-size: 40px;
    line-height: 50px;
  }

  .header-img {
    display: none; /* Evita que la imagen grande rompa el layout en móvil */
  }

  .botones {
    flex-direction: column;
    align-items: center;
    margin-top: 30px;
  }

  .btn-1,
  .btn-2 {
    margin: 0 0 20px 0;
    width: 100%;
  }

  .product-menu {
    padding: 30px;
  }

  .title {
    margin-bottom: 20px;
    text-align: center;
  }

  .hoja {
    display: none;
  }

  .menu-nav {
    flex-direction: column;
    align-items: center;
  }

  .tab {
    margin-bottom: 25px;
  }

  .box-container-1,
  .box-container-2,
  .box-container-3 {
    grid-template-columns: 1fr;
  }

  .box .image {
    height: 200px;
  }

  .info {
    padding: 30px;
    height: auto;
  }

  .info-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .info-txt {
    width: 100%;
    margin-top: 0px;
  }

  .info-txt p {
    margin-bottom: 5px;
  }

  .info-sec {
    flex-direction: column;
    padding: 15px;
    position: initial;
  }

  footer .container {
    flex-direction: column;
  }

  .links {
    width: 100%;
    margin-bottom: 25px;
    text-align: center;
  }

  .links ul li a {
    padding: 5px 0;
  }

  .socials {
    justify-content: center;
  }
}
@media (max-width: 991px) {
    .container {
        padding: 0 30px; /* Reducir el padding general */
    }

    /* --- Menú de Navegación (Header) --- */
    .menu {
        padding: 20px 0; /* Asegurar espacio */
    }
    .menu label {
        display: initial; /* Mostrar el ícono del menú de hamburguesa */
    }
    .menu .navbar {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: #101116; /* Color de fondo para el menú desplegado */
        display: none; /* Ocultar el menú por defecto */
    }
    .menu .navbar ul li {
        width: 100%; /* Las opciones ocupan todo el ancho */
    }
    #menu:checked ~ .navbar {
        display: initial; /* Mostrar el menú al hacer clic */
    }

    /* --- Contenido Principal (Header) --- */
    .header-content {
        padding: 150px 0 30px 0; /* Más espacio arriba, menos abajo */
        flex-direction: column;
        text-align: center;
    }
    .header-txt {
        width: 100%;
        margin-right: 0;
        margin-bottom: 30px;
    }
    .header-img {
        width: 80%;
    }

    /* --- Sección de Productos --- */
    .menu-nav {
        flex-direction: column; /* Pestañas una debajo de otra */
        align-items: center;
    }
    .tab {
        margin: 10px 0;
    }
    .box-container {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* 2 columnas en tablet, 1 en móvil */
        gap: 20px;
    }

    /* --- Sección de Información (Info) --- */
    .info-content {
        flex-direction: column;
        text-align: center;
    }
    .info-txt {
        width: 100%;
        margin-bottom: 30px;
    }
    .info-img {
        width: 80%;
    }

    /* --- Footer --- */
    .footer-content {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); /* Columnas en el footer */
    }
}

@media (max-width: 470px) {
    .box-container {
        grid-template-columns: 1fr; /* Una sola columna de productos */
    }
    
    .header-img {
        width: 100%;
    }

    /* Ajustes específicos para el carrito en pantallas pequeñas */
    .cart-sidebar {
        width: 100%; /* El carrito ocupa todo el ancho */
        right: -100%; 
    }
    .cart-sidebar.visible {
        right: 0; 
    }

    .input-group-half {
        flex-direction: column; /* Los campos de pago se ponen uno debajo del otro */
        gap: 0;
    }
    .input-group-half .form-input {
        width: 100%;
    }
}

/* --- Ajustes dentro del formulario de la barra lateral (checkout) --- */

/* Asegura que todos los campos y botones del formulario tomen todo el ancho */
.form-input, 
.form-select, 
.form-btn {
    width: 100%; 
    margin-bottom: 15px; /* Espaciado uniforme */
}

/* El título del formulario, para centrarlo si es necesario y darle espacio */
.cart-sidebar h3 {
    text-align: center;
    margin-bottom: 20px;
    font-size: 20px;
    color: #FDFDFD; /* Color del texto */
}

/* Estilos de los inputs para mejor visibilidad */
.form-input, .form-select {
    padding: 10px;
    border: 1px solid #444; /* Borde sutil */
    background-color: #222; /* Fondo oscuro */
    color: #FDFDFD; /* Texto claro */
    border-radius: 5px;
}

/* FUERZA a que los grupos de dos inputs se muestren uno debajo del otro DENTRO DEL SIDEBAR */
#cart-sidebar .input-group-half {
    flex-direction: column;
    gap: 0;
    margin-bottom: 0; /* Ya tenemos margen en .form-input */
}

#cart-sidebar .input-group-half .form-input {
    width: 100%; /* Cada input ocupa todo el ancho de la columna */
}


/* 🔥 Animación suave entre pestañas */
.sidebar-content > div {
    opacity: 0;
    transform: translateX(20px);
    transition: all .35s ease;
}

/* Cuando la pantalla es visible */
.sidebar-content > div.active-content {
    opacity: 1 !important;
    transform: translateX(0);
    display: block !important;
}
 /* ===========================
   RESPONSIVE FIXES (PEGA AL FINAL)
   =========================== */

/* Global container adaptativo */
.container {
  width: 100%;
  max-width: 1200px;
  padding: 0 16px;
  margin: 0 auto;
}

/* Make menu label visible only in mobile */
.menu-toggle {
  display: none;
  cursor: pointer;
}
.menu-toggle .menu-icono { width: 28px; height: auto; }

/* default navbar for desktop: keep as is, only adjust mobile below */
.navbar ul { list-style: none; gap: 12px; margin: 0; padding: 0; display:flex; align-items:center; }

/* Cart button adjustments */
#cart-btn {
  position: fixed;
  top: 1.25rem;
  right: 1.25rem;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1200;
}

/* Ensure cart count sits nicely */
#cart-count {
  position: absolute;
  top: -6px;
  right: -6px;
  font-size: 12px;
  padding: 3px 6px;
  min-width: 20px;
}

/* Sidebar: make full-screen on small devices */
.cart-sidebar {
  max-width: 400px;
  width: 100%;
  right: 0;
}

/* ===========================
   MOBILE LAYOUTS
   =========================== */
@media (max-width: 768px) {

  /* show hamburger and hide desktop nav until toggled */
  .menu-toggle { display: block; }
  .navbar { position: absolute; top: 64px; right: 0; left: 0; background: rgba(10,10,10,0.95); padding: 14px 16px; border-top: 1px solid rgba(255,255,255,0.03); z-index: 1100; }
  .navbar ul { flex-direction: column; gap: 10px; display: none; }
  .navbar ul li { width: 100%; text-align: center; }

  /* When checkbox checked, show nav */
  #menu { display: none; } /* keep visually hidden input */
  #menu:checked ~ .navbar ul { display: flex; }

  /* Header: column layout for small screens */
  .header-content {
    flex-direction: column;
    align-items: center;
    padding: 80px 12px;
  }

  .header-txt, .header-img { width: 100%; padding: 0; }
  .header-txt h1 { font-size: 36px; line-height: 1.1; }
  .header-txt p { font-size: 15px; }

  /* Header image smaller and centered */
  .hamburger { width: 70%; max-width: 420px; margin: 18px auto 0; display: block; }

  /* Product grid: tighter */
  .box-container-1, .box-container-3 {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 16px;
  }

  .box .image { height: auto; padding: 12px; }
  .box .image img { width: 100%; height: auto; object-fit: cover; }

  /* Reduce spacing for product menu */
  .product-menu { padding: 28px 0 80px; }
  .title { font-size: 30px; margin-bottom: 20px; }

  /* Buttons scale down */
  .btn-1, .btn-2 { padding: 10px 18px; font-size: 14px; }

  /* Fix hover transforms on mobile to avoid overflow */
  .box-1:hover, .box-3:hover { transform: none; box-shadow: none; border-width: 1px; }

  /* Cart button smaller to avoid hiding content */
  #cart-btn { width: 48px; height: 48px; top: 12px; right: 12px; }

  /* Sidebar should occupy full screen width on small devices */
  .cart-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 100%;
    max-width: 100%;
    padding: 18px;
    transform: translateX(100%);
    transition: transform .35s ease;
  }
  .cart-sidebar.open { transform: translateX(0); }

  /* Reduce forms spacing */
  .payment-form { gap: 10px; }
  .form-input { font-size: 14px; padding: 10px; }
}

/* small tweak for very small phones */
@media (max-width: 420px) {
  .header-txt h1 { font-size: 28px; }
  .title { font-size: 26px; }
  .btn-1, .btn-2 { padding: 8px 14px; font-size: 13px; }
}
