/* ═══════════════════════════════════════════════════
   PLANTILLA CREADOR — Standalone CSS
   assets.cratoora.com/styles/plantillaStandalone.css
   Layered on top of plantilla.css
   Only overrides + new standalone-specific components
═══════════════════════════════════════════════════ */

/* ── Guest nudge bar ── */
.guest-nudge-bar {
  position: sticky;
  top: 0;
  z-index: 200;
  background: linear-gradient(90deg, #1a0f2e 0%, #130d1f 100%);
  border-bottom: 1px solid rgba(139,92,246,0.3);
  padding: 0.55rem 1.25rem;
}

.guest-nudge-inner {
  max-width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.guest-nudge-text {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.65);
  flex: 1;
  min-width: 0;
}

.guest-nudge-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.btn-nudge-signin {
  padding: 0.3rem 0.75rem;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 99px;
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  transition: border-color 0.15s, color 0.15s;
  white-space: nowrap;
}
.btn-nudge-signin:hover { border-color: rgba(255,255,255,0.4); color: #fff; }

.btn-nudge-signup {
  padding: 0.3rem 0.85rem;
  background: var(--c-purple, #8B5CF6);
  border-radius: 99px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
  transition: opacity 0.15s;
}
.btn-nudge-signup:hover { opacity: 0.88; }

.btn-nudge-dismiss {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255,255,255,0.07);
  border: none;
  color: rgba(255,255,255,0.4);
  font-size: 0.65rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, color 0.15s;
  flex-shrink: 0;
}
.btn-nudge-dismiss:hover { background: rgba(255,255,255,0.15); color: #fff; }

/* Hide nudge once dismissed */
.guest-nudge-bar.dismissed { display: none; }

/* ── Standalone badge in header ── */
.standalone-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.65rem;
  background: rgba(139,92,246,0.15);
  border: 1px solid rgba(139,92,246,0.3);
  border-radius: 99px;
  font-size: 0.72rem;
  font-weight: 700;
  color: rgba(255,255,255,0.75);
  letter-spacing: 0.02em;
  white-space: nowrap;
}

@media (max-width: 600px) {
  .standalone-badge { display: none; }
}

/* ── Plantilla logo link in header ── */
.plantilla-logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  opacity: 0.85;
  transition: opacity 0.15s;
}
.plantilla-logo-link:hover { opacity: 1; }

/* ── Template gallery tabs ── */
.gallery-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.gallery-header-left { min-width: 0; }

.gallery-sub {
  display: block;
  font-size: 0.73rem;
  color: rgba(255,255,255,0.4);
  margin-top: 0.2rem;
}

.gallery-tabs {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.gallery-tab {
  padding: 0.35rem 0.85rem;
  border-radius: 99px;
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(255,255,255,0.45);
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s;
}
.gallery-tab:hover { color: #fff; background: rgba(255,255,255,0.09); }
.gallery-tab.active {
  color: #fff;
  background: rgba(139,92,246,0.18);
  border-color: rgba(139,92,246,0.45);
}

/* Template preview fallback (when no image) */
.template-preview {
  width: 100%;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-size: 2.5rem;
}

/* ── Join CTA in panel ── */
.panel-join-cta {
  border-top: 1px solid rgba(255,255,255,0.07);
  margin-top: auto;
}

.join-cta-inner {
  background: linear-gradient(135deg, rgba(139,92,246,0.1), rgba(59,7,100,0.15));
  border: 1px solid rgba(139,92,246,0.2);
  border-radius: 12px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.join-cta-icon {
  font-size: 1.5rem;
  line-height: 1;
}

.join-cta-body strong {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.3rem;
}

.join-cta-body p {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.5;
  margin: 0;
}

/* ── Save modal ── */
.save-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  animation: fadeIn 0.2s ease;
}

.save-modal-overlay[hidden] { display: none; }

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.save-modal {
  background: #141414;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 20px;
  padding: 2rem;
  max-width: 400px;
  width: 100%;
  text-align: center;
  position: relative;
  animation: slideUp 0.25s cubic-bezier(0.23,1,0.32,1);
}

@keyframes slideUp {
  from { transform: translateY(16px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

.save-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: none;
  color: rgba(255,255,255,0.5);
  font-size: 0.7rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, color 0.15s;
}
.save-modal-close:hover { background: rgba(255,255,255,0.14); color: #fff; }

.save-modal-icon {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
  line-height: 1;
}

.save-modal-title {
  font-family: var(--font-display, 'Syne', sans-serif);
  font-size: 1.3rem;
  font-weight: 800;
  color: #fff;
  margin: 0 0 0.6rem;
}

.save-modal-body {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.55;
  margin: 0 0 1.25rem;
}

.save-modal-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.btn-link-center {
  background: none;
  border: none;
  color: rgba(255,255,255,0.4);
  font-size: 0.78rem;
  cursor: pointer;
  font-family: inherit;
  text-decoration: underline;
  padding: 0.25rem;
  transition: color 0.15s;
}
.btn-link-center:hover { color: rgba(255,255,255,0.75); }

.save-modal-note {
  font-size: 0.73rem;
  color: rgba(255,255,255,0.3);
  margin: 0;
}
.save-modal-note a {
  color: var(--c-purple, #8B5CF6);
  text-decoration: none;
}
.save-modal-note a:hover { text-decoration: underline; }

/* ── Back to Cratoora button override ── */
.plantilla-standalone .btn-back {
  border-color: rgba(139,92,246,0.3);
}
.plantilla-standalone .btn-back:hover {
  background: rgba(139,92,246,0.1);
  border-color: rgba(139,92,246,0.5);
} 