/* 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;
}

/* Enlaces de texto (dentro de párrafos), con los colores de la marca en vez del azul por defecto */
.enlace-marca {
    color: #e14b7b;
    font-weight: 600;
    text-decoration: none;
}

.enlace-marca:hover {
    color: #8d2146;
    text-decoration: underline;
}

/* Botón "volver", consistente con el resto del sitio */
.btn-volver {
    display: inline-block;
    margin-top: 1.5rem;
    padding: 8px 22px;
    color: #8d2146;
    border: 1.5px solid #8d2146;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95em;
    transition: background-color 0.25s, color 0.25s;
}

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

/* Etiquetas de categoría/material en la ficha de producto */
.etiqueta-categoria,
.etiqueta-material {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.8em;
    font-weight: 600;
    margin: 0 6px 6px 0;
}

.etiqueta-categoria {
    background-color: #8d2146;
    color: #fff;
}

.etiqueta-material {
    background-color: #fdf0f4;
    color: #8d2146;
    border: 1px solid #f3c9d6;
}

/* Reseñas */
.resena-tarjeta {
    background-color: #fdfbfb;
    border: 1px solid #f0e4e8;
    border-radius: 10px;
    padding: 16px 20px;
    margin-bottom: 16px;
    text-align: left;
}

.resena-autor {
    color: #8d2146;
    font-weight: 600;
}

.resena-fecha {
    color: #999;
    font-size: 0.85em;
}

.resena-estrellas {
    color: #e14b7b;
    letter-spacing: 2px;
}

.resena-comentario {
    color: #555;
    line-height: 1.5;
    padding-left: 12px;
    border-left: 3px solid #f3c9d6;
}

/* Galería de miniaturas en la ficha de producto */
.galeria-miniaturas img {
    border-radius: 8px;
    border: 1px solid #eee;
    transition: transform 0.25s, box-shadow 0.25s;
}

.galeria-miniaturas img:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Formulario para dejar/editar una reseña */
.resena-formulario {
    background-color: #fff;
    border: 1px solid #f0e4e8;
    border-radius: 10px;
    padding: 24px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.resena-formulario textarea.form-control {
    border-radius: 8px;
    border: 1px solid #e8d5dc;
    resize: vertical;
}

.resena-formulario textarea.form-control:focus {
    border-color: #e14b7b;
    box-shadow: 0 0 0 0.2rem rgba(225, 75, 123, 0.15);
}

.resena-formulario .btn-primary {
    padding: 10px 28px;
    border-radius: 30px;
}

/* Menú hamburguesa (solo se activa en pantallas angostas) */
.menu-toggle-checkbox {
    display: none;
}

.menu-toggle-label {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 26px;
    height: 18px;
    cursor: pointer;
}

.menu-toggle-label span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: #8d2146;
    border-radius: 2px;
}

/* ==================== Responsivo (móvil) ==================== */
@media (max-width: 768px) {
    .contenedor-header {
        position: relative;
        flex-wrap: wrap;
    }

    .menu-toggle-label {
        display: flex;
    }

    nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: #fff;
        box-shadow: 0 6px 12px rgba(0, 0, 0, 0.08);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        border-radius: 0 0 8px 8px;
        z-index: 20;
    }

    .menu-toggle-checkbox:checked ~ nav {
        max-height: 320px;
    }

    nav ul {
        flex-direction: column;
        gap: 0;
        padding: 8px 20px 16px;
    }

    nav ul li a {
        display: block;
        padding: 12px 4px;
        border-bottom: 1px solid #f5e6ec;
    }

    .container {
        width: 92%;
        padding: 15px;
    }

    .bienvenida {
        padding: 40px 15px;
    }

    .bienvenida h1 {
        font-size: 1.8em;
    }

    .bienvenida p {
        font-size: 1em;
    }

    .productos-destacados h2 {
        font-size: 1.5em;
    }

    .lista-productos {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
    }

    .producto {
        padding: 12px;
    }

    .producto img {
        height: 150px;
    }

    .resena-formulario {
        padding: 18px;
    }
}