/* Brindis · portada "Papelería fina". Requiere site.css, invite.css y marca.css.
   Un solo gesto llamativo: tres invitaciones que se abren en abanico al cargar. Todo lo demás es quieto. */

.p-sec { padding-block: 104px; }
.p-velo { background: var(--velo); }
.p-head { display: grid; gap: 14px; max-width: 640px; margin-bottom: 56px; }
.p-head.center { margin-inline: auto; text-align: center; justify-items: center; }
.p-head h2, .p-try-copy h2, .p-faq h2 { font-size: clamp(36px, 4.4vw, 52px); font-weight: 300; line-height: 1.1; text-wrap: balance; }
.p-head p { color: var(--muted); font-size: 18px; max-width: 34em; }
.p-lead { font-size: clamp(17.5px, 1.4vw, 19.5px); color: var(--muted); line-height: 1.7; max-width: 33em; }
.p-ctas { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; align-items: center; }
.p-ctas.start { justify-content: flex-start; }
.h-link { color: var(--malva); font-weight: 500; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.h-link:hover { color: var(--malva-2); }
@media (max-width: 640px) { .p-sec { padding-block: 72px; } .p-head { margin-bottom: 38px; } }

/* ---------- Portada ---------- */
.p-hero { padding-top: 56px; overflow: hidden; background: linear-gradient(180deg, var(--papel) 0%, var(--papel) 52%, var(--velo) 52%, var(--velo) 100%); }
.p-hero-in { display: grid; justify-items: center; text-align: center; gap: 22px; }
.p-sprig { position: relative; display: block; width: 46px; height: 34px; }
.p-sprig i { position: absolute; display: block; }
.p-sprig i:nth-child(1) { left: 50%; bottom: 0; width: 1px; height: 30px; background: var(--oro); }
.p-sprig i:nth-child(n+2) { width: 11px; height: 11px; border: 1px solid var(--oro); border-radius: 0 100% 0 100%; background: color-mix(in srgb, var(--oro) 18%, transparent); }
.p-sprig i:nth-child(2) { left: 50%; top: 14px; transform: rotate(-90deg); transform-origin: 0 0; } .p-sprig i:nth-child(3) { left: 50%; top: 14px; transform: rotate(0deg); transform-origin: 0 0; }
.p-sprig i:nth-child(4) { left: 50%; top: 4px; transform: rotate(-90deg) scale(.8); transform-origin: 0 0; } .p-sprig i:nth-child(5) { left: 50%; top: 4px; transform: scale(.8); transform-origin: 0 0; }
.p-hero h1 { font-size: clamp(46px, 6.6vw, 88px); font-weight: 300; line-height: 1.02; letter-spacing: -.005em; max-width: 12.5em; text-wrap: balance; }
.p-hero .p-lead { text-align: center; }
.p-hero .p-ctas { margin-top: 6px; }

.p-fan { position: relative; display: flex; justify-content: center; align-items: flex-end; margin-top: 64px; padding-inline: 16px; }
.p-card { --w: 208px; position: relative; width: var(--w); flex: none; display: grid; gap: 12px; justify-items: center; text-decoration: none; color: var(--gris); }
.p-card .arch { display: block; width: 100%; aspect-ratio: 39 / 74; overflow: hidden; border-radius: 6px; background: #fff; box-shadow: 0 1px 0 rgba(61, 48, 54, .05), 0 30px 50px -28px rgba(61, 48, 54, .45), 0 0 0 1px rgba(194, 168, 120, .35); }
.p-card .arch img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.p-card .arch .mini { width: 360px; height: 504px; pointer-events: none; }
.p-card .arch .mini .inv { min-height: 100%; pointer-events: none; }
.p-card .arch .i-countdown { display: none; }
.p-cap { font-family: var(--f-display); font-style: italic; font-size: 19px; color: var(--gris); }
.p-card.l { transform: translate(34px, 26px) rotate(-7deg); z-index: 1; }
.p-card.c { --w: 240px; z-index: 2; }
.p-card.r { transform: translate(-34px, 26px) rotate(7deg); z-index: 1; }
.p-card .arch { transition: transform .5s cubic-bezier(.2, .7, .2, 1), box-shadow .5s; }
.p-card:hover .arch { transform: translateY(-8px); }
.p-card:focus-visible { outline: none; }
.p-card:focus-visible .arch { outline: 1.5px solid var(--malva); outline-offset: 4px; }

/* El abanico se abre una vez al cargar */
@keyframes fanL { from { transform: translate(150px, 40px) rotate(0); opacity: 0; } to { transform: translate(34px, 26px) rotate(-7deg); opacity: 1; } }
@keyframes fanR { from { transform: translate(-150px, 40px) rotate(0); opacity: 0; } to { transform: translate(-34px, 26px) rotate(7deg); opacity: 1; } }
@keyframes fanC { from { transform: translateY(30px); opacity: 0; } to { transform: none; opacity: 1; } }
.p-card.c { animation: fanC .9s cubic-bezier(.2, .7, .2, 1) .15s both; }
.p-card.l { animation: fanL 1.2s cubic-bezier(.2, .7, .2, 1) .45s both; }
.p-card.r { animation: fanR 1.2s cubic-bezier(.2, .7, .2, 1) .45s both; }

.p-facts { list-style: none; margin: 0 auto; padding-block: 56px 64px; display: flex; justify-content: center; flex-wrap: wrap; gap: 10px 0; color: var(--gris); font-size: 16px; }
.p-facts li { padding-inline: 28px; }
.p-facts li + li { border-left: 1px solid var(--oro); }
.p-facts b { color: var(--ink); font-weight: 500; }

@media (max-width: 760px) {
  .p-hero { padding-top: 34px; }
  .p-hero h1 { font-size: 44px; }
  .p-fan { margin-top: 46px; }
  .p-card { --w: 122px; }
  .p-card.c { --w: 148px; }
  .p-card.l { transform: translate(30px, 18px) rotate(-7deg); }
  .p-card.r { transform: translate(-30px, 18px) rotate(7deg); }
  @keyframes fanL { from { transform: translate(90px, 30px) rotate(0); opacity: 0; } to { transform: translate(30px, 18px) rotate(-7deg); opacity: 1; } }
  @keyframes fanR { from { transform: translate(-90px, 30px) rotate(0); opacity: 0; } to { transform: translate(-30px, 18px) rotate(7deg); opacity: 1; } }
  .p-cap { font-size: 16px; }
  .p-facts { flex-direction: column; align-items: center; gap: 4px; padding-block: 40px 48px; }
  .p-facts li + li { border-left: 0; }
  .p-hero .p-ctas .btn { flex: 1 1 100%; max-width: 340px; }
}

/* ---------- Pasos ---------- */
.p-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); }
.p-steps li { padding: 4px 36px 8px; display: grid; gap: 10px; align-content: start; }
.p-steps li:first-child { padding-left: 0; }
.p-steps li + li { border-left: 1px solid var(--line); }
.p-num { font-family: var(--f-display); font-weight: 300; font-size: 54px; line-height: 1; color: #a3865a; }
.p-steps h3 { font-size: 28px; }
.p-steps p { color: var(--muted); }
@media (max-width: 800px) {
  .p-steps { grid-template-columns: 1fr; }
  .p-steps li { padding: 26px 0; }
  .p-steps li + li { border-left: 0; border-top: 1px solid var(--line); }
  .p-steps li:first-child { padding-top: 0; }
}

/* ---------- Prueba en vivo ---------- */
.p-try { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 72px; align-items: center; }
.p-try-copy { display: grid; gap: 16px; }
.h-try { margin-top: 18px; display: grid; gap: 22px; max-width: 520px; }
.h-seg { display: inline-flex; gap: 22px; justify-self: start; }
.h-seg button { border: 0; background: transparent; color: var(--gris); padding: 4px 0; font: 400 21px var(--f-display); cursor: pointer; border-bottom: 1px solid transparent; }
.h-seg button[aria-pressed="true"] { color: var(--malva); border-bottom-color: var(--malva); }
.h-pair { display: flex; align-items: flex-end; gap: 16px; }
.h-pair label, .h-date { flex: 1; min-width: 0; display: grid; gap: 2px; }
.h-pair label > span, .h-date > span { font-size: 13.5px; color: var(--gris); }
.h-pair .amp { font-family: var(--f-display); font-style: italic; font-weight: 300; font-size: 34px; color: var(--oro); padding-bottom: 2px; }
.h-try input { width: 100%; min-height: 46px; border: 0; border-bottom: 1px solid #d8c6c1; border-radius: 0; background: transparent; color: var(--ink); padding: 6px 0; font: 400 25px var(--f-display); outline: none; transition: border-color .2s; }
.h-try input::placeholder { color: #b9a9ad; }
.h-try input:focus { border-bottom-color: var(--malva); }
.h-try input[type="date"] { font: 400 17px var(--f-body); }
.h-date { max-width: 240px; }
.p-velo .stage { display: grid; justify-items: center; gap: 20px; min-width: 0; }
.p-velo .phone { box-shadow: 0 40px 70px -40px rgba(61, 48, 54, .55), inset 0 0 0 1.5px #5a4a50, 0 0 0 1px rgba(194, 168, 120, .4); }
.tpl-switch button { background: var(--tarjeta); border-color: var(--line); color: var(--ink); font-size: 14px; font-weight: 400; padding: 5px 13px 5px 6px; }
.tpl-switch button:hover { border-color: var(--malva); }
.tpl-switch button[aria-pressed="true"] { border-color: var(--malva); color: var(--malva); background: var(--tarjeta); box-shadow: inset 0 0 0 1px var(--malva); }
.phone-scroll.swap { animation: swap .45s ease; }
@keyframes swap { from { opacity: .4; } to { opacity: 1; } }
@media (max-width: 900px) { .p-try { grid-template-columns: 1fr; gap: 48px; } .p-try-copy { order: -1; } }
@media (max-width: 480px) { .h-pair { flex-wrap: wrap; } .h-pair .amp { display: none; } .h-pair label { flex: 1 1 100%; } .h-date { max-width: none; } }

/* ---------- Qué incluye: lista como un menú impreso ---------- */
.p-list { list-style: none; margin: 0 auto; padding: 0; display: grid; grid-template-columns: 1fr 1fr; column-gap: 72px; max-width: 980px; }
.p-list li { display: grid; grid-template-columns: 30px 1fr; gap: 18px; padding: 24px 0; border-top: 1px solid var(--line); }
.p-list li:nth-last-child(-n + 2) { border-bottom: 1px solid var(--line); }
.p-list .ci { width: 30px; height: 30px; margin-top: 2px; --ci-t: 1.2px; }
.p-list h3 { font-size: 25px; margin-bottom: 2px; }
.p-list p { color: var(--muted); font-size: 16px; }
@media (max-width: 760px) {
  .p-list { grid-template-columns: 1fr; }
  .p-list li:nth-last-child(2) { border-bottom: 0; }
}

/* ---------- Panel ---------- */
.h-tools { display: grid; grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr); gap: 40px; align-items: start; }
.h-tabs { display: grid; gap: 0; border-left: 1px solid var(--line); }
.h-tabs button { text-align: left; display: grid; gap: 2px; padding: 16px 0 16px 24px; margin-left: -1px; border: 0; border-left: 1px solid transparent; background: transparent; cursor: pointer; color: var(--ink); transition: border-color .2s, color .2s; }
.h-tabs button:hover .t { color: var(--malva); }
.h-tabs button[aria-selected="true"] { border-left-color: var(--malva); }
.h-tabs button[aria-selected="true"] .t { color: var(--malva); }
.h-tabs .t { font-family: var(--f-display); font-size: 27px; font-weight: 400; line-height: 1.2; }
.h-tabs .d { color: var(--muted); font-size: 15px; }
.h-panel { margin: 0; background: var(--tarjeta); border: 1px solid var(--line); border-radius: 14px; padding: 24px; box-shadow: var(--shadow); display: grid; gap: 14px; min-height: 420px; align-content: start; animation: fade .35s; font-size: 14.5px; }
.h-panel .bar-top { display: flex; align-items: center; gap: 7px; font-size: 13px; color: var(--faint); }
.h-panel .bar-top i { width: 8px; height: 8px; border-radius: 50%; background: var(--line); }
.h-panel .bar-top span { margin-left: auto; }
.h-panel .kp { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.h-panel .kp div { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; }
.h-panel .kp b { font-family: var(--f-display); font-weight: 400; font-size: 36px; display: block; line-height: 1.05; }
.h-panel .kp small { color: var(--muted); font-size: 13px; }
.h-panel .rowx { display: flex; justify-content: space-between; gap: 10px; align-items: center; padding: 11px 2px; border-top: 1px solid var(--line); }
.h-panel .rowx b { font-weight: 500; }
.h-panel .rowx small { display: block; color: var(--muted); font-size: 13px; }
.h-panel .seg { display: flex; height: 6px; border-radius: 99px; overflow: hidden; background: var(--velo); gap: 2px; }
.h-panel .tagpill { font-size: 11.5px; font-weight: 500; color: var(--oro-texto); background: var(--velo); border-radius: 6px; padding: 1px 7px; margin-left: 4px; vertical-align: 2px; }
.h-panel .tbls { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.h-panel .tb { border: 1px solid var(--line); border-radius: 10px; padding: 12px; display: grid; gap: 6px; font-size: 13.5px; }
.h-panel .tb h4 { font-family: var(--f-body); font-size: 13.5px; font-weight: 600; display: flex; justify-content: space-between; gap: 6px; }
.h-panel .tb span { background: var(--papel); border: 1px solid var(--line); border-radius: 6px; padding: 4px 8px; }
.h-panel .tb span.drag { background: var(--malva-suave); color: var(--malva); border-color: transparent; box-shadow: 0 8px 18px -10px rgba(142, 90, 107, .6); transform: rotate(-2deg); }
.h-panel .qr { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: center; }
.h-panel .qr .code { width: 124px; height: 124px; border-radius: 8px; background: repeating-conic-gradient(var(--ink) 0 25%, #fff 0 50%) 0 0 / 20px 20px; box-shadow: inset 0 0 0 10px #fff, 0 0 0 1px var(--line); }
.h-panel .ok-big { font-family: var(--f-display); font-weight: 400; font-size: 46px; line-height: 1; }
.p-note { margin-top: 32px; display: flex; gap: 8px 16px; flex-wrap: wrap; align-items: baseline; font-size: 15.5px; }
@media (max-width: 900px) {
  .h-tools { grid-template-columns: 1fr; gap: 24px; }
  .h-tabs { grid-template-columns: 1fr 1fr; border-left: 0; border-bottom: 1px solid var(--line); }
  .h-tabs button { padding: 10px 6px; margin: 0 0 -1px; border-left: 0; border-bottom: 1px solid transparent; text-align: center; }
  .h-tabs button[aria-selected="true"] { border-bottom-color: var(--malva); }
  .h-tabs .d { display: none; }
  .h-tabs .t { font-size: 22px; }
  .h-panel { min-height: 0; }
}
@media (max-width: 520px) { .h-panel { padding: 16px; } .h-panel .tbls { grid-template-columns: 1fr 1fr; } .h-panel .tbls .tb:nth-child(3) { display: none; } .h-panel .qr { grid-template-columns: 1fr; } .h-panel .kp b { font-size: 30px; } }

/* ---------- Planes ---------- */
.h-plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.h-plan { position: relative; display: grid; grid-template-rows: auto auto auto 1fr auto; gap: 16px; background: var(--tarjeta); border: 1px solid var(--line); border-radius: 14px; padding: 36px 30px 30px; }
.h-plan .k { font-family: var(--f-display); font-style: italic; font-size: 19px; color: var(--malva); }
.h-plan h3 { font-size: 40px; font-weight: 300; }
.h-plan .pr { display: flex; align-items: baseline; gap: 6px; font-family: var(--f-display); }
.h-plan .pr .cur { font-size: 22px; }
.h-plan .pr b { font-size: 60px; font-weight: 300; line-height: 1; }
.h-plan .pr small { font-family: var(--f-body); font-size: 14px; color: var(--muted); margin-left: 4px; }
.h-plan .single { font-size: 14.5px; color: var(--muted); margin-top: 4px; }
.h-plan .desc { color: var(--muted); font-size: 15.5px; }
.h-plan ul { list-style: none; margin: 0; padding: 18px 0 0; border-top: 1px solid var(--line); display: grid; gap: 9px; font-size: 15px; align-content: start; }
.h-plan li { display: flex; gap: 10px; }
.h-plan li svg { width: 16px; height: 16px; flex: none; margin-top: 4px; color: var(--oro); }
.h-plan .btn { margin-top: 8px; }
.h-plan.rec { border-color: var(--oro); box-shadow: inset 0 0 0 5px var(--tarjeta), inset 0 0 0 6px rgba(194, 168, 120, .55), var(--shadow); }
.h-plan.rec .btn-light { background: var(--malva); border-color: var(--malva); color: #fff; }
.h-plan.rec .btn-light:hover { background: var(--malva-2); }
.h-plan .badge { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); background: var(--papel); color: var(--oro-texto); font-family: var(--f-display); font-style: italic; font-size: 18px; padding: 0 14px; white-space: nowrap; }
@media (max-width: 960px) { .h-plans { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; gap: 30px; } }
.home .addons { justify-content: center; margin-top: 32px; }
.home .addons span { font-size: 14.5px; background: var(--tarjeta); }
.h-compare { margin-top: 22px; }
.h-compare summary { cursor: pointer; list-style: none; text-align: center; font-weight: 500; color: var(--malva); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.h-compare summary::-webkit-details-marker { display: none; }
.p-custom { margin: 56px auto 0; max-width: 820px; display: flex; gap: 16px 28px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 26px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.p-custom p { color: var(--muted); max-width: 32em; }
.p-custom-t { display: block; font-family: var(--f-display); font-size: 27px; color: var(--ink); line-height: 1.2; margin-bottom: 2px; }
.p-custom b { color: var(--ink); font-weight: 500; }
.p-guarantee { text-align: center; margin-top: 28px; color: var(--muted); font-size: 15.5px; }

/* Opiniones */
.h-notes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 40px; }
.h-note-card { margin: 0; display: grid; gap: 14px; text-align: center; }
.h-note-card p { font-family: var(--f-display); font-style: italic; font-size: 25px; line-height: 1.4; font-weight: 300; }
.h-note-card small { color: var(--muted); font-size: 14px; }
.h-note-card b { color: var(--ink); display: block; font-weight: 500; }

/* ---------- Preguntas ---------- */
.p-faq { display: grid; grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr); gap: 64px; align-items: start; }
.p-faq header { display: grid; gap: 16px; justify-items: start; position: sticky; top: 110px; }
.faq { gap: 0; max-width: none; border-top: 1px solid #e4d4cf; }
.faq details { background: transparent; border: 0; border-bottom: 1px solid #e4d4cf; border-radius: 0; padding-inline: 0; }
.faq details[open] { background: transparent; }
.faq summary { font-family: var(--f-display); font-size: 23px; font-weight: 400; padding: 20px 0; }
.faq summary::after { color: var(--oro); font-size: 24px; font-weight: 300; }
.faq details > div { font-size: 16px; color: var(--muted); padding: 0 0 22px; }
@media (max-width: 900px) { .p-faq { grid-template-columns: 1fr; gap: 32px; } .p-faq header { position: static; } }

/* ---------- Cierre ---------- */
.p-close { background: var(--papel); text-align: center; }
.p-close-in { padding-block: 112px; display: grid; gap: 20px; justify-items: center; }
.p-close h2 { font-size: clamp(38px, 5vw, 62px); font-weight: 300; max-width: 15em; text-wrap: balance; }
.p-close p { font-size: 18px; color: var(--muted); }
.p-close .p-ctas { margin-top: 8px; }
@media (max-width: 520px) { .p-close .p-ctas .btn { flex: 1 1 100%; } }

@media (prefers-reduced-motion: reduce) {
  .p-card.c, .p-card.l, .p-card.r, .phone-scroll.swap { animation: none; }
  .p-card .arch { transition: none; }
}

/* Íconos CSS del sitio: usan los mismos dibujos que las invitaciones */
.home { --i-acc: var(--malva); --i-acc2: color-mix(in srgb, var(--malva) 55%, var(--oro)); --i-gold: var(--oro); }
