        html{
            background: #ededee;
        }
        body{
            display: grid;
            min-height: 100vh; /*altura mínima igual a la vista */
            margin: 0;
            font-family: 'Open Sans', sans-serif;
            line-height: 1.6; /* Mejor legibilidad en textos largos */
        }
          .grid-container{
            display: grid;
            grid-template: 
              "header header"
              "XXX YYY" auto
              "footer footer" 100px / 170px 1fr;
          }
            .XXX{
            grid-area: XXX;
            padding: 10px;
            background: #ededee;
            width: 150px;
            }
            .YYY{
            grid-area: YYY;
            padding: 20px;
            margin: 20px;
            background: #FFFFFF;
            border-radius: 10px;
            }
            .YYYe{
            position:absolute;
            width: calc(100% - 40px);
            height: 60%;
            top: 50%; left: 50%;
            transform: translate(-50%, -50%);
            background: #FFFFFF;
            border-radius: 10px;
            align-content: center;
            }
            .header{
            /* position: relative; */
            display: grid;
            align-items: center;
            grid-area: header;
            height: 60px;
            background: #ffe610;
            gap: 2%;
            grid-template-columns:200px 1fr 20px 20px 1px;
            }
            .search-container {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            padding: 15px;
            z-index: 1002;
            }
            .footer{
            display: flex; /* Habilitar Flexbox para los elementos internos */
            flex-wrap: wrap; /* Permitir que los elementos se envuelvan en pantallas pequeñas */
            font-size: 14px;
            color:#666;
            justify-content: center;
            align-items: center;
            text-align: center;
            padding-top: 30px;
            grid-area: footer;
            /* background-color: rgb(255, 255, 255); */
            margin-top:auto ;  
            }
                /* Menú en la esquina inferior derecha del header */
        .copyright {
        width: 100%; /* Ocupa todo el ancho disponible para ir a una nueva línea */
        margin-top: 5px; /* Espacio superior para separarlo de los enlaces */
        font-size: 0.85em; /* Tamaño de fuente más pequeño */
        color: #888;}
        .menu {
            align-items: center;
            position: absolute;
            bottom: 5px; /* distancia desde abajo del header */
            right: 10px; /* distancia desde la derecha del header */
            display: flex;
            gap: 10px; /* espacio entre los elementos del menú */
        }
  h1, h2 {
    font-family: 'Rajdhani', sans-serif;
    text-align: center;
  }
 .centrar{
    display: flex;
    justify-content: center;
    font-weight: bold;
    font-size: 15px;
    background:#3483FA;
    color:#ffffff;
    padding-top:12px;
    padding-bottom:12px;
    border-radius: 5px;
    border: none;
    width: 100%;
    cursor: pointer;
    }
.centrar2{
    position: absolute;
    justify-content: center;
    font-weight: bold;
    font-size: 15px;
    background:#3483FA;
    color:#ffffff;
    padding-top:12px;
    padding-bottom:12px;
    border-radius: 5px;
    border: none;
    left: 50%;
    bottom: 0px;
    width: 80%;
    cursor: pointer;
    transform: translate(-50%, -50%);
    }
    .aright{
        display: grid;
        justify-items: end; /* Alinea el contenido a la derecha */
        width: 100%;
    }
    .lsvg{
        display: grid;
        place-items: center;
        width: 150px;
        margin: 0 auto;
    }
    .isvg{
        display: grid;
        place-items: center;
        width: 23px;
        height: 23px;
    }
        .isvg:hover{cursor: pointer;}
        .icvg:hover{cursor: pointer;}
    .icsvg{
        position: relative;
        display: grid;
        place-items: center;
        width: 23px;
        height: 23px;
    }
    /* .icsvg::after {
        content: "999"; /Número dinámico con JavaScript
        position: absolute;
        top: -15px;
        right: -5px;    /Mismos estilos que en la solución 1
    } */

    .productos {
        margin: 20px 0;
        font-size: 18px;
        display: grid;
        gap: 15px;
        grid-template-columns: repeat(auto-fill, minmax(225px, 1fr));
        }
.producto {
    cursor:pointer;
    position: relative;
    place-items: center;
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 10px;
    transition: transform 0.2s;
}
.producto:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.container {
  display: flex;
  align-items: center; /* Alinea verticalmente si quieres */
  justify-content: space-between; /* Opcional, para separar los elementos */
}
.icono {
  margin-left: 10px; /* Espacio entre el texto y la imagen, ajusta según necesites */
  height: 40px; /* Ajusta tamaño si quieres */
}
.producto img {
  display: block;
  max-width: 85%;
  height: auto;
  margin: 0 auto;
}
ul{
    font-family: 'Courier New', Courier, monospace;
    text-align: right;
    list-style: none;
    padding-right: 10px;

}
.pre_pro{
    position: absolute;
    right: 15px;
    top: 15px;
    font-size: 18px;
    font-weight: bold;
    border-radius: 20px;
    background-color: #fafafa;
    border: 1px solid #000000;
    padding: 10px;
}
.visible{
    visibility: visible;
}
.oculto{
    visibility: hidden;
}
.listaproductos{
    border-radius: 4px;
    font-size: 12px;
    position: absolute;
    top: 50px;
    right: 40px;
    width: 400px;
    bottom: 10px;
    max-height: 300px;
    background-color: #000000;
    color: #FFFFFF;
}
.trun2{
    display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 10px;
  line-height: 1.4;       /* Altura de línea consistente */
  max-height: 2.2em;
}
.trun{
    
    width: 100%;
    padding-bottom: 10px;
    /* white-space: nowrap; Evita que el texto se divida en varias líneas */
    overflow: hidden; /* Oculta el desbordamiento del texto */
    text-overflow: ellipsis; /* Muestra puntos suspensivos cuando el texto es demasiado largo */
}
.CY{
    display: flex;
    justify-content: center;
    align-items: center;
}
.ma-container {
    border: 1px solid #ccc;
    padding: 50px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.Isesion {
    display: block;
    margin-bottom: 10px;
}
  input[type=number] {
    width: 50px;
    padding: 5px;
  }
        input[type=text].nav-search-input {
        font-size: 14px;
        margin: 0;
        border-radius: 2px;
        background-color: #ffffff;
        box-shadow: 0 1px 2px 0 gray;
        height: 25px;
        width: 90%;
        max-width: 500px;
        border-style: solid;
        border-color:#7f8c8d;
        border-width: 1.5px;
    }



a.negrita:hover {    font-size: 14px;    font-weight: bold;}
a.estil {font-size: 14px;text-decoration: none;background:#EEEDEC;color:#000000;padding:8px;}
a.estil:hover {font-size: 14px;background:#000000;color:#ffffff;padding:10px;border-radius: 10px;cursor: pointer;}

.footert {font-size: 15px;text-decoration: none;color:#000000;padding:5px; white-space: nowrap;}
a.footert:hover {font-size: 16px;cursor: pointer;font-weight: bold;}


/* #region Animacion */

@keyframes floatToCart {
    0% {
        transform: translate(0, 0);
        opacity: 1;
    }
    100% {
        transform: translate(0, -100px);
        opacity: 0;
    }
}

.floating-image {
    position: absolute;
    width: 80px;
    height: 80px;
    background-size: contain;
    background-repeat: no-repeat;
    animation: floatToCart 1s ease-out forwards;
    pointer-events: none;
}
/* #endregion */


        .container {
            max-width: 1200px;
            margin: 0 auto;
            background: #f9f9f9;
            padding: 20px;
            border-radius: 8px;
            box-shadow: 0 0 10px rgba(0,0,0,0.1);
        }
        .header h1 {
            color: #2c3e50;
            margin-bottom: 10px;
        }
        .content {
            display: flex;
            flex-direction: column;
            padding: 20px;
            gap: 20px;

        }
        .d-row {
            display: flex;
            align-items: stretch; /* ← Esto hace que los hijos tengan la misma altura */
        }
        .d-item {
            flex: 1;  /* Ocupa espacio disponible */
            box-sizing: border-box;
            display: flex; /* ¡Nuevo! Contenedor flex para la imagen */
        }
        .full-width {
            flex: 0 0 100%;

        }
        .image-container {
            background: #fff;
            padding: 20px;
            border-radius: 5px;
            box-shadow: 0 0 5px rgba(0,0,0,0.05);
            text-align: center;
        }
        .image-container img {
            width: 100%;
            height: auto;

            border-radius: 3px;
        }
        .details-box {
            background: #fff;
            padding: 20px;
            border-radius: 5px;
            box-shadow: 0 0 5px rgba(0,0,0,0.05);
        }
        .price {
            font-size: 1.8em;
            color: #e74c3c;
            font-weight: bold;
            margin: 20px 0;
            text-align: center;
        }
        .specs {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
            gap: 15px;
            margin-top: 20px;
        }
        .spec-item {
            font-family: 'Rajdhani', sans-serif;
            background: #f0f0f0;
            padding: 10px;
            border-radius: 5px;
        }
        .spec-label {
            font-weight: bold;
            color: #2c3e50;
            font-size: 0.9em;
        }
        .spec-value {
            margin-top: 5px;
        }
        .description {
            margin-top: 20px;
        }
        .applies-to {
            margin-top: 20px;
            padding: 15px;
            background: #e8f4fc;
            border-radius: 5px;
        }
        .applies-to h3 {
            margin-top: 0;
            color: #2980b9;
        }

    .menu-toggle {
        display: none;
    }

    @media (max-width: 799px) {

                .overlay {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0,0,0,0.5);
            z-index: 998;
        }

        .overlay.active {
            display: block;
        }

    #IMu {
            height: 100%;
        z-index: 999;
    visibility: hidden;
    transform: translateX(-100%);
  transition: transform 0.5s ease;
              overflow-y: auto;

  }  
  #IMu.active {
  visibility: visible;
  transform: translateX(0%);
  }

        .XXX {
    /* visibility: hidden; */
    position: absolute;
    z-index: 1000;

    }
    .grid-container {
    grid-template: 
      "header header"
      "YYY YYY" auto  /* Hace que YYY ocupe toda la fila */
      "footer footer" 100px / 100% 0; /* Ajusta las columnas */
    }
    .header{
    display: grid;
    align-items: center;
    grid-area: header;
    height: 60px;
    background: #ffe610;
    gap: 2%;
    grid-template-columns:70px 1fr 20px 20px 1px;
    }
    .aright{
        display: none;
    }
    .menu-toggle {
    display:inline;
    margin: 0 auto;
    background: none;
    border: none;
    color: black;
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
    }
    }

        .tbody {
            /* background-color: #f4f4f4; */
            display: flex;
            justify-content: center;
            align-items: center;
            /* min-height: 100vh; */
            margin: 0;
        }
        .register-container {
            background-color: #fff;
            padding: 30px;
            border-radius: 8px;
            box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
            width: 100%;
            max-width: 800px; /* Aumentado el ancho máximo para las dos columnas */
        }
        .register-container h2 {
            text-align: center;
            margin-bottom: 20px;
            color: #333;
        }
        .form-grid {
            display: grid;
            grid-template-columns: 1fr 1fr; /* Dos columnas de igual ancho */
            gap: 20px 30px; /* Espacio vertical y horizontal entre los elementos */
        }
        .column {
            display: flex;
            flex-direction: column;
        }
        .form-group {
            margin-bottom: 15px; /* Espacio entre los grupos de formulario */
        }
        .form-group label {
            display: block;
            margin-bottom: 5px;
            color: #555;
        }
        .form-group input,
        .form-group textarea {
            width: calc(100% - 20px); /* Ajuste para el padding */
            padding: 10px;
            border: 1px solid #ddd;
            border-radius: 4px;
            box-sizing: border-box; /* Incluye padding y borde en el ancho total */
        }
        .form-group input:focus,
        .form-group textarea:focus {
            border-color: #007bff;
            outline: none;
        }
        .full-width-field,

        .full-width-button {
            grid-column:auto; /* El botón ocupa ambas columnas */
            text-align: center;
            margin-top: 10px;
        }
        .full-width-button button {
            font-family: 'Rajdhani', sans-serif;
            font-size:large;
            width: 100%;
            padding: 10px;
            background-color: #007bff;
            color: #fff;
            border: none;
            border-radius: 4px;
            cursor: pointer;
            transition: background-color 0.3s ease;
        }
        .full-width-button button:hover {
            background-color: #0056b3;
        }
        .error-message {
            color: red;
            font-size: 0.9em;
            margin-top: -10px;
            margin-bottom: 10px;
            display: none; /* Hidden by default */
        }

        /* Media queries para pantallas más pequeñas */
        @media (max-width: 768px) {
            .form-grid {
                grid-template-columns: 1fr; /* Una sola columna en pantallas pequeñas */
            }
        }


/*#region Paginacion*/
.paginacion {
    margin: 20px 0;
    text-align: center;
}
.btn-paginacion, .paginacion span {
    display: inline-block;
    padding: 8px 12px;
    margin: 0 2px;
    border: 1px solid #ddd;
    background: white;
    cursor: pointer;
}
.btn-paginacion:hover {
    background-color: #f5f5f5;
}
.pagina-actual {
    color: rgb(85, 83, 83);
}

/*#endregion*/