/* Estilos Generales */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f7f7f7;
    color: #333;
}

/* Contenedores principales */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* Encabezado (Header) */
header {
    background-color: #fff;
    padding: 15px 0;
    border-bottom: 1px solid #ddd;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.contenedor-header {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    height: 60px;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 25px;
}

nav ul li a {
    text-decoration: none;
    color: #444;
    font-weight: 600;
    font-size: 1em;
    padding: 8px 12px;
    border-radius: 5px;
    transition: background-color 0.3s, color 0.3s;
}

nav ul li a:hover {
    background-color: #ffe0e6;
    color: #8d2146;
}

/* Pie de página (Footer) */
footer {
    background-color: #333;
    color: #f7f7f7;
    text-align: center;
    padding: 20px 0;
    margin-top: 40px;
}

/* Secciones de la página */
section {
    padding: 40px 0;
}

.bienvenida {
    text-align: center;
    background: #fdf0f4;
    padding: 60px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.bienvenida h1 {
    font-size: 2.5em;
    color: #8d2146;
}

.bienvenida p {
    font-size: 1.2em;
    color: #555;
    max-width: 600px;
    margin: 10px auto;
}

/* NUEVOS ESTILOS PARA LA SECCIÓN DE PRODUCTOS DESTACADOS */
.productos-destacados {
    background-color: #fdf0f4; /* Mismo color que la sección de bienvenida */
    padding: 40px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.productos-destacados h2 {
    text-align: center; /* Centra el título */
    color: #8d2146;
    font-size: 2em;
    margin-bottom: 30px;
}

/* Lista de Productos (Catálogo) */
.lista-productos {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
    justify-content: center;
}

.producto {
    background-color: #fff;
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    text-decoration: none;
    color: inherit;
}

.producto:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

.producto img {
    width: 100%;
    /* (CAMBIO) Imagen más grande */
    height: 250px; 
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
    /* (CAMBIO) Transición suave */
    transition: transform 0.3s ease; 
}

/* (CAMBIO) Efecto de zoom en la imagen */
.producto:hover img {
    transform: scale(1.05);
}

.producto h3 {
    font-size: 1.25em;
    margin: 0 0 8px;
    color: #8d2146;
    /* (CAMBIO) Evita que títulos largos rompan el diseño */
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.producto h3 {
    font-size: 1.25em;
    margin: 0 0 8px;
    color: #8d2146;
}

.producto p {
    font-size: 0.9em;
    color: #666;
    margin: 0 0 10px;
}

.producto .precio {
    font-size: 1.2em;
    font-weight: bold;
    color: #e14b7b;
}


.catalogo-con-filtros h1 {
    color: #8d2146;
    text-align: center;
    margin-bottom: 30px;
}

.catalogo-con-filtros h3 {
    color: #444;
    margin-bottom: 15px;
    border-bottom: 2px solid #e14b7b;
    padding-bottom: 5px;
}

.form-select, .form-control {
    width: 100%;
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #ccc;
    font-size: 1em;
}

.btn-primary {
    background-color: #e14b7b;
    border: none;
    padding: 10px 20px;
    color: #fff;
    border-radius: 5px;
    text-decoration: none;
    text-align: center;
    transition: background-color 0.3s;
}

.btn-primary:hover {
    background-color: #8d2146;
}

/* Utilidades (si no usas Bootstrap) */
.my-4 {
    margin-top: 1.5rem !important;
    margin-bottom: 1.5rem !important;
}

.mb-3 {
    margin-bottom: 1rem !important;
}

.text-center {
    text-align: center;
}

.btn {
    display: inline-block;
    padding: .5rem 1rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #212529;
    text-align: center;
    text-decoration: none;
    vertical-align: middle;
    cursor: pointer;
    user-select: none;
    background-color: transparent;
    border: 1px solid transparent;
    border-radius: .25rem;
    transition: color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out;
}

.alert-danger {
    color: #842029;
    background-color: #f8d7da;
    border-color: #f5c2c7;
    padding: 1rem 1rem;
    margin-bottom: 1rem;
    border: 1px solid transparent;
    border-radius: .25rem;
}