/* Loopra · tema claro "champagne"
   Capa final sobre la paleta recoloreada: tipografía serif de contraste, etiquetas espaciadas,
   dorado como único acento, líneas finas y sombras suaves. Solo estética: no cambia textos ni lógica. */

/* Guía de autorización: el consentimiento real siempre se confirma en Instagram. */
body .social-connect-guide {
  width: min(680px, calc(100% - 24px));
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 1px solid #d9c8a8;
  border-radius: 22px;
  background: #faf7f1;
  color: #17130d;
  box-shadow: 0 24px 80px rgba(30, 22, 10, .25);
}
body .social-connect-guide::backdrop { background: rgba(25, 22, 17, .62); }
body .social-connect-guide-body { position: relative; padding: 30px; }
body .social-connect-guide-close { position: absolute; top: 10px; right: 10px; margin: 0; }
body .social-connect-guide-close button {
  width: 40px; height: 40px; border: 0; border-radius: 50%;
  background: transparent; color: #514a3e; font-size: 28px; cursor: pointer;
}
body .social-connect-guide-kicker {
  display: block; padding-right: 30px; margin-bottom: 12px;
  color: #77531a; font-size: 13px; font-weight: 600; line-height: 1.5;
}
body .social-connect-guide h3 {
  margin: 0 20px 12px 0; font-family: var(--serif); font-weight: 500;
  font-size: clamp(25px, 5vw, 32px); line-height: 1.2; letter-spacing: -.02em;
}
body .social-connect-guide h3 em { color: #8a5f14; }
body .social-connect-guide p { margin: 0; font-size: 14px; line-height: 1.6; color: #514a3e; }
body .social-connect-guide-steps { display: grid; gap: 15px; margin: 22px 0; padding: 0; list-style: none; }
body .social-connect-guide-steps li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 12px; }
body .social-connect-guide-steps li > span {
  display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
  background: #eee0c4; color: #614310; font-size: 13px; font-weight: 700;
}
body .social-connect-guide-steps strong { display: block; margin-bottom: 3px; font-size: 14px; line-height: 1.5; }
body .social-permission-example { padding: 18px; border: 1px solid #d8c6a0; border-radius: 14px; background: #fffdf8; }
body .social-permission-example-label { display: block; margin-bottom: 8px; color: #77531a; font-size: 12px; font-weight: 600; }
body .social-permission-example p { color: #17130d; }
body .social-permission-example-action { display: flex; align-items: center; gap: 14px; margin: 14px 0 10px; }
body .social-permission-example-action > span {
  display: block; padding: 10px 24px; border-radius: 8px; background: #4c55ed;
  color: #fff; font-size: 14px; font-weight: 600; text-align: center;
}
body .social-permission-example-action > strong { font-size: 13px; line-height: 1.5; }
body .social-permission-example small { display: block; color: #655e51; font-size: 12px; line-height: 1.5; }
body .social-connect-guide p.social-connect-guide-note { margin-top: 14px; font-size: 13px; }
body .social-connect-guide-actions { display: flex; justify-content: flex-end; gap: 12px; margin-top: 22px; }
body .social-connect-guide-actions form { margin: 0; }
body .social-connect-guide-actions .btn { min-height: 44px; white-space: normal; text-align: center; }
body .social-connect-guide :focus-visible { outline: 3px solid #9c6d18; outline-offset: 3px; }
body .social-connection-help { margin-top: 14px; font-size: 13px; line-height: 1.6; }
body .social-connection-help summary { color: #77531a; cursor: pointer; font-weight: 600; }
body .social-connection-help p { margin-top: 8px; }
@media (max-width: 480px) {
  body .social-connect-guide-body { padding: 24px 18px 18px; }
  body .social-connect-guide-actions { flex-direction: column-reverse; }
  body .social-connect-guide-actions .btn, body .social-connect-guide-actions form { width: 100%; }
  body .social-permission-example-action { align-items: stretch; flex-direction: column; gap: 8px; }
}

:root {
  --serif: 'Playfair Display', 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --ink: #17130d;
  --paper: #faf7f1;
  --stone: #f3ede1;
  --gold-ink: #93661a;
  --gold-txt: #8a5f14;
  --gold-fill: #9c6d18;
  --gold-fill-hi: #ad7d22;
  --gold-fill-lo: #916310;
  --gold-hair: rgba(168, 120, 36, .30);
  --hair: rgba(96, 70, 22, .13);
  --shadow-soft: 0 1px 2px rgba(60, 40, 10, .04), 0 10px 30px rgba(60, 40, 10, .06);
  --shadow-lift: 0 2px 4px rgba(60, 40, 10, .05), 0 24px 56px rgba(60, 40, 10, .10);
  --btn-gold: linear-gradient(180deg, var(--gold-fill-hi) 0%, var(--gold-fill) 55%, var(--gold-fill-lo) 100%);
}

/* ───────── Base ───────── */
html, body { background: var(--paper) !important; color: var(--ink); }
body { font-family: var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
::selection { background: rgba(184, 134, 44, .25); color: var(--ink); }
.ambient .orb { opacity: .10 !important; }
body::before { display: none !important; }

#auth-screen.public-screen {
  background:
    radial-gradient(1100px 560px at 50% -6%, #ffffff 0%, rgba(255, 255, 255, 0) 62%),
    radial-gradient(900px 520px at 100% 30%, rgba(233, 216, 178, .35) 0%, rgba(233, 216, 178, 0) 60%),
    linear-gradient(180deg, #fbf9f4 0%, #f7f2e8 100%) !important;
}

/* ───────── Botones ───────── */
body .btn { font-family: var(--sans); letter-spacing: .005em; border-radius: 10px; }
body .btn-primary,
body .support-link-primary,
body #auth-screen .btn-primary {
  background: var(--btn-gold) !important;
  color: #fff !important;
  border: 1px solid rgba(120, 82, 14, .55) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28), 0 6px 18px rgba(154, 108, 26, .22) !important;
  text-shadow: 0 1px 0 rgba(90, 58, 6, .25);
  font-weight: 600;
}
body .btn-primary:hover,
body .support-link-primary:hover {
  background: linear-gradient(180deg, #b98829 0%, #a4741d 55%, #966a14 100%) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 10px 26px rgba(154, 108, 26, .30) !important;
  transform: translateY(-1px);
}
body .btn-primary:disabled { opacity: .6; transform: none; }
body .btn-ghost {
  background: #fff !important;
  color: var(--ink) !important;
  border: 1px solid var(--hair) !important;
  box-shadow: 0 1px 2px rgba(60, 40, 10, .04);
}
body .btn-ghost:hover { border-color: var(--gold-hair) !important; background: #fffdf9 !important; }

/* ───────── Titulares: serif de contraste (referencia) ───────── */
#auth-screen .hero-copy h1,
#auth-screen .public-section-title,
#auth-screen .auth-title,
#auth-screen .home-contact h2,
#auth-screen .home-photo-service h3,
.hero-copy h1, .public-section-title {
  font-family: var(--serif) !important;
  font-weight: 500 !important;
  color: var(--ink) !important;
  background: none !important;
  -webkit-background-clip: border-box !important;
  background-clip: border-box !important;
  -webkit-text-fill-color: currentColor !important;
  filter: none !important;
  letter-spacing: -.028em !important;
  text-wrap: balance;
}
#auth-screen .hero-copy h1 { line-height: 1.04 !important; font-size: clamp(44px, 6.2vw, 88px) !important; }
#auth-screen .public-section-title { line-height: 1.1 !important; }
#auth-screen .hero-copy h1 em,
#auth-screen .public-section-title em {
  font-family: var(--serif) !important;
  font-style: italic;
  font-weight: 400;
  color: var(--gold-ink) !important;
  -webkit-text-fill-color: var(--gold-ink) !important;
  letter-spacing: -.02em;
}

/* Etiquetas en mayúsculas espaciadas */
#auth-screen .home-eyebrow,
#auth-screen .section-eyebrow,
#auth-screen .home-photo-label {
  font-family: var(--sans) !important;
  font-size: 11px !important;
  font-weight: 500 !important;
  letter-spacing: .26em !important;
  text-transform: uppercase;
  color: #736c60 !important;
}
#auth-screen .home-hero-hook { gap: 6px; margin-bottom: 30px; }
#auth-screen .home-hero-hook > span {
  font-size: 11.5px; letter-spacing: .26em; text-transform: uppercase; color: #736c60; font-weight: 500;
}
#auth-screen .home-hero-hook > strong {
  font-size: 11.5px; letter-spacing: .26em; text-transform: uppercase; color: var(--gold-ink); font-weight: 600;
}
#auth-screen .hero-lead {
  font-family: var(--sans); font-weight: 300; color: #5f5a50; font-size: 19px; line-height: 1.75; letter-spacing: .005em;
}
#auth-screen .home-hero-action > p { color: #6f695d; font-size: 12.5px; letter-spacing: .02em; }
#auth-screen [data-home-cta] { border-radius: 10px; }

/* ───────── Cabecera pública ───────── */
#auth-screen .public-nav {
  background: #fbf9f4 !important;
  box-shadow: 0 0 0 100vmax #fbf9f4 !important;
  clip-path: inset(0 -100vmax);
  border-bottom: 1px solid var(--hair) !important;
}
#auth-screen.home-focus .home-signin { color: var(--ink); font-weight: 500; letter-spacing: .01em; }
#auth-screen.home-focus .home-signin span { color: var(--gold-ink); }
#auth-screen.home-focus .home-signup {
  background: var(--btn-gold); border: 1px solid rgba(120, 82, 14, .55); color: #fff; border-radius: 10px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28), 0 4px 14px rgba(154, 108, 26, .2);
}
#auth-screen.home-focus .home-signup:hover { background: linear-gradient(180deg, #b98829, #966a14); }

/* ───────── Secciones ───────── */
#auth-screen.home-focus .home-problem { border-top: 1px solid var(--gold-hair); }
#auth-screen.home-focus .home-problem p { font-weight: 300; color: #5f5a50; }

#auth-screen.home-focus .home-process {
  background: #ffffff; border: 1px solid var(--hair); border-radius: 18px; box-shadow: var(--shadow-soft);
}
#auth-screen.home-focus .home-steps li { border-top: 1px solid var(--gold-hair); }
#auth-screen.home-focus .home-steps li > span {
  font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 20px; color: var(--gold-ink); letter-spacing: 0;
}
#auth-screen.home-focus .home-steps h3 { font-family: var(--serif); font-weight: 500; font-size: 23px; letter-spacing: -.02em; color: var(--ink); }
#auth-screen.home-focus .home-steps p { font-weight: 300; color: #5f5a50; }
#auth-screen.home-focus .home-process .home-eyebrow { color: #736c60; }
#auth-screen.home-focus .home-process .public-section-title em { color: var(--gold-ink); }
#auth-screen.home-focus .home-process .home-reassurance { border-top: 1px solid var(--hair); color: #6f695d; }

#auth-screen.home-focus .home-post {
  background: #fff; border: 1px solid var(--hair); border-radius: 16px; box-shadow: var(--shadow-lift);
}
#auth-screen.home-focus .home-post-header > span { background: linear-gradient(135deg, #f1dfae, #c99a3f); color: #fff; }
#auth-screen.home-focus .home-post figcaption { border-top: 1px solid var(--hair); color: #736c60; }
#auth-screen.home-focus .home-proof-copy > p { font-weight: 300; }
#auth-screen.home-focus .home-proof-note strong { color: var(--ink); }
#auth-screen.home-focus .home-demo-details { border-top: 1px solid var(--gold-hair); border-bottom: 1px solid var(--gold-hair); }
#auth-screen.home-focus .home-demo-details summary { color: var(--ink); }

#auth-screen.home-focus .home-price {
  background: linear-gradient(180deg, #fffdf9 0%, #f6f0e4 100%) !important;
  border: 1px solid var(--gold-hair) !important;
  box-shadow: var(--shadow-soft);
}
#auth-screen.home-focus .home-plan {
  background: #ffffff !important; border: 1px solid var(--hair) !important; box-shadow: var(--shadow-lift) !important;
  border-radius: 16px; position: relative;
}
#auth-screen.home-focus .home-plan::before {
  content: ''; position: absolute; left: 28px; right: 28px; top: 0; height: 2px;
  background: linear-gradient(90deg, transparent, #c99a3f, transparent);
}
#auth-screen.home-focus .home-plan h3 {
  font-family: var(--sans); font-size: 11.5px; letter-spacing: .26em; text-transform: uppercase; font-weight: 600; color: var(--gold-ink);
}
#auth-screen.home-focus .home-plan-price { font-family: var(--serif) !important; font-weight: 500; color: var(--ink); letter-spacing: -.03em; }
#auth-screen.home-focus .home-plan-price > span { font-family: var(--sans); color: #6f695d; }
#auth-screen.home-focus .home-plan li { color: #3d382f; font-weight: 400; }
#auth-screen.home-focus .home-plan li::before { color: var(--gold-ink); }
#auth-screen.home-focus .home-plan [data-home-cta] { color: #fff !important; }
#auth-screen.home-focus .home-plan .home-trial-terms,
#auth-screen.home-focus .home-plan .home-cancel { color: #6f695d; }
#auth-screen.home-focus .home-guarantee a { color: var(--gold-ink); }

#auth-screen.home-focus .home-help a { color: var(--gold-ink); }
#auth-screen.home-focus .home-contact h2 { font-size: 26px; }
#auth-screen.home-focus .home-photo-service {
  background: #fff; border: 1px solid var(--hair); border-left: 3px solid #c99a3f; box-shadow: var(--shadow-soft); border-radius: 14px;
}
#auth-screen.home-focus .home-photo-service h3 { font-size: 26px; }
#auth-screen.home-focus .home-photo-icon { color: var(--gold-ink); }
#auth-screen.home-focus .home-photo-service p { font-weight: 300; }
#auth-screen.home-focus .home-photo-contact a { color: var(--gold-ink); }

/* ───────── Tarjeta de acceso y formularios ───────── */
#auth-screen .auth-card {
  background: #ffffff !important; border: 1px solid var(--hair) !important; border-radius: 18px !important;
  box-shadow: var(--shadow-lift) !important;
}
#auth-screen .auth-tabs { background: var(--stone) !important; border: 1px solid var(--hair) !important; border-radius: 12px !important; }
#auth-screen .auth-tab { color: #6b655a !important; font-weight: 500; }
#auth-screen .auth-tab.active {
  background: #fff !important; color: var(--ink) !important; box-shadow: 0 1px 3px rgba(60, 40, 10, .10) !important;
}
#auth-screen .field label { color: #5f5a50; font-weight: 500; letter-spacing: .01em; }
#auth-screen .field input, #auth-screen .field select, #auth-screen .field textarea, .modal-textarea, .copy-editor {
  background: #fff !important; color: var(--ink) !important; border: 1px solid rgba(96, 70, 22, .20) !important; border-radius: 10px !important;
}
#auth-screen .field input::placeholder, #auth-screen .field textarea::placeholder { color: #a39c8e !important; }
#auth-screen .field input:focus, #auth-screen .field select:focus, #auth-screen .field textarea:focus {
  border-color: #b8862c !important; box-shadow: 0 0 0 3px rgba(184, 134, 44, .16) !important; outline: none;
}
#auth-screen .plan-option { background: #fffdf9 !important; border: 1px solid var(--gold-hair) !important; }
#auth-screen .plan-option.active { background: #f9f1de !important; border-color: #b8862c !important; }
#auth-screen .auth-sub { color: #6b655a; }
#auth-screen .btn-google { background: #fff !important; color: var(--ink) !important; border: 1px solid rgba(96, 70, 22, .20) !important; box-shadow: 0 1px 2px rgba(60, 40, 10, .05) !important; }
#auth-screen .btn-google:hover { background: #fffdf9 !important; box-shadow: 0 4px 12px rgba(60, 40, 10, .10) !important; }
.auth-divider { color: #736c60; letter-spacing: .04em; }

/* ───────── Pie legal ───────── */
.legal-footer { border-top: 1px solid var(--gold-hair) !important; }
.legal-footer, .legal-footer a { color: #6f695d !important; }
.legal-footer a:hover { color: var(--gold-ink) !important; }

/* Ajustes de composición */
#auth-screen.home-focus .home-problem .public-section-title { margin-left: auto; margin-right: auto; text-align: center; }
#auth-screen .login-copy .public-section-title { margin-bottom: 20px; }
#auth-screen .login-copy .section-eyebrow { margin-bottom: 18px; }
#auth-screen .login-copy > p { color: #5f5a50; font-weight: 300; line-height: 1.75; }

/* Texto del bloque de acceso según la pestaña activa: registro (por defecto) o entrar */
#login-panel [data-copy="login"] { display: none; }
#login-panel[data-auth-mode="login"] [data-copy="signup"] { display: none; }
#login-panel[data-auth-mode="login"] [data-copy="login"] { display: inline; }

/* Al elegir registrarse, el móvil muestra el formulario sin otra pantalla de introducción. */
@media (max-width: 640px) {
  html.signup-focus-mode #auth-screen .login-copy,
  html.signup-focus-mode #auth-screen .auth-logo { display: none; }
  html.signup-focus-mode #auth-screen .login-section {
    min-height: 0; padding: 20px 0; gap: 0; justify-content: flex-start;
  }
  html.signup-focus-mode #auth-screen .auth-card { padding: 22px 18px; margin: 0; }
  html.signup-focus-mode #auth-screen .auth-title { font-size: 28px; line-height: 1.2; }
  html.signup-focus-mode #auth-screen .auth-sub { font-size: 14px; line-height: 1.5; }
}

/* ═════════════════════════ PANEL DE CONTROL ═════════════════════════ */
html body.is-app #app-screen, html body.is-app .main-content { background: var(--paper) !important; }
html body.is-app .main-content {
  background:
    radial-gradient(900px 420px at 85% -8%, rgba(255, 255, 255, .9), rgba(255, 255, 255, 0) 60%),
    var(--paper) !important;
}

/* Barra lateral */
html body.is-app .sidebar {
  background: #fdfbf7 !important; border-right: 1px solid var(--hair) !important; box-shadow: none !important;
}
html body.is-app .sidebar-logo img { mix-blend-mode: normal; }
html body.is-app .nav-item {
  color: #6b655a; border-radius: 10px; font-weight: 500; letter-spacing: .005em;
}
html body.is-app .nav-item .nav-icon { color: #736c60; }
html body.is-app .nav-item:hover { background: #f6f1e7 !important; color: var(--ink) !important; }
html body.is-app .nav-item.active {
  background: #f7ecd6 !important; color: var(--gold-ink) !important; font-weight: 600; box-shadow: none !important;
}
html body.is-app .nav-item.active .nav-icon { color: var(--gold-ink); }
html body.is-app .nav-badge { background: var(--gold-fill) !important; color: #fff !important; font-weight: 600; }
html body.is-app .user-card, html body.is-app .sidebar-user { border-top: 1px solid var(--hair) !important; }
html body.is-app .user-avatar {
  background: linear-gradient(135deg, #f1dfae, #c99a3f) !important; color: #fff !important; font-weight: 600;
}

/* Cabecera del panel */
html body.is-app .topbar {
  background: rgba(250, 247, 241, .92) !important; border-bottom: 1px solid var(--hair) !important;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
html body.is-app .page-title {
  font-family: var(--sans) !important; font-weight: 600 !important; letter-spacing: -.01em !important;
  color: var(--ink) !important; background: none !important; -webkit-text-fill-color: currentColor !important;
  -webkit-background-clip: border-box !important; background-clip: border-box !important; filter: none !important;
}
html body.is-app .page-date { color: #736c60; }

/* Banner de demo y guía de prueba */
html body.is-app .demo-banner {
  background: #f7ecd6 !important; border-bottom: 1px solid var(--gold-hair) !important; color: #4a3d22 !important;
}
html body.is-app .demo-banner-text, html body.is-app .demo-banner-text b { color: #4a3d22 !important; }
html body.is-app .demo-banner-dot { background: var(--gold-fill) !important; }
html body.is-app .demo-banner-cta {
  background: #fff !important; color: var(--ink) !important; border: 1px solid var(--gold-hair) !important; border-radius: 9px !important;
  box-shadow: 0 1px 2px rgba(60, 40, 10, .05) !important; text-shadow: none !important;
}
html body.is-app button.demo-banner-cta#demo-signup-btn {
  background: var(--btn-gold) !important; color: #fff !important; border-color: rgba(120, 82, 14, .55) !important;
}
html body.is-app .demo-banner-exit { color: #6b655a !important; background: transparent !important; }
html body.is-app .demo-practice-guide {
  background: #fff !important; border: 1px solid var(--hair) !important; border-radius: 16px !important; box-shadow: var(--shadow-soft) !important;
}
html body.is-app .demo-practice-guide > div > span {
  color: #736c60 !important; letter-spacing: .24em; font-size: 10.5px; font-weight: 500;
}
html body.is-app .demo-practice-guide strong { font-family: var(--serif); font-weight: 500; color: var(--ink) !important; letter-spacing: -.02em; }
html body.is-app .demo-practice-guide p { color: #6b655a !important; }
html body.is-app .demo-practice-guide button {
  background: #fffdf9 !important; border: 1px solid var(--hair) !important; color: var(--ink) !important; border-radius: 12px !important;
  box-shadow: none !important; text-shadow: none !important;
}
html body.is-app .demo-practice-guide button:hover { border-color: var(--gold-hair) !important; background: #fff !important; box-shadow: var(--shadow-soft) !important; }
html body.is-app .demo-practice-guide button b {
  font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--gold-ink) !important; background: none !important;
}
html body.is-app .demo-practice-guide button span { color: var(--ink) !important; font-weight: 600; }
html body.is-app .demo-practice-guide button small { color: #6f695d !important; font-weight: 400; }
html body.is-app .demo-practice-guide button i { color: var(--gold-ink) !important; font-style: normal; }

/* Encabezados serif del panel */
html body.is-app #dashboard-headline,
html body.is-app .dashboard-command h3,
html body.is-app .dashboard-section-heading h3,
html body.is-app .section-title {
  font-family: var(--serif) !important; font-weight: 500 !important; letter-spacing: -.025em !important; color: var(--ink) !important;
  background: none !important; -webkit-text-fill-color: currentColor !important;
  -webkit-background-clip: border-box !important; background-clip: border-box !important;
}
html body.is-app .dashboard-kicker,
html body.is-app .dashboard-section-heading > div > span,
html body.is-app .create-posts-cta-kicker {
  font-size: 10.5px !important; font-weight: 500 !important; letter-spacing: .26em !important; text-transform: uppercase; color: #736c60 !important;
}
html body.is-app .studio-welcome { color: #6b655a !important; }

/* Tarjetas */
html body.is-app .stat-card, html body.is-app .dashboard-focus-card, html body.is-app .create-posts-cta, html body.is-app .onboarding-panel,
html body.is-app .studio-dashboard-guide, html body.is-app .post-card, html body.is-app .settings-card, html body.is-app .card {
  background: #fff !important; border: 1px solid var(--hair) !important; border-radius: 14px !important;
  box-shadow: var(--shadow-soft) !important;
}
html body.is-app .stat-value { font-family: var(--serif) !important; font-weight: 500 !important; letter-spacing: -.03em; color: var(--ink) !important; }
html body.is-app .stat-label { color: #6b655a !important; font-weight: 500; }
html body.is-app .stat-change { color: #736c60 !important; }

/* ── Introducciones de vista ── */
html body.is-app .view-intro { border-bottom: 1px solid var(--gold-hair) !important; }
html body.is-app .view-intro > div > span {
  font-size: 10.5px !important; font-weight: 500 !important; letter-spacing: .26em !important; text-transform: uppercase; color: var(--gold-txt) !important;
}
html body.is-app .view-intro h3 {
  font-family: var(--serif) !important; font-weight: 500 !important; letter-spacing: -.028em !important; color: var(--ink) !important;
  background: none !important; -webkit-text-fill-color: currentColor !important; font-size: 34px;
}
html body.is-app .view-intro p { color: #5f5a50 !important; font-size: 13px; font-weight: 300; }
html body.is-app .explain-grid article,
html body.is-app .explain-grid > * {
  background: #fff !important; border: 1px solid var(--hair) !important; border-radius: 12px !important; box-shadow: none !important;
}
html body.is-app .explain-grid b { color: var(--ink) !important; }
html body.is-app .explain-grid span { color: #6b655a !important; }

/* ── Campos de formulario del panel ── */
html body.is-app input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
html body.is-app textarea,
html body.is-app select {
  background: #fff !important; color: var(--ink) !important; border: 1px solid rgba(96, 70, 22, .20) !important; border-radius: 10px !important;
}
html body.is-app input:focus, html body.is-app textarea:focus, html body.is-app select:focus {
  border-color: #b8862c !important; box-shadow: 0 0 0 3px rgba(184, 134, 44, .16) !important; outline: none !important;
}
html body.is-app input::placeholder, html body.is-app textarea::placeholder { color: #a39c8e !important; }

/* ── Calendario ── */
html body.is-app .cal-day { background: #fff !important; border: 1px solid var(--hair) !important; border-radius: 10px !important; }
html body.is-app .cal-day:hover { border-color: var(--gold-hair) !important; background: #fffdf9 !important; }
html body.is-app .cal-day.selected { background: #f7ecd6 !important; border-color: #b8862c !important; }
html body.is-app .cal-day.today, html body.is-app .cal-day.is-today { border-color: #b8862c !important; }

/* ── Estados, chips y etiquetas ── */
html body.is-app .badge { border-radius: 999px; font-weight: 600; letter-spacing: .02em; }
html body.is-app .badge-pending { background: #fbf0d9 !important; color: #7a5512 !important; border-color: rgba(184, 134, 44, .30) !important; }
html body.is-app .badge-approved { background: #e6eefc !important; color: #24509f !important; border-color: rgba(47, 95, 191, .28) !important; }
html body.is-app .badge-published { background: #e5f4ec !important; color: #17603b !important; border-color: rgba(47, 143, 91, .28) !important; }
html body.is-app .badge-rejected, html body.is-app .badge-failed { background: #fbeceb !important; color: #983a33 !important; border-color: rgba(184, 82, 74, .28) !important; }
html body.is-app .badge-historia, html body.is-app .badge-post, html body.is-app .badge-reel { color: #7a5512 !important; }
html body.is-app .platform-chip { border-radius: 6px; font-weight: 600; }
html body.is-app .platform-chip.chip-ig { color: #7a5512 !important; background: #f7ecd6 !important; }
html body.is-app .platform-chip.chip-fb { color: #24509f !important; background: #e6eefc !important; }
html body.is-app .type-change-action, html body.is-app .platform-change-action { color: #7a5512 !important; }
html body.is-app .dashboard-flow-step > span { color: var(--gold-txt) !important; }
html body.is-app small { color: inherit; }

/* ── Fichas de publicación ── */
html body.is-app .post-card { overflow: hidden; }
html body.is-app .post-card:hover { box-shadow: var(--shadow-lift) !important; border-color: var(--gold-hair) !important; }
html body.is-app .btn-approve { background: #e5f4ec !important; color: #17603b !important; border: 1px solid rgba(47, 143, 91, .30) !important; }
html body.is-app .btn-reject { background: #fbeceb !important; color: #983a33 !important; border: 1px solid rgba(184, 82, 74, .28) !important; }
html body.is-app .btn-preview-ig { background: #fffdf9 !important; color: #5f5a50 !important; border: 1px solid var(--hair) !important; }

/* ── Modales, avisos y guía flotante ── */
html body .modal-overlay { background: rgba(38, 27, 10, .42) !important; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
html body .modal-card {
  background: #fff !important; border: 1px solid var(--hair) !important; border-radius: 18px !important; box-shadow: 0 30px 80px rgba(38, 27, 10, .28) !important;
  color: var(--ink);
}
html body .modal-title { font-family: var(--serif); font-weight: 500; letter-spacing: -.02em; color: var(--ink); font-size: 22px; }
html body .modal-sub { color: #6b655a; }
html body .toast { background: #fff !important; color: var(--ink) !important; border: 1px solid var(--hair) !important; box-shadow: 0 14px 40px rgba(38, 27, 10, .16) !important; }
html body .coach-panel { background: #fff !important; border: 1px solid var(--hair) !important; box-shadow: var(--shadow-lift) !important; color: var(--ink) !important; }
html body .coach-avatar { filter: none; }
html body .coach-avatar img { filter: drop-shadow(0 4px 8px rgba(60, 40, 10, .18)) !important; mix-blend-mode: normal !important; }

/* ── Tarjetas de resumen ── */
html body.is-app .upcoming-card, html body.is-app .plan-access-card {
  background: #fff !important; border: 1px solid var(--hair) !important; border-radius: 14px !important; box-shadow: var(--shadow-soft) !important;
}
html body.is-app .studio-upcoming-media { background: #f3ede1 !important; }
html body.is-app .upcoming-card:hover { box-shadow: var(--shadow-lift) !important; border-color: var(--gold-hair) !important; }

/* Separador "o con tu email" */
.auth-divider { display: flex; align-items: center; gap: 12px; }
.auth-divider::before, .auth-divider::after {
  content: ''; position: static !important; flex: 1 1 0; height: 1px; background: var(--hair) !important; transform: none !important; inset: auto !important;
}
.auth-divider > span { flex: none; }

/* ── Demo (página propia y widget de la portada) ── */
body.simple-demo-page { background: var(--paper) !important; color: var(--ink); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
body.simple-demo-page .simple-page-header { border-bottom: 1px solid var(--hair); }
.simple-page-copy h1, .simple-demo .pd-story-copy h3, .simple-demo .pd-approval-copy h3, .simple-demo .pd-result-copy h3 {
  font-family: var(--serif) !important; font-weight: 500 !important; letter-spacing: -.028em !important; color: var(--ink) !important;
}
.simple-page-copy h1 em, .simple-demo .pd-stage h3 em {
  font-family: var(--serif) !important; font-style: italic; font-weight: 400 !important; color: var(--gold-ink) !important;
}
.simple-page-copy > span, .simple-demo .pd-kicker {
  font-size: 11px !important; font-weight: 500 !important; letter-spacing: .24em !important; text-transform: uppercase; color: var(--gold-txt) !important;
}
.simple-demo { border-color: var(--hair) !important; box-shadow: var(--shadow-lift) !important; background: #fff !important; }

/* Bloque "Probar el panel completo" al final de la demo.
   Antes era un enlace pequeño en el pie: ahora explica para qué sirve y lleva botón dorado. */
.simple-demo .pd-panel-cta {
  display: flex; align-items: center; gap: 20px;
  padding: 22px 26px;
  background: linear-gradient(135deg, #fcf8ef 0%, #f6eddb 100%);
  border-top: 1px solid var(--gold-hair);
}
.simple-demo .pd-panel-cta-icon {
  flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
  background: #fff; color: var(--gold-ink); border: 1px solid var(--gold-hair); box-shadow: 0 1px 2px rgba(60, 40, 10, .06);
}
.simple-demo .pd-panel-cta-icon svg { width: 22px; height: 22px; }
.simple-demo .pd-panel-cta-copy { flex: 1 1 auto; min-width: 0; }
.simple-demo .pd-panel-cta-copy strong {
  display: block; margin-bottom: 5px; font-family: var(--serif); font-weight: 500; font-size: 21px; line-height: 1.2; letter-spacing: -.02em; color: var(--ink);
}
.simple-demo .pd-panel-cta-copy p { max-width: 62ch; font-size: 13.5px; line-height: 1.6; color: #5f5a50; text-wrap: pretty; }
.simple-demo a.pd-panel-cta-btn {
  flex: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 12px 22px; border-radius: 10px; white-space: nowrap; text-decoration: none;
  background: var(--btn-gold); color: #fff; border: 1px solid rgba(120, 82, 14, .55);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28), 0 6px 18px rgba(154, 108, 26, .22); text-shadow: 0 1px 0 rgba(90, 58, 6, .25);
  font-size: 14px; font-weight: 600; letter-spacing: .005em; transition: transform .15s ease, box-shadow .15s ease;
}
.simple-demo a.pd-panel-cta-btn:hover {
  text-decoration: none; transform: translateY(-1px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 10px 26px rgba(154, 108, 26, .30);
}
@media (max-width: 760px) {
  /* Pie de la demo: botón de pausa a la izquierda y aviso a la derecha, en una sola línea */
  .simple-demo .pd-footer > span { order: 0; width: auto; flex: 1 1 0; text-align: right; }
  .simple-demo .pd-panel-cta { flex-wrap: wrap; align-items: flex-start; gap: 14px; padding: 20px 18px 22px; }
  .simple-demo .pd-panel-cta-icon { width: 40px; height: 40px; }
  .simple-demo .pd-panel-cta-copy { flex-basis: calc(100% - 58px); }
  .simple-demo .pd-panel-cta-copy strong { font-size: 19px; }
  .simple-demo .pd-panel-cta-copy p { font-size: 13px; }
  .simple-demo a.pd-panel-cta-btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .simple-demo a.pd-panel-cta-btn { transition: none; }
  .simple-demo a.pd-panel-cta-btn:hover { transform: none; }
}

/* ── Acción principal de la cabecera del panel (referencia: botón dorado) ── */
/* Guía en vídeo: carga a petición, capítulos y transcripción accesible. */
body.is-app[data-view="ayuda"] #loopra-coach { display: none !important; }
body.is-app #view-ayuda .guide-video-section {
  margin-bottom: 26px; padding: clamp(16px, 2vw, 26px); border: 1px solid var(--hair);
  border-radius: 20px; background: #fffdf9; box-shadow: var(--shadow-soft); min-width: 0;
}
body.is-app #view-ayuda .guide-video-eyebrow { display: block; color: #77531a; font-size: 12px; font-weight: 600; letter-spacing: .08em; margin-bottom: 10px; }
body.is-app #view-ayuda .guide-video-heading h4 { font: 500 clamp(24px, 2.5vw, 32px)/1.2 var(--serif); margin: 0 0 10px; color: var(--ink); }
body.is-app #view-ayuda .guide-video-heading p { color: #665b48; font-size: 14px; line-height: 1.6; margin: 0 0 22px; max-width: 750px; }
body.is-app #view-ayuda .guide-video-layout { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 24px; align-items: start; }
body.is-app #view-ayuda .guide-video-main { min-width: 0; }
body.is-app #view-ayuda .guide-video-frame { position: relative; }
body.is-app #view-ayuda .guide-video-start { position: absolute; inset: 0; width: 100%; height: 100%; display: grid; place-items: center; padding: 0; border: 1px solid #ded0b7; border-radius: 12px; overflow: hidden; cursor: pointer; background: #f3ede1; color: white; }
body.is-app #view-ayuda .guide-video-start[hidden] { display: none !important; }
body.is-app #view-ayuda .guide-video-start img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
body.is-app #view-ayuda .guide-video-play-icon { position: relative; display: grid; place-items: center; width: 68px; height: 68px; border-radius: 50%; background: #93661a; color: white; font-size: 25px; padding-left: 4px; box-shadow: 0 0 0 8px rgba(250,247,241,.75); }
body.is-app #view-ayuda .guide-video-play-label { position: absolute; bottom: 12px; padding: 7px 13px; background: #332714; border-radius: 30px; color: white; font-size: 12px; font-weight: 600; }
body.is-app #view-ayuda #loopra-guide-video { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: contain; border: 1px solid #ded0b7; border-radius: 12px; background: #17130d; }
body.is-app #view-ayuda #loopra-guide-video::cue { font: 16px sans-serif; background: rgba(20, 18, 14, .9); color: white; }
body.is-app #view-ayuda .guide-video-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin: 14px 0; }
body.is-app #view-ayuda .guide-video-toolbar p { color: #665b48; font-size: 13px; line-height: 1.6; margin: 0; }
body.is-app #view-ayuda .guide-video-toolbar .btn { flex: 0 0 auto; min-height: 44px; }
body.is-app #view-ayuda .guide-video-current { padding: 12px 14px; background: #f3ede1; border-radius: 9px; color: #5b4b30; font-size: 13px; line-height: 1.5; }
body.is-app #view-ayuda .guide-video-current strong { color: #201b14; }
body.is-app #view-ayuda #guide-video-status { color: #8c431c; font-size: 14px; line-height: 1.6; }
body.is-app #view-ayuda #guide-video-status:not(:empty) { padding: 12px 0; }
body.is-app #view-ayuda .guide-video-footnote { margin: 14px 0 8px; color: #746958; font-size: 12px; line-height: 1.6; }
body.is-app #view-ayuda .guide-video-link { color: #795317; font-size: 13px; text-underline-offset: 3px; }
body.is-app #view-ayuda .guide-video-chapters h5 { font-size: 15px; margin: 0 0 5px; color: #201b14; }
body.is-app #view-ayuda .guide-video-chapters > p { font-size: 12px; color: #746958; margin: 0 0 13px; }
body.is-app #view-ayuda .guide-video-chapters ol { list-style: none; display: grid; gap: 6px; margin: 0; padding: 0; }
body.is-app #view-ayuda .guide-video-chapters button { display: grid; grid-template-columns: 23px minmax(0,1fr) 31px; gap: 9px; width: 100%; min-height: 64px; align-items: start; text-align: left; border: 1px solid transparent; border-radius: 10px; background: transparent; color: #292219; padding: 12px 10px; cursor: pointer; font: inherit; }
body.is-app #view-ayuda .guide-video-chapters button:hover { background: #f7f2e8; }
body.is-app #view-ayuda .guide-video-chapters button[aria-current] { background: #f3e8d2; border-color: #c6a66a; }
body.is-app #view-ayuda .guide-chapter-number { font-size: 12px; color: #886021; font-weight: 600; padding-top: 2px; }
body.is-app #view-ayuda .guide-chapter-copy strong { display: block; font-size: 13px; line-height: 1.45; font-weight: 600; }
body.is-app #view-ayuda .guide-chapter-copy small { display: block; font-size: 11px; line-height: 1.5; color: #6b604e; margin-top: 4px; }
body.is-app #view-ayuda .guide-chapter-time { font-variant-numeric: tabular-nums; font-size: 11px; color: #74634a; padding-top: 2px; }
body.is-app #view-ayuda .guide-video-transcript { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--hair); }
body.is-app #view-ayuda .guide-video-transcript summary { cursor: pointer; color: #654919; font-size: 14px; line-height: 1.6; font-weight: 600; }
body.is-app #view-ayuda .guide-video-transcript section { margin: 24px 0; max-width: 780px; }
body.is-app #view-ayuda .guide-video-transcript h5 { font-size: 17px; color: #201b14; margin-bottom: 10px; }
body.is-app #view-ayuda .guide-video-transcript p { font-size: 14px; line-height: 1.8; color: #625846; margin: 10px 0; }
body.is-app #view-ayuda .guide-video-section :focus-visible { outline: 3px solid #9c6d18; outline-offset: 3px; }
@media (max-width: 1200px) {
  body.is-app #view-ayuda .guide-video-layout { grid-template-columns: minmax(0,1fr); }
  body.is-app #view-ayuda .guide-video-chapters ol { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
@media (max-width: 768px) {
  body.is-app #view-ayuda .guide-video-chapters ol { grid-template-columns: minmax(0,1fr); }
  body.is-app #view-ayuda .guide-video-toolbar { align-items: start; flex-direction: column; gap: 10px; }
  body.is-app #view-ayuda .guide-chapter-copy strong { font-size: 14px; }
  body.is-app #view-ayuda .guide-chapter-copy small { font-size: 12px; }
  body.is-app #view-ayuda .guide-video-heading p { font-size: 13px; }
  body.is-app #view-ayuda #loopra-guide-video { border-radius: 8px; }
}

html body.is-app .topbar-actions [data-open-planificar],
html body.is-app .topbar-actions .btn-primary {
  background: var(--btn-gold) !important; color: #fff !important; border: 1px solid rgba(120, 82, 14, .55) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28), 0 4px 14px rgba(154, 108, 26, .2) !important; text-shadow: 0 1px 0 rgba(90, 58, 6, .25);
}
html body.is-app .topbar-actions .btn-ghost { background: #fff !important; color: var(--ink) !important; border: 1px solid var(--hair) !important; }

/* ── Móvil: cabecera y pestañas de "Revisar" fijas sin solaparse ──
   La barra de pestañas (Pendientes/Aprobados/...) se queda pegada bajo la cabecera con fondo
   opaco. Antes era transparente y dejaba ver las tarjetas por detrás al hacer scroll. */
@media (max-width: 768px) {
  html body.is-app .topbar {
    height: 70px; min-height: 70px; box-sizing: border-box;
    background: var(--paper) !important;
    -webkit-backdrop-filter: none !important; backdrop-filter: none !important;
    border-bottom: 1px solid var(--hair) !important;
  }
  html body.is-app .filter-bar {
    top: 70px !important;
    background: var(--paper) !important;
    padding: 9px 12px !important;
    margin: 0 -12px 14px !important;
    border-bottom: 1px solid var(--hair) !important;
  }
  html body.is-app:not(.is-demo) .topbar { position: sticky !important; top: 0 !important; }
  /* En el modo demo la cabecera no es fija y el aviso superior sí lo es (y es alto):
     las pestañas ruedan con el contenido para no quedar tapadas ni encimadas. */
  html body.is-app.is-demo .filter-bar { position: static !important; top: auto !important; }
}

/* ── Portada: vídeo "Así se usa Loopra" (se ve antes de registrarse) ── */
#auth-screen.home-focus .home-video { padding: 8px 0 76px; text-align: center; scroll-margin-top: 96px; }
#auth-screen.home-focus .home-video .public-section-title { margin-left: auto; margin-right: auto; max-width: 980px; }
#auth-screen.home-focus .home-video > p { max-width: 640px; margin: 22px auto 36px; color: #5f5a50; font-size: 17px; line-height: 1.75; font-weight: 300; }
#auth-screen .home-video-frame {
  position: relative; max-width: 1060px; margin: 0 auto; aspect-ratio: 16 / 9; overflow: hidden;
  border-radius: 22px; background: #f3ede1; border: 1px solid var(--hair);
  box-shadow: 0 2px 4px rgba(60, 40, 10, .05), 0 34px 80px rgba(60, 40, 10, .16);
}
#auth-screen .home-video-frame::after { content: ''; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .5); pointer-events: none; }
#auth-screen .home-video-frame video { display: block; width: 100%; height: 100%; object-fit: cover; background: #faf7f1; }
#auth-screen .home-video-play {
  position: absolute; inset: 0; z-index: 1; display: flex; align-items: flex-end; justify-content: center; padding: 0 0 7%;
  border: 0; margin: 0; cursor: pointer; background: linear-gradient(180deg, rgba(23, 19, 13, 0) 55%, rgba(23, 19, 13, .16) 100%);
}
#auth-screen .home-video-pill {
  display: inline-flex; align-items: center; gap: 14px; padding: 8px 24px 8px 8px; border-radius: 999px;
  background: rgba(255, 255, 255, .94); border: 1px solid var(--gold-hair); text-align: left;
  box-shadow: 0 16px 40px rgba(60, 40, 10, .18); transition: transform .2s ease, box-shadow .2s ease;
}
#auth-screen .home-video-play-icon {
  display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; background: var(--btn-gold);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 6px 16px rgba(154, 108, 26, .35);
}
#auth-screen .home-video-play-icon svg { width: 22px; height: 22px; margin-left: 3px; fill: #fff; }
#auth-screen .home-video-pill-copy strong { display: block; font: 600 16px/1.2 var(--sans); color: var(--ink); }
#auth-screen .home-video-pill-copy small { display: block; margin-top: 3px; font: 400 12.5px/1.2 var(--sans); color: #6f695d; }
#auth-screen .home-video-play:hover .home-video-pill { transform: translateY(-2px); box-shadow: 0 22px 48px rgba(60, 40, 10, .22); }
#auth-screen .home-video-play:focus-visible { outline: none; }
#auth-screen .home-video-play:focus-visible .home-video-pill { outline: 3px solid var(--gold-fill); outline-offset: 3px; }
#auth-screen .home-video-frame.is-playing .home-video-play { display: none; }
#auth-screen .home-video-points {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 10px; max-width: 900px; margin: 28px auto 0; padding: 0; list-style: none;
}
#auth-screen .home-video-points li {
  padding: 7px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--hair); color: #4a453b; font-size: 13px; line-height: 1.3;
}
#auth-screen .home-video .home-mid-cta { margin-top: 34px; }

/* Enlace "Ver cómo funciona" bajo el botón principal de la portada */
#auth-screen .home-hero-video {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 4px; padding: 6px 14px 6px 6px; border-radius: 999px;
  background: transparent; border: 1px solid var(--gold-hair); color: var(--ink); font: 500 14px/1 var(--sans); cursor: pointer;
  transition: background .2s ease, border-color .2s ease;
}
#auth-screen .home-hero-video:hover { background: #fff; border-color: rgba(168, 120, 36, .5); }
#auth-screen .home-hero-video-icon { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--btn-gold); }
#auth-screen .home-hero-video-icon svg { width: 13px; height: 13px; margin-left: 2px; fill: #fff; }

@media (max-width: 768px) {
  #auth-screen.home-focus .home-video { padding: 0 0 50px; text-align: left; }
  #auth-screen.home-focus .home-video .public-section-title { margin-left: 0; }
  #auth-screen.home-focus .home-video > p { font-size: 16px; margin: 18px 0 24px; }
  #auth-screen .home-video-frame { border-radius: 14px; }
  #auth-screen .home-video-play { padding-bottom: 5%; }
  #auth-screen .home-video-pill { gap: 10px; padding: 6px 16px 6px 6px; }
  #auth-screen .home-video-play-icon { width: 42px; height: 42px; }
  #auth-screen .home-video-play-icon svg { width: 18px; height: 18px; }
  #auth-screen .home-video-pill-copy strong { font-size: 14px; }
  #auth-screen .home-video-pill-copy small { font-size: 11.5px; }
  #auth-screen .home-video-points { justify-content: flex-start; margin-top: 20px; }
  #auth-screen .home-video-points li { font-size: 12px; padding: 6px 11px; }
}
@media (prefers-reduced-motion: reduce) {
  #auth-screen .home-video-pill, #auth-screen .home-hero-video { transition: none; }
}

/* ── Portada: respuestas a comentarios (dentro de "Así te quitas ese trabajo") ── */
#auth-screen.home-focus .home-replies {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 40px; align-items: center;
  margin: 8px 0 28px; padding: 32px 34px; border-radius: 16px;
  background: linear-gradient(135deg, #fcf8ef 0%, #f6eddb 100%); border: 1px solid var(--gold-hair);
}
#auth-screen .home-replies-tag {
  display: inline-block; margin-bottom: 14px; padding: 5px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--gold-hair);
  color: var(--gold-txt); font: 600 11px/1.2 var(--sans); letter-spacing: .16em; text-transform: uppercase;
}
#auth-screen .home-replies-copy h3 { margin: 0 0 14px; font: 500 30px/1.15 var(--serif); letter-spacing: -.025em; color: var(--ink); }
#auth-screen .home-replies-copy h3 em { font-style: italic; font-weight: 400; color: var(--gold-ink); }
#auth-screen .home-replies-copy > p { margin: 0 0 16px; font-size: 16px; line-height: 1.7; font-weight: 300; color: #4a453b; }
#auth-screen .home-replies-copy ul { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
#auth-screen .home-replies-copy li { position: relative; padding-left: 24px; font-size: 15px; font-weight: 500; color: var(--ink); }
#auth-screen .home-replies-copy li::before { content: '✓'; position: absolute; left: 0; top: 0; color: var(--gold-ink); font-weight: 700; }
#auth-screen .home-replies-chat { position: relative; margin: 0; display: grid; gap: 12px; }
#auth-screen .home-replies-in { display: flex; gap: 10px; align-items: flex-start; }
#auth-screen .home-replies-in > span {
  flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: #f0e4cc; color: var(--gold-txt); font: 600 14px/1 var(--sans);
}
#auth-screen .home-replies-in strong { display: block; margin-bottom: 4px; font-size: 13px; color: #4a453b; }
#auth-screen .home-replies-in p {
  margin: 0; padding: 11px 15px; border-radius: 4px 14px 14px 14px; background: #fff; border: 1px solid var(--hair);
  font-size: 14.5px; line-height: 1.5; color: var(--ink);
}
#auth-screen .home-replies-out {
  margin-left: 30px; padding: 14px 16px; border-radius: 14px; background: #fffdf8; border: 1px solid var(--gold-hair);
  box-shadow: 0 14px 34px rgba(60, 40, 10, .10);
}
#auth-screen .home-replies-out small { display: flex; align-items: center; gap: 7px; margin-bottom: 8px; font-size: 12px; font-weight: 600; color: var(--gold-txt); }
#auth-screen .home-replies-out small svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
#auth-screen .home-replies-out p { margin: 0 0 12px; font-size: 14.5px; line-height: 1.55; color: var(--ink); }
#auth-screen .home-replies-approve {
  display: inline-block; padding: 8px 14px; border-radius: 8px; background: var(--btn-gold); color: #fff;
  font: 600 13px/1 var(--sans); box-shadow: 0 4px 12px rgba(154, 108, 26, .25);
}
#auth-screen .home-replies-chat figcaption { justify-self: end; font-size: 11.5px; color: #8a8377; }

/* Tarjeta de precio: la respuesta a comentarios destacada */
#auth-screen.home-focus .home-plan li.home-plan-highlight {
  margin: 2px -12px 0; padding: 10px 12px 10px 34px; border-radius: 10px; background: #fbf5e8; border: 1px solid var(--gold-hair);
}
#auth-screen.home-focus .home-plan li.home-plan-highlight::before { left: 12px; top: 10px; color: var(--gold-ink); }
#auth-screen.home-focus .home-plan li.home-plan-highlight strong { font-weight: 600; color: var(--ink); }

@media (max-width: 768px) {
  #auth-screen.home-focus .home-replies { grid-template-columns: 1fr; gap: 26px; padding: 24px 18px; margin-bottom: 22px; }
  #auth-screen .home-replies-copy h3 { font-size: 25px; }
  #auth-screen .home-replies-copy > p { font-size: 15px; }
  #auth-screen .home-replies-out { margin-left: 16px; }
}

/* Dentro del navegador de Instagram/Facebook Google no deja entrar: aviso con alternativa */
.in-app-google-help { margin: 12px 0 4px; padding: 14px 16px; border-radius: 14px; background: #fff8ea; border: 1px solid rgba(184, 134, 44, .35); color: var(--ink, #17130d); font-size: 14px; line-height: 1.45; text-align: left; }
.in-app-google-help p { margin: 0 0 8px; }
.in-app-google-help .in-app-steps { margin: 10px 0 0; font-size: 13px; color: #5f5a50; }
.in-app-google-help .in-app-open-btn { margin-top: 4px; background: #fff; color: var(--ink, #17130d); border: 1px solid rgba(96, 70, 22, .25); font-weight: 600; }


/* ─── Subir: cómo usar los archivos (una publicación por archivo o carrusel) e indicaciones ─── */
.upload-options { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--border); }
.upload-mode { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; min-width: 0; }
.upload-mode legend { font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 8px; padding: 0; }
.upload-mode-option { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--border); border-radius: 8px; cursor: pointer; background: #fff; }
.upload-mode-option:has(input:checked) { border-color: #9c6d18; box-shadow: inset 0 0 0 1px #9c6d18; }
.upload-mode-option:has(input:disabled) { opacity: .6; cursor: not-allowed; }
.upload-mode-option input { margin-top: 3px; accent-color: #9c6d18; flex-shrink: 0; }
.upload-mode-option b { display: block; font-size: 14px; font-weight: 600; color: var(--text); }
.upload-mode-option small { display: block; font-size: 12px; color: var(--text3); margin-top: 2px; }
/* Revisar: arreglar un carrusel pendiente (ordenar, quitar, separar) */
.carousel-edit-open { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 10px; padding: 6px 12px; border: 1px solid var(--border); border-radius: 999px; background: #fff; color: #7a5a1c; font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; }
.carousel-editor { margin: 0 0 12px; padding: 12px; border: 1px solid #9c6d18; border-radius: 12px; background: #fffaf0; }
.carousel-editor-title { margin: 0 0 10px; font-size: 12px; font-weight: 600; color: #7a5a1c; }
.carousel-editor-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; }
.carousel-editor-list li { display: flex; flex-direction: column; gap: 4px; }
.carousel-editor-thumb { position: relative; display: block; aspect-ratio: 1; border-radius: 8px; overflow: hidden; background: #efe8da; }
.carousel-editor-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.carousel-editor-thumb b { position: absolute; top: 4px; left: 4px; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: #9c6d18; color: #fff; font-size: 11px; display: flex; align-items: center; justify-content: center; }
.carousel-editor-thumb em { position: absolute; right: 4px; bottom: 4px; padding: 1px 6px; border-radius: 999px; background: rgba(23, 19, 13, .72); color: #fff; font-size: 10px; font-style: normal; }
.carousel-editor-buttons { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.carousel-editor-buttons button { min-height: 32px; border: 1px solid var(--border); border-radius: 6px; background: #fff; color: var(--text); font-size: 12px; cursor: pointer; }
.carousel-editor-buttons button:disabled { opacity: .35; cursor: default; }
.carousel-editor-buttons .carousel-editor-remove { color: #a0452f; }
.carousel-editor-foot { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.carousel-editor-foot button { padding: 8px 12px; border-radius: 8px; border: 1px solid var(--border); background: #fff; color: var(--text); font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; }
.carousel-editor-foot .carousel-editor-done { background: #9c6d18; border-color: #9c6d18; color: #fff; }
.carousel-editor-foot button:disabled { opacity: .5; cursor: default; }
/* Revisar: «Cámbialo» (pedir un cambio de texto con un toque o una frase) */
.rewrite-box { margin: 10px 0 2px; display: flex; flex-direction: column; gap: 8px; }
.rewrite-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.rewrite-label { font-size: 12px; font-weight: 700; color: #7a5a1c; margin-right: 2px; }
.rewrite-chip { min-height: 32px; padding: 5px 12px; border: 1px solid var(--border); border-radius: 999px; background: #fff; color: var(--text); font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; }
.rewrite-chip:hover:not(:disabled), .rewrite-chip.is-open { border-color: #9c6d18; color: #7a5a1c; background: #fffaf0; }
.rewrite-chip:disabled, .rewrite-undo:disabled { opacity: .45; cursor: default; }
.rewrite-chip-own { border-style: dashed; }
.rewrite-form { display: flex; gap: 6px; }
.rewrite-form input { flex: 1; min-width: 0; min-height: 38px; padding: 8px 10px; border: 1px solid #9c6d18; border-radius: 8px; background: #fff; color: var(--text); font: inherit; font-size: 16px; }
.rewrite-send { min-height: 38px; padding: 8px 14px; border: 0; border-radius: 8px; background: #9c6d18; color: #fff; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.rewrite-status { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 12px; font-weight: 600; color: #7a5a1c; }
.rewrite-undo { align-self: flex-start; padding: 0; border: 0; background: none; color: #7a5a1c; font: inherit; font-size: 12px; font-weight: 600; text-decoration: underline; cursor: pointer; }
.post-card:has(.rewrite-box.is-busy) .post-card-copy { opacity: .45; }
/* Registro: «crea tu contraseña» a página completa tras la tarjeta */
.access-screen { position: fixed; inset: 0; z-index: 5000; display: flex; align-items: flex-start; justify-content: center; padding: 24px 16px 40px; overflow-y: auto; background: #f7f3ea; -webkit-overflow-scrolling: touch; }
.access-screen.hidden { display: none; }
/* Vuelta de Stripe: visible desde el primer instante, antes de que arranque el panel. */
html.checkout-return .access-screen.hidden { display: flex !important; }
html.checkout-return, html.access-open { overflow: hidden; }
.access-card { width: 100%; max-width: 460px; margin: auto 0; padding: 28px 24px; border: 1px solid #e7dcc6; border-radius: 18px; background: #fff; box-shadow: 0 18px 50px rgba(60, 40, 10, .10); color: #17130d; }
.access-logo { display: block; width: 104px; height: auto; margin: 0 auto 18px; }
.access-steps { list-style: none; display: flex; justify-content: center; gap: 6px; margin: 0 0 22px; padding: 0; }
.access-steps li { display: flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; background: #f4eee1; font-size: 12px; font-weight: 600; color: #6b6252; white-space: nowrap; }
.access-steps b { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; border-radius: 50%; background: #cfc3a8; color: #fff; font-size: 11px; }
.access-steps li.done b { background: #2f8f5b; }
.access-steps li.current { background: #9c6d18; color: #fff; }
.access-steps li.current b { background: #fff; color: #9c6d18; }
.access-state.hidden { display: none; }
.access-state h1 { margin: 0 0 8px; font-size: 25px; line-height: 1.2; color: #17130d; }
.access-sub { margin: 0 0 18px; font-size: 15px; line-height: 1.55; color: #3d362b; }
.access-ok { margin: 0 0 14px; padding: 10px 12px; border-radius: 10px; background: #eaf5ee; color: #1f6b43; font-size: 14px; font-weight: 600; line-height: 1.4; }
#access-checking { text-align: center; padding: 18px 0 8px; }
.access-spinner { color: #9c6d18; margin-bottom: 14px; }
.access-form { display: flex; flex-direction: column; gap: 14px; }
.access-form .field { display: flex; flex-direction: column; gap: 6px; }
.access-form .field label { font-size: 13px; font-weight: 600; color: #3d362b; }
.access-form .field input[type="email"], .access-form .field input[type="password"], .access-form .field input[type="text"] { width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid #cfc3a8; border-radius: 10px; background: #fff; color: #17130d; font: inherit; font-size: 16px; }
.access-form .field input[readonly] { background: #f7f3ea; color: #6b6252; }
.access-form .field input:focus { outline: none; border-color: #9c6d18; box-shadow: 0 0 0 3px rgba(156, 109, 24, .18); }
.access-form .access-show { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; color: #6b6252; cursor: pointer; }
.access-form .access-show input { flex: none; width: 18px !important; height: 18px; min-height: 0 !important; margin: 0; padding: 0; }
.access-main-btn { min-height: 52px; font-size: 16px !important; font-weight: 700 !important; }
.access-screen .btn-google { background: #fff; color: #17130d; border: 1px solid rgba(96, 70, 22, .25); display: flex; align-items: center; justify-content: center; gap: 10px; }
.access-note { margin: 18px 0 0; padding-top: 14px; border-top: 1px solid #eee5d3; font-size: 13px; line-height: 1.55; color: #6b6252; }
.access-note p { margin: 0 0 6px; }
.access-note a, .access-inline-link { color: #7a5a1c; font-weight: 600; }
.access-inline-link { padding: 0; border: 0; background: none; font: inherit; font-weight: 600; text-decoration: underline; cursor: pointer; }
.access-other { display: block; margin: 20px auto 0; padding: 4px; border: 0; background: none; color: #8a7f6b; font: inherit; font-size: 12px; text-decoration: underline; cursor: pointer; }
.access-recover { margin: 0; padding: 10px 12px; border-radius: 10px; background: #eaf5ee; color: #1f6b43; font-size: 13px; line-height: 1.45; }
.access-recover.hidden { display: none; }
.access-recover.is-error { background: #fbeceb; color: #9c3b33; }
.access-recover-link { display: block; width: 100%; margin-top: 10px; padding: 4px; border: 0; background: none; color: #7a5a1c; font: inherit; font-size: 13px; font-weight: 600; text-align: center; text-decoration: underline; cursor: pointer; }
.access-recover-link:disabled { opacity: .5; cursor: default; }
.signup-steps { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 14px; margin: 0 0 4px; padding: 0; font-size: 12px; font-weight: 600; color: #6b6252; }
.signup-steps li { display: flex; align-items: center; gap: 6px; }
.signup-steps b { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; border-radius: 50%; background: #9c6d18; color: #fff; font-size: 11px; }
@media (max-width: 420px) {
  .access-card { padding: 22px 18px; }
  .access-state h1 { font-size: 22px; }
  .access-steps li span { display: none; }
  .access-steps li.current span { display: inline; }
}
/* Inicio: resumen de los últimos 7 días */
.week-results { margin: 0 0 28px; padding: 20px; border: 1px solid var(--border); border-radius: 16px; background: #fff; }
.week-results-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.week-results-kicker { display: block; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #7a5a1c; }
.week-results-head h3 { margin: 2px 0 0; font-size: 20px; }
.week-results-head small { font-size: 12px; color: var(--text3); max-width: 420px; }
.week-results-figures { display: grid; grid-template-columns: repeat(auto-fit, minmax(128px, 1fr)); gap: 10px; }
.week-figure { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: 12px; background: #fbf7ee; }
.week-figure strong { font-size: 26px; line-height: 1.1; color: var(--text); font-variant-numeric: tabular-nums; }
.week-figure span { font-size: 13px; color: var(--text2, var(--text)); }
.week-figure small { font-size: 11px; color: var(--text3); }
.week-results-best { display: flex; gap: 14px; align-items: center; margin-top: 14px; padding: 12px; border: 1px solid var(--border); border-radius: 12px; }
.week-results-best.hidden { display: none; }
.week-best-media { flex: 0 0 76px; width: 76px; height: 76px; border-radius: 10px; overflow: hidden; background: #efe8da; position: relative; display: flex; align-items: center; justify-content: center; font-size: 11px; color: var(--text3); }
.week-best-media img, .week-best-media video { width: 100%; height: 100%; object-fit: cover; display: block; }
.week-best-text { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.week-best-kicker { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #7a5a1c; }
.week-best-text p { margin: 0; font-size: 13px; line-height: 1.4; color: var(--text); overflow-wrap: anywhere; }
.week-best-text small { font-size: 12px; font-weight: 600; color: var(--text2, var(--text)); }
.week-best-text a { font-size: 12px; font-weight: 600; color: #7a5a1c; }
@media (max-width: 560px) {
  .week-results { padding: 16px; }
  .week-results-figures { grid-template-columns: repeat(2, 1fr); }
  .week-figure strong { font-size: 22px; }
}
/* Marca: memoria guiada con preguntas */
.memory-wizard-entry { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; font-size: 13px; color: var(--text3); }
html body .memory-wizard-card { max-width: 520px !important; max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px); overflow-y: auto; text-align: left; }
.memory-wizard-progress { margin: 0 0 6px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #9c6d18; }
.memory-wizard-title { display: block; margin: 14px 0 4px; font-size: 17px; font-weight: 600; color: var(--text); }
.memory-wizard-card textarea { width: 100%; resize: vertical; margin-top: 8px; padding: 12px; border: 1px solid var(--border); border-radius: 10px; font: inherit; font-size: 15px; color: var(--text); background: #fff; }
.memory-wizard-skip { margin: 6px 0 0; font-size: 12px; color: var(--text3); }
.memory-wizard-card .upload-mode { margin-top: 14px; }
.memory-wizard-actions { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 18px; }
.memory-wizard-actions > span { display: flex; gap: 8px; }
/* Revisar: aprobar todas las propuestas pendientes de una vez */
.approve-all-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 0 0 16px; padding: 12px 16px; background: #fff; border: 1px solid var(--hair, #e6dfd1); border-radius: 14px; font-size: 14px; font-weight: 600; color: var(--text); }
.approve-all-actions { display: flex; gap: 8px; align-items: center; margin-left: auto; }
/* Ajustes: barra de guardar siempre a la vista (se pega al borde inferior mientras se recorre la pantalla) */
.settings-savebar { position: sticky; bottom: 12px; z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 20px; padding: 12px 16px;
  background: #fff; border: 1px solid var(--hair, #e6dfd1); border-radius: 14px; box-shadow: 0 8px 28px rgba(38, 27, 10, .18); }
.settings-savebar-state { font-size: 13px; font-weight: 600; color: #6b655a; }
.settings-savebar.is-dirty { border-color: #9c6d18; }
.settings-savebar.is-dirty .settings-savebar-state { color: #7a5a1c; }
.settings-savebar .btn { flex-shrink: 0; }
.settings-savebar .btn:disabled { opacity: .7; }
/* Revisar: para qué sirve cada propuesta y por qué Loopra ha juntado unas fotos en un carrusel */
.post-strategy { display: flex; flex-direction: column; gap: 3px; margin: 0 0 10px; font-size: 12px; line-height: 1.4; font-weight: 600; color: #7a5a1c; }
/* «Crear publicaciones»: que elija Loopra o elegir a mano entre el material guardado */
.plan-mode { text-align: left; margin-top: 14px; }
.plan-picker { text-align: left; margin-top: 12px; }
.plan-picker-count { margin: 0 0 8px; font-size: 13px; font-weight: 600; color: var(--text); }
.plan-picker-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; max-height: 268px; overflow-y: auto; padding: 2px; overscroll-behavior: contain; }
.plan-picker-grid:empty { display: none; }
.plan-pick { position: relative; aspect-ratio: 1; padding: 0; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; background: #f3efe6; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.plan-pick img { width: 100%; height: 100%; object-fit: cover; display: block; }
.plan-pick-kind { position: absolute; left: 5px; bottom: 5px; padding: 2px 6px; border-radius: 999px; background: rgba(23, 19, 13, .72); color: #fff; font-size: 10px; font-weight: 600; line-height: 1.4; }
.plan-pick-check { position: absolute; top: 5px; right: 5px; width: 22px; height: 22px; border-radius: 50%; border: 2px solid #fff; background: rgba(255, 255, 255, .55); color: transparent; font-size: 13px; font-weight: 700; display: flex; align-items: center; justify-content: center; box-shadow: 0 1px 3px rgba(23, 19, 13, .35); }
.plan-pick.is-picked { border-color: #9c6d18; box-shadow: 0 0 0 2px #9c6d18; }
.plan-pick.is-picked .plan-pick-check { background: #9c6d18; color: #fff; }
.plan-pick:focus-visible { outline: 2px solid #9c6d18; outline-offset: 2px; }
@media (max-width: 480px) { .plan-picker-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); max-height: 300px; } }
/* El diálogo nunca es más alto que la pantalla, y los botones de preparar quedan siempre a la vista al desplazarlo. */
html body #planificar-modal .modal-card { max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px); overflow-y: auto; }
/* Se pegan al borde inferior del diálogo (por debajo de su relleno, para que no asome nada detrás). */
#planificar-modal .plan-week-actions { position: sticky; bottom: -28px; z-index: 2; background: #fff; margin-bottom: 0 !important; padding: 12px 0 20px; box-shadow: 0 -10px 12px -8px rgba(38, 27, 10, .14); }
@media (max-width: 768px) { #planificar-modal .plan-week-actions { bottom: calc(-22px - env(safe-area-inset-bottom, 0px)); padding-bottom: calc(14px + env(safe-area-inset-bottom, 0px)); } }
#planificar-modal .plan-week-actions .btn:disabled { opacity: .5; cursor: not-allowed; }
.upload-brief-field { margin-top: 14px; }
.upload-brief-field label span { font-weight: 400; color: var(--text3); }
.upload-brief-field textarea { width: 100%; resize: vertical; }
.upload-brief-field small { display: block; font-size: 12px; color: var(--text3); margin-top: 6px; }
.upload-order { position: absolute; top: 4px; left: 4px; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: #9c6d18; color: #fff; font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.upload-move { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between; padding: 3px; }
.upload-move button { width: 24px; height: 24px; border-radius: 50%; border: 0; background: rgba(23, 19, 13, .72); color: #fff; font-size: 15px; line-height: 1; cursor: pointer; padding: 0; }

/* ─── Revisar: carrusel (varias fotos o vídeos en una publicación) ─── */
.post-carousel { position: relative; width: 100%; height: 100%; }
.post-carousel-item { width: 100%; height: 100%; }
.post-carousel-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .92); color: #17130d; font-size: 20px; line-height: 1; cursor: pointer; box-shadow: 0 2px 8px rgba(0, 0, 0, .18); z-index: 3; padding: 0; }
.post-carousel-prev { left: 10px; }
.post-carousel-next { right: 10px; }
.post-carousel-count { position: absolute; right: 10px; bottom: 10px; padding: 3px 10px; border-radius: 999px; background: rgba(23, 19, 13, .78); color: #fff; font-size: 12px; font-weight: 600; z-index: 3; }

/* ─── Revisar: publicar el vídeo con su sonido o en silencio ─── */
.sound-toggle { display: flex; align-items: center; gap: 8px; width: 100%; margin: 10px 0 12px; padding: 8px 12px; border: 1px solid var(--border); border-radius: 8px; background: #fff; color: var(--text); font: inherit; font-size: 13px; text-align: left; cursor: pointer; }
.sound-toggle .sound-toggle-text { flex: 1; font-weight: 600; }
.sound-toggle b { flex-shrink: 0; padding: 3px 10px; border-radius: 999px; background: #f3ead6; color: #7a5412; font-size: 11px; font-weight: 700; }
.sound-toggle.is-muted { border-color: #9c6d18; box-shadow: inset 0 0 0 1px #9c6d18; }

/* ─── Revisar: música de la biblioteca de Loopra ─── */
.music-control { margin: 0 0 12px; }
.music-control .sound-toggle { margin: 0; }
.sound-toggle + .music-control { margin-top: -4px; }
.music-picker { margin-top: 8px; padding: 10px; border: 1px solid var(--border); border-radius: 8px; background: #fffdf8; display: grid; gap: 8px; }
.music-note { margin: 0; font-size: 12px; line-height: 1.45; color: var(--text3); }
.music-option { display: flex; align-items: center; gap: 10px; padding: 8px; border: 1px solid var(--border); border-radius: 8px; background: #fff; }
.music-option.is-selected { border-color: #9c6d18; box-shadow: inset 0 0 0 1px #9c6d18; }
.music-play { width: 34px; height: 34px; flex-shrink: 0; border-radius: 50%; border: 1px solid var(--border); background: #f7f1e3; color: #7a5412; font-size: 12px; cursor: pointer; padding: 0; }
.music-play.is-playing { background: #9c6d18; color: #fff; border-color: #9c6d18; }
.music-name { flex: 1; min-width: 0; }
.music-name b { display: block; font-size: 13px; font-weight: 600; color: var(--text); }
.music-name small { display: block; font-size: 12px; color: var(--text3); }
.music-choose { flex-shrink: 0; padding: 6px 12px; border-radius: 999px; border: 0; background: #9c6d18; color: #fff; font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; }
.music-option.is-selected .music-choose { background: #f3ead6; color: #7a5412; }
.music-remove { justify-self: start; padding: 6px 10px; border: 0; background: none; color: #a0452f; font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; text-decoration: underline; }

/* ─── Revisar: publicaciones que no se pudieron publicar ─── */
.post-failed-reason { grid-column: 1 / -1; padding: 10px 12px; border: 1px solid rgba(160,69,47,.28); border-radius: 8px; background: #fdf3ef; color: #7c3320; font-size: 12.5px; line-height: 1.45; }
.post-failed-reason b { display: block; margin-bottom: 2px; color: #a0452f; }

/* ─── Estadísticas ─── */
.dashboard-heading-actions { display: flex; gap: 8px; flex-wrap: wrap; }
@media (max-width: 768px) { .nav-item--desktop { display: none !important; } .dashboard-section-heading #dashboard-stats-btn, .dashboard-section-heading #dashboard-reuse-btn { display: inline-flex !important; } }
#view-estadisticas { padding-bottom: 32px; }
.stats-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 8px; }
.stats-kicker { display: block; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #7a5a1c; }
.stats-head h3 { margin: 2px 0 4px; font-size: 24px; }
.stats-sub { margin: 0; font-size: 14px; color: var(--text2, var(--text)); }
.stats-period, .stats-chart-switch { display: inline-flex; padding: 3px; border: 1px solid var(--border); border-radius: 999px; background: #fff; }
.stats-period button, .stats-chart-switch button { border: 0; background: none; padding: 7px 14px; border-radius: 999px; font: inherit; font-size: 13px; font-weight: 600; color: var(--text2, var(--text)); cursor: pointer; }
.stats-period button.active, .stats-chart-switch button.active { background: #17130d; color: #fbf7ee; }
.stats-note { margin: 6px 0 18px; font-size: 12.5px; color: var(--text3); min-height: 1em; }
.stats-title { margin: 22px 0 10px; font-size: 15px; }
.stats-loopra { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.stats-loopra-card { display: flex; flex-direction: column; gap: 3px; padding: 16px 18px; border-radius: 16px; background: linear-gradient(160deg, #fbf3df, #f6ead0); border: 1px solid rgba(201,150,47,.28); }
.stats-loopra-card strong { font-size: 30px; line-height: 1.1; color: #17130d; font-variant-numeric: tabular-nums; }
.stats-loopra-card span { font-size: 13.5px; font-weight: 600; color: #4a3d25; }
.stats-loopra-card small { font-size: 11.5px; color: #7a6a4c; line-height: 1.35; }
.stats-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.stats-kpi { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; border-radius: 14px; background: #fff; border: 1px solid var(--border); }
.stats-kpi strong { font-size: 26px; line-height: 1.1; color: var(--text); font-variant-numeric: tabular-nums; }
.stats-kpi span { font-size: 13px; color: var(--text2, var(--text)); }
.stats-change { margin-top: 4px; font-size: 12px; font-weight: 700; color: var(--text3); }
.stats-change.up { color: #2f7a4b; }
.stats-change.down { color: #a0452f; }
.stats-foot { grid-column: 1 / -1; margin: 2px 0 0; font-size: 12px; color: var(--text3); }
.stats-empty { margin: 0; padding: 18px; border-radius: 12px; background: #fbf7ee; font-size: 13px; color: var(--text2, var(--text)); line-height: 1.45; }
.stats-chart-card { position: relative; margin-top: 22px; padding: 18px; border: 1px solid var(--border); border-radius: 16px; background: #fff; }
.stats-chart-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.stats-chart-head h4 { margin: 0; font-size: 15px; }
.stats-chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.stats-grid { stroke: #efe8da; stroke-width: 1; }
.stats-base { stroke: #d9cdb4; stroke-width: 1; }
.stats-axis { font: 500 11px/1 Inter, system-ui, sans-serif; fill: #8a7d66; }
.stats-bar { fill: #b8862c; }
.stats-hit.on .stats-bar { fill: #9c6d18; }
.stats-line { fill: none; stroke: #9c6d18; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.stats-dot { fill: #9c6d18; stroke: #fff; stroke-width: 2; }
.stats-hit.on .stats-dot { r: 5; }
.stats-tip { position: absolute; transform: translateX(-50%); padding: 6px 10px; border-radius: 8px; background: #17130d; color: #fbf7ee; font-size: 12px; font-weight: 600; white-space: nowrap; pointer-events: none; z-index: 3; }
.stats-tip.hidden { display: none; }
.stats-skeleton { height: 180px; border-radius: 12px; background: linear-gradient(90deg, #f6f0e4, #fbf7ee, #f6f0e4); }
.stats-table-wrap { margin-top: 10px; font-size: 12.5px; color: var(--text2, var(--text)); }
.stats-table-wrap summary { cursor: pointer; font-weight: 600; color: #7a5a1c; }
.stats-table { width: 100%; margin-top: 8px; border-collapse: collapse; }
.stats-table th, .stats-table td { padding: 6px 8px; text-align: left; border-bottom: 1px solid #efe8da; font-variant-numeric: tabular-nums; }
.stats-two { display: grid; grid-template-columns: 1.6fr 1fr; gap: 14px; margin-top: 22px; }
.stats-top-card, .stats-time-card { padding: 18px; border: 1px solid var(--border); border-radius: 16px; background: #fff; }
.stats-top-card h4 { margin: 0 0 12px; font-size: 15px; }
.stats-top-item { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid #f1ebdf; }
.stats-top-item:first-child { border-top: 0; padding-top: 0; }
.stats-rank { flex: 0 0 26px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: #17130d; color: #fbf7ee; font-size: 13px; }
.stats-top-media { flex: 0 0 64px; width: 64px; height: 64px; border-radius: 10px; overflow: hidden; background: #efe8da; display: flex; align-items: center; justify-content: center; font-size: 11px; color: var(--text3); position: relative; }
.stats-top-media img, .stats-top-media video { width: 100%; height: 100%; object-fit: cover; display: block; }
.stats-top-text { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.stats-top-text p { margin: 0; font-size: 13px; line-height: 1.35; color: var(--text); overflow-wrap: anywhere; }
.stats-top-text small { font-size: 12px; font-weight: 600; color: var(--text2, var(--text)); }
.stats-top-date { font-size: 11.5px; color: var(--text3); }
.stats-top-date a { color: #7a5a1c; font-weight: 600; }
.stats-time-card { background: linear-gradient(160deg, #17130d, #2a2014); color: #fbf7ee; display: flex; flex-direction: column; gap: 6px; }
.stats-time-card .stats-kicker { color: #e2bd6c; }
.stats-time-card strong { font-size: 22px; line-height: 1.2; }
.stats-time-card p { margin: 0; font-size: 13px; line-height: 1.45; color: rgba(251,247,238,.85); }
.stats-time-card small { font-size: 12px; color: rgba(251,247,238,.6); }
@media (max-width: 768px) {
  .stats-loopra { grid-template-columns: 1fr; }
  .stats-loopra-card { flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
  .stats-loopra-card strong { font-size: 24px; }
  .stats-loopra-card small { flex-basis: 100%; }
  .stats-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats-kpi strong { font-size: 22px; }
  .stats-two { grid-template-columns: 1fr; }
  .stats-chart-card { padding: 14px; }
  .stats-head h3 { font-size: 21px; }
}

/* ─── Reutilizar contenido ─── */
.reuse-entry { display: flex; align-items: center; gap: 14px; width: 100%; margin: 4px 0 18px; padding: 14px 16px; border: 1px solid rgba(201,150,47,.4); border-radius: 16px; background: linear-gradient(160deg, #fbf3df, #f6ead0); text-align: left; cursor: pointer; font: inherit; color: var(--text); }
.reuse-entry:hover { border-color: #c9962f; }
.reuse-entry-icon { font-size: 26px; }
.reuse-entry-copy { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.reuse-entry-copy strong { font-size: 15px; }
.reuse-entry-copy small { font-size: 12.5px; color: #6b5a3a; line-height: 1.4; }
.reuse-entry-go { font-size: 20px; color: #7a5a1c; }
#view-reutilizar { padding-bottom: 40px; }
.reuse-back { border: 0; background: none; padding: 0; margin-bottom: 10px; font: inherit; font-size: 13px; font-weight: 600; color: #7a5a1c; cursor: pointer; }
.reuse-head h3 { margin: 2px 0 6px; font-size: 24px; }
.reuse-head p { margin: 0 0 18px; max-width: 720px; font-size: 14px; line-height: 1.5; color: var(--text2, var(--text)); }
.reuse-step { margin-bottom: 18px; padding: 18px; border: 1px solid var(--border); border-radius: 16px; background: #fff; }
.reuse-step-head { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 14px; }
.reuse-step-head > b { flex: 0 0 28px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: #17130d; color: #fbf7ee; font-size: 14px; }
.reuse-step-head h4 { margin: 2px 0 2px; font-size: 16px; }
.reuse-step-head small { font-size: 12.5px; color: var(--text3); }
.reuse-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.reuse-card { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 8px; border: 2px solid transparent; border-radius: 14px; background: #fbf7ee; text-align: left; font: inherit; color: var(--text); cursor: pointer; }
div.reuse-card { cursor: default; opacity: .75; }
.reuse-card.on { border-color: #c9962f; background: #fdf4df; box-shadow: 0 0 0 4px rgba(201,150,47,.15); }
.reuse-media { position: relative; width: 100%; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: #efe8da; display: flex; align-items: center; justify-content: center; font-size: 11px; color: var(--text3); }
.reuse-media img, .reuse-media video { width: 100%; height: 100%; object-fit: cover; display: block; }
.reuse-badge { position: absolute; left: 14px; top: 14px; padding: 3px 8px; border-radius: 999px; background: rgba(23,19,13,.78); color: #fbf7ee; font-size: 11px; font-weight: 700; }
.reuse-check { position: absolute; right: 14px; top: 14px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.9); border: 2px solid #d9cdb4; color: transparent; font-size: 14px; font-weight: 800; }
.reuse-card.on .reuse-check { background: #c9962f; border-color: #c9962f; color: #fff; }
.reuse-card-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.reuse-card-text small { font-size: 11.5px; color: var(--text3); }
.reuse-card-text > span { font-size: 12.5px; line-height: 1.35; overflow-wrap: anywhere; }
.reuse-card-text em { font-style: normal; font-size: 11.5px; font-weight: 600; color: #7a5a1c; }
.reuse-gone { margin-top: 14px; font-size: 13px; }
.reuse-gone.hidden { display: none; }
.reuse-gone summary { cursor: pointer; font-weight: 600; color: #7a5a1c; }
.reuse-gone p { margin: 8px 0 12px; color: var(--text2, var(--text)); line-height: 1.45; }
.reuse-angles { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.reuse-angle { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 12px 14px; border: 2px solid var(--border); border-radius: 14px; background: #fff; text-align: left; font: inherit; color: var(--text); cursor: pointer; }
.reuse-angle b { font-size: 20px; }
.reuse-angle span { font-size: 14px; font-weight: 700; }
.reuse-angle small { font-size: 11.5px; color: var(--text3); }
.reuse-angle.on { border-color: #c9962f; background: #fdf4df; }
.reuse-extra { display: flex; flex-direction: column; gap: 6px; margin-top: 14px; font-size: 13px; font-weight: 600; }
.reuse-extra em { font-style: normal; font-weight: 500; color: var(--text3); }
.reuse-extra textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--border); border-radius: 12px; font: inherit; font-size: 14px; resize: vertical; }
.reuse-go { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding: 16px 18px; border-radius: 16px; background: #17130d; color: #fbf7ee; position: sticky; bottom: 12px; z-index: 5; }
.reuse-go p { margin: 0; flex: 1; min-width: 220px; font-size: 13.5px; line-height: 1.45; }
.reuse-go .btn[disabled] { opacity: .5; cursor: not-allowed; }
@media (max-width: 768px) {
  .reuse-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .reuse-angles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .reuse-head h3 { font-size: 21px; }
  .reuse-step { padding: 14px; }
  .reuse-go { bottom: calc(76px + env(safe-area-inset-bottom)); }
  .reuse-go .btn { width: 100%; }
}

/* ─── Confianza al pedir la tarjeta ─── */
.trust-box { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.trust-list { list-style: none; margin: 0; padding: 12px 14px; display: grid; gap: 9px; border-radius: 14px; background: #fbf7ee; border: 1px solid rgba(201,150,47,.28); }
.trust-list li { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; line-height: 1.4; color: #3d362b; }
.trust-list strong { color: #17130d; }
.trust-ico { flex: 0 0 34px; height: 24px; display: grid; place-items: center; border-radius: 8px; background: #fff; border: 1px solid rgba(201,150,47,.35); font-size: 12px; font-weight: 800; color: #7a5a1c; }
.trust-list-compact { margin: 6px 0 4px; }
.trust-stripe { margin: 0; font-size: 12px; line-height: 1.5; color: #6b6252; text-align: center; }
.trust-stripe svg { vertical-align: -2px; margin-right: 2px; }
.trust-stripe b { color: #635bff; }
.trust-faq { border-bottom: 1px solid #efe8da; padding: 2px 0 8px; font-size: 13px; }
.trust-faq summary { cursor: pointer; font-weight: 600; color: #17130d; list-style: none; display: flex; justify-content: space-between; gap: 8px; }
.trust-faq summary::-webkit-details-marker { display: none; }
.trust-faq summary::after { content: '+'; color: #7a5a1c; font-weight: 700; }
.trust-faq[open] summary::after { content: '−'; }
.trust-faq p { margin: 6px 0 0; color: #4a4236; line-height: 1.45; }
.trust-human { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 12px; border-radius: 14px; background: #17130d; color: #fbf7ee; }
.trust-avatar { flex: 0 0 34px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, #e8c273, #9c6d18); color: #17130d; font-weight: 800; }
.trust-human-copy { flex: 1; min-width: 180px; font-size: 12.5px; line-height: 1.4; color: rgba(251,247,238,.85); }
.trust-human-copy strong { color: #fff; }
.trust-human-links { display: flex; gap: 8px; }
.trust-human-links a { padding: 6px 12px; border-radius: 999px; background: rgba(251,247,238,.12); color: #fbf7ee; font-size: 12.5px; font-weight: 700; text-decoration: none; }
.trust-human-links a.trust-wa { background: #25d366; color: #0b2b16; }
.trust-human-links a.hidden { display: none; }

/* Barra de abajo del móvil (8 botones): nombres cortos donde el largo no cabe. */
.sidebar-nav .nav-item span.nav-short { display: none !important; }
@media (max-width: 768px) {
  .sidebar-nav .nav-item span.nav-long { display: none !important; }
  .sidebar-nav .nav-item span.nav-short { display: block !important; }
}
