/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Estilos generales */
body {
    font-family: 'Rubik', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f7f7f7;
    color: #808080;
}

/* Encabezado */
header.custom-header {
    padding: 40px 20px;
    background-color: #e0f7fa;
    text-align: center;
    margin-bottom: 40px;
    border-bottom: 5px solid #9D4B96; /* Línea inferior en Púrpura Medio Profundo */
    display: flex;
    flex-direction: column;
    align-items: center;
}

header.custom-header h1 {
    font-size: 2.2em; /* Tamaño ajustado */
    margin: 0;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: 700;
    color: #038A4F; /* Verde Esmeralda */
}

header.custom-header p {
    font-size: 1em; /* Tamaño ajustado */
    margin-top: 12px;
    max-width: 800px;
    color: #555;
    line-height: 1.5em;
    text-align: center;
}

/* Barra de categorías */
.menu-categorias {
    background-color: #ffffff;
    border: 3px solid #9D4B96;
    border-radius: 15px;
    padding: 20px;
    margin: 30px 0;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.menu-categorias:hover {
    transform: scale(1.02);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.3);
}

/* Lista de categorías */
.categorias {
    list-style-type: none;
    display: flex;
    padding: 0;
    margin: 0;
    gap: 15px; /* Ajustado para más espacio */
    justify-content: center;
    flex-wrap: wrap;
}

.categorias li {
    flex: 0 0 auto;
}

.categorias a {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px 20px; /* Ajustado para mejor apariencia */
    color: #ffffff;
    background-color: #038A4F;
    text-decoration: none;
    font-weight: bold;
    font-size: 14px; /* Ajustado */
    border-radius: 30px;
    transition: background-color 0.4s ease, transform 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.categorias a:hover {
    background-color: #9D4B96;
}

/* Contenedor principal */
.contenedor {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Estilos del catálogo de productos */
.catalogo-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); /* Mínimo 220px para los productos */
    gap: 20px;
    margin-bottom: 60px;
}

/* Estilo del producto */
.producto {
    width: 250px; /* Ancho fijo */
    height: 400px; /* Alto fijo */
    background-color: #fff;
    border: 2px solid #038A4F;
    border-radius: 10px;
    text-align: center;
    padding: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column; /* Asegura que el contenido esté apilado verticalmente */
    justify-content: space-between; /* Distribuye el espacio uniformemente */
}

.producto:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Imagen del producto */
.producto img {
    width: 100%; /* Ocupa todo el ancho del contenedor */
    height: auto; /* Mantiene la relación de aspecto */
    max-height: 300px; /* Ajusta la altura máxima de la imagen */
    border-bottom: 2px solid #9D4B96;
    margin-bottom: 10px;
    border-radius: 5px;
}

/* Títulos y precios */
.producto h2 {
    font-size: 18px; /* Ajustado para móvil */
    color: #222;
    margin-bottom: 10px;
    font-weight: bold;
}

.producto h2 a {
    color: inherit;
    text-decoration: none;
}

.producto h2 a:hover {
    color: #9D4B96;
}

.producto p {
    color: #555;
    margin-bottom: 12px;
    font-size: 14px; /* Ajustado para móvil */
    line-height: 1.5;
}

/* Precio */
.precio {
    font-size: 16px; /* Ajustado para móvil */
    color: #038A4F;
    margin-bottom: 15px;
    font-weight: bold;
}

/* Botones de acción */
.btn {
    display: inline-block;
    padding: 10px 15px;
    background-color: #9D4B96;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

.btn:hover {
    background-color: #038A4F;
}


