/*
Theme Name: Repostería Nelly
Theme URI: https://wakewebs.nl
Author: wakewebs.nl
Author URI: https://wakewebs.nl
Description: Tema a medida para Repostería Nelly (Guamúchil, Sinaloa). Pasteles, coricos, bizcotelas, galletas y postres. Incluye galería de pasteles con filtros, carrusel por tipo de pastel, cotizaciones por WhatsApp y animaciones. Todas las fotos vienen incluidas en el tema.
Version: 1.0.0
Requires at least: 6.3
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: nelly
*/

/* ==========================================================================
   Tokens
   ========================================================================== */
:root {
	--rosa: #E8709F;
	--rosa-fuerte: #C2266B;
	--rosa-fuerte-hover: #A51D5A;
	--rosa-claro: #FCE6EF;
	--rosa-claro-2: #F8D3E2;
	--chocolate: #5E3119;
	--caramelo: #8E5631;
	--crema: #FFF8F3;
	--blanco: #FFFFFF;
	--tinta: #2E1A10;
	--tinta-suave: #6E5649;
	--whatsapp: #1E9E50;

	--f-display: "Fredoka", "Nunito", system-ui, sans-serif;
	--f-body: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;

	--radius-md: 16px;
	--radius-lg: 28px;
	--radius-pill: 999px;
	--shadow-card: 0 10px 30px rgba(94, 49, 25, .10);
	--shadow-pop: 0 18px 40px rgba(94, 49, 25, .18);

	--container: 1200px;
	--gutter: clamp(20px, 4vw, 40px);
	--section: clamp(64px, 9vw, 112px);
	--ease: cubic-bezier(.22, 1, .36, 1);
	--bounce: cubic-bezier(.34, 1.56, .64, 1);
}

/* ==========================================================================
   Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; overflow-x: clip; }
body {
	margin: 0;
	font-family: var(--f-body);
	font-size: 17px;
	line-height: 1.6;
	color: var(--tinta);
	background: var(--crema);
	overflow-x: hidden;
	overflow-x: clip;
	-webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--rosa-fuerte); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--rosa-fuerte-hover); }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--f-display); color: var(--chocolate); line-height: 1.1; margin: 0 0 .5em; font-weight: 600; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--rosa-fuerte); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--rosa-claro-2); color: var(--chocolate); }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: calc(760px + var(--gutter) * 2); }
.center { text-align: center; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 1000; background: var(--chocolate); color: #fff; padding: 10px 16px; border-radius: 10px; }
.skip-link:focus { top: 12px; color: #fff; }
.icon { width: 1.2em; height: 1.2em; flex: none; }

/* Buttons */
.btn {
	--bg: var(--rosa-fuerte);
	display: inline-flex; align-items: center; justify-content: center; gap: .5em;
	padding: .8em 1.5em; border-radius: var(--radius-pill); border: 2px solid transparent;
	font-family: var(--f-body); font-weight: 800; font-size: 16px; line-height: 1; text-decoration: none;
	transition: transform .35s var(--bounce), box-shadow .3s, background-color .25s, color .25s;
	white-space: nowrap;
}
.btn:hover { transform: translateY(-3px); }
.btn:active { transform: translateY(0) scale(.97); }
.btn--primary { background: var(--rosa-fuerte); color: #fff; box-shadow: 0 8px 20px rgba(194, 38, 107, .28); }
.btn--primary:hover { background: var(--rosa-fuerte-hover); color: #fff; box-shadow: 0 12px 26px rgba(194, 38, 107, .35); }
.btn--ghost { background: #fff; color: var(--chocolate); border-color: var(--rosa-claro-2); }
.btn--ghost:hover { color: var(--rosa-fuerte); border-color: var(--rosa); }
.btn--lg { padding: 1em 1.8em; font-size: 17px; }
.btn--small { padding: .6em 1.1em; font-size: 14px; }
.btn--pill-light { background: #fff; color: var(--chocolate); }
.btn--pill-light:hover { background: var(--rosa-claro); color: var(--rosa-fuerte); }

.round-btn {
	width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
	background: #fff; color: var(--chocolate); border: 2px solid var(--rosa-claro-2);
	transition: transform .35s var(--bounce), background .25s, color .25s, opacity .25s;
}
.round-btn .icon { width: 22px; height: 22px; }
.round-btn:hover { transform: scale(1.08); }
.round-btn--fill { background: var(--rosa-fuerte); color: #fff; border-color: var(--rosa-fuerte); box-shadow: 0 8px 18px rgba(194, 38, 107, .3); }
.round-btn[disabled] { opacity: .4; cursor: default; transform: none; }

.kicker { font-family: var(--f-display); font-weight: 500; color: var(--rosa-fuerte); font-size: 18px; margin: 0 0 6px; letter-spacing: .02em; }
.kicker--center { text-align: center; }
.section-title { font-size: clamp(2rem, 4.4vw, 3.2rem); font-weight: 600; letter-spacing: -.01em; }
.section-title--center { text-align: center; }
.section { position: relative; padding-block: var(--section); }

/* Doodles */
.doodle { position: absolute; width: clamp(44px, 6vw, 76px); height: auto; aspect-ratio: 1; color: var(--rosa); opacity: .35; pointer-events: none; animation: bob 7s ease-in-out infinite; z-index: 0; }
.doodle--a { left: 4%; top: 22%; }
.doodle--b { right: 5%; top: 16%; animation-delay: -2s; }
.doodle--c { left: 9%; bottom: 14%; animation-delay: -4s; }
.doodle--d { right: 10%; bottom: 22%; animation-delay: -1s; }
.doodle--e { right: 6%; top: 10%; animation-delay: -3s; }
.doodle--f { left: 3%; top: 30%; }
.doodle--g { right: 4%; top: 58%; animation-delay: -3s; }
.doodle--h { left: 5%; top: 12%; animation-delay: -2s; }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(-6deg); } 50% { transform: translateY(-14px) rotate(6deg); } }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header { position: sticky; top: 0; z-index: 50; transition: background .3s, box-shadow .3s, padding .3s; padding-block: 14px; }
.site-header.is-scrolled { background: rgba(255, 248, 243, .92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 6px 24px rgba(94, 49, 25, .08); padding-block: 8px; }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand__badge { width: 62px; height: auto; transition: transform .5s var(--bounce), width .3s; }
.brand:hover .brand__badge { transform: rotate(-8deg) scale(1.06); }
.is-scrolled .brand__badge { width: 52px; }
.brand__text { display: flex; flex-direction: column; line-height: .95; font-family: var(--f-display); font-weight: 700; }
.brand__small { color: var(--rosa-fuerte); font-size: 13px; letter-spacing: .18em; text-transform: uppercase; }
.brand__big { color: var(--chocolate); font-size: 30px; }

.nav { display: flex; align-items: center; gap: 28px; }
.nav__list { list-style: none; display: flex; gap: 6px; margin: 0; padding: 0; }
.nav__list a { display: block; padding: 8px 14px; border-radius: var(--radius-pill); color: var(--chocolate); font-weight: 700; text-decoration: none; transition: background .2s, color .2s; }
.nav__list a:hover, .nav__list .current-menu-item > a { background: var(--rosa-claro); color: var(--rosa-fuerte); }
.nav-toggle { display: none; width: 48px; height: 48px; border-radius: 50%; background: #fff; border: 2px solid var(--rosa-claro-2); padding: 0; position: relative; }
.nav-toggle__bar { position: absolute; left: 13px; right: 13px; height: 2.5px; background: var(--chocolate); border-radius: 2px; transition: transform .3s var(--ease), opacity .2s; }
.nav-toggle__bar:nth-child(2) { top: 17px; } .nav-toggle__bar:nth-child(3) { top: 22.5px; } .nav-toggle__bar:nth-child(4) { top: 28px; }
.nav-open .nav-toggle__bar:nth-child(2) { transform: translateY(5.5px) rotate(45deg); }
.nav-open .nav-toggle__bar:nth-child(3) { opacity: 0; }
.nav-open .nav-toggle__bar:nth-child(4) { transform: translateY(-5.5px) rotate(-45deg); }

@media (max-width: 960px) {
	.nav-toggle { display: block; z-index: 2; }
	.nav {
		position: fixed; inset: 0; flex-direction: column; justify-content: center; gap: 24px;
		background: var(--crema); padding: 100px 24px 40px;
		clip-path: circle(0 at calc(100% - 44px) 40px); transition: clip-path .6s var(--ease); visibility: hidden;
	}
	.nav-open .nav { clip-path: circle(150% at calc(100% - 44px) 40px); visibility: visible; }
	.nav__list { flex-direction: column; align-items: center; gap: 8px; }
	.nav__list a { font-family: var(--f-display); font-size: 28px; font-weight: 600; }
	.nav-open { overflow: hidden; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero { position: relative; padding-top: clamp(24px, 4vw, 48px); text-align: center; overflow: hidden; }
.hero__text { position: relative; z-index: 2; }
.eyebrow { display: inline-flex; align-items: center; gap: 6px; background: #fff; color: var(--chocolate); font-weight: 700; font-size: 14px; padding: 8px 16px; border-radius: var(--radius-pill); box-shadow: var(--shadow-card); margin-bottom: 18px; }
.eyebrow .icon { color: var(--rosa-fuerte); width: 16px; height: 16px; }
.hero__title { font-size: clamp(2.6rem, 7vw, 5.6rem); font-weight: 700; line-height: 1; max-width: 13ch; margin: 0 auto .2em; letter-spacing: -.02em; }
.hl { color: var(--rosa-fuerte); position: relative; white-space: nowrap; }
.hl::after {
	content: ""; position: absolute; left: 0; right: 0; bottom: -.08em; height: .22em;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 20' preserveAspectRatio='none'%3E%3Cpath d='M2 14c30-10 60-10 98-2s70 6 98-6' fill='none' stroke='%23E8709F' stroke-width='6' stroke-linecap='round'/%3E%3C/svg%3E") center/100% 100% no-repeat;
	transform-origin: left; transform: scaleX(0); transition: transform 1s .6s var(--ease);
}
.is-in .hl::after, html:not(.js) .hl::after { transform: scaleX(1); }
.hero__slogan { font-family: var(--f-display); font-weight: 500; font-size: clamp(1.2rem, 2.2vw, 1.6rem); color: var(--caramelo); }

.hero__stage { position: relative; height: clamp(260px, 44vw, 520px); max-width: 1200px; margin: clamp(-10px, -1vw, 0px) auto 0; }
.hero__arc {
	position: absolute; left: 50%; top: 34%; width: min(1060px, 112vw); aspect-ratio: 1; translate: -50% 0;
	border-radius: 50%; border: clamp(46px, 8vw, 96px) solid var(--rosa); background: radial-gradient(circle, var(--rosa-claro) 0 55%, transparent 56%);
	animation: arc-in 1.2s var(--ease) both;
}
.hero__arc::after { content: ""; position: absolute; inset: calc(clamp(46px, 8vw, 96px) * -.5 - 1px); border-radius: 50%; border: 3px dashed rgba(255, 255, 255, .7); animation: spin 80s linear infinite; }
@keyframes arc-in { from { transform: scale(.6); opacity: 0; } }
@keyframes spin { to { transform: rotate(360deg); } }
.hero__cake { position: absolute; margin: 0; border-radius: 50%; overflow: hidden; border: clamp(5px, .8vw, 10px) solid #fff; box-shadow: var(--shadow-pop); aspect-ratio: 1; will-change: transform; }
.hero__cake img { width: 100%; height: 100%; object-fit: cover; }
.hero__cake--center { width: clamp(200px, 36vw, 440px); left: 50%; bottom: 4%; translate: -50% 0; z-index: 2; animation: pop-in 1s .2s var(--bounce) both, float 6s 1.2s ease-in-out infinite; }
.hero__cake--left { width: clamp(120px, 21vw, 270px); left: 6%; bottom: 22%; animation: pop-in 1s .4s var(--bounce) both, float 7s 1.4s ease-in-out infinite reverse; }
.hero__cake--right { width: clamp(120px, 21vw, 270px); right: 6%; bottom: 22%; animation: pop-in 1s .55s var(--bounce) both, float 6.5s 1.5s ease-in-out infinite; }
@keyframes pop-in { from { opacity: 0; transform: scale(.4) translateY(60px); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
.hero__sticker { position: absolute; right: 30%; top: 2%; width: 64px; height: 64px; border-radius: 50%; background: var(--rosa-fuerte); color: #fff; display: grid; place-items: center; z-index: 3; box-shadow: var(--shadow-pop); animation: pop-in .8s .9s var(--bounce) both, beat 1.6s 2s ease-in-out infinite; }
.hero__sticker .icon { width: 30px; height: 30px; }
@keyframes beat { 0%, 100% { transform: scale(1); } 15% { transform: scale(1.15); } 30% { transform: scale(1); } 45% { transform: scale(1.1); } }
.hero__actions { position: relative; z-index: 3; display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: -28px; padding-bottom: clamp(36px, 5vw, 60px); }

@media (max-width: 700px) {
	.hero .doodle { display: none; }
	.type-card { flex-basis: 78vw; }
	.hero__cake--left { left: -4%; bottom: 34%; }
	.hero__cake--right { right: -4%; bottom: 34%; }
	.hero__sticker { width: 48px; height: 48px; right: 18%; }
	.hero__actions { margin-top: 0; }
}

/* ==========================================================================
   Marquee
   ========================================================================== */
.marquee { background: var(--chocolate); color: var(--crema); overflow: hidden; transform: rotate(-1.5deg) scale(1.02); margin: 10px 0 0; padding: 16px 0; position: relative; z-index: 3; }
.marquee__track { display: flex; width: max-content; animation: marquee 32s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__list { display: flex; list-style: none; margin: 0; padding: 0; }
.marquee__list li { font-family: var(--f-display); font-weight: 600; font-size: clamp(18px, 2.2vw, 26px); padding-inline: 28px; white-space: nowrap; display: flex; align-items: center; }
.marquee__list li::after { content: "✿"; color: var(--rosa); margin-left: 56px; font-size: .8em; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ==========================================================================
   Cake types carousel
   ========================================================================== */
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 32px; }
.section-head .section-title { margin: 0; }
.carousel-nav { display: flex; gap: 10px; }
.carousel { position: relative; }
.carousel__track {
	list-style: none; margin: 0; display: flex; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
	padding: 10px max(var(--gutter), calc((100vw - var(--container)) / 2)) 30px;
	scroll-padding-inline: max(var(--gutter), calc((100vw - var(--container)) / 2));
	scrollbar-width: none; cursor: grab;
}
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__track.is-dragging { cursor: grabbing; scroll-snap-type: none; scroll-behavior: auto; }
.carousel__track.is-dragging a { pointer-events: none; }

.type-card { flex: 0 0 clamp(270px, 30vw, 360px); scroll-snap-align: start; background: var(--rosa-claro); border-radius: var(--radius-lg); padding: 14px; display: flex; flex-direction: column; transition: transform .45s var(--bounce), box-shadow .35s; }
.type-card:hover { transform: translateY(-8px) rotate(-.6deg); box-shadow: var(--shadow-pop); }
.type-card__media { position: relative; display: block; aspect-ratio: 4 / 5; border-radius: 20px; overflow: hidden; background: #fff; }
.type-card__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.08); transition: opacity 1s var(--ease), transform 4s var(--ease); }
.type-card__media img.is-active { opacity: 1; transform: scale(1); }
.type-card:hover .type-card__media img.is-active { transform: scale(1.05); }
.type-card__count { position: absolute; left: 12px; top: 12px; background: rgba(255, 255, 255, .92); color: var(--chocolate); font-weight: 800; font-size: 13px; padding: 6px 12px; border-radius: var(--radius-pill); }
.type-card__body { padding: 18px 8px 6px; display: flex; flex-direction: column; flex: 1; }
.type-card__body h3 { font-size: 24px; margin-bottom: 6px; }
.type-card__body p { color: var(--tinta-suave); font-size: 15px; flex: 1; }
.type-card__actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.link-arrow { display: inline-flex; align-items: center; gap: 4px; font-weight: 800; text-decoration: none; color: var(--chocolate); }
.link-arrow .icon { transition: transform .3s var(--bounce); width: 18px; height: 18px; }
.link-arrow:hover .icon { transform: translateX(5px); }

/* ==========================================================================
   Steps
   ========================================================================== */
.section--steps { overflow: hidden; }
.step { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(24px, 6vw, 80px); max-width: 980px; margin: clamp(32px, 6vw, 64px) auto 0; }
.step--flip .step__visual { order: 2; }
.step__visual { position: relative; width: min(100%, 380px); aspect-ratio: 1; justify-self: center; }
.step__ring { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 26s linear infinite; }
.step--flip .step__ring { animation-direction: reverse; }
.step__ring text { font-family: var(--f-display); font-weight: 600; font-size: 19px; fill: var(--chocolate); }
.step__photo { position: absolute; inset: 15%; border-radius: 50%; overflow: hidden; box-shadow: var(--shadow-pop); border: 6px solid #fff; }
.step__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.step__visual:hover .step__photo img { transform: scale(1.08) rotate(2deg); }
.step__num { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--rosa-claro); color: var(--rosa-fuerte); font-family: var(--f-display); font-weight: 700; font-size: 22px; margin-bottom: 14px; }
.step__text h3 { font-size: clamp(24px, 2.6vw, 32px); }
.step__text p { color: var(--tinta-suave); max-width: 38ch; }

@media (max-width: 700px) {
	.step { grid-template-columns: 1fr; text-align: center; }
	.step--flip .step__visual { order: 0; }
	.step__visual { width: min(80%, 320px); }
	.step__text p { margin-inline: auto; }
}

/* ==========================================================================
   Treats (galletas, coricos, postres)
   ========================================================================== */
.treats { background: var(--rosa-claro); border-radius: clamp(28px, 4vw, 48px); padding: clamp(36px, 6vw, 72px) clamp(18px, 4vw, 56px); position: relative; overflow: hidden; }
.treats::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(194, 38, 107, .12) 2px, transparent 2.5px); background-size: 28px 28px; pointer-events: none; }
.treats > * { position: relative; }
.tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 18px; margin: 28px 0 36px; padding-bottom: 28px; border-bottom: 2px dashed var(--rosa-claro-2); }
.tab { display: flex; flex-direction: column; align-items: center; gap: 8px; background: none; border: 0; padding: 0; }
.tab__thumb { width: 84px; height: 84px; border-radius: 50%; overflow: hidden; border: 4px solid #fff; box-shadow: var(--shadow-card); transition: transform .4s var(--bounce), border-color .3s; }
.tab__thumb img { width: 100%; height: 100%; object-fit: cover; }
.tab__label { font-family: var(--f-display); font-weight: 600; font-size: 16px; padding: 6px 16px; border-radius: var(--radius-pill); background: #fff; color: var(--chocolate); transition: background .25s, color .25s; }
.tab:hover .tab__thumb { transform: translateY(-4px) rotate(-6deg); }
.tab.is-active .tab__thumb { border-color: var(--rosa-fuerte); transform: scale(1.08); }
.tab.is-active .tab__label { background: var(--rosa-fuerte); color: #fff; }

.treat-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 22px; }
.treat { --bg: var(--chocolate); background: var(--bg); color: var(--crema); border-radius: var(--radius-lg); padding: 18px 18px 22px; text-align: center; display: flex; flex-direction: column; align-items: center; transition: transform .45s var(--bounce), box-shadow .3s; }
.treat--rosa { --bg: var(--rosa-fuerte); }
.treat--dark { --bg: var(--tinta); }
.treat:hover { transform: translateY(-8px); box-shadow: var(--shadow-pop); }
.treat__photo { display: block; width: 100%; aspect-ratio: 1; border-radius: 20px; overflow: hidden; border: 0; padding: 0; margin-bottom: 16px; background: rgba(255, 255, 255, .1); }
.treat__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.treat:hover .treat__photo img { transform: scale(1.1) rotate(-2deg); }
.treat h3 { color: #fff; font-size: 24px; text-transform: uppercase; letter-spacing: .02em; margin-bottom: 4px; }
.treat p { font-size: 15px; opacity: .9; flex: 1; padding-bottom: 14px; border-bottom: 1px solid rgba(255, 255, 255, .2); width: 100%; }
.tab-panel[hidden] { display: none; }
.tab-panel.is-active .treat { animation: treat-in .6s calc(var(--i) * .07s) var(--bounce) both; }
@keyframes treat-in { from { opacity: 0; transform: translateY(30px) scale(.94); } }

/* ==========================================================================
   Mosaic
   ========================================================================== */
.mosaic { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: clamp(120px, 15vw, 190px); grid-auto-flow: dense; gap: clamp(10px, 1.6vw, 20px); margin: 36px 0 40px; }
.mosaic__item { border: 0; padding: 0; overflow: hidden; border-radius: 32px; background: var(--rosa-claro); position: relative; }
.mosaic__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.mosaic__item::after { content: "+"; position: absolute; inset: auto 14px 14px auto; width: 40px; height: 40px; border-radius: 50%; background: #fff; color: var(--rosa-fuerte); font: 600 28px/40px var(--f-display); text-align: center; transform: scale(0); transition: transform .4s var(--bounce); }
.mosaic__item:hover img { transform: scale(1.08); }
.mosaic__item:hover::after { transform: scale(1); }
.mosaic__item--1 { grid-area: 1 / 1 / 3 / 2; border-radius: 120px 32px 32px 32px; }
.mosaic__item--2 { grid-area: 1 / 2 / 2 / 3; }
.mosaic__item--3 { grid-area: 1 / 3 / 3 / 4; border-radius: 32px 120px 32px 32px; }
.mosaic__item--4 { grid-area: 1 / 4 / 2 / 5; border-radius: 32px 32px 32px 80px; }
.mosaic__item--5 { grid-area: 3 / 1 / 4 / 2; border-radius: 32px 32px 32px 80px; }
.mosaic__item--6 { grid-area: 2 / 2 / 4 / 3; border-radius: 32px 32px 120px 32px; }
.mosaic__item--7 { grid-area: 3 / 3 / 4 / 4; border-radius: 80px 32px 32px 32px; }
.mosaic__item--8 { grid-area: 2 / 4 / 4 / 5; border-radius: 32px 32px 32px 120px; }
@media (max-width: 700px) {
	.mosaic { grid-template-columns: repeat(2, 1fr); }
	.mosaic__item { grid-area: auto !important; }
	.mosaic__item--1, .mosaic__item--3, .mosaic__item--6, .mosaic__item--8 { grid-row: span 2 !important; }
}

/* ==========================================================================
   Visit
   ========================================================================== */
.visit { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.visit__photos { position: relative; min-height: clamp(360px, 40vw, 520px); }
.visit__photo { position: absolute; margin: 0; overflow: hidden; border-radius: var(--radius-lg); box-shadow: var(--shadow-pop); border: 6px solid #fff; }
.visit__photo img { width: 100%; height: 100%; object-fit: cover; }
.visit__photo--1 { left: 0; top: 0; width: 72%; height: 78%; transform: rotate(-3deg); }
.visit__photo--2 { right: 0; bottom: 0; width: 52%; height: 52%; transform: rotate(4deg); }
.info-list { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 16px; }
.info-list li { display: flex; gap: 14px; align-items: flex-start; background: #fff; border-radius: 20px; padding: 16px 18px; box-shadow: var(--shadow-card); }
.info-list__icon { width: 44px; height: 44px; border-radius: 50%; background: var(--rosa-claro); color: var(--rosa-fuerte); display: grid; place-items: center; flex: none; }
.info-list strong { display: block; font-family: var(--f-display); color: var(--chocolate); font-size: 18px; font-weight: 600; }
.info-list span, .info-list a { display: block; color: var(--tinta-suave); }
.info-list a { color: var(--rosa-fuerte); font-weight: 800; text-decoration: none; }
.map { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-card); aspect-ratio: 16 / 9; background: var(--rosa-claro); }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }
@media (max-width: 860px) { .visit { grid-template-columns: 1fr; } }

/* ==========================================================================
   CTA
   ========================================================================== */
.section--cta { padding-top: clamp(80px, 10vw, 140px); }
.cta { position: relative; background: var(--rosa-claro); border-radius: clamp(28px, 4vw, 48px); padding: clamp(32px, 5vw, 64px); display: grid; grid-template-columns: 1.3fr 1fr; align-items: center; }
.cta__text h2 { font-size: clamp(2rem, 4vw, 3rem); }
.cta__text p { color: var(--tinta-suave); max-width: 44ch; font-size: 18px; }
.cta__mascot { position: absolute; right: clamp(10px, 6vw, 90px); bottom: 0; width: clamp(150px, 24vw, 300px); transform-origin: bottom center; animation: wave 4s ease-in-out infinite; }
@keyframes wave { 0%, 100% { transform: rotate(0); } 20% { transform: rotate(-4deg); } 40% { transform: rotate(3deg); } 60% { transform: rotate(-2deg); } }
.doodle--cta1 { right: 38%; top: 14%; }
.doodle--cta2 { right: 4%; top: 10%; animation-delay: -3s; }
@media (max-width: 700px) {
	.cta { grid-template-columns: 1fr; padding-bottom: 220px; }
	.cta__mascot { width: 150px; left: 50%; right: auto; margin-left: -75px; }
}

/* ==========================================================================
   Page hero + gallery page
   ========================================================================== */
.page-hero { position: relative; padding: clamp(40px, 7vw, 90px) 0 clamp(20px, 3vw, 40px); text-align: center; overflow: hidden; }
.page-hero--small { padding-bottom: 0; }
.page-hero h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); font-weight: 700; }
.page-hero__lead { max-width: 56ch; margin: 0 auto; color: var(--tinta-suave); font-size: 18px; }
.section--gallery { padding-top: clamp(24px, 4vw, 40px); }

.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 36px; position: sticky; top: 84px; z-index: 5; padding: 10px; }
.chip { display: inline-flex; align-items: center; gap: 8px; border: 2px solid var(--rosa-claro-2); background: #fff; color: var(--chocolate); font-weight: 800; padding: 10px 18px; border-radius: var(--radius-pill); transition: transform .3s var(--bounce), background .25s, color .25s, border-color .25s; box-shadow: 0 4px 14px rgba(94, 49, 25, .06); }
.chip:hover { transform: translateY(-2px); border-color: var(--rosa); }
.chip__n { font-size: 12px; background: var(--rosa-claro); color: var(--rosa-fuerte); border-radius: var(--radius-pill); padding: 2px 8px; }
.chip.is-active { background: var(--rosa-fuerte); color: #fff; border-color: var(--rosa-fuerte); }
.chip.is-active .chip__n { background: rgba(255, 255, 255, .25); color: #fff; }

.gallery { list-style: none; margin: 0; padding: 0; columns: 4 260px; column-gap: 18px; }
.gallery__item { break-inside: avoid; margin-bottom: 18px; animation: g-in .6s var(--ease) both; }
.gallery__item[hidden] { display: none; }
@keyframes g-in { from { opacity: 0; transform: translateY(20px) scale(.97); } }
.gallery__item button { display: block; width: 100%; border: 0; padding: 0; background: var(--rosa-claro); border-radius: 22px; overflow: hidden; position: relative; }
.gallery__item img { width: 100%; height: auto; transition: transform .7s var(--ease), filter .4s; }
.gallery__item button:hover img { transform: scale(1.06); }
.gallery__tag { position: absolute; left: 12px; bottom: 12px; background: rgba(255, 255, 255, .94); color: var(--chocolate); font-weight: 800; font-size: 13px; padding: 6px 12px; border-radius: var(--radius-pill); transform: translateY(10px); opacity: 0; transition: transform .35s var(--bounce), opacity .25s; }
.gallery__item button:hover .gallery__tag, .gallery__item button:focus-visible .gallery__tag { transform: none; opacity: 1; }
.entry-content--gallery { margin-top: 40px; }

/* Generic content */
.entry-content { font-size: 18px; }
.entry-content img { border-radius: var(--radius-md); }
.entry-thumb img { border-radius: var(--radius-lg); margin-bottom: 32px; }
.post-list { display: grid; gap: 28px; }
.post-card { background: #fff; border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow-card); }
.post-card h2 a { color: var(--chocolate); text-decoration: none; }
.post-card__date { color: var(--tinta-suave); font-size: 14px; }
.not-found__mascot { width: 180px; margin: 0 auto 20px; animation: wave 4s ease-in-out infinite; transform-origin: bottom center; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--chocolate); color: rgba(255, 248, 243, .82); padding: clamp(56px, 8vw, 90px) 0 24px; margin-top: clamp(64px, 9vw, 112px); position: relative; }
.site-footer::before { content: ""; position: absolute; left: 0; right: 0; top: -28px; height: 30px; background: radial-gradient(circle at 20px 0, transparent 20px, var(--chocolate) 21px) -20px 0 / 40px 30px repeat-x; transform: scaleY(-1); }
.site-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
.site-footer__logo { display: inline-block; width: 170px; background: var(--crema); border-radius: 32px; padding: 10px 14px 4px; transition: transform .4s var(--bounce); }
.site-footer__logo:hover { transform: rotate(-3deg) scale(1.03); }
.site-footer__slogan { font-family: var(--f-display); font-weight: 600; color: var(--rosa); font-size: 22px; margin: 16px 0 6px; }
.site-footer__title { color: #fff; font-size: 20px; margin-bottom: 16px; }
.site-footer .nav__list { flex-direction: column; gap: 2px; }
.site-footer .nav__list a { color: rgba(255, 248, 243, .82); padding: 4px 0; font-weight: 600; }
.site-footer .nav__list a:hover { background: none; color: var(--rosa); }
.footer-info { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.footer-info li { display: flex; gap: 10px; }
.footer-info .icon { color: var(--rosa); margin-top: 3px; }
.footer-info a { color: #fff; font-weight: 700; text-decoration: none; }
.social { display: flex; gap: 10px; margin-top: 18px; }
.social a { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .1); color: #fff; transition: background .25s, transform .35s var(--bounce); }
.social a:hover { background: var(--rosa-fuerte); transform: translateY(-3px); color: #fff; }
.site-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; border-top: 1px solid rgba(255, 255, 255, .14); margin-top: 48px; padding-top: 20px; font-size: 14px; }
.site-footer__bottom p { margin: 0; }
.site-footer__bottom a { color: var(--rosa); font-weight: 700; text-decoration: none; }
@media (max-width: 900px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .site-footer__grid { grid-template-columns: 1fr; } }

/* Logo SVG text */
.nelly-logo { overflow: visible; width: 100%; height: auto; }
.nelly-logo__arc { font-family: var(--f-display); font-weight: 700; font-size: 166px; letter-spacing: 4px; fill: var(--rosa-fuerte); }
.nelly-logo__name { font-family: var(--f-display); font-weight: 700; font-size: 124px; letter-spacing: 3px; fill: var(--rosa-fuerte); }

/* ==========================================================================
   WhatsApp float + lightbox
   ========================================================================== */
.wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 60; display: flex; align-items: center; gap: 0; height: 60px; padding: 0 16px; border-radius: var(--radius-pill); background: var(--whatsapp); color: #fff; text-decoration: none; box-shadow: 0 10px 26px rgba(30, 158, 80, .4); transition: gap .35s var(--ease), transform .35s var(--bounce); animation: pop-in .8s 1.5s var(--bounce) both; }
.wa-float::before { content: ""; position: absolute; inset: 0; border-radius: inherit; border: 2px solid var(--whatsapp); animation: ping 2.4s 3s ease-out infinite; }
.wa-float .icon { width: 30px; height: 30px; }
.wa-float__label { max-width: 0; overflow: hidden; white-space: nowrap; font-weight: 800; transition: max-width .45s var(--ease); }
.wa-float:hover { color: #fff; gap: 8px; transform: translateY(-3px); }
.wa-float:hover .wa-float__label { max-width: 140px; }
@keyframes ping { 0% { transform: scale(1); opacity: .8; } 80%, 100% { transform: scale(1.5); opacity: 0; } }

.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; margin: 0; overflow: hidden; }
.lightbox::backdrop { background: rgba(46, 26, 16, .88); backdrop-filter: blur(6px); }
.lightbox[open] { display: grid; place-items: center; animation: lb-in .35s var(--ease); }
@keyframes lb-in { from { opacity: 0; } }
.lightbox__figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 12px; max-width: min(92vw, 1000px); }
.lightbox__figure img { max-height: 82vh; width: auto; border-radius: 20px; box-shadow: 0 20px 60px rgba(0, 0, 0, .4); animation: lb-img .45s var(--bounce); }
@keyframes lb-img { from { transform: scale(.92); opacity: 0; } }
.lightbox__figure figcaption { color: #fff; font-family: var(--f-display); font-weight: 600; font-size: 20px; }
.lightbox__close { position: fixed; top: 18px; right: 18px; width: 50px; height: 50px; border-radius: 50%; border: 0; background: #fff; color: var(--chocolate); font-size: 30px; line-height: 1; }
.lightbox__nav { position: fixed; top: 50%; translate: 0 -50%; width: 54px; height: 54px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .92); color: var(--chocolate); display: grid; place-items: center; transition: transform .3s var(--bounce); }
.lightbox__nav:hover { transform: scale(1.1); }
.lightbox__nav .icon { width: 24px; height: 24px; }
.lightbox__nav--prev { left: 16px; } .lightbox__nav--next { right: 16px; }
.lightbox.is-single .lightbox__nav { display: none; }

/* ==========================================================================
   Page transition: icing drips (chocolate + pink)
   ========================================================================== */
.pt { position: fixed; inset: 0; z-index: 9998; pointer-events: none; visibility: hidden; }
html.pt-in .pt, html.pt-out .pt { visibility: visible; pointer-events: auto; }
.pt__layer {
	position: absolute; left: 0; right: 0; top: -30px; height: calc(100vh + 170px);
	transform: translateY(-100%); will-change: transform;
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 30'%3E%3Cpath d='M0 30V18C10 18 10 6 20 6S30 18 40 18 50 6 60 6 70 18 80 18 90 6 100 6 110 18 120 18V30Z'/%3E%3C/svg%3E"), linear-gradient(#000, #000), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 360 140'%3E%3Cpath d='M0 0H360V34L316 34Q304 34 304 48V76A12 12 0 0 1 280 76V48Q280 34 268 34L234 34Q222 34 222 48V115A17 17 0 0 1 188 115V48Q188 34 176 34L151 34Q139 34 139 48V63A11 11 0 0 1 117 63V48Q117 34 105 34L72 34Q60 34 60 48V103A15 15 0 0 1 30 103V48Q30 34 18 34L0 34Z'/%3E%3C/svg%3E");
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 30'%3E%3Cpath d='M0 30V18C10 18 10 6 20 6S30 18 40 18 50 6 60 6 70 18 80 18 90 6 100 6 110 18 120 18V30Z'/%3E%3C/svg%3E"), linear-gradient(#000, #000), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 360 140'%3E%3Cpath d='M0 0H360V34L316 34Q304 34 304 48V76A12 12 0 0 1 280 76V48Q280 34 268 34L234 34Q222 34 222 48V115A17 17 0 0 1 188 115V48Q188 34 176 34L151 34Q139 34 139 48V63A11 11 0 0 1 117 63V48Q117 34 105 34L72 34Q60 34 60 48V103A15 15 0 0 1 30 103V48Q30 34 18 34L0 34Z'/%3E%3C/svg%3E");
	-webkit-mask-size: 120px 30px, 100% calc(100% - 169px), 360px 140px;
	mask-size: 120px 30px, 100% calc(100% - 169px), 360px 140px;
	-webkit-mask-position: 0 0, 0 29px, 0 100%;
	mask-position: 0 0, 0 29px, 0 100%;
	-webkit-mask-repeat: repeat-x, no-repeat, repeat-x;
	mask-repeat: repeat-x, no-repeat, repeat-x;
}
.pt__layer--choc { background: var(--chocolate); }
.pt__layer--rosa { background: #EA759F; -webkit-mask-position: 60px 0, 0 29px, 170px 100%; mask-position: 60px 0, 0 29px, 170px 100%; }
.pt__badge { position: absolute; left: 50%; top: 50%; width: clamp(96px, 16vw, 150px); height: auto; margin: calc(clamp(96px, 16vw, 150px) * -.52) 0 0 calc(clamp(96px, 16vw, 150px) * -.5); opacity: 0; filter: drop-shadow(0 10px 20px rgba(94, 49, 25, .25)); }
html.pt-in .pt__layer { animation: pt-in .55s cubic-bezier(.7, 0, .3, 1) forwards; }
html.pt-in .pt__layer--rosa { animation-delay: .08s; }
html.pt-in .pt__badge { animation: pt-badge-in .4s .32s var(--bounce) forwards; }
html.pt-out .pt__layer { transform: translateY(0); animation: pt-out .6s .2s cubic-bezier(.7, 0, .3, 1) forwards; }
html.pt-out .pt__layer--choc { animation-delay: .28s; }
html.pt-out .pt__badge { opacity: 1; animation: pt-badge-out .3s .05s ease-in forwards; }
@keyframes pt-in { from { transform: translateY(-100%); } to { transform: translateY(0); } }
@keyframes pt-out { from { transform: translateY(0); } to { transform: translateY(100%); } }
@keyframes pt-badge-in { from { opacity: 0; transform: scale(.3) rotate(-25deg); } to { opacity: 1; transform: none; } }
@keyframes pt-badge-out { from { opacity: 1; transform: none; } to { opacity: 0; transform: scale(.4) rotate(20deg) translateY(40px); } }

/* ==========================================================================
   Intro splash (front page, once per session)
   ========================================================================== */
.intro { display: none; }
html.intro-on { overflow: hidden; }
html.intro-on .intro {
	display: grid; place-items: center; position: fixed; inset: 0; z-index: 9999; cursor: pointer;
	background: radial-gradient(circle at 50% 46%, #fff 0, var(--crema) 45%, var(--rosa-claro) 100%);
	animation: iris .6s 2.2s cubic-bezier(.7, 0, .3, 1) forwards;
}
html.intro-on .intro.is-skip { animation: iris-skip .45s cubic-bezier(.7, 0, .3, 1) forwards; }
@keyframes iris {
	from { clip-path: circle(80% at 50% 46%); }
	to { clip-path: circle(0% at 50% 46%); visibility: hidden; }
}
@keyframes iris-skip {
	from { clip-path: circle(80% at 50% 46%); }
	to { clip-path: circle(0% at 50% 46%); visibility: hidden; }
}
.intro__stage { position: relative; width: min(78vw, 460px); }
.intro__logo { width: 100%; height: auto; overflow: visible; }
.intro__ring { transform-box: fill-box; transform-origin: center; animation: ring-pop .55s .05s var(--bounce) both; }
.intro__ring circle { fill: none; stroke-dasharray: 100; stroke-dashoffset: 100; animation: ring-draw .5s .05s var(--ease) forwards; transform: rotate(-90deg); transform-box: fill-box; transform-origin: center; }
.intro__ring-pink { stroke: #EA759F; stroke-width: 62; }
.intro__ring-line { stroke: #6F3E26; stroke-width: 17; }
@keyframes ring-pop { from { transform: scale(.55); } }
@keyframes ring-draw { to { stroke-dashoffset: 0; } }
.intro__jump { transform-box: fill-box; transform-origin: 50% 100%; animation: jump 1s .35s both; }
@keyframes jump {
	0% { transform: translateY(1050px) scale(.9, 1.1); animation-timing-function: cubic-bezier(.2, .7, .4, 1); }
	45% { transform: translateY(-110px) scale(.9, 1.15); animation-timing-function: cubic-bezier(.6, 0, .9, .5); }
	62% { transform: translateY(0) scale(1.2, .8); animation-timing-function: ease-out; }
	76% { transform: translateY(-28px) scale(.95, 1.06) rotate(-2deg); animation-timing-function: ease-in; }
	88% { transform: translateY(0) scale(1.06, .94) rotate(1deg); }
	100% { transform: none; }
}
.intro__full { opacity: 0; animation: fade-in .2s 1.8s forwards; }
@keyframes fade-in { to { opacity: 1; } }
.intro__arc tspan { fill-opacity: 0; stroke: var(--rosa-fuerte); stroke-width: 3; stroke-dasharray: 320; stroke-dashoffset: 320; opacity: 0; animation: write .45s calc(.95s + var(--i) * .05s) var(--ease) forwards; }
@keyframes write {
	0% { opacity: 0; }
	15% { opacity: 1; }
	65% { stroke-dashoffset: 0; fill-opacity: 0; }
	100% { stroke-dashoffset: 0; fill-opacity: 1; opacity: 1; stroke-width: 0; }
}
.intro__name { transform-box: fill-box; transform-origin: center; animation: name-pop .45s 1.55s var(--bounce) both; }
@keyframes name-pop { from { transform: scale(0) rotate(-12deg); opacity: 0; } }
.intro__puff { position: absolute; bottom: 4%; width: 16%; aspect-ratio: 1; border-radius: 50%; background: #fff; box-shadow: 0 0 0 3px var(--rosa-claro-2); opacity: 0; animation: puff .55s .95s ease-out forwards; }
.intro__puff--1 { left: 22%; } .intro__puff--2 { left: 42%; width: 13%; animation-delay: 1s; } .intro__puff--3 { right: 20%; }
@keyframes puff {
	0% { opacity: 0; transform: translate(0, 0) scale(.2); }
	30% { opacity: .95; }
	100% { opacity: 0; transform: translate(var(--px, -60%), -40%) scale(1.3); }
}
.intro__puff--2 { --px: 0; } .intro__puff--3 { --px: 60%; }

/* ==========================================================================
   Reveal on scroll (only with JS)
   ========================================================================== */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal--zoom { transform: translateY(20px) scale(.92); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .type-card.reveal.is-in:hover { transform: translateY(-8px) rotate(-.6deg); }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
	.js .reveal { opacity: 1; transform: none; }
}
