@import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@300..700&display=swap');

*{
    font-family: "Quicksand", sans-serif;    
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    --background-color-1: #4CAF50;
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background: #6CFF5E;
background: linear-gradient(90deg, rgba(108, 255, 94, 1) 0%, rgba(255, 255, 255, 1) 30%, rgba(255, 255, 255, 1) 70%, rgba(108, 255, 94, 1) 100%);
    color: #333;
    height: 100%;
    width: 100%;
}

::selection{
    background-color: #006b07;
    color: white;
    text-shadow: 0 0 10px white
}

/*SECCION DEL MENU*/
input{
    padding: 5px 10px;
    border-radius: 15px;
    width: 200px;
    border: 2px solid white;
    box-shadow: 0 0 6px rgb(145, 255, 145);
    text-shadow: 0 0 10px rgb(255, 255, 255);
    background-color: var(--background-color-1);
    color: white;
    text-align: center;
    transition: .3s;
}
::placeholder{
    color: white ;
}
input:focus{
    box-shadow: 0 0 5px rgb(255, 255, 255),
                0 0 6px rgb(255, 255, 255);
    outline: none;
    width: 230px;
}

/*menu*/
header {
    background: var(--background-color-1);
    color: rgb(255, 255, 255);
    padding: 0.45 rem 2 rem 0.45rem 1.5rem;
    text-align: center;
    position:fixed;
    width: 100%;
    z-index: 1000;
}
.cabezita {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background: #64e469;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
}
.buscar {
    display: flex;
    align-items: center;
    gap: 5px;
}

.Busqueda2{
    display: none;
    margin-top: 10px;
}

.Busqueda {
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 20px;
    outline: none;
    width: 200px;
    transition: width 0.3s;
}
.buscar-btn {
    background: none;
    border: none;
    cursor: pointer;
}
.buscar-btn img {
    width: 20px;
    height: 20px;
}
#resultado{
    display: none;
}
.personal {
    display: flex;
    align-items: center;
    gap: 15px;
}
.personal2{
    display: flex;
    align-items: center;
    gap: 15px;
    display: none;
}
.carrito img, .usuarioImg {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    transition: transform 0.2s;
}
.carrito img:hover, .usuarioImg:hover {
    transform: scale(1.1);
}
.marca{
    height: 50px;
    transition: .2s;
}

.Busqueda::placeholder{
    background-image: url(./imagenes--/search.png);
    background-size: 15px 15px;
    background-repeat: no-repeat;
    background-position: left center;
}
#instagramL{
    color: rgb(228, 222, 222);
    text-decoration: none;
}

.enlaseLogo{
    height: 50px;
}
.enlaseLogo2{
    height: 50px;
    position:relative;
    top: 15px; /* baja el ícono manualmente */
    transition: .2s;
}
.marca:hover{
    transform: scale(1.04);
    filter: drop-shadow(0px 0px 5px rgb(255, 255, 255));
}
.enlaseLogo2:hover{
    transform: scale(1.4);
}
.personal{
    margin: 0px 0px;
    display:flex;
    align-content: center;
    justify-content:space-between;
}
.Usuario{
    margin: 8px 20px;
    width: 30px;
    height: 30px;
    border-radius: 100%;
    background-color: #012e04;
    transition: 0.3s
}
.user-menu {
    position: absolute;
    right: 20px;
    top: 70px;
    background: white;
    border: 1px solid #ccc;
    padding: 10px 12px;
    border-radius: 20px;
    display: none;
    flex-direction: column;
}
.user-menu a {
    text-decoration: none;
    color: black;
    padding: 5px 0;
    border-radius: 20px;
    transition: .2s;
}
.user-menu a:hover{
    background-color: #71dd755b;
    transform: scale(1.1);
}

.usuarioImg{
    width: 30px;
    height: 30px;
    border-radius: 100%;
    background-color: #012e04;
    transition: 0.3s;
    object-fit: cover;
    filter: blur(1px);
}
.Usuario,.usuarioImg:hover{
    transform: scale(1.4);
    cursor: pointer;
    filter: blur(0px);
    background-color: #012e0400;

}
.carrito {
    transition: transform 0.3s ease-in-out;
    cursor: pointer;
}
.carrito:hover {
    transform: rotate(360deg);
}

#toggle-form{
    cursor: pointer;
}
.googleLogin{
    cursor: pointer;
}

.menu-toggle {
    display: none;
    background: #28a745;
    color: white;
    padding: 0px;
    text-align: center;
    cursor: pointer;
}

nav ul {
    list-style: none;
    padding: 0;
}

nav ul li {
    display: inline;
    margin: 0 15px;
}

nav ul li a {
    display: inline-block;
    padding: 10px 16px;
    color: rgb(255, 255, 255);
    text-decoration: none;
    font-weight: bold;
    transition: .25s;
    border-radius: 22px;
    margin-top: 16px;
}

nav ul li a:hover {
    background-color: #1e5e21;
    transform: scale(1.2) translate(0%, -20%);
}



/*Contenido   variable   de   la   pagina   web*/

#titulos{
    background-image: url("https://static.vecteezy.com/system/resources/previews/010/290/635/non_2x/green-watercolor-brush-stroke-free-png.png");
}

.imgTienda{
    width: 300px;
    margin: 10px 30px;
}

#productos, #productosNuevos, #productosNuevosseccion {
    text-align: center;
    padding: 2rem 1rem;
}

#productos h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

#filtro {
font-weight:bolder;
padding: 10px 15px;
font-size: 16px;
border-radius: 8px;
border: 2px solid #ccc;
background-color: #f9f9f9;
color: #333;
cursor: pointer;
outline: none;
transition: 0.3s ease;
box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Hover */
#filtro:hover {
border-color: var(--background-color-1);   /* moradito */
background-color: #ffffff;
}

/* Cuando está enfocado (seleccionado) */
#filtro:focus {
border-color: var(--background-color-1);
box-shadow: 0 0 8px rgba(0, 134, 18, 0.5);
}

#filtro option {
  background-color: #f1f8f4;  /* fondo verdoso claro */
  color: #2e7d32;             /* texto verde oscuro */
  padding: 10px;
}

/* Hover sobre una opción (solo visible en navegadores que lo permiten) */
#filtro option:hover {
  background-color: #66bb6a;
  color: #fff;
}

/* Opción seleccionada */
#filtro option:checked {
  background-color: #43a047 !important; /* verde más fuerte */
  color: #fff !important;
}

.producto, .Desarrollador {
    display: inline-block;
    background: white;
    border: 1px solid #ddd;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin: 1rem;
    padding: 1rem;
    max-width: 300px;
    transition: 0.2s;
}
.producto-Carrito{
    display: inline-block;
    background: white;
    border: 1px solid #ddd;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 1rem;
    max-width: 300px;
    transition: 0.2s;
    margin: 0 10px;
}

.producto:hover, .producto-Carrito:hover, .borrarElemento:hover {
    transform: translateY(-10px);
    transform: scale(1.1);
}
.gratuito:hover {
    transform: translateY(-10px);
    transform: scale(1.1);
}
.patron-item:hover {
    transform: translateY(-10px);
    transform: scale(1.1);
}

.producto, .Desarrollador h3 {
    margin:  0 5px;
}

.producto, .Desarrollador p {
    font-size: 1.2rem;
    color: #4CAF50;
    font-weight: bold;
}

.producto button {
    background: #4CAF50;
    color: white;
    border: none;
    padding: 0.8rem 1.2rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    transition: 0.3s;
}

.producto button:hover {
    background: #012e04;
    transform: scale(1.1);
}

#carrito{
    margin-top: 20px;
}
#carritoespacioCompleto{
    padding: 200px 1rem;
    text-align: center;
    background: #e8f5e9;
}
#carritoespacio {
    padding: 2rem 1rem;
    text-align: center;
    background: #e8f5e9;
}
#carritoespacio h2, #carritoespacioCompleto h2 {
    font-size: 2rem;
}
#carrito-vacio{
    display: block;
}

.borrarElemento{
    background-color: #012e04;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    cursor: pointer;
    position:relative;
    bottom: 75px;
    right: 25px; 
    transition: .2s;
}

.totalTotal{
    margin: 10px;
    font-weight: bold;
    font-size: 150%;
}
.totalTotal2{
    margin: 10px;
    font-weight: bold;
    font-size: 110%;
}
footer {
    text-align: center;
    padding: 1rem;
    background: #4CAF50;
    color: white;
}

.imgProducto{
    height: 250px;
    width: 250px;
    object-fit: cover;
    border-radius: 10px;
}

section{
    margin: 0px 50px;
}


/* conjuntos de ventas */

.patron-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    padding: 20px;
}

.patron-item {
    border: 2px solid #ccc;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    transition: 0.2s;
    background-color: #c1fca9;
}

.patron-item img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    margin-bottom: 10px;
    height: 150px;
    width: 150px;
    object-fit: cover;
}


.patron-info {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 10px;
}

.rating, .calificacion {
    color: #f90; /* Color naranja para la calificación */
    margin-right: 5px;
}

.precio {
    font-weight: bold;
    color: #007bff; /* Color azul para el precio */
    margin-bottom: 10px;
}

.agregar-carrito {
    background-color: #007bff;
    color: white;
    padding: 8px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.gratuito {
    border: 2px dashed #ccc;
}

.gratis {
    color: green;
    font-weight: bold;
    margin-bottom: 10px;
}

.descargar {
    background-color: #28a745; /* Color verde para descargar */
    color: white;
    padding: 8px 15px;
    border-radius: 4px;
    text-decoration: none;
}

#materiales-venta {
    text-align: center;
    padding: 2rem 1rem;
}

#materiales-venta h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.materiales-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    padding: 20px;
}

.material-item {
    border: 2px solid #ccc;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    transition: 0.2s;
    background-color: #c1fca9;
}
.material-item:hover {
    transform: translateY(-15px);
    transform: scale(1.1);
}

.material-item img {
    max-width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 10px;
}

.material-info {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 10px;
}

.precio {
    font-weight: bold;
    color: #4CAF50;
    margin-bottom: 10px;
    font-size: 1.2rem;

}

.agregar-carrito {
    background-color: var(--background-color-1);
    color: white;
    padding: 8px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

#tiendas-fisicas {
    text-align: center;
    padding: 2rem 1rem;
    background-color: #e8f5e9;
    border-bottom: 2px dashed #c0ccc1;
}

.tiendas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    padding: 20px;
}

.tienda-item {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    text-align: left;
    background-color: white;
}



/*Comunidad seccion*/

#comunidad {
    padding: 20px;
}

.comunidad-tabs {
    display: flex;
    margin-bottom: 20px;
}

.tab-button {
    padding: 10px 20px;
    border: 1px solid #ddd;
    background-color: #f9f9f9;
    cursor: pointer;
}

.tab-button.active {
    background-color: #007bff;
    color: white;
}

.tab-content {
    border: 1px solid #ddd;
    padding: 20px;
}

.foro-tema {
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 10px;
}

.galeria-item {
    display: inline-block;
    margin-right: 10px;
}

.galeria-item img {
    max-width: 200px;
}

.reseña-item {
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 10px;
}


.subir-proyecto{
    margin: 15px 0;
    padding: 10px 8px;
    border: 0;
    border-radius: 13px;
    background-color: var(--background-color-1);
    color: white;
    font-weight: bold;
}

.DocView{
    display: flex;
    justify-content: center;
    align-items: center;
}
.pdf-container {
    width: 80%; 
    max-width: 900px; 
    height: 600px; 
    border: 1px solid #ccc;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    background-color: #fff;
    overflow: hidden; 
    border-radius: 8px; 

}

.pdf-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

@media (max-width: 750px) {
    header {
        flex-direction: column;
        align-items: center;
    }
    .menu-toggle {
        display: block;
    }
    nav ul {
        flex-direction: column;
        align-items: center;
        display: none;
        
    }
    nav ul.active {
        display: flex;
    }
    .cabezita {
        flex-direction: column;
        gap: 10px;
    }
    .Busqueda {
        display: none;
        width: 100%;
    }
    .personal{
        display: none;
    }
    .Busqueda2{
        display: block;
    }
    .personal2{
        display: block;
    }
    .marca{
        height: 60px;
        order: 1;
    }
    .imgProducto{
        height: 200px;
        width: 200px;
        object-fit: cover;
        border-radius: 10px;
    }
    section{
        margin: 0px 5%;
    }
    .imgTienda{
        width: 100%;
        margin: 0px 0px;
    }
    .tienda-item {
        border: 1px solid #ddd;
        border-radius: 8px;
        padding: 15px;
        text-align: left;
        background-color: white;
        width: 100%;
    }
    .tiendas-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 20px;
        padding: 20px 0;
        margin: 0;

    }
    .materiales-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
        padding: 0px;
    }
    .pdf-container {
        height: 350px;
        width: 99%;  
    }
    .user-menu {
        position: absolute;
        right: 0px;
        bottom: -400px;
        background: white;
        border: 1px solid #ccc;
        padding: 10px 12px;
        border-radius: 20px;
        display: none;
        flex-direction: column;
    }

}
