/* ==================================================================
   Tinvito · estilo "fiesta" (entrega 17)
   Va después de invitaciones.css (y account.css) en el sitio público, la cuenta y el editor; el panel interno no lo usa.
   1. Base para todo: colores cálidos, letras, botones redondos, cabeceras, diálogos y campos.
   2. Sólo el sitio público (.landing-page, .auth-page): tarjetas con borde marcado, notas a mano y adornos.
   3. El inicio (.home-page).
   Letras: Bricolage Grotesque (títulos), Plus Jakarta Sans (textos) y Caveat (notas a mano); se descargan
   con tools/descargar_fuentes.php.
   ================================================================== */

/* ------------------------------------------------------------------
   1. Base
   ------------------------------------------------------------------ */
:root {
    --brand: #4d68d9;
    --brand-deep: #3a50b0;
    --brand-soft: #e7ebfa;
    --brand-softer: #f3f5fc;
    --coral: #ff6b4a;
    --coral-soft: #ffe3d3;
    --coral-ink: #c73e22;
    --sun: #ffc83d;
    --sun-soft: #fff1c2;
    --pink: #ff8fb8;
    --pink-soft: #ffd9e6;
    --pink-ink: #c2185b;
    --lilac: #b9a4ff;
    --lilac-soft: #ece5ff;
    --sky: #e1e6f7;
    --navy: #1b1e3c;
    --ink: #1b1e3c;
    --ink-2: #2f3354;
    --muted: #4a4e6b;
    --bg: #fff6ec;
    --paper: #fffaf4;
    --line: #eadfd2;
    --line-strong: #d6c7b5;
    --shadow-sm: 0 2px 8px rgba(27, 30, 60, .06);
    --shadow: 0 18px 44px rgba(27, 30, 60, .10);
    --shadow-lg: 0 28px 70px rgba(27, 30, 60, .16);
    --pop: 0 4px 0 var(--ink);
    --pop-lg: 0 6px 0 var(--ink);
    --display: 'Bricolage Grotesque', 'Plus Jakarta Sans', ui-sans-serif, system-ui, sans-serif;
    --hand: 'Caveat', 'Segoe Print', 'Comic Sans MS', cursive;
    --sage: #b9c8f5;
}

body { background: var(--bg); color: var(--ink); }
h1, h2, h3, h4 { font-family: var(--display); letter-spacing: -.025em; }
::selection { background: var(--sun-soft); }
:focus-visible { outline: 3px solid rgba(77, 104, 217, .45); outline-offset: 2px; }

/* Botones redondos */
.button { border-radius: 999px; font-weight: 800; }
.button-small { border-radius: 999px; }
.button-primary { background: var(--brand); box-shadow: 0 6px 16px rgba(77, 104, 217, .22); }
.button-primary:hover { background: var(--brand-deep); }
.button-outline, .button-ghost { border: 2px solid var(--line-strong); }
.button-outline:hover, .button-ghost:hover { border-color: var(--ink); color: var(--ink); }
.button-coral { color: var(--ink); background: var(--coral); box-shadow: none; }
.button-sun { color: var(--ink); background: var(--sun); }
.button-sun:hover { background: #ffbd14; }
.button-lg { min-height: 58px; padding: 14px 28px; font-size: 1.05rem; }
.text-link { color: var(--brand-deep); }

/* Cabeceras: fondo crema y una franja de colores de fiesta */
body .site-header, body .customer-header, body .account-header, body .editor-bar {
    background: rgba(255, 246, 236, .96);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 10px 30px -22px rgba(27, 30, 60, .55);
}
.site-header::before, .customer-header::before, .account-header::before, .editor-bar::before {
    background: linear-gradient(90deg, var(--sun) 0 20%, var(--pink) 20% 40%, var(--brand) 40% 60%, var(--coral) 60% 80%, var(--lilac) 80% 100%);
}
.site-nav-links a:hover, .site-nav-links a[aria-current="page"], .site-nav-actions .nav-login:hover { color: var(--ink); background: var(--sun-soft); }
.lang-switch summary, .account-menu > summary { border-radius: 999px; }
.lang-switch li a:hover, .lang-switch li a:focus-visible, .account-menu-panel a:hover, .account-menu-panel button:hover { background: var(--sun-soft); color: var(--ink); }
.avatar { background: var(--brand); }

/* Pie */
.footer-follow { margin: 18px 0 8px !important; color: var(--ink) !important; font-family: var(--hand); font-size: 1.5rem; font-weight: 700; line-height: 1; }
.footer-social { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 10px; }
.footer-social a { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; color: var(--ink); background: var(--sun); box-shadow: 0 0 0 2px var(--ink), 0 3px 0 var(--ink); transition: transform .18s ease; }
.footer-social li:nth-child(4n+2) a { background: var(--pink); }
.footer-social li:nth-child(4n+3) a { background: var(--lilac); }
.footer-social li:nth-child(4n+4) a { background: #8fb0ff; }
.footer-social a:hover, .footer-social a:focus-visible { transform: translateY(-2px) rotate(-6deg); }
.footer-social svg { width: 22px; height: 22px; }
.site-footer { background: var(--paper); border-top: 1px solid var(--line); }
.site-footer-bottom { background: var(--bg); }
.footer-links a:hover, .footer-legal a:hover { color: var(--brand-deep); }

/* Campos */
.registration-form input:not([type="checkbox"]), .registration-form select, .registration-form textarea,
.support-form input:not([type="checkbox"]):not([type="radio"]):not([type="file"]), .support-form select, .support-form textarea {
    border-radius: 14px; border-color: var(--line-strong); background: #fff;
}
.registration-form input:focus, .registration-form select:focus, .registration-form textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(77, 104, 217, .16); }

/* Diálogos propios: tarjeta de papel con borde marcado; "listo" trae confeti */
.tv-dialog-card { position: relative; padding: 38px 30px 28px; border: 2px solid var(--ink); border-radius: 28px; background: var(--paper); box-shadow: var(--pop-lg), 0 30px 60px rgba(27, 30, 60, .25); }
.tv-dialog-icon { width: 68px; height: 68px; border-radius: 50%; color: var(--ink); background: var(--sky); box-shadow: 0 0 0 2px var(--ink); }
.tv-dialog-icon.is-success { color: var(--ink); background: var(--sun); }
.tv-dialog-icon.is-error, .tv-dialog-icon.is-danger { color: var(--ink); background: var(--coral-soft); }
.tv-dialog-icon.is-warning { color: var(--ink); background: var(--sun-soft); }
.tv-dialog-card:has(.tv-dialog-icon.is-success)::before {
    content: ''; position: absolute; left: 50%; top: -34px; width: 300px; height: 90px; margin-left: -150px; pointer-events: none;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 90'%3E%3Crect x='30' y='30' width='8' height='18' rx='3' fill='%23FF6B4A' transform='rotate(-30 30 30)'/%3E%3Ccircle cx='80' cy='16' r='6' fill='%23FFC83D'/%3E%3Cpath d='M220 20q6-8 12 0t12 0' fill='none' stroke='%234D68D9' stroke-width='4' stroke-linecap='round'/%3E%3Cpath d='M262 50l7 12h-14z' fill='%23FF8FB8'/%3E%3Crect x='186' y='8' width='8' height='18' rx='3' fill='%23B9A4FF' transform='rotate(40 186 8)'/%3E%3Ccircle cx='14' cy='70' r='5' fill='%234D68D9'/%3E%3Cpath d='M58 70l7 12H51z' fill='%23FFC83D'/%3E%3Ccircle cx='288' cy='80' r='6' fill='%23FF6B4A'/%3E%3C/svg%3E") center / contain no-repeat;
}
.tv-dialog h2, .tv-loading-title { font-family: var(--display); font-size: 1.5rem; letter-spacing: -.02em; }
.tv-dialog p { color: var(--muted); }
.tv-dialog-actions .button-primary { box-shadow: var(--pop); }
.tv-dialog-actions .button-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 0 var(--ink); }
.tv-loading-spinner { border-color: var(--sun-soft); border-top-color: var(--brand); }
.tv-loading-bar { background: var(--sun-soft); }
.tv-loading-bar span { background: linear-gradient(90deg, var(--brand), var(--pink)); }

/* Aviso de cookies */
.cookie-banner-inner { border: 2px solid var(--ink); border-radius: 24px; background: var(--paper); box-shadow: var(--pop-lg), var(--shadow-lg); }

/* Cuenta y editor: mismos colores cálidos, sin adornos */
.editor-page, .editor-steps, .event-tabs { background: var(--bg); }
.editor-preview { background: #f3e9dd; }
@media (min-width: 1100px) { .editor-preview { background: radial-gradient(circle at 50% 18%, #fff8ef, #f0e2d0 72%); } }
.segmented { background: #f3e9dd; }
.palette:has(input:checked), .media-item, .dialog-foot, .answer-texts li, .send-row { background: var(--paper); }
.menu-items a:hover, .menu-items button:hover { background: var(--sun-soft); }
.dialog-close { background: var(--bg); }
.meter, .bar { background: #eee4d8; }
.template-frame { background: #efe4d6; }
.import-table th { background: var(--paper); }

/* ------------------------------------------------------------------
   2. Sitio público (inicio, plantillas, funciones, planes, organizadores, ayuda, legales, soporte, ingreso y registro)
   ------------------------------------------------------------------ */
:is(.landing-page, .auth-page) .eyebrow { margin-bottom: 6px; font-family: var(--hand); font-size: 1.7rem; font-weight: 700; line-height: 1.1; letter-spacing: 0; text-transform: none; color: var(--coral-ink); }
:is(.landing-page, .auth-page) .section-heading h2,
:is(.landing-page, .auth-page) .features-head h1,
:is(.landing-page, .auth-page) .templates-head h1 { font-weight: 800; font-size: clamp(2rem, 4.4vw, 3.4rem); line-height: 1.02; letter-spacing: -.035em; }
:is(.landing-page, .auth-page) .button-primary { box-shadow: var(--pop); }
:is(.landing-page, .auth-page) .button-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 0 var(--ink); }
:is(.landing-page, .auth-page) .button-primary:active { transform: translateY(2px); box-shadow: 0 2px 0 var(--ink); }
:is(.landing-page, .auth-page) .button-outline { border: 2px solid var(--ink); background: #fff; }
:is(.landing-page, .auth-page) .button-outline:hover { background: var(--sun-soft); }

/* Tarjetas con borde marcado y sombra sólida */
:is(.landing-page, .auth-page) :is(.registration-card, .auth-card, .features-card, .price-card, .legal-article, .help-cat, .support-card, .org-hero-card, .org-feature, .org-faq, .org-steps li, .notif-card, .prefs-card) {
    border: 2px solid var(--ink); border-radius: 28px; background: #fff; box-shadow: var(--pop-lg);
}
:is(.landing-page, .auth-page) :is(.legal-toc, .help-topics a, .legal-others a, .support-row, .faq-list details, .org-who li, .cmp-wrap, .template-tile) {
    border: 2px solid var(--ink); background: #fff; box-shadow: var(--pop);
}
:is(.landing-page, .auth-page) .faq-list details { border-radius: 20px; }
:is(.landing-page, .auth-page) .faq-list details[open] { background: var(--sun-soft); box-shadow: var(--pop); }
:is(.landing-page, .auth-page) .faq-list summary { font-family: var(--display); font-size: 1.08rem; font-weight: 700; }
:is(.landing-page, .auth-page) .faq-list summary::after { border: 2px solid var(--ink); border-radius: 50%; background: #fff; color: var(--ink); font-weight: 800; }
:is(.landing-page, .auth-page) .features-icon, :is(.landing-page, .auth-page) .help-topics a span:first-child { border-radius: 16px; background: var(--sun); color: var(--ink); }
:is(.landing-page, .auth-page) .features-card:nth-child(4n+2) .features-icon { background: var(--pink); }
:is(.landing-page, .auth-page) .features-card:nth-child(4n+3) .features-icon { background: var(--lilac); }
:is(.landing-page, .auth-page) .features-card:nth-child(4n+4) .features-icon { background: #8fb0ff; }
:is(.landing-page, .auth-page) .features-card li::before { color: var(--brand); }
:is(.landing-page, .auth-page) .legal-article h1, :is(.landing-page, .auth-page) .legal-article h2 { font-weight: 800; }

/* Planes */
.price-card .plan-name { font-family: var(--display); font-size: 1.35rem; }
.price-card .plan-price { font-family: var(--display); font-size: 2.6rem; }
.price-card.featured, :is(.landing-page, .auth-page) .price-card.featured { color: #fff; border-color: var(--ink); background: var(--brand); }
.price-card.featured .plan-tagline, .price-card.featured .plan-regular { color: #fff; }
.price-card.featured .launch-label { color: #fff; }
.price-card.featured .button-primary { color: var(--ink); background: var(--sun); box-shadow: var(--pop); }
.price-card-organizer { background: var(--coral-soft) !important; }
.popular-badge { color: var(--ink); background: var(--sun); box-shadow: 0 0 0 2px var(--ink); }
.featured .popular-badge { color: var(--ink); background: var(--sun); }
.popular-badge-organizer { color: var(--ink); background: #fff; }
.launch-label { color: var(--coral-ink); }
.price-card li::before { background-color: var(--sun-soft); }
.organizer-band { border: 2px solid var(--ink); border-radius: 28px; background: var(--coral-soft); box-shadow: var(--pop-lg); }
.organizer-band .eyebrow { color: var(--coral-ink); }
.free-band { background: #eef1fc; }
.free-band .eyebrow { color: #4D68D9; }
.extras-strip { border: 2px dashed var(--line-strong); border-radius: 18px; background: #fff; }

/* Tabla comparativa */
.cmp-table thead th { background: var(--paper); }
.cmp-table thead th.is-brand { background: var(--brand); }
.cmp-table td.is-brand { background: var(--sun-soft); }

/* Plantillas (/plantillas) */
.template-tile { gap: 0; border-radius: 26px; overflow: hidden; }
/* La vista previa ocupa el borde superior de la tarjeta; el texto y los botones van con aire propio */
.template-tile .template-frame { border-radius: 0; border-bottom: 2px solid var(--ink); box-shadow: none; }
.template-tile .template-info { padding: 16px 18px 20px; }
.template-badge { color: var(--ink); background: var(--sun); }

/* Llamado final de las páginas públicas (funciones, organizadores…) */
.final-cta { position: relative; overflow: hidden; border-radius: 36px; background: var(--navy); box-shadow: none; }
.final-cta .eyebrow { color: var(--sun); }
.final-cta h2 em { color: var(--sun); }
.final-cta .button-light { color: var(--ink); background: var(--sun); box-shadow: 0 5px 0 var(--coral); }

/* Ingreso, registro y contraseña: la columna de presentación es un panel alegre */
.auth-page .registration-intro { position: relative; overflow: hidden; align-self: stretch; padding: 86px 40px 230px; border: 2px solid var(--ink); border-radius: 34px; color: #fff; background: var(--brand); box-shadow: var(--pop-lg); }
.auth-page .registration-intro .eyebrow { color: var(--sun); }
.auth-page .registration-intro h1 { color: #fff; font-size: clamp(2.2rem, 3.8vw, 3.2rem); line-height: 1.02; letter-spacing: -.035em; }
.auth-page .registration-intro > p:not(.eyebrow) { color: #fff; }
.auth-page .registration-intro ul { position: relative; z-index: 2; }
.auth-page .registration-intro li { border: 2px solid var(--ink); background: #fff; color: var(--ink); box-shadow: 0 3px 0 var(--ink); }
.auth-page .registration-intro li span { border-radius: 50%; color: var(--ink); background: var(--sun); }
.auth-garland { position: absolute; left: 0; right: 0; top: 0; height: 60px; pointer-events: none; }
.auth-garland svg { width: 100%; height: 60px; display: block; }
.auth-phones { position: absolute; z-index: 1; left: 50%; bottom: -150px; width: 400px; height: 360px; margin-left: -200px; pointer-events: none; }
.auth-phones .phone { --pw: 170; }
.auth-phones .phone { position: absolute; top: 0; }
.auth-phones .phone:first-child { left: 20px; transform: rotate(-9deg); }
.auth-phones .phone:last-child { right: 20px; top: 20px; transform: rotate(7deg); }
.auth-page .registration-card { border-radius: 30px; }
.auth-page .registration-card .button-primary { min-height: 56px; font-size: 1.02rem; }
.auth-page .registration-form input:not([type="checkbox"]) { min-height: 54px; border: 2px solid var(--ink); background: var(--paper); }
.auth-page .registration-form input:focus { border-color: var(--brand); }

/* Teléfono con una invitación real dentro (inicio e ingreso). --pw = ancho de la pantalla en px. */
.phone { --pw: 230; position: relative; width: calc(var(--pw) * 1px + 16px); height: calc(var(--pw) * 2px + 16px); flex: 0 0 auto; overflow: hidden; border: 8px solid var(--ink); border-radius: 36px; background: var(--ink); box-shadow: 0 26px 50px rgba(27, 30, 60, .24); }
.phone iframe { position: absolute; left: 0; top: 0; width: 390px; height: 780px; border: 0; transform-origin: 0 0; transform: scale(calc(var(--pw) / 390)); pointer-events: none; background: #fff; }
.phone-link { position: absolute; inset: 0; z-index: 2; border-radius: 28px; }
.phone-link:focus-visible { outline: 4px solid var(--sun); outline-offset: -4px; }

@media (max-width: 960px) {
    .auth-page .registration-intro { padding: 70px 24px 36px; }
    .auth-phones { display: none; }
}
@media (max-width: 640px) {
    :is(.landing-page, .auth-page) .eyebrow { font-size: 1.5rem; }
    :is(.landing-page, .auth-page) :is(.registration-card, .auth-card, .features-card, .price-card, .legal-article, .help-cat, .support-card) { border-radius: 22px; box-shadow: var(--pop); }
    .auth-page .registration-intro { border-radius: 24px; box-shadow: var(--pop); }
}

/* ------------------------------------------------------------------
   3. Inicio
   ------------------------------------------------------------------ */
.home-page main { overflow-x: clip; }
.launch-bar { position: relative; z-index: 41; min-height: 44px; padding: 8px 16px; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 12px; background: var(--sun); color: var(--ink); font-size: .95rem; font-weight: 700; text-align: center; }
.launch-bar b { padding: 3px 10px; border-radius: 999px; background: var(--ink); color: var(--sun); font-size: .72rem; letter-spacing: .08em; }
.launch-bar a { text-decoration: underline; text-underline-offset: 3px; }
.hand { font-family: var(--hand); font-weight: 700; line-height: 1.1; }

/* Portada */
.home-hero { position: relative; width: min(100% - 40px, 1320px); margin: 0 auto; min-height: 680px; padding: 96px 0 90px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 30px; }
.home-garland { position: absolute; left: 50%; top: 0; width: 100vw; margin-left: -50vw; height: 72px; pointer-events: none; }
.home-garland svg { display: block; width: 100%; height: 72px; }
.hh-copy { position: relative; z-index: 2; display: flex; flex-direction: column; gap: 24px; }
.hh-chips { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.hh-chips li { padding: 6px 14px; border-radius: 999px; background: #fff; box-shadow: 0 0 0 1.5px var(--ink); font-size: .9rem; font-weight: 700; }
.home-hero h1 { margin: 0; font-size: clamp(2.6rem, 5.6vw, 4.9rem); font-weight: 800; line-height: .98; letter-spacing: -.04em; }
.home-hero h1 mark { position: relative; padding: 0 0 .12em; color: var(--brand); background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 26' preserveAspectRatio='none'%3E%3Cpath d='M4 16C60 4 120 24 180 12s90-6 116 2' fill='none' stroke='%23FF6B4A' stroke-width='7' stroke-linecap='round'/%3E%3C/svg%3E") left bottom / 100% .32em no-repeat; }
.hh-lead { max-width: 560px; margin: 0; color: var(--muted); font-size: 1.2rem; line-height: 1.55; }
.hh-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hh-actions .button-primary { box-shadow: 0 5px 0 var(--ink); }
.hh-trust { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: .95rem; font-weight: 700; }
.hh-trust li { display: inline-flex; align-items: center; gap: 7px; }
.hh-trust svg { width: 20px; height: 20px; color: var(--brand); }
.hh-visual { position: relative; height: 640px; }
.hh-blob { position: absolute; border-radius: 50%; }
.hh-blob-pink { left: 56%; top: 2%; width: 250px; height: 250px; background: var(--pink); }
.hh-blob-sun { left: 2%; top: 52%; width: 200px; height: 200px; background: var(--sun); }
.hh-confetti { position: absolute; left: 4%; top: 4%; width: 92%; height: 92%; pointer-events: none; }
.hh-confetti svg { width: 100%; height: 100%; }
.hh-visual .phone { position: absolute; }
.hh-visual .phone-a { --pw: 200; left: 1%; top: 150px; transform: rotate(-9deg); }
.hh-visual .phone-b { --pw: 200; right: 0; top: 160px; transform: rotate(8deg); }
.hh-visual .phone-c { --pw: 240; left: 50%; top: 40px; margin-left: -128px; z-index: 2; transform: rotate(1.5deg); box-shadow: 0 34px 60px rgba(27, 30, 60, .32); }
.hh-bubble { position: absolute; z-index: 3; display: flex; align-items: center; gap: 12px; padding: 12px 16px; border: 2px solid var(--ink); border-radius: 20px; background: #fff; box-shadow: var(--pop); }
.hh-bubble b { width: 42px; height: 42px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%; color: #fff; background: var(--brand); font-size: .95rem; }
.hh-bubble:nth-of-type(2) b { color: var(--ink); background: var(--coral); }
.hh-bubble strong, .hh-bubble small { display: block; line-height: 1.25; }
.hh-bubble small { color: var(--brand-deep); font-size: .88rem; font-weight: 700; }
.hh-bubble-1 { left: -4%; bottom: 60px; transform: rotate(-3deg); }
.hh-bubble-2 { right: -3%; bottom: 120px; transform: rotate(3deg); }
.hh-badge { position: absolute; z-index: 3; right: 2%; top: 0; width: 126px; height: 126px; display: grid; place-items: center; padding: 14px; border-radius: 50%; background: var(--sun); box-shadow: 0 0 0 2px var(--ink); text-align: center; font-size: 1.4rem; line-height: 1; transform: rotate(12deg); }
.hh-note { position: absolute; z-index: 3; right: 0; bottom: -40px; max-width: 420px; display: flex; align-items: flex-end; justify-content: flex-end; gap: 6px; color: var(--coral-ink); font-size: 1.9rem; text-align: right; transform: rotate(-4deg); }
.hh-note svg { width: 70px; height: 44px; }

/* Tipos de evento como stickers */
.home-stickers { padding: 42px 20px 48px; background: var(--navy); text-align: center; }
.home-stickers .hand { margin: 0 0 20px; color: var(--sun); font-size: 2.1rem; }
.sticker-list { max-width: 1240px; margin: 0 auto; display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.sticker { display: inline-flex; align-items: center; gap: 6px; padding: 11px 20px; border-radius: 999px; color: var(--ink); background: var(--sun); font-weight: 800; font-size: 1.02rem; transform: rotate(-3deg); transition: transform .18s ease; }
.sticker:nth-child(5n+2) { background: var(--pink); transform: rotate(2deg); }
.sticker:nth-child(5n+3) { background: var(--lilac); transform: rotate(-2deg); }
.sticker:nth-child(5n+4) { background: #fff; transform: rotate(3deg); }
.sticker:nth-child(5n+5) { background: var(--coral); transform: rotate(-1deg); }
a.sticker:hover, a.sticker:focus-visible { transform: rotate(0) scale(1.06); }
.sticker-more { color: #fff; background: transparent !important; box-shadow: inset 0 0 0 2px #fff; }

/* Encabezado de sección del inicio */
.home-head { max-width: 860px; margin: 0 auto 50px; text-align: center; }
.home-head .hand { display: block; margin-bottom: 8px; color: var(--coral-ink); font-size: 1.9rem; }
.home-head h2 { margin: 0; font-size: clamp(2.1rem, 4.6vw, 3.6rem); font-weight: 800; line-height: 1.02; letter-spacing: -.035em; }
.home-head p { max-width: 640px; margin: 16px auto 0; color: var(--muted); font-size: 1.12rem; }

/* Así la viven tus invitados */
.home-guests { width: min(100% - 40px, 1320px); margin: 0 auto; padding: 110px 0 40px; }
.guest-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; }
.gstep { position: relative; min-height: 520px; padding: 32px; overflow: hidden; display: flex; flex-direction: column; gap: 12px; border: 2px solid var(--ink); border-radius: 32px; }
.gstep-1 { background: var(--sun-soft); }
.gstep-2 { background: var(--pink-soft); }
.gstep-3 { background: var(--sky); }
.gstep-num { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; color: var(--sun); background: var(--ink); font-family: var(--display); font-size: 1.35rem; font-weight: 800; }
.gstep-2 .gstep-num { color: var(--pink); }
.gstep-3 .gstep-num { color: #8fb0ff; }
.gstep h3 { margin: 0; font-size: 1.8rem; font-weight: 800; line-height: 1.08; }
.gstep > p { margin: 0; color: var(--muted); font-size: 1.02rem; }
.gstep .phone { --pw: 214; position: absolute; left: 50%; top: 250px; margin-left: -115px; transform: rotate(-4deg); }
.mock-card { margin-top: 12px; padding: 22px; display: grid; gap: 14px; border: 2px solid var(--ink); border-radius: 24px; background: #fff; box-shadow: var(--pop-lg); transform: rotate(-1.5deg); }
.mock-card strong { font-family: var(--display); font-size: 1.45rem; font-weight: 800; }
.mock-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mock-pair span { min-height: 50px; display: grid; place-items: center; border-radius: 16px; font-weight: 800; }
.mock-pair span:first-child { color: #fff; background: var(--brand); }
.mock-pair span:last-child { color: var(--muted); box-shadow: inset 0 0 0 2px #c9cce0; }
.mock-count { display: flex; align-items: center; justify-content: space-between; font-weight: 700; }
.mock-count span:last-child { display: flex; align-items: center; gap: 12px; }
.mock-count i { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; font-style: normal; box-shadow: inset 0 0 0 2px var(--ink); }
.mock-count i:last-child { color: #fff; background: var(--ink); }
.mock-count b { font-size: 1.25rem; }
.mock-countdown { margin-top: 12px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mock-countdown span { padding: 16px 4px 12px; display: grid; justify-items: center; gap: 2px; border: 2px solid var(--ink); border-radius: 18px; background: #fff; font-size: .74rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.mock-countdown b { font-family: var(--display); font-size: 2.1rem; font-weight: 800; letter-spacing: 0; color: var(--brand); }
.mock-map { display: flex; gap: 10px; }
.mock-map span { flex: 1; min-height: 50px; display: flex; align-items: center; justify-content: center; gap: 8px; border-radius: 999px; font-weight: 800; font-size: .95rem; box-shadow: inset 0 0 0 2px var(--ink); background: #fff; }
.mock-map span:first-child { color: #fff; background: var(--ink); }
.mock-map svg { width: 18px; height: 18px; }
.gstep-note { position: absolute; right: 28px; bottom: 24px; font-size: 1.8rem; transform: rotate(-5deg); }
.gstep-2 .gstep-note { color: var(--pink-ink); }
.gstep-3 .gstep-note { color: var(--brand-deep); }

/* Plantillas */
.home-templates { position: relative; margin-top: 70px; padding: 110px 20px 90px; overflow: hidden; color: #fff; background: var(--brand); }
.home-templates::before { content: ''; position: absolute; left: 0; right: 0; top: -1px; height: 30px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 30' preserveAspectRatio='none'%3E%3Cpath d='M0 0H240V10Q210 30 180 10T120 10T60 10T0 10Z' fill='%23FFF6EC'/%3E%3C/svg%3E") 0 0 / 240px 30px repeat-x; }
.home-templates .home-head .hand { color: var(--sun); }
.home-templates .home-head h2 { color: #fff; }
.home-templates .home-head p { color: #fff; }
.tpl-row { display: flex; justify-content: center; align-items: flex-start; gap: 30px; }
.tpl-row .phone { --pw: 190; border-color: var(--ink); }
.tpl-row .phone:nth-child(1) { transform: rotate(-5deg); margin-top: 24px; }
.tpl-row .phone:nth-child(2) { transform: rotate(3deg); }
.tpl-row .phone:nth-child(3) { transform: rotate(-2deg); margin-top: 30px; }
.tpl-row .phone:nth-child(4) { transform: rotate(4deg); margin-top: 6px; }
.tpl-row .phone:nth-child(5) { transform: rotate(-4deg); margin-top: 28px; }
.home-templates .center-action { margin-top: 50px; }
.home-templates .button-sun { box-shadow: 0 5px 0 var(--ink); }

/* Para quien organiza */
.home-host { width: min(100% - 40px, 1320px); margin: 0 auto; padding: 110px 0 60px; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 64px; align-items: start; }
.home-host .home-head { margin: 0; text-align: left; }
.home-host .home-head p { margin-left: 0; }
.host-example { margin-top: 28px; padding: 22px 24px; display: grid; gap: 14px; border: 2px solid var(--ink); border-radius: 24px; background: #fff; box-shadow: var(--pop-lg); transform: rotate(-1deg); }
.host-example-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.host-example-head small { color: var(--muted); font-weight: 700; }
.host-bar { height: 16px; display: flex; overflow: hidden; border-radius: 999px; background: #edeff7; }
.host-bar span:first-child { width: 62%; background: var(--brand); }
.host-bar span:last-child { width: 14%; background: var(--pink); }
.host-legend { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: .9rem; font-weight: 700; }
.host-legend li { display: inline-flex; align-items: center; gap: 6px; }
.host-legend li::before { content: ''; width: 12px; height: 12px; border-radius: 50%; background: var(--brand); }
.host-legend li:nth-child(2)::before { background: var(--pink); }
.host-legend li:nth-child(3)::before { background: #edeff7; box-shadow: inset 0 0 0 1.5px #9ea2bd; }
.host-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.host-card { padding: 28px; display: grid; gap: 10px; align-content: start; border: 2px solid var(--ink); border-radius: 28px; background: #fff; }
.host-card h3 { margin: 4px 0 0; font-size: 1.45rem; font-weight: 800; line-height: 1.15; }
.host-card p { margin: 0; color: var(--muted); }
.host-icon { width: 58px; height: 58px; display: grid; place-items: center; border-radius: 18px; background: var(--sun); transform: rotate(-6deg); }
.host-card:nth-child(2) .host-icon { background: var(--pink); transform: rotate(5deg); }
.host-card:nth-child(3) .host-icon { background: var(--lilac); transform: rotate(-4deg); }
.host-card:nth-child(4) .host-icon { background: #8fb0ff; transform: rotate(6deg); }
.host-icon svg { width: 28px; height: 28px; }
.home-host .text-link { margin-top: 18px; }

/* Historia */
.home-origin { position: relative; margin-top: 50px; padding: 100px max(20px, calc((100vw - 1320px) / 2)); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 60px; align-items: center; background: var(--coral-soft); }
.polaroids { position: relative; height: 470px; }
.polaroid { position: absolute; margin: 0; padding: 14px 14px 56px; background: #fff; box-shadow: 0 18px 36px rgba(27, 30, 60, .18); }
.polaroid img { display: block; object-fit: cover; }
.polaroid figcaption { position: absolute; left: 0; right: 0; bottom: 12px; text-align: center; font-size: 1.6rem; }
.polaroid::before { content: ''; position: absolute; left: 50%; top: -14px; width: 96px; height: 28px; margin-left: -48px; background: rgba(255, 200, 61, .85); transform: rotate(3deg); }
.polaroid-1 { left: 6%; top: 0; transform: rotate(-6deg); }
.polaroid-1 img { width: 300px; height: 300px; }
.polaroid-2 { left: 50%; top: 110px; transform: rotate(5deg); }
.polaroid-2 img { width: 230px; height: 290px; }
.polaroid-2::before { background: rgba(255, 143, 184, .85); transform: rotate(-4deg); }
.home-origin .home-head { margin: 0; text-align: left; }
.home-origin .home-head .hand { color: var(--pink-ink); }
.home-origin .home-head p { margin-left: 0; color: var(--ink-2); }

/* Planes y preguntas en el inicio */
.home-page .pricing, .home-page .faq { background: transparent; }
.home-page .faq { padding-top: 40px; }

/* Cierre */
.home-final { position: relative; padding: 110px 20px; overflow: hidden; color: #fff; background: var(--navy); text-align: center; }
.home-final-confetti { position: absolute; inset: 0; pointer-events: none; }
.home-final-confetti svg { width: 100%; height: 100%; }
.home-final .hand { position: relative; display: block; margin-bottom: 10px; color: var(--sun); font-size: 2.2rem; }
.home-final h2 { position: relative; max-width: 980px; margin: 0 auto; color: #fff; font-size: clamp(2.2rem, 5vw, 4.3rem); font-weight: 800; line-height: 1; letter-spacing: -.035em; }
.home-final .final-actions { position: relative; margin-top: 34px; }
.home-final .button-sun { box-shadow: 0 5px 0 var(--coral); }
.button-on-dark { color: #fff; border: 2px solid #fff; background: transparent; }
.button-on-dark:hover { color: var(--ink); background: #fff; }

@media (max-width: 1100px) {
    .home-hero { grid-template-columns: minmax(0, 1fr); padding-top: 96px; text-align: center; min-height: 0; }
    .hh-copy { align-items: center; }
    .hh-chips, .hh-actions, .hh-trust { justify-content: center; }
    .hh-visual { width: min(100%, 620px); margin: 10px auto 40px; }
    .guest-steps { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; }
    .tpl-row .phone:nth-child(n+4) { display: none; }
    .home-host, .home-origin { grid-template-columns: 1fr; }
    .home-host .home-head, .home-origin .home-head { text-align: center; }
    .home-host .home-head p, .home-origin .home-head p { margin-left: auto; }
}
@media (max-width: 640px) {
    .launch-bar { min-height: 0; padding: 7px 12px; font-size: .82rem; line-height: 1.35; }
    .launch-bar b { display: none; }
    .home-hero { width: min(100% - 28px, 1320px); padding: 78px 0 30px; gap: 10px; }
    .home-garland { height: 50px; }
    .home-garland svg { height: 50px; }
    .home-hero h1 { font-size: 2.75rem; }
    .hh-lead { font-size: 1.05rem; }
    .hh-actions { flex-direction: column; width: 100%; }
    .hh-actions .button { width: 100%; }
    .hh-visual { width: 560px; height: 640px; margin: 10px 0 -236px calc(50% - 280px); transform: scale(.62); transform-origin: top center; }
    .hh-note { display: none; }
    .home-stickers .hand { font-size: 1.8rem; }
    .sticker { padding: 9px 15px; font-size: .92rem; }
    .home-guests { width: min(100% - 28px, 1320px); padding-top: 70px; }
    .home-head { margin-bottom: 30px; }
    .home-head .hand { font-size: 1.6rem; }
    .gstep { min-height: 0; padding: 24px; }
    .gstep-1 { min-height: 520px; }
    .gstep-note { position: static; align-self: flex-end; margin-top: 8px; font-size: 1.6rem; }
    .home-templates { padding: 80px 0 60px; }
    .home-templates .home-head { padding: 0 16px; }
    .tpl-row { justify-content: flex-start; gap: 16px; overflow-x: auto; padding: 10px 16px 30px; scroll-snap-type: x mandatory; }
    .tpl-row .phone { --pw: 150; scroll-snap-align: center; }
    .tpl-row .phone:nth-child(n+4) { display: block; }
    .home-host { width: min(100% - 28px, 1320px); padding-top: 70px; gap: 34px; }
    .host-grid { grid-template-columns: 1fr; }
    .home-origin { padding: 70px 14px; gap: 30px; }
    .polaroids { height: 380px; transform: scale(.82); transform-origin: top center; margin-bottom: -60px; }
    .polaroid-1 { left: 0; }
    .polaroid-2 { left: auto; right: -10px; }
    .home-final { padding: 80px 16px; }
}
@media (prefers-reduced-motion: reduce) {
    .sticker, a.sticker:hover { transition: none; }
}

/* ------------------------------------------------------------------
   Globos de ayuda junto al nombre de un campo (helper tip())
   ------------------------------------------------------------------ */
.tip { position: relative; display: inline-flex; vertical-align: middle; margin: -6px 0 -6px 4px; outline: none; cursor: help; font-weight: 400; }
.tip-icon { width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; color: var(--brand-deep); background: var(--brand-soft); font: 800 .75rem/1 var(--sans); transition: background .15s, color .15s; }
.tip:hover .tip-icon, .tip:focus-visible .tip-icon, .tip.is-open .tip-icon { color: #fff; background: var(--brand); }
.tip:focus-visible .tip-icon { outline: 3px solid rgba(77, 104, 217, .35); outline-offset: 2px; }
.tip-text {
    position: absolute; z-index: 40; left: -10px; bottom: calc(100% + 10px);
    width: max-content; max-width: min(290px, 72vw); padding: 10px 13px; border-radius: 12px;
    color: #fff; background: var(--ink); box-shadow: 0 10px 26px rgba(27, 30, 60, .22);
    font: 500 .8125rem/1.45 var(--sans); letter-spacing: 0; text-align: left; white-space: normal;
    display: none; pointer-events: none;
}
.tip-text::after { content: ''; position: absolute; left: 16px; top: 100%; border: 7px solid transparent; border-top-color: var(--ink); }
.tip-end .tip-text { left: auto; right: -10px; }
.tip-end .tip-text::after { left: auto; right: 16px; }
.tip-below .tip-text { bottom: auto; top: calc(100% + 10px); }
.tip-below .tip-text::after { top: auto; bottom: 100%; border-top-color: transparent; border-bottom-color: var(--ink); }
.tip:hover .tip-text, .tip:focus-visible .tip-text, .tip.is-open .tip-text { display: block; animation: tip-in .15s ease-out; }
@keyframes tip-in { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .tip-text { animation: none !important; } }

/* La app en las tiendas (inicio #app y pie). Botones negros como los oficiales; enlaces en Config\Tinvito. */
.store-badges { display: flex; flex-wrap: wrap; gap: 12px; }
.store-badge { min-width: 178px; min-height: 56px; padding: 8px 18px 8px 14px; display: inline-flex; align-items: center; gap: 12px; border-radius: 14px; color: #fff !important; background: #0d0f1e; box-shadow: 0 0 0 2px var(--ink), 0 4px 0 var(--ink); text-decoration: none !important; transition: transform .18s ease; }
.store-badge svg { width: 28px; height: 28px; flex: 0 0 auto; }
.store-badge > span { display: grid; line-height: 1.1; text-align: left; }
.store-badge small { font-size: .7rem; font-weight: 600; opacity: .85; }
.store-badge strong { font-size: 1.15rem; font-weight: 700; letter-spacing: -.01em; }
a.store-badge:hover, a.store-badge:focus-visible { transform: translateY(-2px); }
.store-badge.is-soon { color: var(--ink-2) !important; background: #fff; cursor: default; }
.store-badge.is-soon small { color: var(--coral); opacity: 1; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.store-badges.is-sm .store-badge { min-width: 0; min-height: 46px; padding: 6px 14px 6px 10px; gap: 9px; border-radius: 12px; box-shadow: 0 0 0 2px var(--ink), 0 3px 0 var(--ink); }
.store-badges.is-sm .store-badge svg { width: 22px; height: 22px; }
.store-badges.is-sm .store-badge small { font-size: .62rem; }
.store-badges.is-sm .store-badge strong { font-size: .95rem; }

.home-app { width: min(100% - 40px, 1320px); margin: 40px auto 30px; padding: 56px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; border: 2px solid var(--ink); border-radius: 36px; background: var(--lilac-soft); box-shadow: var(--pop-lg); }
.home-app h2 { margin: 0; font-family: var(--display); font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 800; line-height: 1.02; letter-spacing: -.035em; }
.home-app-lead { margin: 16px 0 0; color: var(--ink-2); font-size: 1.08rem; line-height: 1.6; }
.home-app-points { margin: 22px 0 28px; padding: 0; list-style: none; display: grid; gap: 10px; font-weight: 700; }
.home-app-points li { display: flex; align-items: center; gap: 10px; }
.home-app-points svg { width: 26px; height: 26px; padding: 5px; flex: 0 0 auto; border-radius: 50%; color: var(--ink); background: var(--sun); }
.home-app-card { justify-self: center; width: min(100%, 360px); padding: 30px 28px 26px; display: grid; justify-items: center; gap: 12px; border: 2px solid var(--ink); border-radius: 30px; background: #fff; text-align: center; transform: rotate(2deg); }
.home-app-card img { width: 72px; height: 72px; margin-top: -66px; border-radius: 20px; box-shadow: 0 0 0 4px #fff, 0 10px 24px rgba(27, 30, 60, .2); }
.home-app-qr { width: 100%; max-width: 230px; aspect-ratio: 1; }
.home-app-qr svg { display: block; width: 100%; height: 100%; }
.home-app-card .hand { margin: 2px 0 0; font-size: 1.7rem; line-height: 1; }
.home-app-card small { color: var(--muted); font-size: .86rem; line-height: 1.4; }
@media (max-width: 900px) {
    .home-app { padding: 36px 24px; grid-template-columns: minmax(0, 1fr); gap: 0; border-radius: 28px; }
    .home-app-card { display: none; }
    .store-badges:not(.is-sm) { justify-content: flex-start; }
}
@media (max-width: 420px) {
    .store-badges:not(.is-sm) { display: grid; grid-template-columns: minmax(0, 1fr); }
    .store-badges:not(.is-sm) .store-badge { width: 100%; }
}

/* "Lo que hace distinta a Tinvito" (entrega 46): inicio, Funciones y Plantillas */
.home-unique { width: min(100% - 40px, 1240px); margin: 0 auto; padding: 70px 0 30px; }
.home-unique .home-head { margin-bottom: 36px; }
.unique-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.unique-card { display: flex; gap: 16px; align-items: flex-start; padding: 22px; border: 2px solid var(--ink); border-radius: 24px; background: #fff; }
.unique-card h3 { margin: 2px 0 6px; font-size: 1.15rem; font-weight: 800; line-height: 1.2; }
.unique-card p { margin: 0; color: var(--muted); font-size: .95rem; line-height: 1.5; }
.unique-icon { flex: none; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 15px; background: #eef1fc; color: #4D68D9; }
.unique-card:nth-child(3n+2) .unique-icon { background: var(--pink-soft); color: var(--pink-ink); }
.unique-card:nth-child(3n) .unique-icon { background: var(--lilac-soft); color: #5b45c9; }
.unique-svg { width: 24px; height: 24px; }
.features-shell .home-unique { width: 100%; padding: 50px 0 10px; }
.unique-strip { margin: 34px 0 10px; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; }
.unique-strip-label { width: 100%; text-align: center; font-weight: 800; margin-bottom: 4px; }
.unique-chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border: 1.5px solid var(--ink); border-radius: 999px; background: #fff; font-size: .86rem; font-weight: 700; }
.unique-chip-icon { width: 16px; height: 16px; color: #4D68D9; }
@media (max-width: 1000px) { .unique-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .unique-grid { grid-template-columns: minmax(0, 1fr); } .home-unique { padding-top: 50px; } }

/* Página para matrimonios (/matrimonios, entrega 46) */
.wd-shell { overflow-x: clip; }
.wd-hero { width: min(100% - 40px, 1240px); margin: 0 auto; padding: 60px 0 40px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.wd-copy h1 { margin: 8px 0 14px; font-size: clamp(2.3rem, 5vw, 4rem); font-weight: 800; line-height: 1.02; letter-spacing: -.035em; }
.wd-lead { margin: 0; color: var(--muted); font-size: 1.15rem; line-height: 1.55; }
.wd-actions { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 12px; }
.wd-phones { display: flex; justify-content: center; align-items: flex-start; gap: 18px; }
.wd-phones .phone { --pw: 165; }
.wd-phones .wd-phone-1 { transform: rotate(-4deg); margin-top: 30px; }
.wd-phones .wd-phone-2 { transform: rotate(2deg); }
.wd-phones .wd-phone-3 { transform: rotate(5deg); margin-top: 40px; }
.wd-section { width: min(100% - 40px, 1240px); margin: 0 auto; padding: 60px 0 20px; }
.wd-section .home-head { margin-bottom: 36px; }
.wd-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.wd-card { padding: 24px; display: grid; gap: 8px; align-content: start; border: 2px solid var(--ink); border-radius: 24px; background: #fff; }
.wd-card h3 { margin: 6px 0 0; font-size: 1.2rem; font-weight: 800; line-height: 1.2; }
.wd-card p { margin: 0; color: var(--muted); font-size: .95rem; line-height: 1.5; }
.wd-icon { width: 50px; height: 50px; display: grid; place-items: center; border-radius: 16px; background: var(--pink-soft); color: var(--pink-ink); }
.wd-card:nth-child(3n+2) .wd-icon { background: #eef1fc; color: #4D68D9; }
.wd-card:nth-child(3n) .wd-icon { background: var(--lilac-soft); color: #5b45c9; }
.wd-svg { width: 24px; height: 24px; }
.wd-steps-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.wd-steps-list li { padding: 24px; border-radius: 24px; background: var(--coral-soft); }
.wd-steps-list h3 { margin: 10px 0 6px; font-size: 1.2rem; font-weight: 800; }
.wd-steps-list p { margin: 0; color: var(--muted); line-height: 1.5; }
.wd-step-num { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: var(--ink); color: #fff; font-weight: 800; }
.wd-price { width: min(100% - 40px, 1100px); margin: 50px auto 10px; padding: 28px 32px; display: flex; align-items: center; justify-content: space-between; gap: 24px; border: 2px solid var(--ink); border-radius: 28px; background: #eef1fc; }
.wd-price h2 { margin: 4px 0 6px; font-size: 1.5rem; font-weight: 800; line-height: 1.2; }
.wd-price p { margin: 0; color: var(--muted); }
.wd-price .eyebrow { color: #4D68D9; }
.wd-price .button { flex: none; white-space: nowrap; }
@media (max-width: 960px) {
    .wd-hero { grid-template-columns: minmax(0, 1fr); padding-top: 36px; }
    .wd-grid, .wd-steps-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
    .wd-grid, .wd-steps-list { grid-template-columns: minmax(0, 1fr); }
    .wd-phones .phone { --pw: 130; }
    .wd-phones { gap: 8px; }
    .wd-phones .wd-phone-3 { display: none; }
    .wd-price { flex-direction: column; align-items: stretch; padding: 22px; }
    .wd-price .button { justify-content: center; }
}

/* Opiniones de clientes (entrega 52) */
.home-reviews { width: min(100% - 40px, 1240px); margin: 0 auto; padding: 60px 0 30px; }
.home-reviews .home-head { margin-bottom: 32px; }
.reviews-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.review-card { margin: 0; display: flex; flex-direction: column; gap: 12px; padding: 22px; border: 2px solid var(--ink); border-radius: 24px; background: #fff; }
.review-stars { color: #ffb400; font-size: 1.2rem; letter-spacing: 2px; }
.review-stars i { font-style: normal; color: #d9d4cc; }
.review-card blockquote { margin: 0; flex: 1; font-size: 1rem; line-height: 1.55; white-space: pre-line; overflow-wrap: anywhere; }
.review-card figcaption { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; font-size: .92rem; }
.review-card figcaption span { color: var(--muted); }
@media (max-width: 1000px) { .reviews-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .review-card:last-child:nth-child(odd) { display: none; } }
@media (max-width: 640px) { .reviews-grid { grid-template-columns: minmax(0, 1fr); } .review-card:last-child:nth-child(odd) { display: flex; } .home-reviews { padding-top: 44px; } }

/* Franjas Plan Gratis / Organizadores: botones a la derecha y el texto con todo el ancho restante */
.organizer-band { grid-template-columns: minmax(0, 1fr) auto; }
.organizer-band .organizer-actions { align-items: flex-end; text-align: right; }
@media (max-width: 960px) {
    .organizer-band { grid-template-columns: minmax(0, 1fr); }
    .organizer-band .organizer-actions { align-items: flex-start; text-align: left; }
}

/* ==================================================================
   Entrega 71: un solo ancho en todo el sitio. El contenido de cada página empieza y termina donde el encabezado y el
   pie (var(--container), 1280 px, con 20 px de margen a cada lado; 14 px en teléfonos). Antes cada página tenía el suyo
   (980, 1100, 1120, 1180, 1240, 1320 px…).
   ================================================================== */
.home-hero, .home-guests, .home-host, .home-app, .home-unique, .home-reviews, .wd-hero, .wd-section, .wd-price,
.origin-story, .org-final,
.templates-shell, .events-shell, .panel-main, .legal-shell, .registration-shell, .customer-shell {
    width: min(100% - 40px, var(--container));
    margin-left: auto;
    margin-right: auto;
}
.pay-shell, .prefs-shell, .support-shell, .create-card { max-width: none; }
.organizer-band, .extras-strip { max-width: none; }
.sticker-list { max-width: var(--container); }
/* Secciones de borde a borde: el margen interior se calcula con el ancho de la página (100%), no con 100vw, que incluye
   la barra de desplazamiento y corría el contenido unos píxeles respecto del encabezado. */
.section { padding-left: max(20px, calc((100% - var(--container)) / 2)); padding-right: max(20px, calc((100% - var(--container)) / 2)); }
.home-origin { padding-left: max(20px, calc((100% - var(--container)) / 2)); padding-right: max(20px, calc((100% - var(--container)) / 2)); }
/* Entrega 72 (pedido del usuario): el diseñador de la invitación y la barra del evento con sus pestañas van a pantalla
   completa; sólo el contenido de las demás pestañas del evento (.panel-main) usa el ancho común. */
@media (max-width: 640px) {
    .home-hero, .home-guests, .home-host, .home-app, .home-unique, .home-reviews, .wd-hero, .wd-section, .wd-price,
    .origin-story, .org-final,
    .templates-shell, .events-shell, .panel-main, .legal-shell, .registration-shell, .customer-shell { width: min(100% - 28px, var(--container)); }
    .section, .home-origin { padding-left: 14px; padding-right: 14px; }
}
/* Teléfonos chicos con sesión: en el encabezado no cabían bandera, campana, "Mis eventos" y la foto (se salía 6 px y
   el botón quedaba en dos líneas). El idioma sigue en el pie de la página. */
.site-nav-actions .button { white-space: nowrap; }
@media (max-width: 400px) {
    .site-header .site-nav-actions .lang-switch { display: none; }
}
/* Entrega 72: con sesión, el sitio público usa la cabecera del área de cliente (partials/account_header). Sus estilos
   están en account.css, que las páginas públicas no cargan: aquí van los mismos. */
.customer-header { position: sticky; top: 0; z-index: 40; backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); }
.customer-header-inner { width: min(100% - 40px, var(--container)); min-height: 68px; margin: 0 auto; display: flex; align-items: center; gap: 20px; }
.customer-nav { display: flex; align-items: center; gap: 4px; margin-right: auto; font-size: .92rem; font-weight: 600; color: var(--ink-2); }
.customer-nav a { padding: 8px 12px; border-radius: 10px; }
.customer-nav a:hover { color: var(--brand-deep); background: var(--brand-softer); }
.customer-nav a[aria-current="page"] { color: var(--brand-deep); background: var(--brand-soft); }
.customer-header-actions { display: flex; align-items: center; gap: 10px; }
.customer-header .brand { margin-right: 12px; }
@media (max-width: 960px) {
    .customer-nav { display: none; }
    .customer-header-actions { margin-left: auto; }
}
@media (max-width: 560px) {
    .customer-header-inner { width: min(100% - 28px, var(--container)); gap: 8px; min-height: 60px; }
    .customer-header .brand-logo { height: 30px; }
    .customer-header .account-menu-name, .customer-header .account-menu-chevron { display: none; }
    .customer-header .lang-switch summary .lang-code { display: none; }
}

/* ==================================================================
   Entrega 72: menos blanco y más color. Las tarjetas de ícono + título + texto van centradas (el ícono arriba a la
   izquierda con texto alineado a la izquierda es el diseño típico de páginas hechas con IA) y cada una con su color.
   ================================================================== */
.org-features .org-feature:nth-child(6n+1), .org-steps li:nth-child(4n+1) { --c: var(--sun); --cs: var(--sun-soft); --ci: #8a5a10; }
.org-features .org-feature:nth-child(6n+2), .org-steps li:nth-child(4n+2) { --c: var(--pink); --cs: var(--pink-soft); --ci: var(--pink-ink); }
.org-features .org-feature:nth-child(6n+3), .org-steps li:nth-child(4n+3) { --c: var(--lilac); --cs: var(--lilac-soft); --ci: #5b3fc4; }
.org-features .org-feature:nth-child(6n+4), .org-steps li:nth-child(4n+4) { --c: var(--coral); --cs: var(--coral-soft); --ci: var(--coral-ink); }
.org-features .org-feature:nth-child(6n+5) { --c: #6f86e8; --cs: var(--brand-soft); --ci: var(--brand-deep); }
.org-features .org-feature:nth-child(6n+6) { --c: #3cc489; --cs: #dcf5e9; --ci: #12805c; }
.landing-page .org-features .org-feature, .landing-page .org-steps li { padding: 28px 22px 26px; text-align: center; background: var(--cs); }
.landing-page .org-feature .org-feature-icon { width: 56px; height: 56px; margin: 0 auto; border: 2px solid var(--ink); border-radius: 18px; color: var(--ink); background: var(--c); box-shadow: 0 3px 0 var(--ink); }
.landing-page .org-feature .org-feature-icon svg { width: 26px; height: 26px; }
.landing-page .org-feature h3, .landing-page .org-steps h3 { color: var(--ink); }
.landing-page .org-feature p, .landing-page .org-steps p { color: var(--ink-2); }
.landing-page .org-steps .org-step-n { width: 44px; height: 44px; margin: 0 auto; border: 2px solid var(--ink); color: var(--ink); background: var(--c); box-shadow: 0 3px 0 var(--ink); font-size: 1.1rem; }

/* Pasar a cuenta de organizador: una ventana con la presentación (fondo de color y beneficios en tarjetas) y el formulario. */
.org-activate { padding: 28px; border: 1px solid var(--line); border-radius: 28px; background: linear-gradient(135deg, var(--brand-softer), #fff 55%); box-shadow: var(--shadow); }
.org-activate-intro .org-lead { max-width: 640px; }
.org-benefits { margin: 22px 0 18px; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.org-benefits li { padding: 18px 16px; display: grid; justify-items: center; gap: 10px; border: 1px solid color-mix(in srgb, var(--tone) 30%, transparent); border-radius: 18px; color: var(--tone-ink); background: var(--tone-soft); text-align: center; font-weight: 600; line-height: 1.4; }
.org-benefit-ico { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 14px; color: #fff; background: var(--tone); }
.org-benefit-ico svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.org-benefits .t-brand { --tone: #4d68d9; --tone-soft: #e7ebfa; --tone-ink: #3a50b0; }
.org-benefits .t-sun { --tone: #e5a50a; --tone-soft: #fff1c2; --tone-ink: #8a5a10; }
.org-benefits .t-pink { --tone: #e2508a; --tone-soft: #ffe1ec; --tone-ink: #b0245c; }
.org-benefits .t-green { --tone: #1f9d6b; --tone-soft: #e1f5ec; --tone-ink: #12805c; }
.org-activate-form { border: 1px solid var(--line-strong); border-top: 6px solid var(--brand); box-shadow: 0 14px 34px rgba(27, 30, 60, .08); }
@media (max-width: 560px) {
    .org-activate { padding: 18px 14px; border-radius: 22px; }
    .org-benefits { grid-template-columns: minmax(0, 1fr); }
}
/* Entrega 73: el contenido crece hasta el final de la ventana (para que el pie quede abajo); en las páginas sin pie
   (eventos) eso estiraba las filas de la cuadrícula y dejaba cabeceras y tarjetas altísimas con espacio vacío. */
.account-page > main, .customer-page > main, .panel-page > main, .landing-page > main { align-content: start; }
/* Entrega 74: en "Todas las funciones" la sección "Lo que hace distinta a Tinvito" iba al 100 % (sin margen en el
   teléfono, las tarjetas tocaban los bordes). */
.features-shell .home-unique { width: min(100% - 40px, var(--container)); }
@media (max-width: 640px) { .features-shell .home-unique { width: min(100% - 28px, var(--container)); } }
/* Entrega 74: el resto de tarjetas de ícono + título + texto del sitio (inicio, funciones y matrimonios) también
   centradas y con color, como las de organizadores (regla del usuario). */
.unique-card:nth-child(6n+1), .wd-card:nth-child(6n+1), .host-card:nth-child(4n+1) { --c: var(--sun); --cs: var(--sun-soft); --ci: #8a5a10; }
.unique-card:nth-child(6n+2), .wd-card:nth-child(6n+2), .host-card:nth-child(4n+2) { --c: var(--pink); --cs: var(--pink-soft); --ci: var(--pink-ink); }
.unique-card:nth-child(6n+3), .wd-card:nth-child(6n+3), .host-card:nth-child(4n+3) { --c: var(--lilac); --cs: var(--lilac-soft); --ci: #5b3fc4; }
.unique-card:nth-child(6n+4), .wd-card:nth-child(6n+4), .host-card:nth-child(4n+4) { --c: var(--coral); --cs: var(--coral-soft); --ci: var(--coral-ink); }
.unique-card:nth-child(6n+5), .wd-card:nth-child(6n+5) { --c: #8fb0ff; --cs: var(--brand-soft); --ci: var(--brand-deep); }
.unique-card:nth-child(6n+6), .wd-card:nth-child(6n+6) { --c: #7ad7a8; --cs: #dcf5e9; --ci: #12805c; }
.landing-page .unique-card { flex-direction: column; align-items: center; text-align: center; background: var(--cs); }
.landing-page .wd-card, .landing-page .host-card { justify-items: center; text-align: center; background: var(--cs); }
.landing-page :is(.unique-card, .wd-card, .host-card) p { color: var(--ink-2); }
.landing-page :is(.unique-card .unique-icon, .wd-card .wd-icon) { width: 54px; height: 54px; border: 2px solid var(--ink); border-radius: 17px; color: var(--ink); background: var(--c); box-shadow: 0 3px 0 var(--ink); }
.landing-page .host-card .host-icon { border: 2px solid var(--ink); background: var(--c); box-shadow: 0 3px 0 var(--ink); }
/* Entrega 75: en Mi cuenta (avisos, pagos, datos, soporte, organizador…) la cabecera de cada página va en su propia
   ventana, como en Mis eventos y en las pestañas del evento (antes, título y botones sueltos sobre el fondo). */
.customer-shell > .customer-welcome, .customer-shell > .pay-head {
    margin: 0 0 20px; padding: 22px 24px; border: 1px solid var(--line); border-radius: 26px;
    background: linear-gradient(135deg, var(--brand-softer), #fff 60%); box-shadow: 0 14px 40px rgba(27, 30, 60, .06);
}
.customer-shell > .customer-welcome { align-items: center; }
.notif-card > .notif-tabs { margin: 0; padding: 12px 16px; border-bottom: 1px solid var(--line); background: #fbfcff; }
.pay-empty { padding-top: 34px; padding-bottom: 30px; }
.pay-empty-ico { width: 60px; height: 60px; margin: 0 auto 12px; display: grid; place-items: center; border-radius: 50%; color: var(--brand-deep); background: var(--brand-soft); }
.pay-empty-ico svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 560px) {
    .customer-shell > .customer-welcome, .customer-shell > .pay-head { padding: 18px 16px; border-radius: 20px; }
}
/* Entrega 76: Invitaciones recibidas (Mi cuenta) lleva su cabecera en ventana como el resto de la cuenta. Las páginas de
   información (Ayuda, Soporte, legales) van como Funciones: cabecera centrada sobre el fondo, sin ventana. */
.customer-shell > .rcv-head {
    margin: 0; padding: 26px 28px; border: 1px solid var(--line); border-radius: 26px;
    background: linear-gradient(135deg, var(--brand-softer), #fff 60%); box-shadow: 0 14px 40px rgba(27, 30, 60, .06);
}
.rcv-head p:last-child { margin-bottom: 0; }
.legal-shell > .legal-hero { max-width: 760px; margin: 0 auto 30px; text-align: center; }
/* Pasos (inicio, matrimonios, organizador): sin números; un subtítulo de orden ("Primero", "Luego", "Por último"). */
.step-label {
    align-self: flex-start; display: inline-block; padding: 5px 14px; border: 2px solid var(--ink); border-radius: 999px;
    color: var(--ink); background: var(--c, var(--sun)); box-shadow: 0 3px 0 var(--ink);
    font-size: .82rem; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; line-height: 1.2;
}
.gstep-1 .step-label { --c: var(--sun); }
.gstep-2 .step-label { --c: var(--pink); }
.gstep-3 .step-label { --c: #8fb0ff; }
.wd-steps-list li:nth-child(3n+1) { --c: var(--sun); --cs: var(--sun-soft); }
.wd-steps-list li:nth-child(3n+2) { --c: var(--pink); --cs: var(--pink-soft); }
.wd-steps-list li:nth-child(3n+3) { --c: var(--lilac); --cs: var(--lilac-soft); }
.landing-page .wd-steps-list li { padding: 28px 22px 26px; text-align: center; border: 2px solid var(--ink); background: var(--cs); }
.landing-page .wd-steps-list h3 { margin: 14px 0 6px; }
.landing-page .wd-steps-list p { color: var(--ink-2); }
.landing-page .org-steps .step-label { margin-bottom: 4px; }
@media (max-width: 560px) {
    .customer-shell > .rcv-head { padding: 20px 16px; border-radius: 20px; }
}
/* Entrega 78: las cabeceras de Mi cuenta llevan un ícono a la izquierda (como las pestañas del evento) para que no se vean vacías. */
.head-id { min-width: 0; display: flex; align-items: center; gap: 18px; }
.head-id > div { min-width: 0; }
.head-ico {
    flex: none; width: 58px; height: 58px; display: grid; place-items: center; border-radius: 18px;
    color: var(--hi-ink); background: var(--hi-soft); box-shadow: inset 0 0 0 1px var(--hi-line);
}
.head-ico svg { width: 28px; height: 28px; display: block; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.hi-brand { --hi-ink: var(--brand-deep); --hi-soft: var(--brand-soft); --hi-line: rgba(67, 97, 238, .16); }
.hi-sun { --hi-ink: #8a5a10; --hi-soft: var(--sun-soft); --hi-line: rgba(230, 160, 20, .25); }
.hi-coral { --hi-ink: var(--coral-ink); --hi-soft: var(--coral-soft); --hi-line: rgba(240, 100, 70, .2); }
.hi-lilac { --hi-ink: #5b3fc4; --hi-soft: var(--lilac-soft); --hi-line: rgba(120, 90, 230, .18); }
.hi-pink { --hi-ink: var(--pink-ink); --hi-soft: var(--pink-soft); --hi-line: rgba(230, 80, 140, .18); }
.hi-green { --hi-ink: #12805c; --hi-soft: #dcf5e9; --hi-line: rgba(18, 128, 92, .18); }
@media (max-width: 560px) {
    .head-id { align-items: flex-start; gap: 14px; }
    .head-ico { width: 46px; height: 46px; border-radius: 14px; }
    .head-ico svg { width: 23px; height: 23px; }
}
/* Invitaciones recibidas con la misma tipografía que las demás cabeceras de Mi cuenta. */
.customer-shell > .rcv-head { padding: 22px 24px; align-items: center; }
.rcv-head .eyebrow { margin: 0 0 10px; color: rgb(77, 104, 217); font-size: .78rem; letter-spacing: .08em; }
.rcv-head h1 { margin: 0 0 4px; font-size: 1.9rem; font-weight: 800; line-height: 1.2; }
.rcv-head h1 + p { margin: 0; font-size: 1rem; }
@media (max-width: 560px) { .customer-shell > .rcv-head { padding: 18px 16px; } .rcv-head h1 { font-size: 1.5rem; } }
/* Entrega 80: franja destacada "El día del evento" en el inicio (fondo oscuro, entrada con QR y llegadas en vivo). */
.home-day {
    position: relative; width: min(100% - 40px, var(--container)); margin: 30px auto 40px; padding: 64px clamp(28px, 5vw, 72px);
    display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 48px; align-items: center; overflow: hidden;
    border-radius: 36px; color: #fff; background: radial-gradient(90% 120% at 100% 0%, #2b3270 0%, var(--ink) 60%);
}
.home-day::before, .home-day::after { content: ""; position: absolute; border-radius: 50%; pointer-events: none; }
.home-day::before { width: 380px; height: 380px; right: -110px; bottom: -150px; background: var(--pink); opacity: .9; }
.home-day::after { width: 150px; height: 150px; right: 38%; top: -60px; background: var(--sun); opacity: .9; }
.home-day-copy, .home-day-art { position: relative; z-index: 1; min-width: 0; }
.home-day .hand { color: var(--sun); font-size: 1.9rem; }
.home-day h2 { margin: 6px 0 16px; color: #fff; font-size: clamp(2rem, 4vw, 3.3rem); line-height: 1.05; }
.home-day-lead { margin: 0 0 22px; max-width: 560px; color: #c9cfee; font-size: 1.08rem; line-height: 1.6; }
.home-day-points { margin: 0 0 30px; padding: 0; list-style: none; display: grid; gap: 12px; }
.home-day-points li { position: relative; padding-left: 34px; color: #fff; font-size: 1.05rem; font-weight: 600; line-height: 1.45; }
.home-day-points li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; color: var(--ink); background: var(--sun); font-size: .8rem; font-weight: 900; }
.home-day .button-sun { box-shadow: 0 5px 0 var(--pink); }
.home-day-note { margin: 16px 0 0; color: #a9b0d8; font-size: .9rem; }
.home-day-art { min-height: 540px; display: grid; place-items: center; }
.day-ticket {
    width: min(100%, 290px); padding: 26px 24px 22px; display: grid; justify-items: center; gap: 4px; text-align: center;
    border: 3px solid var(--ink); border-radius: 26px; color: var(--ink); background: #fff; box-shadow: 0 10px 0 var(--sun), 0 30px 60px rgba(0, 0, 0, .35);
    transform: rotate(3deg);
}
.day-ticket-kicker { color: var(--brand-deep); font-size: .74rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.day-ticket-name { font-family: var(--display); font-size: 1.45rem; font-weight: 800; letter-spacing: -.02em; }
.day-ticket-table { padding: 3px 12px; border-radius: 999px; color: var(--pink-ink); background: var(--pink-soft); font-size: .82rem; font-weight: 800; }
.day-ticket-qr { width: 190px; margin: 12px 0 8px; display: block; }
.day-ticket-qr svg { width: 100%; height: auto; display: block; }
.day-ticket-seats { color: var(--muted); font-size: .86rem; font-weight: 600; }
.day-chip { position: absolute; padding: 12px 16px; border: 2px solid var(--ink); border-radius: 18px; color: var(--ink); background: #fff; box-shadow: 0 6px 0 var(--ink); }
.day-chip small { display: block; color: var(--muted); font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.day-chip b { display: block; font-family: var(--display); font-size: 1.05rem; }
.day-chip-count { left: 0; top: 0; min-width: 170px; transform: rotate(-4deg); }
.day-chip-count b { font-size: 1.6rem; color: var(--brand-deep); }
.day-chip-bar { margin-top: 6px; height: 7px; display: block; border-radius: 9px; background: var(--brand-soft); overflow: hidden; }
.day-chip-bar i { width: 58%; height: 100%; display: block; border-radius: 9px; background: var(--sun); }
.day-chip-in { right: 0; bottom: 0; display: flex; align-items: center; gap: 10px; transform: rotate(-2deg); }
.day-chip-in small { letter-spacing: 0; text-transform: none; font-weight: 600; }
.day-chip-ok { width: 32px; height: 32px; flex: none; display: grid; place-items: center; border-radius: 50%; color: #fff; background: #12805c; font-weight: 900; }
@media (max-width: 900px) {
    .home-day { grid-template-columns: 1fr; gap: 36px; padding: 48px 28px; }
    .home-day-art { min-height: 540px; }
}
@media (max-width: 640px) {
    .home-day { width: min(100% - 28px, var(--container)); padding: 40px 20px 30px; border-radius: 26px; }
    .home-day .button-lg { width: 100%; justify-content: center; }
    .home-day::after { right: -60px; top: -80px; }
    .home-day-art { min-height: 520px; }
    .day-chip-count { left: 0; top: 0; }
    .day-chip-in { right: 0; bottom: 0; }
    .day-ticket { width: min(100%, 250px); }
    .day-ticket-qr { width: 160px; }
}
