/* ============================================
   TOKENS
   ============================================ */
:root {
  --canvas: #FFF3E4;      /* papel cálido, base */
  --ink: #1A1330;         /* texto principal, casi negro-morado */
  --coral: #FF5C72;       /* de Habla Sin Miedo */
  --coral-ink: #7A0E1E;
  --electric: #1808FF;    /* de My Daily English */
  --sun: #FFC93C;         /* acento nuevo, energía */
  --sun-ink: #6B4A00;
  --mint: #00C2A8;        /* acento terciario */
  --mint-ink: #003D34;
  --paper-line: rgba(26, 19, 48, 0.08);

  --font-display: "Bricolage Grotesque", sans-serif;
  --font-body: "Inter", sans-serif;
  --font-hand: "Caveat", cursive;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font-body);
  min-height: 100%;
}

.canvas {
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
  background-image:
    radial-gradient(circle at 1px 1px, var(--paper-line) 1px, transparent 0);
  background-size: 22px 22px;
}

.wrap {
  max-width: 560px;
  margin: 0 auto;
  padding: 48px 24px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* ============================================
   POLAROID / FOTO
   ============================================ */
.polaroid {
  position: relative;
  background: #fff;
  padding: 12px 12px 28px;
  border-radius: 4px;
  box-shadow: 0 12px 28px rgba(26, 19, 48, 0.18);
  transform: rotate(-4deg);
  margin-bottom: 28px;
}

.polaroid-photo {
  position: relative;
  width: 148px;
  height: 148px;
  background: linear-gradient(145deg, var(--electric), var(--coral));
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.polaroid-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.polaroid-placeholder {
  display: none;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  color: #fff;
  font-size: 13px;
  font-family: var(--font-body);
  font-weight: 600;
  line-height: 1.5;
  opacity: 0.9;
}

.tape {
  position: absolute;
  width: 54px;
  height: 20px;
  background: rgba(255, 201, 60, 0.85);
  top: -10px;
}
.tape-left { left: -14px; transform: rotate(-40deg); }
.tape-right { right: -14px; transform: rotate(40deg); }

/* ============================================
   NOMBRE + TAGLINE
   ============================================ */
.name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 7vw, 2.75rem);
  letter-spacing: -0.02em;
  margin: 0;
  line-height: 1.05;
}

.name-accent {
  color: var(--coral);
  position: relative;
}

.voice-line {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 22px;
  margin: 14px 0 10px;
}

.voice-line .bar {
  width: 4px;
  border-radius: 2px;
  background: var(--electric);
  animation: voice-pulse 1.1s ease-in-out infinite;
}
.voice-line .bar:nth-child(1) { height: 8px;  animation-delay: 0s;    background: var(--coral); }
.voice-line .bar:nth-child(2) { height: 16px; animation-delay: 0.1s;  background: var(--sun); }
.voice-line .bar:nth-child(3) { height: 22px; animation-delay: 0.2s;  background: var(--electric); }
.voice-line .bar:nth-child(4) { height: 12px; animation-delay: 0.3s;  background: var(--mint); }
.voice-line .bar:nth-child(5) { height: 20px; animation-delay: 0.4s;  background: var(--coral); }
.voice-line .bar:nth-child(6) { height: 10px; animation-delay: 0.5s;  background: var(--sun); }
.voice-line .bar:nth-child(7) { height: 16px; animation-delay: 0.6s;  background: var(--electric); }

@keyframes voice-pulse {
  0%, 100% { transform: scaleY(0.55); }
  50% { transform: scaleY(1); }
}

.tagline {
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.6;
  max-width: 34ch;
  margin: 0 0 32px;
  color: var(--ink);
}

.hand {
  font-family: var(--font-hand);
  font-weight: 700;
  font-size: 1.25em;
  color: var(--coral-ink);
}

/* ============================================
   SECCIONES / EYEBROW
   ============================================ */
.section {
  width: 100%;
  margin-bottom: 30px;
}

.eyebrow {
  position: relative;
  display: inline-block;
  font-family: var(--font-hand);
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 18px;
  padding: 0 6px;
}

.section { text-align: left; }

/* marcador resaltador detrás del texto */
.eyebrow--coral::before,
.eyebrow--electric::before {
  content: "";
  position: absolute;
  left: -4px;
  right: -4px;
  bottom: 2px;
  height: 0.55em;
  border-radius: 3px;
  z-index: -1;
  transform: rotate(-1.5deg);
}
.eyebrow--coral::before { background: var(--coral); opacity: 0.45; }
.eyebrow--electric::before { background: var(--electric); opacity: 0.32; }

/* "sígueme" centrado sobre la fila de redes, sin resaltado */
.eyebrow--center {
  display: block;
  text-align: center;
  padding: 0;
}

/* ============================================
   STICKERS (ebooks)
   ============================================ */
.sticker {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  text-decoration: none;
  color: var(--ink);
  background: #fff;
  border-radius: 18px;
  padding: 16px 18px;
  margin-bottom: 14px;
  box-shadow: 0 6px 0 rgba(26,19,48,0.12), 0 10px 20px rgba(26,19,48,0.10);
  border: 2px solid var(--ink);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.sticker:nth-of-type(odd) { transform: rotate(-1.4deg); }
.sticker:nth-of-type(even) { transform: rotate(1.4deg); }

.sticker:hover, .sticker:focus-visible {
  transform: rotate(0deg) translateY(-3px);
  box-shadow: 0 9px 0 rgba(26,19,48,0.12), 0 16px 26px rgba(26,19,48,0.14);
}

.sticker:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}

.sticker--coral { background: var(--coral); color: #fff; border-color: var(--coral-ink); }
.sticker--electric { background: var(--electric); color: #fff; border-color: #0d0680; }
.sticker--sun { background: var(--sun); color: var(--sun-ink); border-color: var(--sun-ink); }
.sticker--mint { background: var(--mint); color: var(--mint-ink); border-color: var(--mint-ink); }

.sticker-cover {
  position: relative;
  width: 46px;
  height: 66px;
  flex-shrink: 0;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 3px 6px rgba(0,0,0,0.25);
}

.sticker-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* se muestra automáticamente si la imagen de portada aún no existe */
.sticker-cover-fallback {
  display: none;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  background: rgba(255, 255, 255, 0.25);
}

.sticker-text { display: flex; flex-direction: column; text-align: left; flex: 1; }

.sticker-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  line-height: 1.2;
}

.sticker-sub {
  font-size: 0.85rem;
  opacity: 0.9;
  margin-top: 2px;
}

.sticker-arrow {
  font-size: 1.3rem;
  flex-shrink: 0;
}

/* ============================================
   REDES SOCIALES
   ============================================ */
.social-row {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.social {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: var(--ink);
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: 16px;
  padding: 16px 8px;
  font-weight: 600;
  font-size: 0.8rem;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  box-shadow: 0 5px 0 rgba(26,19,48,0.12);
}

.social:hover, .social:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 8px 0 rgba(26,19,48,0.12);
}

.social:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}

.social svg { width: 24px; height: 24px; }

.social--sun { background: var(--sun); color: var(--sun-ink); border-color: var(--sun-ink); }
.social--coral { background: var(--coral); color: #fff; border-color: var(--coral-ink); }
.social--mint { background: var(--mint); color: var(--mint-ink); border-color: var(--mint-ink); }

/* ============================================
   FOOTER
   ============================================ */
.footer {
  margin-top: 12px;
  font-size: 0.8rem;
  color: rgba(26, 19, 48, 0.55);
}

/* ============================================
   ACCESIBILIDAD / MOVIMIENTO REDUCIDO
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  .voice-line .bar { animation: none; transform: scaleY(0.8); }
  .sticker, .social { transition: none; }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 380px) {
  .wrap { padding: 36px 16px 32px; }
  .sticker-sub { display: none; }
  .social-row { gap: 8px; }
}
