:root {
  --paper: #FBF8F2; --sand: #F1EBDF; --ink: #26302A; --muted: #5E695F; --sage: #4F6149; --sage-deep: #3F4F3A; --rose: #9C5B52; --line: #DDD5C5;
  --serif: "Newsreader", Georgia, "Times New Roman", serif; --sans: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif; --script: "Pinyon Script", "Snell Roundhand", cursive;
  box-sizing: border-box; padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px);
}
@media (prefers-color-scheme: dark) {
  :root { --paper: #151A17; --sand: #1C231F; --ink: #EEEBE2; --muted: #A8B2AA; --sage: #86B79A; --sage-deep: #0F1511; --rose: #E0A397; --line: #33403A; }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 70px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.65 var(--sans); }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--rose); outline-offset: 3px; border-radius: 6px; }

.top { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: 12px clamp(18px, 5vw, 56px); background: color-mix(in srgb, var(--paper) 90%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.logo { display: inline-flex; align-items: center; gap: 12px; font-family: var(--serif); font-weight: 600; font-size: 1.2rem; letter-spacing: .22em; text-transform: uppercase; line-height: 1; text-decoration: none; color: var(--ink); }
.logo-mark { display: block; height: 36px; width: auto; }
.foot-logo { display: block; height: 70px; width: auto; }
@media (prefers-color-scheme: dark) { .logo-mark, .foot-logo { filter: invert(1); } }
.top nav { display: flex; align-items: center; gap: clamp(12px, 3vw, 28px); flex-wrap: wrap; }
.top nav a { text-decoration: none; font-weight: 600; font-size: .95rem; }
.top nav a:hover { color: var(--rose); }
.pill { padding: 8px 18px; border: 1.5px solid var(--sage); border-radius: 999px; color: var(--sage); }
.top nav a.pill:hover { background: var(--sage); color: var(--paper); }
@media (max-width: 560px) { .top nav a:not(.pill) { display: none; } }

main > section { padding: clamp(48px, 8vw, 96px) clamp(20px, 6vw, 72px); }
main > section > h2, .sub { text-align: center; }
h2 { font-size: clamp(1.9rem, 4.2vw, 2.9rem); margin-bottom: 14px; }
.sub { color: var(--muted); max-width: 52ch; margin: 0 auto 36px; }

/* ---------- Portada ---------- */
.hero { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 5vw, 72px); align-items: center; max-width: 1180px; margin: 0 auto;
  padding-bottom: clamp(32px, 5vw, 56px); }
.eyebrow { color: var(--rose); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; font-size: .8rem; margin-bottom: 14px; }
.hero h1 { font-size: clamp(2.3rem, 5.6vw, 4.2rem); letter-spacing: -.01em; }
.hero h1 em { font-style: italic; color: var(--rose); font-weight: 400; }
.lead { margin-top: 20px; font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: var(--muted); max-width: 52ch; }
.cta { display: inline-block; margin-top: 28px; padding: 15px 34px; background: var(--sage); color: #fff; border-radius: 999px; font-weight: 700; text-decoration: none;
  box-shadow: 0 8px 22px rgba(63, 79, 58, .28); transition: transform .15s ease, box-shadow .15s ease; }
@media (prefers-color-scheme: dark) { .cta { color: #0E1511; } }
.cta:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(63, 79, 58, .34); }
.note { margin-top: 14px; font-size: .92rem; color: var(--muted); }

.hero-demo { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.phone { --pw: min(300px, 78vw); width: var(--pw); height: calc(var(--pw) * 2.05); border-radius: 40px; padding: 11px; background: #1b1f1c; box-shadow: 0 30px 70px rgba(0, 0, 0, .28), inset 0 0 0 2px #3a403b; position: relative; }
.phone::before { content: ""; position: absolute; top: 18px; left: 50%; width: 74px; height: 18px; margin-left: -37px; background: #1b1f1c; border-radius: 12px; z-index: 2; }
.screen { width: 100%; height: 100%; border-radius: 30px; overflow-y: auto; overflow-x: hidden; background: #fff; scrollbar-width: none; overscroll-behavior: contain; }
.screen::-webkit-scrollbar { display: none; }
.demo-tabs { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.demo-tabs button { padding: 8px 16px; border-radius: 999px; border: 1.5px solid var(--line); background: transparent; color: var(--ink); font: inherit; font-size: .9rem; font-weight: 600; cursor: pointer; }
.demo-tabs button[aria-selected="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* ---------- Tipos ---------- */
.types { background: var(--sand); }
.mosaic { list-style: none; margin: 0 auto; padding: 0; max-width: 1180px; display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: clamp(170px, 17vw, 230px); gap: 14px; }
.mosaic li { display: contents; }
.t-wedding > a { grid-column: 1 / 3; grid-row: 1 / 3; }
.t-quince > a { grid-column: 3; grid-row: 1 / 3; }
.t-infantil > a { grid-column: 4; grid-row: 1; }
.t-dieciocho > a { grid-column: 4; grid-row: 2; }
.t-aniversario > a { grid-column: 1; grid-row: 3; }
.t-cumple > a { grid-column: 2; grid-row: 3; }
.t-especial > a { grid-column: 3 / 5; grid-row: 3; }

.tipo { position: relative; display: block; overflow: hidden; border-radius: 22px; color: #fff; text-decoration: none; isolation: isolate; background: #2a2f2c;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .16); transition: transform .3s ease, box-shadow .3s ease; }
.tipo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .8s cubic-bezier(.2, .7, .2, 1); }
.tipo::after { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to top, rgba(8, 10, 9, .86) 0%, rgba(8, 10, 9, .45) 38%, rgba(8, 10, 9, 0) 68%); transition: opacity .3s ease; }
.tipo .txt { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 20px 20px; padding-right: 72px; }
.t-wedding .tipo .txt, .t-especial .tipo .txt { padding-right: 120px; }
.tipo strong { display: block; font-family: var(--serif); font-weight: 600; font-size: clamp(1.15rem, 1.7vw, 1.5rem); line-height: 1.15; text-shadow: 0 1px 12px rgba(0, 0, 0, .45); }
.tipo .d { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: 4px; font-size: .9rem; line-height: 1.4; opacity: .94; }
.t-wedding .tipo strong, .t-quince .tipo strong { font-size: clamp(1.5rem, 2.7vw, 2.3rem); }
.t-wedding .tipo .d, .t-quince .tipo .d { font-size: 1rem; max-width: 34ch; }
.tipo .go { position: absolute; right: 14px; bottom: 16px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 40px; height: 40px; padding: 0 12px; border-radius: 999px; font-weight: 700; font-size: .88rem;
  background: rgba(255, 255, 255, .94); color: #26302A; box-shadow: 0 4px 14px rgba(0, 0, 0, .25); transition: transform .25s ease, background .25s ease; }
.tipo .go b { display: none; font-weight: 700; }
.t-wedding .tipo .go b, .t-especial .tipo .go b { display: inline; }
.tipo .go i { font-style: normal; display: inline-block; font-size: 1.1rem; line-height: 1; transition: transform .25s ease; }
.tipo:hover, .tipo:focus-visible { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(0, 0, 0, .26); }
.tipo:hover img, .tipo:focus-visible img { transform: scale(1.07); }
.tipo:hover .go, .tipo:focus-visible .go { background: var(--rose); color: #fff; }
.tipo:hover .go i, .tipo:focus-visible .go i { transform: translateX(4px); }
.tipo:focus-visible { outline: 3px solid var(--rose); outline-offset: 4px; }

@media (max-width: 1000px) {
  .mosaic { grid-template-columns: repeat(2, 1fr); grid-auto-rows: clamp(190px, 30vw, 240px); }
  .t-wedding > a, .t-quince > a, .t-infantil > a, .t-dieciocho > a, .t-aniversario > a, .t-cumple > a, .t-especial > a { grid-column: auto; grid-row: auto; }
  .t-wedding > a { grid-column: 1 / 3; }
  .t-wedding .tipo strong { font-size: clamp(1.4rem, 3.4vw, 1.9rem); }
}
@media (max-width: 560px) {
  .mosaic { grid-auto-rows: 150px; gap: 10px; }
  .tipo { border-radius: 16px; }
  .tipo .txt, .t-wedding .tipo .txt, .t-especial .tipo .txt { padding: 12px 56px 12px 12px; }
  .tipo strong, .t-quince .tipo strong { font-size: 1.02rem; }
  .t-wedding .tipo strong { font-size: 1.25rem; }
  .tipo .d { display: none; }
  .t-wedding > a { grid-row: span 1; }
  .t-wedding .tipo .d { display: -webkit-box; font-size: .88rem; }
  .tipo .go, .t-wedding .tipo .go { right: 10px; bottom: 10px; min-width: 34px; height: 34px; padding: 0 9px; }
  .tipo .go b, .t-wedding .tipo .go b, .t-especial .tipo .go b { display: none; }
}
@media (prefers-reduced-motion: reduce) { .tipo, .tipo img, .tipo .go, .tipo .go i { transition: none !important; } .tipo:hover, .tipo:focus-visible { transform: none; } .tipo:hover img { transform: none; } }

/* ---------- Cómo funciona ---------- */
.steps { list-style: none; margin: 40px auto 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 28px; max-width: 1000px; }
.steps li { text-align: center; }
.steps .n { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--rose); color: #fff; font-family: var(--serif); font-size: 1.5rem; font-weight: 600; margin-bottom: 14px; }
@media (prefers-color-scheme: dark) { .steps .n { color: #1A1210; } }
.steps h3 { font-size: 1.35rem; margin-bottom: 8px; }
.steps p { color: var(--muted); max-width: 34ch; margin: 0 auto; }

/* ---------- Características ---------- */
.features { background: var(--sage-deep); color: #F4F1E8; }
.features h2 { color: #F4F1E8; }
.feat { list-style: none; margin: 36px auto 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px 40px; max-width: 1000px; }
.feat li { padding: 16px 0; border-top: 1px solid rgba(244, 241, 232, .25); display: flex; flex-direction: column; gap: 4px; }
.feat strong { font-family: var(--serif); font-size: 1.2rem; }
.feat span { opacity: .82; font-size: .98rem; }

/* ---------- Preguntas ---------- */
.faq { max-width: 780px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); padding: 16px 4px; }
.faq summary { cursor: pointer; font-family: var(--serif); font-size: 1.2rem; font-weight: 600; }
.faq details p { margin-top: 10px; color: var(--muted); }

.final { text-align: center; background: var(--sand); }
.foot { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; padding: 28px 20px 40px; color: var(--muted); font-size: .92rem; }

@media (max-width: 880px) {
  .hero { grid-template-columns: 1fr; text-align: center; }
  .hero-text { display: flex; flex-direction: column; align-items: center; }
}

/* En celulares, el selector de tipos va enseguida de la explicación */
@media (max-width: 640px) { .hero-demo { display: none; } .hero { padding-bottom: 24px; } }
