/* =========================================================
   Magali Rivadeneira · Cake Designer
   ========================================================= */
:root {
  --cream: #FBF6F1;
  --paper: #FFFFFF;
  --tint: #F6ECE6;
  --blush: #F2DCD5;
  --rose: #C27D74;
  --rose-dark: #9E5850;
  --gold: #B8925A;
  --gold-soft: #E5D2B3;
  --ink: #33242A;
  --ink-soft: #5B474D;
  --muted: #8A777B;
  --line: #EADDD5;
  --ok: #3E8E63;
  --warn: #C2852B;
  --danger: #BF4B4B;
  --info: #4A78A8;
  --wa: #25D366;

  --serif: 'Cormorant Garamond', 'Times New Roman', serif;
  --script: 'Great Vibes', cursive;
  --sans: 'Jost', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --radius: 18px;
  --radius-sm: 10px;
  --shadow-sm: 0 2px 10px rgba(51, 36, 42, .06);
  --shadow: 0 18px 40px -18px rgba(51, 36, 42, .28);
  --shadow-lg: 0 30px 70px -25px rgba(51, 36, 42, .45);
  --ease: cubic-bezier(.22, .61, .36, 1);
  --header-h: 78px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { max-width: 100%; display: block; }
a { color: var(--rose-dark); text-decoration: none; transition: color .2s; }
a:hover { color: var(--ink); }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.12; margin: 0 0 .5em; color: var(--ink); letter-spacing: -.005em; }
p { margin: 0 0 1em; }
button { font: inherit; cursor: pointer; }
[hidden] { display: none !important; }
.ic { width: 1.15em; height: 1.15em; flex: none; vertical-align: -.2em; }

.container { width: min(1200px, 100% - 2.5rem); margin-inline: auto; }
.narrow { width: min(760px, 100% - 2.5rem); }
.center { text-align: center; }
.center-flex { justify-content: center; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.capitalize::first-letter { text-transform: uppercase; }
.mt-lg { margin-top: 2.75rem; }
.mt-xl { margin-top: 5rem; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: .6rem 1rem; z-index: 999; }
.skip:focus { left: 1rem; top: 1rem; }
:focus-visible { outline: 2px solid var(--rose); outline-offset: 3px; }
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: .85em 1.6em; border-radius: 999px; border: 1.5px solid transparent;
  font-family: var(--sans); font-weight: 500; font-size: .95rem; letter-spacing: .04em; line-height: 1.2;
  transition: transform .25s var(--ease), background .25s, color .25s, box-shadow .25s, border-color .25s;
  white-space: nowrap; text-decoration: none;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-sm { padding: .6em 1.15em; font-size: .85rem; }
.btn-lg { padding: 1.05em 2em; font-size: 1rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--ink); color: #fff; box-shadow: 0 10px 24px -12px rgba(51, 36, 42, .7); }
.btn-primary:hover { background: var(--rose-dark); color: #fff; }
.btn-outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-light { background: #fff; color: var(--ink); box-shadow: 0 14px 30px -14px rgba(0, 0, 0, .5); }
.btn-light:hover { background: var(--blush); color: var(--ink); }
.btn-ghost-light { border-color: rgba(255, 255, 255, .55); color: #fff; background: rgba(255, 255, 255, .06); backdrop-filter: blur(6px); }
.btn-ghost-light:hover { background: #fff; color: var(--ink); }
.btn-whatsapp { background: var(--wa); color: #fff; }
.btn-whatsapp:hover { background: #1DA851; color: #fff; }
.btn-mp { background: #009EE3; color: #fff; }
.btn-mp:hover { background: #0086C3; color: #fff; }

.chip { display: inline-flex; align-items: center; gap: .35em; font-size: .75rem; font-weight: 500; letter-spacing: .04em; padding: .3em .8em; border-radius: 999px; background: var(--tint); color: var(--ink-soft); }
.chip-float { position: absolute; top: 14px; left: 14px; background: rgba(255, 255, 255, .92); color: var(--rose-dark); backdrop-filter: blur(4px); text-transform: uppercase; letter-spacing: .12em; font-size: .68rem; }
.chip-warn { background: #FBEBD3; color: #93601A; }
.chip-danger { background: #F8DEDE; color: #9B3434; }
.chip-muted { background: #EEE8E6; color: var(--muted); }

.eyebrow { font-family: var(--sans); font-size: .78rem; font-weight: 500; letter-spacing: .28em; text-transform: uppercase; color: var(--rose); margin-bottom: .9rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: rgba(251, 246, 241, .86); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s, background .3s;
}
.site-header.scrolled { border-color: var(--line); box-shadow: 0 6px 24px -18px rgba(51, 36, 42, .5); }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.brand { display: flex; flex-direction: column; align-items: flex-start; line-height: 1; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand-name { font-family: var(--script); font-size: 2.05rem; line-height: .9; white-space: nowrap; }
.brand-tag { font-size: .62rem; letter-spacing: .42em; text-transform: uppercase; color: var(--gold); margin: .35rem 0 0 .2rem; }
.brand-light, .brand-light:hover { color: #fff; }
.main-nav { display: flex; align-items: center; gap: 2rem; }
.main-nav > a:not(.btn) { position: relative; color: var(--ink-soft); font-size: .92rem; letter-spacing: .06em; padding: .4rem 0; }
.main-nav > a:not(.btn)::after { content: ''; position: absolute; left: 50%; right: 50%; bottom: 0; height: 1.5px; background: var(--rose); transition: left .3s var(--ease), right .3s var(--ease); }
.main-nav > a:not(.btn):hover, .main-nav > a.active { color: var(--ink); }
.main-nav > a:not(.btn):hover::after, .main-nav > a.active::after { left: 0; right: 0; }
.nav-toggle { display: none; background: none; border: 0; color: var(--ink); padding: .5rem; margin-right: -.5rem; }
.nav-toggle .ic { width: 28px; height: 28px; }
.nav-toggle .ic-close { display: none; }

/* ---------- Hero slider ---------- */
.hero { position: relative; height: clamp(600px, calc(100svh - var(--header-h)), 860px); overflow: hidden; background: var(--ink); color: #fff; isolation: isolate; }
.hero-track, .hero-slide { position: absolute; inset: 0; }
.hero-slide { opacity: 0; visibility: hidden; transition: opacity 1.1s var(--ease), visibility 0s 1.1s; }
.hero-slide.is-active { opacity: 1; visibility: visible; transition: opacity 1.1s var(--ease), visibility 0s; z-index: 1; }
.hero-bg { position: absolute; inset: -60px; background-size: cover; background-position: center; filter: blur(38px) saturate(1.15) brightness(.55); transform: scale(1.1); }
.hero-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(40, 24, 30, .88) 0%, rgba(40, 24, 30, .55) 48%, rgba(40, 24, 30, .25) 100%); }
.hero::after { content: ''; position: absolute; inset: 0; z-index: 2; pointer-events: none; background: radial-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px); background-size: 4px 4px; opacity: .5; }
.hero-inner { position: relative; z-index: 3; height: 100%; display: grid; grid-template-columns: 1.08fr .92fr; align-items: center; gap: 3rem; padding-bottom: 70px; }
.hero-text { max-width: 600px; }
.hero-eyebrow { display: flex; align-items: center; gap: .9rem; font-size: .8rem; letter-spacing: .32em; text-transform: uppercase; color: var(--gold-soft); margin-bottom: 1.4rem; }
.hero-eyebrow span { width: 42px; height: 1px; background: currentColor; }
.hero-title { font-size: clamp(2.6rem, 5.4vw, 4.9rem); color: #fff; font-weight: 500; line-height: 1.02; margin-bottom: 1.4rem; letter-spacing: -.015em; }
.hero-sub { font-size: 1.12rem; font-weight: 300; color: rgba(255, 255, 255, .82); max-width: 470px; margin-bottom: 2.2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; }
.hero-figure { position: relative; justify-self: center; width: min(440px, 100%); }
.hero-arch { position: relative; aspect-ratio: 4 / 5; border-radius: 999px 999px 26px 26px; overflow: hidden; box-shadow: var(--shadow-lg); background: rgba(255, 255, 255, .08); }
.hero-arch img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); transition: transform 7s linear; }
.hero-figure::before { content: ''; position: absolute; inset: -16px 16px 16px -16px; border: 1px solid rgba(229, 210, 179, .55); border-radius: 999px 999px 30px 30px; z-index: -1; transition: transform 1.2s var(--ease); transform: translate(-10px, 10px); }
.hero-script { position: absolute; right: -34px; bottom: -34px; font-family: var(--script); font-size: clamp(2.2rem, 3.6vw, 3.2rem); color: var(--gold-soft); transform: rotate(-8deg); text-shadow: 0 4px 18px rgba(0, 0, 0, .45); }

.hero-slide .hero-eyebrow, .hero-slide .hero-title, .hero-slide .hero-sub, .hero-slide .hero-actions, .hero-slide .hero-figure {
  opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease);
}
.hero-slide .hero-figure { transform: translateY(30px) scale(.96); }
.hero-slide.is-active .hero-eyebrow { opacity: 1; transform: none; transition-delay: .25s; }
.hero-slide.is-active .hero-title { opacity: 1; transform: none; transition-delay: .4s; }
.hero-slide.is-active .hero-sub { opacity: 1; transform: none; transition-delay: .55s; }
.hero-slide.is-active .hero-actions { opacity: 1; transform: none; transition-delay: .7s; }
.hero-slide.is-active .hero-figure { opacity: 1; transform: none; transition-delay: .3s; transition-duration: 1.2s; }
.hero-slide.is-active .hero-arch img { transform: scale(1); }
.hero-slide.is-active .hero-figure::before { transform: none; }

.hero-controls { position: absolute; z-index: 4; left: 0; right: 0; bottom: 34px; display: flex; align-items: center; gap: 2rem; }
.hero-counter { font-family: var(--serif); font-size: 1.05rem; color: rgba(255, 255, 255, .6); display: flex; gap: .45rem; align-items: baseline; }
.hero-counter b { font-size: 1.6rem; color: #fff; font-weight: 600; }
.hero-dots { display: flex; gap: .6rem; flex: 1; }
.hero-dots button { position: relative; width: 54px; height: 22px; background: none; border: 0; padding: 0; }
.hero-dots button::before { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 2px; background: rgba(255, 255, 255, .28); }
.hero-dots button span { position: absolute; left: 0; top: 50%; height: 2px; width: 0; background: #fff; }
.hero-dots button.is-active span { animation: heroProgress var(--hero-delay, 6.5s) linear forwards; }
.hero.is-paused .hero-dots button.is-active span { animation-play-state: paused; }
@keyframes heroProgress { to { width: 100%; } }
.hero-arrows { display: flex; gap: .6rem; }
@media (max-width: 1520px) { .hero-controls { padding-right: 84px; } }
.hero-arrows button, .carousel-arrows button {
  width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid rgba(255, 255, 255, .4); background: rgba(255, 255, 255, .06); color: #fff; backdrop-filter: blur(6px);
  transition: background .25s, color .25s, transform .25s;
}
.hero-arrows button:hover { background: #fff; color: var(--ink); transform: scale(1.06); }

/* ---------- Features ---------- */
.features { background: var(--paper); border-bottom: 1px solid var(--line); }
.features-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.feature { display: flex; gap: 1rem; align-items: flex-start; padding: 2.2rem 1.6rem; border-left: 1px solid var(--line); }
.feature:first-child { border-left: 0; padding-left: 0; }
.feature h3 { font-size: 1.3rem; margin-bottom: .2rem; }
.feature p { margin: 0; font-size: .92rem; color: var(--muted); line-height: 1.5; }
.feature-ic { flex: none; width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; background: var(--tint); color: var(--rose-dark); }
.feature-ic .ic { width: 24px; height: 24px; }

/* ---------- Secciones ---------- */
.section { padding: clamp(4rem, 9vw, 7rem) 0; }
.section-tight { padding: clamp(2.5rem, 5vw, 4rem) 0 clamp(4rem, 8vw, 6rem); }
.section-tint { background: linear-gradient(180deg, var(--tint), var(--cream)); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 3rem; }
.section-head-row { display: flex; align-items: flex-end; justify-content: space-between; text-align: left; max-width: none; gap: 2rem; }
.section-title { font-size: clamp(2.2rem, 4.2vw, 3.4rem); font-weight: 500; }
.section-lead { color: var(--muted); font-size: 1.08rem; font-weight: 300; margin: 0; }
.section-head .section-title::after { content: ''; display: block; width: 64px; height: 1px; background: var(--gold); margin: 1.1rem auto 1.2rem; }
.section-head-row .section-title::after { margin-left: 0; }

.page-hero { padding: clamp(3rem, 7vw, 5.5rem) 0 1rem; text-align: center; background: radial-gradient(ellipse at 50% 0%, var(--blush), transparent 70%); }
.page-hero .container { max-width: 760px; }
.page-title { font-size: clamp(2.3rem, 4.6vw, 3.6rem); font-weight: 500; }

/* ---------- Trabajos recientes / galería ---------- */
.recent-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem; }
.recent-item, .masonry-item { position: relative; display: block; overflow: hidden; border-radius: var(--radius); background: var(--tint); box-shadow: var(--shadow-sm); }
.recent-item { aspect-ratio: 4 / 5; }
.recent-item img, .masonry-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease), filter .5s; }
.masonry-item img { height: auto; }
.recent-overlay {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; padding: 1.3rem;
  background: linear-gradient(180deg, transparent 45%, rgba(40, 24, 30, .82)); color: #fff;
  opacity: 0; transition: opacity .45s var(--ease);
}
.recent-overlay small { font-size: .7rem; letter-spacing: .22em; text-transform: uppercase; color: var(--gold-soft); transform: translateY(10px); transition: transform .45s var(--ease); }
.recent-overlay b { font-family: var(--serif); font-size: 1.45rem; font-weight: 600; line-height: 1.15; transform: translateY(10px); transition: transform .45s var(--ease) .05s; }
.recent-overlay .ic { position: absolute; top: 1.1rem; right: 1.1rem; width: 40px; height: 40px; padding: 9px; border-radius: 50%; background: rgba(255, 255, 255, .92); color: var(--ink); transform: scale(.6); transition: transform .45s var(--ease); }
.recent-item:hover img, .masonry-item:hover img { transform: scale(1.07); }
.recent-item:hover .recent-overlay, .masonry-item:hover .recent-overlay, .recent-item:focus-visible .recent-overlay { opacity: 1; }
.recent-item:hover .recent-overlay > *, .masonry-item:hover .recent-overlay > * { transform: none; }

.masonry { columns: 4 260px; column-gap: 1.1rem; }
.masonry-item { break-inside: avoid; margin-bottom: 1.1rem; }

.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin-bottom: 2.5rem; }
.filters a { padding: .55rem 1.2rem; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); color: var(--ink-soft); font-size: .9rem; transition: all .25s; }
.filters a small { color: var(--muted); margin-left: .25rem; }
.filters a:hover { border-color: var(--rose); color: var(--ink); }
.filters a.active { background: var(--ink); border-color: var(--ink); color: #fff; }
.filters a.active small { color: rgba(255, 255, 255, .6); }

/* ---------- Carrusel ---------- */
.carousel { display: flex; gap: 1.5rem; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding: .5rem .25rem 1.5rem; margin: 0 -.25rem; scrollbar-width: none; }
.carousel::-webkit-scrollbar { display: none; }
.carousel-item { flex: 0 0 calc((100% - 3 * 1.5rem) / 4); scroll-snap-align: start; }
.carousel-arrows { display: flex; gap: .6rem; flex: none; }
.carousel-arrows button { border-color: var(--ink); color: var(--ink); background: transparent; }
.carousel-arrows button:hover:not(:disabled) { background: var(--ink); color: #fff; }
.carousel-arrows button:disabled { opacity: .3; cursor: default; }

/* ---------- Tarjeta torta ---------- */
.torta-card { background: var(--paper); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); height: 100%; display: flex; flex-direction: column; transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.torta-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.torta-card-img { position: relative; display: block; aspect-ratio: 1; overflow: hidden; background: var(--tint); }
.torta-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.torta-card:hover .torta-card-img img { transform: scale(1.06); }
.torta-card-body { padding: 1.3rem 1.4rem 1.4rem; display: flex; flex-direction: column; flex: 1; }
.torta-card h3 { font-size: 1.55rem; margin-bottom: .15rem; }
.torta-card h3 a { color: var(--ink); }
.torta-card-body > p { margin-bottom: 1rem; }
.torta-card-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding-top: 1rem; border-top: 1px dashed var(--line); }
.price { font-family: var(--serif); font-size: 1.55rem; font-weight: 600; color: var(--rose-dark); }
.tortas-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1.6rem; }

/* ---------- Seminarios ---------- */
.sem-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1.8rem; }
.sem-card { background: var(--paper); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; height: 100%; transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.sem-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.sem-card.is-past { opacity: .65; }
.sem-card-img { position: relative; display: block; aspect-ratio: 16 / 11; overflow: hidden; background: var(--tint); }
.sem-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.sem-card:hover .sem-card-img img { transform: scale(1.06); }
.date-badge { position: absolute; top: 16px; left: 16px; width: 64px; padding: .5rem 0 .55rem; text-align: center; background: var(--paper); border-radius: 12px; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--rose-dark); box-shadow: var(--shadow-sm); line-height: 1.1; }
.date-badge b { display: block; font-family: var(--serif); font-size: 1.85rem; color: var(--ink); letter-spacing: 0; }
.sem-card-body { padding: 1.5rem 1.6rem 1.6rem; display: flex; flex-direction: column; flex: 1; }
.sem-card-body .eyebrow { font-size: .7rem; margin-bottom: .5rem; }
.sem-card h3 { font-size: 1.7rem; }
.sem-card h3 a { color: var(--ink); }
.sem-card-body > p.muted { font-size: .95rem; line-height: 1.55; }
.sem-card-foot { margin-top: auto; display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; padding-top: 1.1rem; border-top: 1px dashed var(--line); }
.sem-card-foot > div { display: flex; flex-direction: column; gap: .35rem; align-items: flex-start; }

.sem-hero { position: relative; overflow: hidden; background: var(--ink); color: #fff; padding: clamp(3.5rem, 8vw, 6rem) 0 clamp(3rem, 6vw, 4.5rem); }
.sem-hero-bg { position: absolute; inset: -60px; background-size: cover; background-position: center; filter: blur(30px) brightness(.45) saturate(1.2); }
.sem-hero-inner { position: relative; max-width: 860px; }
.sem-hero-title { color: #fff; font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 500; margin-bottom: 1rem; }
.sem-layout { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 3rem; align-items: start; }
.info-grid { list-style: none; padding: 0; margin: 0 0 1.4rem; display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: .9rem; }
.info-grid li { display: flex; gap: .9rem; align-items: center; background: var(--paper); border-radius: var(--radius-sm); padding: 1rem 1.1rem; box-shadow: var(--shadow-sm); }
.info-grid .ic { width: 26px; height: 26px; color: var(--rose); }
.info-grid small { display: block; font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.info-grid b { font-weight: 500; font-size: .98rem; line-height: 1.3; }
.cupo-bar { height: 6px; border-radius: 6px; background: var(--line); overflow: hidden; margin-bottom: 2.4rem; }
.cupo-bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--gold), var(--rose)); border-radius: inherit; }
.sem-figure { display: block; border-radius: var(--radius); overflow: hidden; margin-bottom: 2.5rem; box-shadow: var(--shadow); }
.sem-figure img { width: 100%; max-height: 560px; object-fit: cover; }
.block-title { font-size: 1.9rem; font-weight: 500; }
.lists { margin-top: 2rem; }
.list-num { margin: 0; padding-left: 0; list-style: none; counter-reset: n; }
.list-num li { counter-increment: n; display: flex; gap: .9rem; padding: .55rem 0; border-bottom: 1px dashed var(--line); }
.list-num li:last-child { border: 0; }
.list-num li::before { content: counter(n, decimal-leading-zero); font-family: var(--serif); font-weight: 600; color: var(--rose); font-size: 1.1rem; min-width: 1.6rem; }
.list-check { list-style: none; margin: 0; padding: 0; }
.list-check li { display: flex; gap: .7rem; padding: .5rem 0; align-items: flex-start; }
.list-check .ic { color: var(--ok); margin-top: .25em; }

.pay-options { display: grid; gap: .7rem; }
.pay-option { position: relative; display: flex; align-items: center; gap: .9rem; padding: 1rem 1.1rem; border: 1.5px solid var(--line); border-radius: 14px; cursor: pointer; transition: border-color .2s, background .2s; }
.pay-option:hover { border-color: var(--gold-soft); }
.pay-option:has(input:checked) { border-color: var(--rose); background: #FDF5F2; }
.pay-option input { accent-color: var(--rose-dark); width: 18px; height: 18px; flex: none; }
.pay-option span { flex: 1; display: flex; flex-direction: column; line-height: 1.35; }
.pay-option small { color: var(--muted); font-size: .82rem; }
.pay-option em { font-style: normal; font-family: var(--serif); font-weight: 600; font-size: 1.2rem; color: var(--rose-dark); }

/* ---------- Producto ---------- */
.breadcrumb { display: flex; gap: .55rem; flex-wrap: wrap; font-size: .85rem; color: var(--muted); margin-bottom: 2rem; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--ink); }
.breadcrumb-light, .breadcrumb-light a { color: rgba(255, 255, 255, .65); }
.breadcrumb-light a:hover { color: #fff; }
.product { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.product-media { position: sticky; top: calc(var(--header-h) + 1.5rem); border-radius: 24px; overflow: hidden; box-shadow: var(--shadow); background: var(--tint); }
.product-media img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.product-price { font-family: var(--serif); font-size: 2.2rem; font-weight: 600; color: var(--rose-dark); margin-bottom: .4rem; }
.product-price small { font-family: var(--sans); font-size: .9rem; font-weight: 400; }
.product-meta { display: flex; align-items: center; gap: .5rem; color: var(--ink-soft); }
.prose { color: var(--ink-soft); }
.prose p:last-child { margin-bottom: 0; }

/* ---------- Formularios ---------- */
.card { background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: clamp(1.4rem, 3vw, 2rem); }
.form { display: flex; flex-direction: column; gap: 1.05rem; margin-top: 2rem; }
.sem-aside .form { margin-top: 0; }
.sticky { position: sticky; top: calc(var(--header-h) + 1.5rem); }
.form-title { font-size: 1.85rem; font-weight: 500; margin-bottom: .2rem; }
.field { display: flex; flex-direction: column; gap: .4rem; font-size: .88rem; font-weight: 500; color: var(--ink-soft); border: 0; padding: 0; margin: 0; min-width: 0; }
.field legend { padding: 0; margin-bottom: .45rem; }
.field input:not([type=radio]):not([type=checkbox]), .field select, .field textarea {
  width: 100%; font: inherit; font-weight: 400; font-size: 1rem; color: var(--ink);
  padding: .8rem 1rem; border: 1.5px solid var(--line); border-radius: 12px; background: #FFFDFB;
  transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-color: var(--rose); box-shadow: 0 0 0 4px rgba(194, 125, 116, .15); }
.field textarea { resize: vertical; min-height: 90px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.segmented { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.segmented label { position: relative; cursor: pointer; }
.segmented input { position: absolute; opacity: 0; }
.segmented span { display: block; text-align: center; padding: .75rem .5rem; border: 1.5px solid var(--line); border-radius: 12px; font-weight: 400; transition: all .2s; }
.segmented input:checked + span { border-color: var(--ink); background: var(--ink); color: #fff; }
.segmented input:focus-visible + span { outline: 2px solid var(--rose); outline-offset: 2px; }
.qty { display: flex; align-items: stretch; border: 1.5px solid var(--line); border-radius: 12px; overflow: hidden; background: #FFFDFB; }
.qty button { width: 46px; border: 0; background: transparent; font-size: 1.25rem; color: var(--ink); }
.qty button:hover { background: var(--tint); }
.field .qty input { border: 0 !important; border-radius: 0 !important; text-align: center; box-shadow: none !important; -moz-appearance: textfield; }
.qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.form-total { display: flex; justify-content: space-between; align-items: baseline; padding: 1rem 0 .2rem; border-top: 1px dashed var(--line); }
.form-total b { font-family: var(--serif); font-size: 2rem; color: var(--ink); }

.alert { padding: .9rem 1.1rem; border-radius: 12px; background: #F3ECE6; color: var(--ink-soft); font-size: .95rem; display: flex; gap: .6rem; align-items: center; }
.alert ul { margin: 0; padding-left: 1.1rem; }
.alert-error { background: #FBE7E6; color: #8E2F2F; }
.alert-ok { background: #E3F3EA; color: #24603F; }

/* ---------- Pago ---------- */
.pago-head { text-align: center; margin-bottom: 2rem; display: flex; flex-direction: column; align-items: center; gap: .3rem; }
.pago-head .alert { margin-top: 1rem; }
.pago-ic { width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; background: var(--blush); color: var(--rose-dark); margin-bottom: 1rem; }
.pago-ic.ok { background: #DDF1E5; color: var(--ok); }
.pago-ic .ic { width: 36px; height: 36px; }
.resumen-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-bottom: 1rem; border-bottom: 1px dashed var(--line); margin-bottom: .6rem; }
.codigo { display: block; font-family: var(--serif); font-size: 1.8rem; letter-spacing: .08em; }
.resumen-list { margin: 0; }
.resumen-list > div, .bank > div { display: flex; justify-content: space-between; gap: 1rem; padding: .55rem 0; }
.resumen-list dt, .bank dt { color: var(--muted); }
.resumen-list dd, .bank dd { margin: 0; text-align: right; font-weight: 500; }
.resumen-total { border-top: 1px solid var(--line); margin-top: .4rem; padding-top: .9rem !important; }
.resumen-total dd { font-family: var(--serif); font-size: 1.7rem; color: var(--rose-dark); }
.pay-methods { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.4rem; margin-top: 1.4rem; }
.pay-method { display: flex; flex-direction: column; gap: 1rem; }
.pay-method h2 { font-size: 1.5rem; margin: 0; }
.pay-method p { margin: 0; }
.pay-method-head { display: flex; gap: 1rem; align-items: center; }
.pay-method form, .pay-method > .btn { margin-top: auto; }
.mp-logo, .pay-method-ic { flex: none; width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: #E6F6FD; color: #009EE3; font-weight: 700; letter-spacing: .02em; }
.pay-method-ic { background: var(--tint); color: var(--rose-dark); }
.pay-method-ic .ic { width: 24px; height: 24px; }
.bank { margin: 0; background: var(--cream); border-radius: 12px; padding: .5rem 1rem; }
.bank dd { display: flex; align-items: center; gap: .4rem; }
.bank code { font-family: ui-monospace, Consolas, monospace; font-size: .9rem; word-break: break-all; }
.copy { border: 0; background: none; color: var(--rose-dark); padding: .2rem; border-radius: 6px; }
.copy:hover { background: var(--tint); }
.copy.copied { color: var(--ok); }
.badge { display: inline-block; padding: .35em .85em; border-radius: 999px; font-size: .78rem; font-weight: 500; letter-spacing: .03em; background: #EEE8E6; color: var(--ink-soft); white-space: nowrap; }
.badge-ok { background: #DDF1E5; color: #24603F; }
.badge-warn { background: #FBEBD3; color: #8A5A16; }
.badge-info { background: #E1ECF7; color: #2F5683; }
.badge-danger { background: #F8DEDE; color: #9B3434; }
.badge-muted { background: #EEE8E6; color: var(--muted); }

/* ---------- Sobre mí ---------- */
.about { background: var(--paper); }
.about-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2.5rem, 6vw, 5.5rem); align-items: center; }
.about-media { position: relative; max-width: 460px; justify-self: center; width: 100%; }
.about-frame { border-radius: 999px 999px 24px 24px; overflow: hidden; aspect-ratio: 4 / 5; box-shadow: var(--shadow-lg); }
.about-frame img { width: 100%; height: 100%; object-fit: cover; }
.about-media::before { content: ''; position: absolute; inset: 18px -18px -18px 18px; border: 1px solid var(--gold); border-radius: 999px 999px 28px 28px; z-index: -1; }
.about-media { isolation: isolate; }
.about-sign { position: absolute; left: -10px; bottom: -28px; font-family: var(--script); font-size: 4.5rem; color: var(--rose); transform: rotate(-8deg); }
.about-text .hero-actions { margin-top: 2rem; }

/* ---------- CTA ---------- */
.cta-band { margin-top: 4.5rem; padding: clamp(2rem, 4vw, 3rem) clamp(1.6rem, 4vw, 3.4rem); border-radius: 26px; background: linear-gradient(120deg, var(--ink), #5A3A43); color: #fff; display: flex; align-items: center; justify-content: space-between; gap: 2rem; position: relative; overflow: hidden; }
.cta-band::after { content: ''; position: absolute; right: -60px; top: -80px; width: 260px; height: 260px; border-radius: 50%; border: 1px solid rgba(229, 210, 179, .35); }
.cta-band h2 { color: #fff; font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 500; margin-bottom: .3rem; }
.cta-band p { margin: 0; color: rgba(255, 255, 255, .75); font-weight: 300; }
.cta-band .btn { position: relative; z-index: 1; }

/* ---------- Contacto ---------- */
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 2.5rem; align-items: start; }
.contact-info { display: grid; gap: .9rem; }
.contact-info .contact-card { display: flex; gap: 1rem; align-items: center; background: var(--paper); border-radius: var(--radius); padding: 1.15rem 1.3rem; box-shadow: var(--shadow-sm); color: var(--ink); transition: transform .3s var(--ease), box-shadow .3s; }
a.contact-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); color: var(--ink); }
.contact-card span:last-child { display: flex; flex-direction: column; min-width: 0; }
.contact-card small { font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.contact-card b { font-weight: 500; overflow-wrap: anywhere; }
.contact-card em { font-style: normal; font-size: .85rem; color: var(--wa); font-weight: 500; }
.contact-ic { width: 50px; height: 50px; border-radius: 50%; flex: none; display: grid; place-items: center; background: var(--tint); color: var(--rose-dark); }
.contact-ic .ic { width: 24px; height: 24px; }
.contact-card-wa .contact-ic { background: var(--wa); color: #fff; }
.contact-grid .form { margin-top: 0; }

.empty { text-align: center; padding: 3rem 1rem; color: var(--muted); display: flex; flex-direction: column; align-items: center; gap: 1rem; }
.script-big { font-family: var(--script); font-size: 6rem; color: var(--rose); line-height: 1; margin: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(255, 255, 255, .72); padding: 4.5rem 0 1.5rem; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: 3rem; padding-bottom: 3rem; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.site-footer h4 { color: #fff; font-family: var(--sans); font-size: .78rem; font-weight: 500; letter-spacing: .26em; text-transform: uppercase; margin-bottom: 1.3rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .7rem; }
.site-footer a { color: rgba(255, 255, 255, .72); }
.site-footer a:hover { color: #fff; }
.footer-brand p { margin: 1.2rem 0 1.5rem; max-width: 320px; font-weight: 300; }
.footer-brand .brand-tag { color: var(--gold-soft); }
.footer-contact li { display: flex; gap: .7rem; align-items: flex-start; }
.footer-contact .ic { margin-top: .25em; color: var(--gold-soft); }
.social { display: flex; gap: .6rem; }
.social a { width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .2); display: grid; place-items: center; transition: all .25s; }
.social a:hover { background: #fff; color: var(--ink); border-color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-top: 1.5rem; font-size: .82rem; color: rgba(255, 255, 255, .45); }
.footer-admin { color: rgba(255, 255, 255, .35) !important; }

/* ---------- WhatsApp flotante ---------- */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 60; display: flex; align-items: center; gap: .6rem;
  height: 62px; min-width: 62px; padding: 0 17px; border-radius: 999px; background: var(--wa); color: #fff;
  box-shadow: 0 14px 30px -10px rgba(37, 211, 102, .65); transition: transform .3s var(--ease), box-shadow .3s;
}
.wa-float::before { content: ''; position: absolute; inset: 0; border-radius: inherit; background: var(--wa); z-index: -1; animation: waPulse 2.6s infinite; }
.wa-float:hover { color: #fff; transform: translateY(-3px) scale(1.03); }
.wa-float .ic { width: 28px; height: 28px; }
.wa-float-label { max-width: 0; overflow: hidden; white-space: nowrap; font-weight: 500; transition: max-width .45s var(--ease); }
.wa-float:hover .wa-float-label { max-width: 120px; }
@keyframes waPulse { 0% { transform: scale(1); opacity: .55; } 80%, 100% { transform: scale(1.45); opacity: 0; } }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(28, 18, 22, .94); display: flex; align-items: center; justify-content: center; padding: 4rem 5rem; animation: fadeIn .3s; }
.lightbox figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 1rem; max-height: 100%; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 10rem); border-radius: 12px; box-shadow: 0 30px 80px rgba(0, 0, 0, .5); object-fit: contain; }
.lightbox figcaption { font-family: var(--serif); font-size: 1.5rem; color: #fff; text-align: center; }
.lightbox button { position: absolute; width: 54px; height: 54px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .3); background: rgba(255, 255, 255, .06); color: #fff; display: grid; place-items: center; transition: background .2s, color .2s; }
.lightbox button:hover { background: #fff; color: var(--ink); }
.lb-close { top: 1.2rem; right: 1.2rem; }
.lb-prev { left: 1.2rem; top: 50%; transform: translateY(-50%); }
.lb-next { right: 1.2rem; top: 50%; transform: translateY(-50%); }
@keyframes fadeIn { from { opacity: 0; } }
body.lb-open { overflow: hidden; }

/* ---------- Animaciones al hacer scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0ms); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .carousel-item { flex-basis: calc((100% - 2 * 1.5rem) / 3); }
  .main-nav { gap: 1.4rem; }
  .sem-layout { grid-template-columns: minmax(0, 1fr) 360px; gap: 2rem; }
}

@media (max-width: 920px) {
  :root { --header-h: 68px; }
  .brand-name { font-size: 1.75rem; }
  .nav-toggle { display: block; }
  .main-nav {
    position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--cream); padding: 1rem 1.25rem 1.75rem; border-bottom: 1px solid var(--line); box-shadow: 0 30px 40px -30px rgba(0, 0, 0, .35);
    transform: translateY(-12px); opacity: 0; visibility: hidden; transition: all .3s var(--ease);
  }
  .main-nav > a:not(.btn) { font-family: var(--serif); font-size: 1.6rem; padding: .7rem 0; border-bottom: 1px solid var(--line); letter-spacing: 0; }
  .main-nav > a:not(.btn)::after { display: none; }
  .main-nav .nav-cta { margin-top: 1.25rem; padding: 1em; }
  .nav-open .main-nav { transform: none; opacity: 1; visibility: visible; }
  .nav-open .nav-toggle .ic-open { display: none; }
  .nav-open .nav-toggle .ic-close { display: block; }

  .hero { height: auto; min-height: min(calc(100svh - var(--header-h)), 780px); }
  .hero-track { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); }
  .hero-slide { position: relative; grid-area: 1 / 1; min-width: 0; }
  .hero-inner { grid-template-columns: 1fr; text-align: center; gap: 1.6rem; padding: 2.2rem 0 110px; align-content: center; }
  .hero-figure { order: -1; width: min(300px, 72vw); }
  .hero-text { margin: 0 auto; }
  .hero-eyebrow { justify-content: center; margin-bottom: 1rem; }
  .hero-sub { margin-inline: auto; margin-bottom: 1.6rem; font-size: 1rem; }
  .hero-actions { justify-content: center; }
  .hero-script { display: none; }
  .hero-bg::after { background: linear-gradient(180deg, rgba(40, 24, 30, .55), rgba(40, 24, 30, .88)); }
  .hero-controls { bottom: 24px; gap: 1rem; }
  .hero-dots button { width: 30px; }
  .hero-counter { display: none; }
  .hero-arrows button { width: 44px; height: 44px; }

  .features-grid { grid-template-columns: 1fr 1fr; }
  .feature { padding: 1.6rem 1rem; }
  .feature:nth-child(odd) { border-left: 0; padding-left: 0; }
  .feature:nth-child(n+3) { border-top: 1px solid var(--line); }

  .recent-grid { grid-template-columns: repeat(2, 1fr); }
  .carousel-item { flex-basis: calc((100% - 1.5rem) / 2); }
  .product, .about-grid, .contact-grid, .sem-layout { grid-template-columns: 1fr; }
  .product-media, .sticky { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .cta-band { flex-direction: column; text-align: center; }
  .about-media { max-width: 360px; }
}

@media (max-width: 600px) {
  body { font-size: 1rem; }
  .container, .narrow { width: calc(100% - 2rem); }
  .section-head-row { flex-direction: column; align-items: flex-start; }
  .carousel-arrows { display: none; }
  .carousel { gap: 1rem; margin-right: -1rem; padding-right: 1rem; }
  .carousel-item { flex-basis: 78%; }
  .features-grid { grid-template-columns: 1fr; }
  .feature, .feature:nth-child(odd) { border-left: 0; padding: 1.2rem 0; }
  .feature:nth-child(n+2) { border-top: 1px solid var(--line); }
  .recent-grid { gap: .7rem; }
  .masonry { columns: 2; column-gap: .7rem; }
  .masonry-item { margin-bottom: .7rem; border-radius: 12px; }
  .recent-overlay { opacity: 1; background: linear-gradient(180deg, transparent 60%, rgba(40, 24, 30, .75)); padding: .8rem; }
  .recent-overlay > * { transform: none !important; }
  .recent-overlay b { font-size: 1.05rem; }
  .recent-overlay small, .recent-overlay .ic { display: none; }
  .grid-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2.2rem; }
  .lightbox { padding: 4rem .75rem; }
  .lb-prev, .lb-next { top: auto; bottom: 1.2rem; transform: none; }
  .lb-prev { left: calc(50% - 64px); }
  .lb-next { right: calc(50% - 64px); }
  .wa-float { right: 16px; bottom: 16px; height: 56px; min-width: 56px; padding: 0 14px; }
  .sem-grid { grid-template-columns: 1fr; }
  .tortas-grid { grid-template-columns: 1fr 1fr; gap: .9rem; }
  .tortas-grid .torta-card-body { padding: .9rem; }
  .tortas-grid .torta-card h3 { font-size: 1.2rem; }
  .tortas-grid .torta-card-foot { flex-direction: column; align-items: stretch; gap: .6rem; }
  .tortas-grid .price { font-size: 1.3rem; }
  .about-sign { font-size: 3.4rem; }
}

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