body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    height: 100%;
    background-color: #f0f0f0;
    background: linear-gradient(45deg, rgb(36, 81, 180), rgb(196, 237, 250));
    position: relative;
}

header {
    text-align: center;
    padding: 15px 0;
    color: #fff;
    text-shadow: 0 5px 10px rgba(0, 0, 0, .2);
    font-size: 50px;
    width: 100%;
}

.containerC {
    width: 100%;
    max-width: 1200px;
    min-width: 300px;
    background-color: #fff;
    padding: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    margin: 20px auto;
    min-height: 600px;
    border-radius: 20px;
}

/* Estilos para las letras */
.letters {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    margin-bottom: 20px;
}

.letters span {
    cursor: pointer;
    padding: 5px 10px;
    margin: 5px;
    transition: color 0.3s ease, background-color 0.3s ease, font-weight 0.3s ease;
}

.letters span:hover {
    color: #115dad;
    background-color: transparent;
    font-weight: bold;
}

.letters span.active {
    color: #115dad;
    font-weight: bold;
    background-color: transparent;
    border: none;
}

.catalogue {
    display: none;
}

.catalogue.active {
    display: flex;
    flex-wrap: wrap;
}

.catalogue div {
    flex: 1 1 30%;
    box-sizing: border-box;
    padding: 10px;
    margin: 5px;
    border: 1px solid #ddd;
    text-align: center;
    background-color: rgba(250, 250, 250, 0.9);
    transition: background-color 0.3s ease, transform 0.3s ease;
    border-radius: 10px;
}

.catalogue div:hover {
    background-color: #115dad;
    transform: scale(1.05);
}

.catalogue div a {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    text-decoration: none;
    text-align: center;
}

.catalogue div:hover a {
    color: #ffffff;
}

@media (max-width: 768px) {
    .catalogue div {
        flex: 1 1 100%;
    }
    .letters {
        justify-content: center;
    }
}

/*busqueda*/
.search-bar-container {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
}

.search-bar {
    position: relative;
    width: 50%;
}

#searchInput {
    width: 100%;
    padding: 10px 20px;
    border: 1px solid #ccc;
    border-radius: 25px;
    outline: none;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    font-size: 16px;
    padding-right: 40px;
}

#clearButton {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 20px;
    color: #999;
    display: none;
}

#clearButton:hover {
    color: #333;
}

#searchResults {
    display: none;
    margin-top: 20px;
}

.search-section {
    margin-bottom: 20px;
}

.search-section h2 {
    margin-bottom: 10px;
    color: #115dad;
}

.search-section div {
    flex: 1 1 30%;
    box-sizing: border-box;
    padding: 10px;
    margin: 5px;
    border: 1px solid #ddd;
    text-align: center;
    background-color: rgba(250, 250, 250, 0.9);
    transition: background-color 0.3s ease, transform 0.3s ease;
    border-radius: 10px;
}

.search-section div:hover {
    background-color: #115dad;
    transform: scale(1.05);
}

.search-section div a {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    text-decoration: none;
    text-align: center;
}

.search-section div:hover a {
    color: #ffffff;
}

@media (max-width: 768px) {
    .search-section div {
        flex: 1 1 100%;
    }
    .letters {
        justify-content: center;
    }
}

/*prod*/
.product-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    padding: 20px;
}

.product {
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    margin: 10px;
    padding: 20px;
    max-width: 200px;
    text-align: center;
    transition: transform 0.2s ease;
}

.product:hover {
    transform: scale(1.05);
}

.product img {
    max-width: 100%;
    border-radius: 10px;
}

.product h3 {
    font-size: 1.2em;
    margin: 10px 0;
}

.product p {
    font-size: 0.9em;
    color: #666;
}

/* Estilos para la vista de información del producto */
#productInfoContainer {
    display: none;
    text-align: center;
}

#backButton {
    margin-bottom: 20px;
    padding: 10px 20px;
    background-color: #115dad;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#backButton:hover {
    background-color: #0a3d78;
}

