/* ================================================
   ESTILOS_PALETAS.CSS — La Michoacana
   Reutilizable para: paletas, aguas, helados, snacks
   Importa también: Estilos_Principales.css (header/footer/wrapper)
   ================================================ */

/* ── FUENTES ─────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&family=Pacifico&display=swap');

/* ── RESET & BASE ─────────────────────────────── */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #fdf0f6;
    color: #333;
    overflow-x: hidden;
}

/* ── WRAPPER ──────────────────────────────────── */
.wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* ================================================
   HEADER & NAV
   (igual en todas las páginas — reutilizable)
   ================================================ */
.header {
    background: #ffffff;
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 2px solid #f9c7df;
}

.header .wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-lg {
    height: 55px;
    width: auto;
    max-width: 200px;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.1));
}

nav {
    display: flex;
    align-items: center;
    gap: 6px;
}

.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;
}

.menu-sabores a:hover {
    background: #ff4d6d;
    color: #fff;
    transform: translateY(-2px);
}
/* Link de página activa */
.menu-sabores a.activo {
    background: #ff4d6d;
    color: #fff;
    font-weight: 600;
}

.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%;
}

.submenu li a {
    border-radius: 0;
    display: block;
    padding: 8px 16px;
    font-size: 0.85rem;
}

.menu-sabores:hover .submenu {
    display: block;
}

/* ================================================
   SECCIÓN HERO DE CATEGORÍA
   Cambiar .sabores h2 por el nombre de la categoría
   ================================================ */
.sabores {
    padding: 60px 0 40px;
    text-align: center;
}

/* Título principal de la sección — decorativo con Pacifico */
.sabores h2 {
    font-family: 'Pacifico', cursive;
    font-size: 2.8rem;
    color: #d4005c;
    margin-bottom: 12px;
    letter-spacing: 1px;
    text-shadow: 2px 3px 0px #f9c7df;
}

/* Subtítulo / descripción */
.sabores > .wrapper > p {
    font-size: 1.5rem;
    color: #a0607a;
    margin-bottom: 40px;
    font-weight: 400;
}

/* ================================================
   GRID DE PRODUCTOS
   Reutilizable: cambia solo las imágenes y textos
   ================================================ */
.grid-tres {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    justify-content: center;
}

/* ================================================
   CARD DE PRODUCTO
   Circular con fondo blanco y hover animado
   ================================================ */
.card {
    background: #ffffff;
    border-radius: 50%;           /* Forma circular */
    aspect-ratio: 1 / 1;         /* Siempre cuadrado → circular */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    border: 2px solid #f9dce9;
  
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    cursor: default;
    position: relative;
    overflow: hidden;
}

/* Fondo decorativo interno */
.card::before {
    content: '';
    position: absolute;
    width: 80%;
    height: 80%;
    border-radius: 50%;
    pointer-events: none;
}

.card:hover {
    transform: translateY(-10px) scale(1.04);
    border-color: #fcd3da;

}

/* Nombre del sabor */
.card h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #b30047;
    margin-bottom: 10px;
    text-align: center;
    z-index: 1;
}

/* Imagen del producto */
.card img {
    width: 160px;
    height: 180px;
    z-index: 1;
    transition: transform 0.3s ease;
}

.card:hover img {
    transform: scale(1.08) rotate(-3deg);
}

/* Botón dentro de card (opcional, para páginas con links) */
.card h3 a {
    display: inline-block;
    background: linear-gradient(135deg, #ff4d6d, #d4005c);
    color: #fff;
    text-decoration: none;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(255, 77, 109, 0.3);
}

.card h3 a:hover {
    transform: scale(1.06);
    box-shadow: 0 6px 18px rgba(255, 77, 109, 0.45);
}

/* ================================================
   SECCIÓN SNACKS (fondo alternativo)
   Reutilizable: aplicar clase .snacks a la <section>
   ================================================ */
.snacks {
    background-color: #fff7f9;
}

/* ================================================
   FOOTER
   ================================================ */
footer {
    text-align: center;
    padding: 25px 20px;
    background: #fff;
    border-top: 2px solid #f9c7df;
    font-size: 0.85rem;
    color: #a0607a;
    font-weight: 500;
}

/* ================================================
   RESPONSIVE
   ================================================ */
@media (max-width: 900px) {
    .grid-tres {
        grid-template-columns: repeat(2, 1fr);
    }

    .sabores h2 {
        font-size: 2.2rem;
    }
}

@media (max-width: 600px) {
    .header .wrapper {
        flex-direction: column;
        gap: 12px;
        padding: 10px 0;
    }

    nav {
        flex-wrap: wrap;
        justify-content: center;
    }

    .logo-lg {
        height: 45px;
    }

    .grid-tres {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .sabores h2 {
        font-size: 1.8rem;
    }

    .card img {
        width: 80px;
        height: 100px;
    }

    .card h3 {
        font-size: 0.85rem;
    }
}

