/* Tipografías y variables (alineado a login2.css) */
@import url('https://fonts.googleapis.com/css2?family=Alegreya:ital,wght@0,400;0,700;1,400;1,700&family=Belleza&display=swap');

:root {
    --background-hsl: 60 56% 91%;
    --foreground-hsl: 116 25% 20%;
    --primary-hsl: 116 44% 34%;
    --accent-hsl: 25 56% 40%;
    --primary-light-hsl: 116 44% 34% / 0.06;
    --primary-lighter-hsl: 116 44% 34% / 0.12;
    --border-hsl: 60 20% 80%;

    --font-body: 'Alegreya', serif;
    --font-headline: 'Belleza', sans-serif;

    --radius: 14px;
}

/* Base */
* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: var(--font-body);
    background: hsl(var(--background-hsl));
    color: hsl(var(--foreground-hsl));
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    font-size: 17px;
}
a { color: hsl(var(--primary-hsl)); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 {
    font-family: var(--font-headline);
    color: hsl(var(--primary-hsl));
    margin: 0 0 .5rem 0;
}

/* ===========================
   HEADER (igual a login)
   =========================== */
header {
    position: sticky;
    top: 0;
    z-index: 50;
    width: 100%;
    background-color: hsl(var(--background-hsl));
    border-bottom: 1px solid hsl(var(--border-hsl));
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1rem;
}
header .logo img {
    height: 60px;
    width: auto;
    border-radius: 15%;
}
header nav { display: flex; align-items: center; gap: 2rem; }
header nav ul {
    display: flex; align-items: center; gap: 1.5rem;
    list-style: none; margin: 0; padding: 0;
}
header nav a {
    font-family: var(--font-headline);
    font-weight: 700;
    font-size: 1rem;
    color: hsl(var(--primary-hsl));
    transition: color .2s ease;
}
header nav a:hover,
header nav a.active { color: hsl(var(--accent-hsl)); }

/* Hamburguesa + Menú móvil (mismo comportamiento que login) */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    width: 40px; height: 40px;
    cursor: pointer;
    gap: 7px;
}
.hamburger span {
    display: block; height: 4px; width: 100%;
    background: hsl(var(--foreground-hsl));
    border-radius: 2px; transition: .3s;
}
.mobile-menu {
    display: none;
    flex-direction: column; gap: 1rem;
    background: hsl(var(--background-hsl));
    position: absolute; top: 80px; right: 0;
    width: 70%; max-width: 300px;
    padding: 1.25rem 1.5rem;
    border-left: 1px solid hsl(var(--border-hsl));
    border-bottom: 1px solid hsl(var(--border-hsl));
    box-shadow: -4px 6px 16px rgba(0,0,0,0.06);
}
.mobile-menu a {
    font-family: var(--font-headline);
    font-size: 1.05rem;
    color: hsl(var(--primary-hsl));
    padding: .25rem 0;
}

/* ===========================
   CATÁLOGO
   =========================== */
.catalogo-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 2rem;
    padding: 3rem 1.5rem;
    max-width: 1300px;
    margin: 0 auto;
}
.producto-card {
    background: #fff;
    border: 1px solid hsl(var(--border-hsl));
    border-radius: var(--radius);
    box-shadow: 0 8px 20px -12px rgba(0,0,0,0.15);
    padding: 1.25rem;
    text-align: center;
    transition: transform .2s ease, box-shadow .2s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.producto-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px -14px rgba(0,0,0,0.25);
}
.producto-card img {
    width: 100%;
    max-height: 220px;
    object-fit: cover;
    border-radius: calc(var(--radius) - 6px);
    margin-bottom: 1rem;
}
.producto-card h2 {
    font-size: 1.3rem;
    font-weight: 600;
    font-family: var(--font-headline);
}
.producto-card p {
    margin: .5rem 0 1rem;
    color: hsl(var(--foreground-hsl));
    opacity: .85;
    font-size: 1.05rem;
}
/* Botón */
.detalle-button {
    display: inline-block;
    padding: .7rem 1.2rem;
    background: hsl(var(--primary-hsl));
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    border-radius: calc(var(--radius) - 6px);
    transition: background .2s ease, transform .1s ease;
}
.detalle-button:hover {
    background: hsl(var(--accent-hsl));
    text-decoration: none;
}
.detalle-button:active { transform: translateY(1px); }

/* ===========================
   FOOTER
   =========================== */
.footer {
    background: hsla(var(--primary-lighter-hsl));
    border-top: 1px solid hsl(var(--border-hsl));
    padding: 1.75rem 1.25rem;
    display: flex; flex-direction: column; align-items: center;
    gap: .75rem; text-align: center;
}
.footer p {
    margin: 0;
    color: hsl(var(--foreground-hsl));
    opacity: .75;
    font-size: .95rem;
}
.social-media { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.social-media a {
    color: hsl(var(--foreground-hsl));
    opacity: .8;
    padding: .25rem .5rem;
    border-radius: 999px;
    transition: background .2s, opacity .2s, color .2s;
}
.social-media a:hover {
    color: hsl(var(--primary-hsl));
    background: hsla(var(--primary-light-hsl));
    opacity: 1;
}

/* ===========================
   RESPONSIVE
   =========================== */
@media (max-width: 768px) {
    header nav ul { display: none; }
    .hamburger { display: flex; }
}
@media (max-width: 600px) {
    .catalogo-container { padding: 2rem 1rem; gap: 1.25rem; }
    .producto-card { padding: 1rem; }
    .producto-card img { max-height: 180px; }
}
