/* ==========================================================================
   Jojismi — Layout: header, footer, hero, secciones, rejillas.
   ========================================================================== */

/* Header ----------------------------------------------------------------- */
.jj-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: rgba(255, 253, 253, 0.9);
	backdrop-filter: saturate(150%) blur(12px);
	border-bottom: 1px solid var(--jj-line);
}
.jj-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	min-height: 68px;
}
.jj-header__brand { display: flex; align-items: center; gap: .75rem; }

.jj-logo { display: inline-flex; flex-direction: column; line-height: 1; }
.jj-logo__text {
	font-family: var(--jj-font-head);
	font-size: 1.7rem;
	font-weight: 600;
	color: var(--jojismi-aqua-deep);
	letter-spacing: -0.02em;
}
.jj-logo__tag {
	font-size: .58rem;
	letter-spacing: .18em;
	text-transform: uppercase;
	color: var(--jj-ink-muted);
	margin-top: 2px;
}
.jj-logo img { max-height: 52px; width: auto; }

.jj-nav { display: none; }
.jj-menu { display: flex; gap: 1.5rem; list-style: none; margin: 0; padding: 0; }
.jj-menu a { font-size: .95rem; font-weight: 500; color: var(--jj-ink); position: relative; }
.jj-menu a:hover { color: var(--jj-accent); }
.jj-menu > li > a::after {
	content: ""; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0;
	background: var(--jj-accent); transition: width .25s var(--jj-ease);
}
.jj-menu > li > a:hover::after { width: 100%; }

/* Enlaces de cuenta en el menú (solo con sesión) */
.jj-menu__account > a::after { display: none !important; }
.jj-menu__admin > a { color: var(--jojismi-aqua-deep); font-weight: 500; }
.jj-menu__logout > a { color: var(--jojismi-pink-deep); font-weight: 500; }
@media (min-width: 900px) {
	.jj-menu__admin { margin-left: .5rem; padding-left: 1rem; border-left: 1px solid var(--jj-line); }
	.jj-menu__admin > a {
		padding: .45rem .95rem; border: 1.5px solid var(--jojismi-aqua-deep);
		border-radius: 999px; transition: background .2s var(--jj-ease), color .2s var(--jj-ease);
	}
	.jj-menu__admin > a:hover { background: var(--jojismi-aqua-deep); color: #fff; }
}

.jj-header__actions { display: flex; align-items: center; gap: .25rem; }
.jj-iconbtn {
	position: relative;
	display: inline-flex; align-items: center; justify-content: center;
	width: 42px; height: 42px; border-radius: 50%;
	background: none; border: none; color: var(--jj-ink);
}
.jj-iconbtn:hover { background: var(--jojismi-mint-soft); color: var(--jj-accent); }
.jj-fav-count {
	position: absolute; top: 4px; right: 4px;
	min-width: 17px; height: 17px; padding: 0 4px;
	background: var(--jj-accent); color: #fff;
	font-size: .65rem; font-weight: 600;
	border-radius: 999px; display: flex; align-items: center; justify-content: center;
}

.jj-burger {
	display: inline-flex; flex-direction: column; justify-content: center; gap: 4px;
	width: 40px; height: 40px; background: none; border: none; padding: 8px;
}
.jj-burger span { height: 2px; background: var(--jj-ink); border-radius: 2px; transition: .25s var(--jj-ease); }
.jj-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.jj-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.jj-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Buscador desplegable */
.jj-searchbar {
	border-top: 1px solid var(--jj-line);
	background: var(--jj-surface);
	padding: 1rem 0;
	animation: jj-slidedown .25s var(--jj-ease);
}
@keyframes jj-slidedown { from { opacity: 0; transform: translateY(-8px);} to {opacity:1; transform:none;} }
.jj-searchform { position: relative; display: flex; gap: .5rem; }
.jj-searchform__input {
	flex: 1; padding: .85rem 1.1rem; font-size: 1rem;
	border: 1.5px solid var(--jj-line); border-radius: 999px; background: var(--jojismi-soft-gray);
}
.jj-searchform__input:focus { background: #fff; border-color: var(--jojismi-aqua); outline: none; }
.jj-searchform__submit { padding: 0 1.5rem; border: none; border-radius: 999px; background: var(--jj-accent); color: #fff; font-weight: 500; }

/* Hero ------------------------------------------------------------------- */
.jj-hero { position: relative; overflow: hidden; background: linear-gradient(160deg, var(--jojismi-mint-soft) 0%, var(--jojismi-white) 55%); }
.jj-hero__inner {
	display: grid; gap: 2rem;
	padding-block: clamp(2.5rem, 8vw, 5rem);
	align-items: center;
}
.jj-hero__eyebrow { text-transform: uppercase; letter-spacing: .18em; font-size: .75rem; color: var(--jojismi-aqua-deep); font-weight: 600; margin-bottom: .75rem; }
.jj-hero__title { font-size: clamp(2.1rem, 6vw, 3.6rem); margin-bottom: 1rem; }
.jj-hero__lead { font-size: 1.1rem; color: var(--jj-ink-muted); max-width: 46ch; }
.jj-hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
.jj-hero__deco { position: relative; min-height: 200px; display: none; }
.jj-blob { position: absolute; border-radius: 50%; filter: blur(2px); opacity: .55; }
.jj-blob--pink { width: 260px; height: 260px; background: var(--jojismi-pink); top: 0; right: 10%; }
.jj-blob--aqua { width: 200px; height: 200px; background: var(--jojismi-aqua); bottom: 0; right: 40%; }
.jj-heart { position: absolute; inset: 0; display: grid; place-items: center; font-size: 5rem; color: #fff; z-index: 1; }

.jj-hero__photo { width: 100%; height: 100%; max-height: 420px; object-fit: cover; border-radius: var(--jj-radius-lg); box-shadow: var(--jj-shadow); }
.jj-hero--image .jj-hero__deco { display: block; min-height: 260px; }

/* Colecciones ------------------------------------------------------------ */
.jj-collections { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.jj-collection { position: relative; display: block; aspect-ratio: 3/2; border-radius: var(--jj-radius); overflow: hidden; background: var(--jojismi-mint-soft); }
.jj-collection__img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--jj-ease); }
.jj-collection:hover .jj-collection__img { transform: scale(1.06); }
.jj-collection__ph { position: absolute; inset: 0; background: linear-gradient(135deg, var(--jojismi-mint) 0%, var(--jojismi-pink-soft) 100%); }
.jj-collection__name {
	position: absolute; left: 0; right: 0; bottom: 0; padding: 1.5rem 1rem .9rem;
	font-family: var(--jj-font-head); font-size: 1.3rem; color: #fff; font-weight: 500;
	background: linear-gradient(to top, rgba(0,0,0,.55), transparent);
}

/* Secciones -------------------------------------------------------------- */
.jj-section { padding-block: clamp(2.5rem, 7vw, 4.5rem); }
.jj-section--tint { background: var(--jojismi-mint-soft); }
.jj-section__head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; }
.jj-section__title { font-size: clamp(1.5rem, 4vw, 2.1rem); margin: 0 0 1.5rem; }
.jj-section__head .jj-section__title { margin: 0; } /* el head ya aporta el espacio inferior */

/* Rejillas de producto --------------------------------------------------- */
.jj-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: clamp(.9rem, 2.5vw, 1.6rem);
}

/* Categorías / chips / ocasiones */
.jj-cats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.jj-cat-card {
	display: flex; flex-direction: column; gap: .25rem;
	padding: 1.25rem; border-radius: var(--jj-radius);
	background: var(--jj-surface); border: 1px solid var(--jj-line);
	transition: transform .2s var(--jj-ease), box-shadow .2s var(--jj-ease), border-color .2s;
}
.jj-cat-card:hover { transform: translateY(-3px); box-shadow: var(--jj-shadow); border-color: transparent; }
.jj-cat-card__name { font-family: var(--jj-font-head); font-size: 1.2rem; }
.jj-cat-card__count { font-size: .82rem; color: var(--jj-ink-muted); }

.jj-chips { display: flex; flex-wrap: wrap; gap: .6rem; }
.jj-chip {
	padding: .55rem 1.1rem; border-radius: 999px;
	background: var(--jj-surface); border: 1px solid var(--jj-line);
	font-size: .9rem; font-weight: 500;
}
.jj-chip:hover { background: var(--jj-accent); color: #fff; border-color: var(--jj-accent); }

/* CTA -------------------------------------------------------------------- */
.jj-cta { background: linear-gradient(135deg, var(--jojismi-pink) 0%, var(--jojismi-pink-deep) 100%); color: #fff; }
.jj-cta__inner { text-align: center; padding-block: clamp(2.5rem, 7vw, 4rem); }
.jj-cta h2 { color: #fff; font-size: clamp(1.6rem, 4vw, 2.4rem); }
.jj-cta p { color: rgba(255,255,255,.9); max-width: 44ch; margin-inline: auto; }
.jj-cta .jj-btn--primary { background: #fff; color: var(--jojismi-pink-deep); margin-top: 1rem; }
.jj-cta .jj-btn--primary:hover { background: var(--jojismi-mint); color: var(--jojismi-pink-deep); }

/* Footer ----------------------------------------------------------------- */
.jj-footer { background: var(--jojismi-black-soft); color: #d9d9d9; margin-top: 3rem; }
.jj-footer__grid { display: grid; gap: 2rem; padding-block: clamp(2.5rem, 6vw, 3.5rem); }
.jj-footer__brand .jj-logo__text { color: #fff; }
.jj-footer__tag { color: var(--jojismi-aqua); font-family: var(--jj-font-head); font-size: 1.05rem; margin: .25rem 0 .75rem; }
.jj-footer__desc { color: #a8a8a8; font-size: .9rem; max-width: 40ch; }
.jj-footer-title { color: #fff; font-size: 1rem; margin-bottom: .75rem; }
.jj-footer__col ul, .jj-social { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.jj-footer__col a { color: #c4c4c4; font-size: .92rem; }
.jj-footer__col a:hover { color: var(--jojismi-aqua); }
.jj-footer__bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 1.2rem 0; font-size: .82rem; color: #8f8f8f; }
.jj-footer__bottom-inner { display: flex; flex-wrap: wrap; gap: .35rem 1.5rem; align-items: center; justify-content: space-between; }
.jj-footer__bottom-inner p { margin: 0; }
.jj-footer__credits a { color: var(--jojismi-aqua); font-weight: 500; }
.jj-footer__credits a:hover { color: #fff; }

/* WhatsApp flotante ------------------------------------------------------ */
.jj-wa-float {
	position: fixed; bottom: 20px; right: 20px; z-index: 90;
	width: 56px; height: 56px; border-radius: 50%;
	background: #25d366; color: #fff;
	display: grid; place-items: center;
	box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
	transition: transform .2s var(--jj-ease);
}
.jj-wa-float:hover { transform: scale(1.08); }

/* Responsive ------------------------------------------------------------- */
@media (min-width: 600px) {
	.jj-grid { grid-template-columns: repeat(3, 1fr); }
	.jj-cats-grid { grid-template-columns: repeat(3, 1fr); }
	.jj-collections { grid-template-columns: repeat(3, 1fr); }
	.jj-footer__grid { grid-template-columns: 2fr 1fr 1fr; }
}
@media (min-width: 900px) {
	.jj-nav { display: block; }
	.jj-burger { display: none; }
	.jj-grid { grid-template-columns: repeat(4, 1fr); }
	.jj-cats-grid { grid-template-columns: repeat(3, 1fr); }
	.jj-hero__inner { grid-template-columns: 1.2fr .8fr; }
	.jj-hero__deco { display: block; }
}

/* Menú móvil */
@media (max-width: 899px) {
	.jj-nav {
		position: fixed; inset: 68px 0 auto 0; display: block;
		background: var(--jj-surface); border-bottom: 1px solid var(--jj-line);
		transform: translateY(-120%); transition: transform .3s var(--jj-ease);
		max-height: calc(100vh - 68px); overflow-y: auto;
	}
	.jj-nav.is-open { transform: translateY(0); }
	.jj-menu { flex-direction: column; gap: 0; padding: .5rem 0; }
	.jj-menu li { border-bottom: 1px solid var(--jj-line); }
	.jj-menu a { display: block; padding: 1rem clamp(1rem, 4vw, 2.5rem); }
}
