/* ================================================
   ESTILOS PRINCIPALES - LA MICHOACANA
   Orden: Reset → Base → Header → Hero → Secciones
           → Cards → Destacados → Ubicación → Footer → Responsive
   ================================================ */


/* ── 1. RESET ────────────────────────────────── */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


/* ── 2. BASE ─────────────────────────────────── */
body {
    font-family: 'Poppins', sans-serif;
    background: #fff; /* CORRECCIÓN #1: faltaba el # */
    color: #333;
}

.wrapper {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}


/* ── 3. HEADER ───────────────────────────────── */
.header {
    /* CORRECCIÓN #2: faltaba todo el bloque .header */
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header .wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo-lg {
    height: 60px;
}


/* ── 4. NAV ──────────────────────────────────── */
nav {
    display: flex;
    align-items: center;
    gap: 10px;
}

.menu-sabores {
    position: relative;
}

.menu-sabores a {
    text-decoration: none;
    color: #444;
    font-weight: 500;
    padding: 10px 14px;
    border-radius: 10px;
    transition: all 0.3s ease;
    display: inline-block;
}

/* CORRECCIÓN #3: faltaba el bloque hover completo */
.menu-sabores a:hover {
    background: #ff4d6d;
    color: #fff;
    transform: translateY(-2px);
}

/* Línea animada debajo */
.menu-sabores a::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -5px;
    width: 0%;
    height: 2px;
    background: #ff4d6d;
    transition: 0.3s;
    transform: translateX(-50%);
}

.menu-sabores a:hover::after {
    width: 70%;
}

/* Botón Login destacado */
.menu-sabores:last-child a {
    background: #ff4d6d;
    color: #fff;
    font-weight: 600;
}

.menu-sabores:last-child a:hover {
    background: #c9184a;
}

/* Página activa */
.menu-sabores a.activo {
    background: #ff4d6d;
    color: #fff;
    font-weight: 600;
}

.menu-sabores a.activo:hover {
    background: #c9184a;
}


/* ── 5. HERO ─────────────────────────────────── */
.hero-fondo {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
                url('fondo.jpeg');
    background-size: cover;
    background-position: center;
    padding: 100px 0;
    color: white;
    text-shadow: 2px 2px 5px rgb(0, 0, 0);
}

.hero-texto-contenedor h2 {
    font-size: 2.5rem;
    font-weight: 700;
}

.hero-texto-contenedor span {
    font-size: 1.2rem;
    font-weight: 300;
}


/* ── 6. SECCIONES GENERALES ──────────────────── */
.sabores {
    padding: 60px 0;
    text-align: center;
    color: rgb(253, 103, 16);
}

.sabores h2 {
    font-size: 2rem;
    margin-bottom: 30px;
}

.presentacion {
    padding: 60px 0;
    background: #fff;
}


/* ── 7. GRID ─────────────────────────────────── */
.grid-tres {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}


/* ── 8. CARDS ────────────────────────────────── */
.card {
    background: #fff;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card img {
    width: 100%;
    height: auto;
    max-height: 200px;
    object-fit: contain;
    border-radius: 12px;
    margin: 15px 0;
}

.card a {
    margin-top: auto;
    display: inline-block;
    padding: 10px 15px;
    border-radius: 8px;
    background: #ff4d6d;
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    transition: 0.3s;
}

.card a:hover {
    background: #c9184a;
}


/* ── 9. SECCIÓN DESTACADOS (Más vendidos) ────── */
.destacados {
    background: linear-gradient(135deg, #fff 60%, #ffe5ec);
    padding: 70px 0;
}

.destacados h2 {
    font-size: 2.3rem;
    margin-bottom: 40px;
    text-align: center;
}

/* CORRECCIÓN #4 y #5: propiedades de imagen removidas, position:relative agregado para badge */
.destacados .card {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    transition: 0.3s;
}

.destacados .card:hover {
    transform: scale(1.05);
}

.destacados .card img {
    height: 500px;
    object-fit: cover;
}

.destacados .card h3 {
    margin-top: 10px;
    font-size: 1.2rem;
}

.destacados .card p {
    font-size: 0.95rem;
    color: #666;
}

/* Badge / etiqueta */
.badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #ff4d6d;
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}


/* ── 10. SECCIÓN UBICACIÓN ───────────────────── */
.ubicacion-flex {
    display: flex;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}

.ubicacion-img {
    flex: 1;
}

.ubicacion-img img {
    width: 100%;
    max-width: 500px;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.ubicacion-texto {
    flex: 1;
    font-size: 1.2rem;
    line-height: 1.6;
}

.ubicacion-texto p {
    margin-bottom: 15px;
    font-size: larger;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #000;
}

.direccion {
    margin-top: 20px;
    font-size: 1.3rem;
    font-weight: 600;
    color: #e91e63;
}


/* ── 11. FOOTER ──────────────────────────────── */
footer {
    background: #fff;
    padding: 20px 0;
    text-align: center;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    font-size: 0.9rem;
    color: #777;
}


/* ── 12. RESPONSIVE ──────────────────────────── */
@media (max-width: 768px) {

    .logo-lg {
        height: 45px;
    }

    .header .wrapper {
        flex-direction: column;
        gap: 10px;
        padding: 10px 0;
    }

    nav {
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero-texto-contenedor h2 {
        font-size: 1.8rem;
    }

    .ubicacion-flex {
        flex-direction: column;
    }

    .destacados .card img {
        height: 250px;
    }
}