/* Ventana de descarga de recursos + visor de historias (extraído tal cual del diseño anterior) */
.resource-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(7, 6, 7, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0s linear 0.25s;
}

.resource-modal-overlay.open {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.25s ease;
}

.resource-modal {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 32px 28px;
  width: 100%;
  max-width: 400px;
  text-align: center;
  position: relative;
  transform: scale(0.9) translateY(18px);
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

.resource-modal-overlay.open .resource-modal {
  transform: scale(1) translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .resource-modal-overlay,
  .resource-modal {
    transition: none !important;
  }
}

.resource-modal-close {
  position: absolute;
  top: 16px;
  right: 12px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}

.resource-modal-close svg {
  width: 14px;
  height: 14px;
  fill: var(--text-primary);
}

.resource-modal-close:hover {
  background: var(--accent-dim);
  border-color: var(--accent);
}

.resource-modal-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  margin-top: 8px;
  text-transform: uppercase;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.resource-modal-sub {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 20px;
}

.resource-form[hidden] {
  display: none;
}

.resource-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.resource-email-input {
  width: 100%;
  background: var(--bg-base);
  border: 2px solid var(--border);
  border-radius: 100px;
  padding: 13px 20px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text-primary);
  outline: none;
  transition: border-color 0.2s;
}

.resource-email-input::placeholder {
  color: var(--text-secondary);
}

.resource-email-input:focus {
  border-color: var(--accent);
}

.resource-consent {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  text-align: left;
  cursor: pointer;
  padding: 0 4px;
}

.resource-consent input[type="checkbox"] {
  margin-top: 2px;
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  accent-color: var(--accent);
  cursor: pointer;
}

.resource-consent span {
  font-size: 0.72rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.resource-form-error {
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 600;
  text-align: center;
  margin: 0;
}

.resource-form-error[hidden] {
  display: none;
}

.resource-submit-btn {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 13px 20px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.15s;
}

.resource-submit-btn:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.resource-submit-btn:disabled {
  opacity: 0.6;
  cursor: default;
  transform: none;
}

.resource-modal-success[hidden] {
  display: none;
}

.resource-modal-success {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent);
  padding: 13px 0;
}

.resource-modal-success svg {
  width: 18px;
  height: 18px;
  fill: var(--accent);
  flex-shrink: 0;
}

.resource-modal-privacy {
  font-size: 0.74rem;
  color: var(--text-secondary);
  line-height: 1.45;
  margin-top: 16px;
}

.avatar-ring {
  cursor: pointer;
}

.story-overlay {
  position: fixed;
  inset: 0;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 150;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease;
}

.story-overlay.open {
  opacity: 1;
  visibility: visible;
}

.story-viewer {
  position: relative;
  width: 100%;
  max-width: 420px;
  height: 100%;
  max-height: 100vh;
  aspect-ratio: 9 / 16;
  background: #0d0d0d;
  overflow: hidden;
  touch-action: none;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.story-viewer.dragging {
  transition: none;
}

@media (min-width: 480px) {
  .story-viewer {
    max-height: 90vh;
    border-radius: 20px;
  }
}

.story-slide {
  width: 100%;
  height: 100%;
  position: relative;
  z-index: 1;
  overflow: hidden;
  background: #0d0d0d;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 26% 8% 22%;
}

.slide-fill-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  transform: translate(-50%, -55%);
  background: radial-gradient(circle, rgba(252,80,0,0.35) 0%, rgba(82,74,233,0.18) 55%, transparent 75%);
  filter: blur(6px);
  z-index: 0;
  animation: slide-glow-pulse 3.6s ease-in-out infinite;
}

@keyframes slide-glow-pulse {
  0%, 100% { transform: translate(-50%, -55%) scale(1); opacity: 0.8; }
  50% { transform: translate(-50%, -55%) scale(1.15); opacity: 1; }
}

.slide-headline.big {
  font-size: 2.5rem;
}

/* ── decorative blobs, shared across slide templates ── */
.slide-blob {
  position: absolute;
  border-radius: 50%;
  background: var(--accent);
  z-index: 0;
  animation: slide-blob-float 5s ease-in-out infinite alternate;
}
.slide-blob.b2 { background: var(--accent-2); animation-duration: 6.5s; }
.slide-blob.b3 { background: var(--highlight); animation-duration: 4.2s; }

@keyframes slide-blob-float {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(-4%, 3%) scale(1.06); }
}

.slide-content { position: relative; z-index: 1; }

.slide-eyebrow {
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
  opacity: 0;
  animation: slide-fade-up 0.5s ease forwards;
  animation-delay: 0.05s;
}

.slide-headline {
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: 1.9rem;
  line-height: 1.18;
  color: #fff;
  opacity: 0;
  animation: slide-fade-up 0.55s ease forwards;
  animation-delay: 0.15s;
}
.slide-headline .hl { color: var(--accent); }

.slide-sub {
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  line-height: 1.55;
  color: rgba(255,255,255,0.82);
  margin-top: 16px;
  opacity: 0;
  animation: slide-fade-up 0.55s ease forwards;
  animation-delay: 0.3s;
}
.slide-sub b { color: var(--accent); font-weight: 700; }

@keyframes slide-fade-up {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}

.slide-bullets { margin-top: 22px; display: flex; flex-direction: column; gap: 14px; }
.slide-bullets .b-row {
  display: flex; align-items: flex-start; gap: 12px;
  opacity: 0; animation: slide-fade-left 0.45s ease forwards;
}
.slide-bullets .mark {
  flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%;
  background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center;
  font-family: 'Poppins', sans-serif; font-weight: 800; font-size: 0.8rem;
}
.slide-bullets .txt { font-size: 0.98rem; line-height: 1.4; color: #fff; padding-top: 3px; }
.slide-bullets .txt b { color: var(--accent); }

@keyframes slide-fade-left {
  from { opacity: 0; transform: translateX(-24px); }
  to   { opacity: 1; transform: translateX(0); }
}

.slide-stat-num {
  font-family: 'Poppins', sans-serif;
  font-weight: 900;
  font-size: 5rem;
  line-height: 1;
  color: var(--accent);
  opacity: 0;
  animation: slide-pop-in 0.5s cubic-bezier(.2,1.6,.4,1) forwards;
  animation-delay: 0.1s;
}
.slide-stat-label {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  color: #fff;
  margin-top: 6px;
  opacity: 0;
  animation: slide-fade-up 0.5s ease forwards;
  animation-delay: 0.4s;
}

@keyframes slide-pop-in {
  0% { opacity: 0; transform: scale(0.4); }
  70% { opacity: 1; transform: scale(1.12); }
  100% { opacity: 1; transform: scale(1); }
}

.slide-logos { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.slide-logos .logo-chip {
  width: 76px; height: 76px; border-radius: 18px;
  background: #fff; display: flex; align-items: center; justify-content: center;
  padding: 12px; opacity: 0; animation: slide-pop-in 0.4s cubic-bezier(.2,1.6,.4,1) forwards;
  box-shadow: 0 8px 20px rgba(0,0,0,0.35);
}
.slide-logos .logo-chip img { max-width: 100%; max-height: 100%; object-fit: contain; }
.slide-logos .logo-chip.invert-on-dark img { filter: brightness(0); }
.slide-logos .logo-chip.logo-chip-link { cursor: pointer; text-decoration: none; transition: transform 0.15s; }
.slide-logos .logo-chip.logo-chip-link:active { transform: scale(0.92); }

.slide-quote-mark {
  font-family: 'Poppins', sans-serif; font-weight: 900; font-size: 4rem;
  color: var(--accent); line-height: 1; opacity: 0;
  animation: slide-fade-up 0.4s ease forwards;
}
.slide-quote-text {
  font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 1.5rem;
  line-height: 1.35; color: #fff; margin-top: 6px;
  opacity: 0; animation: slide-fade-up 0.55s ease forwards; animation-delay: 0.15s;
}
.slide-quote-by {
  font-size: 0.9rem; color: rgba(255,255,255,0.7); margin-top: 16px;
  opacity: 0; animation: slide-fade-up 0.5s ease forwards; animation-delay: 0.4s;
}
.slide-quote-by b { color: var(--accent); }

.slide-mockup {
  margin-top: 22px; background: #1c1c1c; border: 2px solid rgba(255,255,255,0.14);
  border-radius: 20px; padding: 20px;
  opacity: 0; animation: slide-fade-up 0.5s ease forwards, slide-float 3.2s ease-in-out 0.6s infinite;
  animation-delay: 0.25s, 0.6s;
}
.slide-mockup .m-label {
  font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 0.7rem;
  letter-spacing: 1px; text-transform: uppercase; color: var(--accent); margin-bottom: 10px;
}
.slide-mockup .m-body { font-family: 'DM Sans', monospace; font-size: 0.92rem; line-height: 1.5; color: #eaeaea; }

@keyframes slide-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.slide-compare { display: flex; gap: 12px; margin-top: 24px; }
.slide-compare .col {
  flex: 1; border-radius: 18px; padding: 18px 14px; text-align: center;
  opacity: 0; animation: slide-fade-up 0.5s ease forwards;
}
.slide-compare .col.bad { background: rgba(255,255,255,0.06); border: 1.5px solid rgba(255,255,255,0.15); }
.slide-compare .col.good { background: rgba(252,80,0,0.14); border: 1.5px solid var(--accent); }
.slide-compare .col .c-tag { font-family: 'Poppins', sans-serif; font-weight: 800; font-size: 0.7rem; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 8px; }
.slide-compare .col.bad .c-tag { color: rgba(255,255,255,0.5); }
.slide-compare .col.good .c-tag { color: var(--accent); }
.slide-compare .col .c-txt { font-size: 0.85rem; line-height: 1.4; color: #fff; }

.slide-avatar-row { display: flex; align-items: center; gap: 14px; margin-bottom: 26px; opacity: 0; animation: slide-fade-up 0.5s ease forwards; }
.slide-avatar-row img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; border: 2px solid var(--accent); }
.slide-avatar-row .name { font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 1.05rem; color: #fff; }
.slide-avatar-row .handle { font-size: 0.85rem; color: var(--accent); }

.slide-stats-row { display: flex; gap: 28px; margin-top: 8px; }
.slide-stats-row .st { opacity: 0; animation: slide-pop-in 0.5s cubic-bezier(.2,1.6,.4,1) forwards; }
.slide-stats-row .st .n { font-family: 'Poppins', sans-serif; font-weight: 900; font-size: 2.4rem; color: #fff; }
.slide-stats-row .st .l { font-family: 'Poppins', sans-serif; font-weight: 600; font-size: 0.7rem; letter-spacing: 0.5px; text-transform: uppercase; color: rgba(255,255,255,0.65); }

.slide-cta-tag {
  display: inline-block; background: var(--accent); color: #fff;
  font-family: 'Poppins', sans-serif; font-weight: 800; font-size: 0.72rem;
  letter-spacing: 1px; text-transform: uppercase; padding: 8px 16px; border-radius: 100px;
  margin-bottom: 18px; opacity: 0; animation: slide-pop-in 0.45s cubic-bezier(.2,1.6,.4,1) forwards;
}

.slide-watermark {
  position: absolute; left: 8%; bottom: 8%; z-index: 1;
  font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 0.78rem;
  color: rgba(255,255,255,0.5);
}

.story-progress {
  position: absolute;
  top: 14px;
  left: 12px;
  right: 12px;
  display: flex;
  gap: 5px;
  z-index: 3;
}

.story-progress .seg {
  flex: 1;
  height: 3px;
  border-radius: 3px;
  background: rgba(255,255,255,0.35);
  overflow: hidden;
}

.story-progress .seg .fill {
  display: block;
  height: 100%;
  width: 0%;
  background: #fff;
  border-radius: 3px;
}

.story-progress .seg .fill.done { width: 100%; }
.story-progress .seg .fill.animating { animation: story-seg-fill linear forwards; animation-duration: 15s; }

@keyframes story-seg-fill {
  from { width: 0%; }
  to { width: 100%; }
}

.story-header {
  position: absolute;
  top: 30px;
  left: 12px;
  right: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 3;
}

.story-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  overflow: hidden; border: 1px solid rgba(255,255,255,0.5);
  flex-shrink: 0;
}
.story-avatar img { width: 100%; height: 100%; object-fit: cover; }

.story-meta { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.story-name { font-size: 0.8rem; font-weight: 700; color: #fff; }
.story-time { font-size: 0.68rem; color: rgba(255,255,255,0.7); }

.story-close {
  background: transparent; border: none; cursor: pointer;
  width: 32px; height: 32px; display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.story-close svg { width: 18px; height: 18px; fill: #fff; }

.story-cta {
  position: absolute;
  left: 50%;
  bottom: 36px;
  transform: translateX(-50%);
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: max-content;
  max-width: calc(100% - 48px);
  white-space: nowrap;
  background: rgba(255,255,255,0.96);
  color: #111;
  border: 1.5px solid rgba(0,0,0,0.15);
  border-radius: 100px;
  padding: 13px 24px;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(0,0,0,0.35);
  animation: story-cta-bounce 1.8s ease-in-out infinite;
}
.story-cta svg { width: 16px; height: 16px; fill: #111; }

@keyframes story-cta-bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-6px); }
}

