html {
    font-family: 'Poppins', sans-serif;
    background-color: #e2e2e0fd;
    margin: 0;
    padding: 0;
}
/*bienvenida*/

#bienvenida {
  display: none;
}


.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.modal {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    max-width: 400px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.modal h2 {
    margin-bottom: 15px;
}

.modal p {
    margin-bottom: 20px;
}

.modal button {
    padding: 10px 20px;
    background: #008000;
    border: none;
    color: white;
    font-size: 16px;
    border-radius: 8px;
    cursor: pointer;
}

.modal button:hover {
    background: #006400;
}





/* Oscurecer fondo */
.introjs-overlay {
  background: rgba(0, 0, 0, 0.65) !important;
}

.introjs-tooltip {
  background: #ffffff !important;
  color: #222 !important;
  border-radius: 12px !important;
  padding: 14px 16px !important;
  max-width: 160px !important;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28) !important;
  border: 1px solid rgba(0,0,0,0.06) !important;
}


.introjs-tooltiptext {
  font-size: 0.95rem !important;
  line-height: 1.5 !important;
}

/* Flechita del tooltip (según posición) */
.introjs-tooltip .introjs-arrow.top {
  border-bottom-color: #ffffff !important;
}
.introjs-tooltip .introjs-arrow.bottom {
  border-top-color: #ffffff !important;
}
.introjs-tooltip .introjs-arrow.left {
  border-right-color: #ffffff !important;
}
.introjs-tooltip .introjs-arrow.right {
  border-left-color: #ffffff !important;
}

/* Botones */
.introjs-button {
  border-radius: 8px !important;
  padding: 8px 14px !important;
  font-weight: 600 !important;
  border: 1px solid transparent !important;
  box-shadow: none !important;
}

.introjs-nextbutton,
.introjs-donebutton {
  background: #008000 !important;
  color: #fff !important;
  border-color: #008000 !important;
}

.introjs-prevbutton {
  background: transparent !important;
  color: #008000 !important;
  border-color: #008000 !important;
}

.introjs-skipbutton {
  background: transparent !important;
  color: #666 !important;
  border: none !important;
}

/* Estados hover/focus */
.introjs-nextbutton:hover,
.introjs-donebutton:hover {
  filter: brightness(0.92) !important;
}
.introjs-prevbutton:hover {
  background: #008000 !important;
  color: #fff !important;
}



/* Bullets / indicadores (si los usas) */
.introjs-bullets a.active {
  background: #008000 !important;
}
.introjs-bullets a {
  border-color: #008000 !important;
}






/*finbienvenida*/

.slogan {
    text-align: center;
    background-color: #006400;
    color: white;
    font-size: 20px;
    height: 2rem;

}

.frase {
    margin: 0;

}

header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-around;
    background-color: #ddd;
    padding: 8px;
    gap: 10px;
}

.titulo {
    text-align: center;
    font-size: 28px;
}

/*header*/

header img,
header h1,
.nav.busqueda {
    flex: 2 1 auto;
}

header img {
    width: 120px;
    height: 120px;
}


.nav {
    background-color: #008000;
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    /* Permite que los elementos se ajusten si no caben */
    padding: 10px;
    width: 100%;
    /* Se adapta al ancho del dispositivo */
    box-sizing: border-box;
    /* Incluye el padding en el ancho */
}

.nav a {
    color: white;
    text-decoration: none;
    padding: 5px 20px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 8px;
}

.busqueda {
    background-color: #ddd;
    height: auto;
    width: 50%;

}

.busqueda a {
    color: black;
}

#buscador-global:focus {
    border-color: #007bff;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
}

#boton-buscar-global {
    position: absolute;
    right: 10px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 20px;
    color: #dfdbdb;
    background-color: #007bff;
    border-radius: 12px;
    padding: 5px 15px 5px 15px;
}


@media (max-width: 480px) {
    header {
        padding: 10px 5px;
        flex-direction: column;
        align-items: center;
        gap: 5px;
    }

    header img {
        width: 80px;
        /* más pequeño */
        height: auto;
    }

    .titulo,
    h1.titulo {
        font-size: 1.2rem;
        margin: 0;
        text-align: center;
    }

    .busqueda {
        width: 100%;
        padding: 0;
        background-color: transparent;
        display: flex;
        flex-direction: row;
        justify-content: center;
        gap: 8px;
    }

    #barra-busqueda {
        width: 50%;
        position: relative;
    }

    #buscador-global {
        width: 90%;
        height: 10px;
        font-size: 0.9rem;
        padding: 0 40px 0 10px;
    }

    #boton-buscar-global {
        right: 12px;
        top: 14px;
        padding: 4px 9px;
        font-size: 14px;
    }

    .slogan {
        font-size: 16px;
    }

}


/*finheader*/



.inicio {
    color: white;
    text-decoration: none;
}

@media (max-width: 480px) {
    .nav a {
        font-size: 15px;
        padding: 7px;
    }

}

@media (max-width: 360px) {
    .nav a {
        font-size: 12px;
    }

}

/* Ocultar texto en pantallas pequeñas */
@media (max-width: 480px) {
    .nav a span {
        display: none;
    }

    .nav a {
        padding: 10px;
        justify-content: center;
        font-size: 18px;
    }
}

.nav a:hover {
    background-color: #006400;
    border-radius: 10px;
}

.busqueda a:hover {
    background-color: #ebe1e1;
    border-radius: 10px;
}

.home {
    max-width: 70rem;
    margin: 0 auto;
}

.catalogoo {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 20px;
}

@media (max-width: 1024px) {
    .catalogoo {
        grid-template-columns: repeat(3, 1fr);
        /* 2 columnas en tablet */
        margin: 1.5rem;
    }
}

@media (max-width: 600px) {
    .catalogoo {
        grid-template-columns: repeat(2, 1fr);
        /* 1 columna en celular */
    }
}

.categoria img {
    width: 100%;
    height: 50%;
    object-fit: cover;
}

.categoria {
    font-size: 1.2rem;
    text-align: center;
    background-color: #ffffff;
    margin-top: 1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.categoria h4 {
    margin: 1rem;
}

.categoria:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    cursor: pointer;
}

.categoria-link {
    border-radius: 1rem;
    text-decoration: none;
    color: inherit;
    display: block;
}

#productos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    /* Espacio entre productos */
    justify-content: center;
}

@media (max-width: 1024px) {
    #productos {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
}

@media (max-width: 600px) {
    #productos {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }
}

.producto {
    border: 1px solid #ddd;
    padding: 15px;
    text-align: center;
    font-size: 14px;
    border-radius: 10px;
    background: #f9f9f9;
}

.producto img {
    width: 85%;
    /* Ajusta la imagen al contenedor */
    max-height: 250px;
    /* Opcional: controla la altura */
}

#barra-busqueda {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    width: 65%;
    max-width: 400px;
    margin: 0 auto;
    padding: 10px 5px 0px 5px;
}

#buscador-global {
    width: 100%;
    padding: 10px 40px 10px 15px;
    border: 2px solid #ccc;
    border-radius: 25px;
    font-size: 16px;
    outline: none;
    transition: 0.3s;
}

.boton {
    background-color: #1da851;
    border: none;
    border-radius: 5px;
    color: #ffffff;
    font-size: 15px;
    padding: 10px;
    cursor: pointer;
}

/*whistlist*/


table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    padding: 10px;
    text-align: left;
    vertical-align: middle;
    border-bottom: 1px solid #ddd;
}

th {
    background-color: #f5f5f5;
}

img {
    width: 60px;
    height: auto;
}

input[type="number"] {
    width: 50px;
    padding: 5px;
}

.eliminar {
    color: red;
    cursor: pointer;
    font-weight: bold;
}

#solicitar-btn {
    margin-top: 30px;
    padding: 10px 20px;
    background: green;
    color: white;
    border: none;
    cursor: pointer;
}

.notificacion-exito {
    display: none;
    position: fixed;
    background-color: #4CAF50;
    color: white;
    padding: 12px 20px;
    border-radius: 30px;
    font-size: 20px;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* Estilo general en escritorio */
.notificacion-exito.mostrar {
    display: block;
    top: 20px;
    right: 20px;
    opacity: 1;
}

/* Estilo móvil: centrado abajo y solo palomita */
@media (max-width: 768px) {
    .notificacion-exito {
        top: auto !important;
        bottom: 8rem !important;
        right: 50% !important;
        transform: translateX(50%) !important;
        font-size: 28px;
        padding: 12px 16px;
    }

    .notificacion-exito::before {
        content: "✔";
    }

    .notificacion-exito.mostrar {
        display: block;
        opacity: 1;
    }
}



/* fin withlist*/





@media (max-width: 480px) {
    #buscador-global {
        width: 90%;
        font-size: 10px;
    }

    #boton-buscar-global {
        width: 30px;
        /* Reducir tamaño del botón */
        height: 25px;
        font-size: 12px;
        /* Ajustar el tamaño del ícono */
        border-radius: 10px;
        padding: 1px;
    }


}


.paginacion {
    text-align: center;
    margin-top: 20px;
}

.paginacion button {
    padding: 8px 16px;
    margin: 5px;
    background-color: #2196F3;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
}

.paginacion button:hover {
    background-color: #0b7dda;
}


/*carrusel*/
.carrusel {
    position: relative;
    width: 100%;
    max-width: 600px;
    margin: 20px auto;
    overflow: hidden;
}

.carrusel-item {
    display: none;
    text-align: center;
}

.carrusel-item img {
    width: 100%;
    max-height: 350px;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
}

.carrusel-item.active {
    display: block;
}

/* Botones flechas */
.carrusel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    font-size: 20px;
    padding: 8px 12px;
    cursor: pointer;
    border-radius: 50%;
}

.carrusel-btn.prev {
    left: 8px;
}

.carrusel-btn.next {
    right: 8px;
}

.carrusel-btn:hover {
    background: rgba(0, 0, 0, 0.8);
}

/*carruselfin*/





.container {
    background-color: rgb(255, 255, 255);
    max-width: 80rem;
    margin: 0 auto;
    margin-top: 3rem;
    text-align: center;
    padding: 1.5rem;
}

.btn-whatsapp {
    display: inline-block;
    background-color: #25d366;
    color: white;
    padding: 15px 25px;
    text-decoration: none;
    font-size: 20px;
    border-radius: 10px;
    font-weight: bold;
    transition: 0.3s;
}

.btn-whatsapp:hover {
    background-color: #1da851;
}

.promociones {
    background: #ffbd33;
    padding: 20px;
    border-radius: 10px;
    margin-top: 20px;
    font-weight: bold;
}

.mapa iframe {
    width: 80%;
    height: 400px;
    border: 0;
}

.fondo {
    background-image: url("/img/vectores-papeleria_Mesa\ de\ trabajo\ 1.svg");
    background-repeat: no-repeat;
    background-size: cover;
    min-height: 170px;
    position: relative;
}

@media (max-width: 480px) {
    .fondo {
        border-image: url("/img/logopape-09.png");
    }

}

.contenido-fondo {
    position: absolute;
    background-color: rgba(0, 0, 0, .4);
    width: 100%;
    height: 100%;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.contenido-fondo h2 {
    color: #ffffff;
    font-size: 1.7rem;
    margin: 0;
    padding: 0px 0px 15px 0px;
}

.copyriht {
    text-align: center;
    color: #ffffff;
    font-size: 1rem;
    padding: 10px;
    background-color: #006400;
    margin: auto;
}