/* =========================================================
   TOKENS
   ========================================================= */
:root {
  --bg: #ffffff;
  --bg-soft: #f6f5fb;
  --ink: #16161f;
  --ink-soft: rgba(22, 22, 31, 0.62);
  --line: rgba(22, 22, 31, 0.12);
  --line-soft: rgba(22, 22, 31, 0.18);

  --accent: #2a1fb8;
  --accent-hover: #23189e;
  --accent-soft: #e8e4fb;

  --status-success: #1f9d63;
  --status-error: #c23b31;
  --status-setup: var(--ink-soft);

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", "Helvetica Neue", Arial, sans-serif;

  --wrap: 1180px;
  --radius: 20px;
}

/* =========================================================
   RESET
   ========================================================= */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
/* Deja aire arriba al saltar a una sección, para que el header fijo no la tape */
:target, section[id], #newsletter { scroll-margin-top: 88px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p, dl, dd { margin: 0; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: #fff;
  padding: 12px 18px;
  z-index: 999;
}
.skip-link:focus { left: 12px; top: 12px; }

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 28px;
}

.wrap-guides { position: relative; }
@media (min-width: 1024px) {
  .wrap-guides::before, .wrap-guides::after {
    content: "";
    position: absolute;
    top: -40px;
    bottom: -40px;
    width: 0;
    border-left: 1px dashed var(--line-soft);
  }
  .wrap-guides::before { left: 0; }
  .wrap-guides::after { right: 0; }
}

/* =========================================================
   TYPE SCALE
   ========================================================= */
.eyebrow {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink);
  background: var(--bg);
  border: 1.5px solid var(--line);
  border-radius: 999px;
  padding: 9px 20px;
  margin-bottom: 22px;
}

.display-xl {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.6rem, 6.5vw, 5rem);
  line-height: 1.02;
  letter-spacing: -0.01em;
  margin: 0 0 26px;
}

.display-lg {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2rem, 4vw, 2.9rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0 0 18px;
}

.display-md {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  line-height: 1.14;
  letter-spacing: -0.005em;
  margin: 0 0 14px;
}

.lede {
  font-size: clamp(1.02rem, 1.6vw, 1.2rem);
  color: var(--ink-soft);
  max-width: 46ch;
}

/* =========================================================
   BUTTONS
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.98rem;
  padding: 15px 28px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn .icon-arrow { width: 18px; height: 18px; transition: transform 0.15s ease; }
.btn:hover .icon-arrow { transform: translateX(3px); }

.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover { background: var(--accent-hover); }

.btn-outline {
  background: var(--bg);
  border-color: var(--line);
  color: var(--ink);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }

.btn-small { padding: 9px 20px; font-size: 0.85rem; }
.btn-block { width: 100%; justify-content: center; margin-top: 4px; }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

/* =========================================================
   HEADER / NAV
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-row {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-top: 16px;
  padding-bottom: 16px;
}

.logo-mark {
  display: inline-flex;
  align-items: center;
}
.logo-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.02em;
}

.site-nav {
  display: flex;
  gap: 28px;
  margin-left: 12px;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 500;
}
.site-nav a { color: var(--ink-soft); transition: color 0.15s ease; }
.site-nav a:hover { color: var(--accent); }

.header-cta { margin-left: auto; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 34px;
  height: 34px;
  background: none;
  border: none;
  cursor: pointer;
  margin-left: auto;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  padding: 72px 0 96px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 40px;
}

.hero-photo-wrap {
  /* Forma "cuadrado ondulado" usada como máscara del marco y la foto. */
  --wavy: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20300%20300'%3E%3Cpath%20d='M270.0%2C150.0%20L273.5%2C153.2%20L276.1%2C156.6%20L277.0%2C160.0%20L276.0%2C163.2%20L273.5%2C166.3%20L270.0%2C169.0%20L266.5%2C171.6%20L264.0%2C174.2%20L263.1%2C177.2%20L264.0%2C180.5%20L266.4%2C184.5%20L269.7%2C188.9%20L272.8%2C193.5%20L275.0%2C198.0%20L275.6%2C202.0%20L274.4%2C205.4%20L271.7%2C208.0%20L268.1%2C210.2%20L264.4%2C212.1%20L261.6%2C214.4%20L260.1%2C217.5%20L260.1%2C221.5%20L261.2%2C226.4%20L262.8%2C232.0%20L264.2%2C237.6%20L264.4%2C242.7%20L263.2%2C246.7%20L260.3%2C249.3%20L256.0%2C250.6%20L250.9%2C250.9%20L245.8%2C250.9%20L241.2%2C251.3%20L237.6%2C252.5%20L235.0%2C255.0%20L233.3%2C258.6%20L232.0%2C262.8%20L230.4%2C267.0%20L228.1%2C270.3%20L224.8%2C272.1%20L220.5%2C272.1%20L215.5%2C270.6%20L210.2%2C268.1%20L205.0%2C265.3%20L200.4%2C263.3%20L196.7%2C262.7%20L193.6%2C263.7%20L191.2%2C266.2%20L188.9%2C269.7%20L186.5%2C273.1%20L183.7%2C275.7%20L180.4%2C276.7%20L176.8%2C275.9%20L172.9%2C273.4%20L169.0%2C270.0%20L165.3%2C266.5%20L162.0%2C264.0%20L158.9%2C263.0%20L156.0%2C263.9%20L153.1%2C266.5%20L150.0%2C270.0%20L146.8%2C273.5%20L143.4%2C276.1%20L140.0%2C277.0%20L136.8%2C276.0%20L133.7%2C273.5%20L131.0%2C270.0%20L128.4%2C266.5%20L125.8%2C264.0%20L122.8%2C263.1%20L119.5%2C264.0%20L115.5%2C266.4%20L111.1%2C269.7%20L106.5%2C272.8%20L102.0%2C275.0%20L98.0%2C275.6%20L94.6%2C274.4%20L92.0%2C271.7%20L89.8%2C268.1%20L87.9%2C264.4%20L85.6%2C261.6%20L82.5%2C260.1%20L78.5%2C260.1%20L73.6%2C261.2%20L68.0%2C262.8%20L62.4%2C264.2%20L57.3%2C264.4%20L53.3%2C263.2%20L50.7%2C260.3%20L49.4%2C256.0%20L49.1%2C250.9%20L49.1%2C245.8%20L48.7%2C241.2%20L47.5%2C237.6%20L45.0%2C235.0%20L41.4%2C233.3%20L37.2%2C232.0%20L33.0%2C230.4%20L29.7%2C228.1%20L27.9%2C224.8%20L27.9%2C220.5%20L29.4%2C215.5%20L31.9%2C210.2%20L34.7%2C205.0%20L36.7%2C200.4%20L37.3%2C196.7%20L36.3%2C193.6%20L33.8%2C191.2%20L30.3%2C188.9%20L26.9%2C186.5%20L24.3%2C183.7%20L23.3%2C180.4%20L24.1%2C176.8%20L26.6%2C172.9%20L30.0%2C169.0%20L33.5%2C165.3%20L36.0%2C162.0%20L37.0%2C158.9%20L36.1%2C156.0%20L33.5%2C153.1%20L30.0%2C150.0%20L26.5%2C146.8%20L23.9%2C143.4%20L23.0%2C140.0%20L24.0%2C136.8%20L26.5%2C133.7%20L30.0%2C131.0%20L33.5%2C128.4%20L36.0%2C125.8%20L36.9%2C122.8%20L36.0%2C119.5%20L33.6%2C115.5%20L30.3%2C111.1%20L27.2%2C106.5%20L25.0%2C102.0%20L24.4%2C98.0%20L25.6%2C94.6%20L28.3%2C92.0%20L31.9%2C89.8%20L35.6%2C87.9%20L38.4%2C85.6%20L39.9%2C82.5%20L39.9%2C78.5%20L38.8%2C73.6%20L37.2%2C68.0%20L35.8%2C62.4%20L35.6%2C57.3%20L36.8%2C53.3%20L39.7%2C50.7%20L44.0%2C49.4%20L49.1%2C49.1%20L54.2%2C49.1%20L58.8%2C48.7%20L62.4%2C47.5%20L65.0%2C45.0%20L66.7%2C41.4%20L68.0%2C37.2%20L69.6%2C33.0%20L71.9%2C29.7%20L75.2%2C27.9%20L79.5%2C27.9%20L84.5%2C29.4%20L89.8%2C31.9%20L95.0%2C34.7%20L99.6%2C36.7%20L103.3%2C37.3%20L106.4%2C36.3%20L108.8%2C33.8%20L111.1%2C30.3%20L113.5%2C26.9%20L116.3%2C24.3%20L119.6%2C23.3%20L123.2%2C24.1%20L127.1%2C26.6%20L131.0%2C30.0%20L134.7%2C33.5%20L138.0%2C36.0%20L141.1%2C37.0%20L144.0%2C36.1%20L146.9%2C33.5%20L150.0%2C30.0%20L153.2%2C26.5%20L156.6%2C23.9%20L160.0%2C23.0%20L163.2%2C24.0%20L166.3%2C26.5%20L169.0%2C30.0%20L171.6%2C33.5%20L174.2%2C36.0%20L177.2%2C36.9%20L180.5%2C36.0%20L184.5%2C33.6%20L188.9%2C30.3%20L193.5%2C27.2%20L198.0%2C25.0%20L202.0%2C24.4%20L205.4%2C25.6%20L208.0%2C28.3%20L210.2%2C31.9%20L212.1%2C35.6%20L214.4%2C38.4%20L217.5%2C39.9%20L221.5%2C39.9%20L226.4%2C38.8%20L232.0%2C37.2%20L237.6%2C35.8%20L242.7%2C35.6%20L246.7%2C36.8%20L249.3%2C39.7%20L250.6%2C44.0%20L250.9%2C49.1%20L250.9%2C54.2%20L251.3%2C58.8%20L252.5%2C62.4%20L255.0%2C65.0%20L258.6%2C66.7%20L262.8%2C68.0%20L267.0%2C69.6%20L270.3%2C71.9%20L272.1%2C75.2%20L272.1%2C79.5%20L270.6%2C84.5%20L268.1%2C89.8%20L265.3%2C95.0%20L263.3%2C99.6%20L262.7%2C103.3%20L263.7%2C106.4%20L266.2%2C108.8%20L269.7%2C111.1%20L273.1%2C113.5%20L275.7%2C116.3%20L276.7%2C119.6%20L275.9%2C123.2%20L273.4%2C127.1%20L270.0%2C131.0%20L266.5%2C134.7%20L264.0%2C138.0%20L263.0%2C141.1%20L263.9%2C144.0%20L266.5%2C146.9Z'%20fill='%23fff'/%3E%3C/svg%3E");
  position: relative;
  width: 100%;
  max-width: 420px;
  aspect-ratio: 1 / 1;
  margin-left: auto;
}
/* Blob ondulado lavanda: es SOLO el fondo, ocupa todo el contenedor. */
.hero-photo-shadow {
  position: absolute;
  inset: 0;
  background: var(--accent-soft);
  -webkit-mask: var(--wavy) center / contain no-repeat;
  mask: var(--wavy) center / contain no-repeat;
  filter: drop-shadow(0 22px 40px rgba(22, 22, 31, 0.16));
  z-index: 0;
}
/* La foto va ENCIMA del blob, entera (sin máscara que la recorte). */
.hero-photo-card {
  position: absolute;
  inset: 6%;
  z-index: 1;
}
.hero-photo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
  display: block;
}

/* =========================================================
   SECTIONS (generic)
   ========================================================= */
.section { padding: 96px 0; }
.section-alt { background: var(--bg-soft); }
.section-compact { padding: 64px 0; }

.section-head { max-width: 640px; margin-bottom: 48px; }

/* =========================================================
   ABOUT
   ========================================================= */
.about-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 56px;
  align-items: center;
  margin-bottom: 64px;
}
.about-grid-solo {
  grid-template-columns: 1fr;
}
.about-grid-solo .about-copy { max-width: 720px; }

/* Sección Sobre mí centrada (texto e imágenes) */
#about { text-align: center; }
#about .eyebrow { justify-content: center; }
#about .about-copy { margin-left: auto; margin-right: auto; }
#about .photo-strip-track { margin-left: auto; margin-right: auto; }

.photo-panel {
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  background: linear-gradient(155deg, var(--ink) 0%, var(--accent) 130%);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
}
.photo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
  display: block;
}

.about-body p { margin-bottom: 16px; color: var(--ink-soft); }
.about-body p:last-child { margin-bottom: 0; }

/* =========================================================
   PHOTO STRIP (fanned gallery, About section)
   ========================================================= */
.photo-strip {
  overflow-x: auto;
  overflow-y: visible;
  -webkit-overflow-scrolling: touch;
  margin: 0 -28px 48px;
  padding: 0 28px;
}
.photo-strip-track {
  display: flex;
  align-items: center;
  width: max-content;
  padding: 30px 10px 40px;
}
.photo-strip-item {
  flex: 0 0 auto;
  width: 130px;
  aspect-ratio: 3 / 4;
  border-radius: 16px;
  overflow: hidden;
  background: var(--bg-soft);
  border: 4px solid var(--bg);
  box-shadow: 0 20px 36px rgba(22, 22, 31, 0.16), 0 4px 10px rgba(22, 22, 31, 0.08);
  margin-left: -22px;
  position: relative;
  transition: transform 0.25s ease;
}
.photo-strip-item:first-child { margin-left: 0; }
.photo-strip-item img { width: 100%; height: 100%; object-fit: cover; display: block; }

.photo-strip-item:nth-child(1) { transform: rotate(-8deg) translateY(4px); z-index: 1; }
.photo-strip-item:nth-child(2) { transform: rotate(5deg) translateY(-10px); z-index: 2; }
.photo-strip-item:nth-child(3) { transform: rotate(-4deg) translateY(8px); z-index: 3; }
.photo-strip-item:nth-child(4) { transform: rotate(7deg) translateY(-6px); z-index: 4; }
.photo-strip-item:nth-child(5) { transform: rotate(-6deg) translateY(6px); z-index: 5; }
.photo-strip-item:nth-child(6) { transform: rotate(4deg) translateY(-4px); z-index: 6; }

.photo-strip-item:hover {
  transform: translateY(-14px) scale(1.06) rotate(0deg);
  z-index: 20;
}

/* Auto-scroll infinito (mobile) — el contenido de la tira se duplica
   por JS y esta animación lo desliza a velocidad constante. */
@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.marquee-track {
  animation: marquee-scroll var(--marquee-duration, 30s) linear infinite;
}
.photo-strip:hover .marquee-track,
.photo-strip:active .marquee-track,
.reel-strip:hover .marquee-track,
.reel-strip:active .marquee-track {
  animation-play-state: paused;
}
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
}

.feature-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  padding-top: 40px;
}
.feature-item {
  padding: 0 32px;
  border-left: 1px solid var(--line);
}
.feature-item:first-child { border-left: none; padding-left: 0; }
.feature-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.08rem;
  margin-bottom: 8px;
  color: var(--accent);
}
.feature-body { color: var(--ink-soft); font-size: 0.95rem; }

/* =========================================================
   FORM FIELDS (shared)
   ========================================================= */
input[type="text"],
input[type="email"],
select,
textarea {
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 13px 16px;
  border-radius: 12px;
  border: 1.5px solid transparent;
  background: var(--bg-soft);
  color: var(--ink);
  outline: none;
  transition: border-color 0.15s ease, background 0.15s ease;
  width: 100%;
}
input:focus, select:focus, textarea:focus { border-color: var(--accent); background: var(--bg); }
input::placeholder, textarea::placeholder { color: var(--ink-soft); }
textarea { resize: vertical; min-height: 100px; font-family: var(--font-body); }

.form-status {
  margin-top: 12px;
  font-size: 0.85rem;
  min-height: 1.2em;
}
.form-status.status-success { color: var(--status-success); }
.form-status.status-error { color: var(--status-error); }
.form-status.status-setup { color: var(--status-setup); }

/* =========================================================
   CURSO + NEWSLETTER (teaser cards)
   ========================================================= */
.teaser-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
.teaser-card {
  background: var(--bg-soft);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  padding: 40px;
  display: flex;
  flex-direction: column;
}
.inline-form {
  display: flex;
  gap: 10px;
  margin-top: auto;
  padding-top: 26px;
  flex-wrap: wrap;
}
.inline-form input[type="email"] { flex: 1; min-width: 180px; background: var(--bg); }
.inline-form input[type="email"]:focus { background: var(--bg); }

/* =========================================================
   ÚLTIMAS EDICIONES (Substack carousel)
   ========================================================= */
.carousel-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 32px;
}
.carousel-head .eyebrow { margin-bottom: 14px; }
.carousel-head .display-md { margin-bottom: 0; }
.view-all-link {
  flex-shrink: 0;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--accent);
  padding-bottom: 4px;
  border-bottom: 1.5px solid var(--accent);
}
.view-all-link:hover { color: var(--accent-hover); border-color: var(--accent-hover); }

.post-carousel {
  overflow: hidden;
  padding-bottom: 8px;
  margin: 0 -28px;
  padding-left: 28px;
  padding-right: 28px;
}
.post-carousel-track {
  display: flex;
  gap: 20px;
  width: max-content;
  padding: 4px 0;
}
.post-carousel:hover .marquee-track,
.post-carousel:active .marquee-track {
  animation-play-state: paused;
}
.post-card {
  flex: 0 0 260px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg);
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.post-card:hover { border-color: var(--accent); transform: translateY(-3px); }
.post-thumb {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: var(--bg-soft);
}
.post-card-body { padding: 16px 18px 20px; }
.post-card-title {
  font-weight: 600;
  font-size: 0.98rem;
  line-height: 1.35;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.post-card-date {
  font-size: 0.8rem;
  color: var(--ink-soft);
}

/* =========================================================
   ¿POR QUÉ HAGO ESTO? (reels de Instagram)
   ========================================================= */
#por-que .section-head {
  text-align: center;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}
.why-subhead {
  margin: 14px auto 0;
  max-width: 620px;
  font-size: 0.98rem;
  line-height: 1.55;
  color: var(--ink-soft);
}

.reel-strip {
  overflow-x: auto;
  overflow-y: visible;
  -webkit-overflow-scrolling: touch;
  margin: 0 -28px;
  padding: 0 28px;
  /* Barra de scroll invisible (se sigue pudiendo arrastrar/scrollear) */
  scrollbar-width: none;         /* Firefox */
  -ms-overflow-style: none;      /* IE / Edge viejo */
}
.reel-strip::-webkit-scrollbar { display: none; } /* Chrome / Safari */

.reel-strip-track {
  display: flex;
  align-items: center;
  width: max-content;
  margin: 0 auto;               /* centrado cuando entran a lo ancho */
  padding: 34px 24px 44px;      /* aire para sombras y rotación */
}

.reel-card {
  position: relative;
  flex: 0 0 auto;
  width: 132px;
  aspect-ratio: 9 / 16;
  border-radius: 16px;
  overflow: hidden;
  background: var(--bg-soft);
  border: 4px solid var(--bg);
  box-shadow: 0 20px 36px rgba(22, 22, 31, 0.16), 0 4px 10px rgba(22, 22, 31, 0.08);
  margin-left: -24px;
  transition: transform 0.25s ease;
}
.reel-card:first-child { margin-left: 0; }

/* Rotaciones en ciclo de 6 — sirve para cualquier cantidad de miniaturas.
   El apilado lo da el orden del DOM (cada tarjeta pisa a la anterior). */
.reel-card:nth-child(6n + 1) { transform: rotate(-7deg) translateY(4px); }
.reel-card:nth-child(6n + 2) { transform: rotate(4deg) translateY(-8px); }
.reel-card:nth-child(6n + 3) { transform: rotate(-5deg) translateY(6px); }
.reel-card:nth-child(6n + 4) { transform: rotate(6deg) translateY(-6px); }
.reel-card:nth-child(6n + 5) { transform: rotate(-4deg) translateY(6px); }
.reel-card:nth-child(6n)     { transform: rotate(5deg) translateY(-8px); }

.reel-card:hover {
  transform: translateY(-14px) scale(1.05) rotate(0deg);
  z-index: 20;
}
.reel-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ---- Videos de YouTube (scroll horizontal) ---- */
.video-strip {
  overflow-x: auto;
  overflow-y: visible;
  -webkit-overflow-scrolling: touch;
  margin: 4px -28px 0;
  padding: 8px 28px 12px;
  scrollbar-width: none;         /* Firefox */
  -ms-overflow-style: none;      /* IE / Edge viejo */
}
.video-strip::-webkit-scrollbar { display: none; } /* Chrome / Safari */

.video-strip-track {
  display: flex;
  gap: 24px;
  width: max-content;
  margin: 0 auto;
  padding: 4px;
}

.video-card {
  flex: 0 0 auto;
  width: min(560px, 80vw);
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  overflow: hidden;
  background: var(--bg-soft);
  box-shadow: 0 20px 36px rgba(22, 22, 31, 0.16), 0 4px 10px rgba(22, 22, 31, 0.08);
}
.video-card iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* =========================================================
   TRABAJEMOS JUNTOS (work-with-me form)
   ========================================================= */
.work-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 56px;
  align-items: start;
}

.note-card {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 28px;
  padding: 14px 20px 14px 14px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 16px;
  max-width: 420px;
}
.note-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 15%;
  flex-shrink: 0;
  background: linear-gradient(155deg, var(--ink) 0%, var(--accent) 130%);
}
.note-card p { font-size: 0.88rem; color: var(--ink-soft); margin: 0; }

.work-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: 0 1px 2px rgba(22, 22, 31, 0.04), 0 16px 40px rgba(22, 22, 31, 0.06);
}
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
}
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.direct-note {
  margin-top: 24px;
  font-size: 0.9rem;
  color: var(--ink-soft);
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.direct-note a { color: var(--accent); font-weight: 600; text-decoration: underline; }

/* =========================================================
   PROMPTS
   ========================================================= */
.prompt-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}
.prompt-grid-compact { grid-template-columns: repeat(4, 1fr); gap: 16px; }
.prompt-grid-compact .prompt-card { padding: 20px; }
.prompt-grid-compact .prompt-title { font-size: 1.05rem; }
.prompt-grid-compact .prompt-text { font-size: 0.85rem; padding: 12px; }

/* Flecha del carrusel de prompts — solo visible en mobile (ver media query) */
.prompt-arrow {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  background: var(--bg);
  color: var(--accent);
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(22, 22, 31, 0.16);
  z-index: 5;
}
.prompt-arrow .icon-arrow { width: 18px; height: 18px; }

.prompt-card {
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  background: var(--bg-soft);
  transition: border-color 0.2s ease, transform 0.2s ease;
  display: flex;
  flex-direction: column;
}
.prompt-card:hover { border-color: var(--accent); transform: translateY(-3px); }

.prompt-cat {
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.prompt-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.2rem;
  margin-bottom: 14px;
}
.prompt-text {
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--ink-soft);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px;
  flex: 1;
  margin-bottom: 18px;
  white-space: pre-wrap;
}

.copy-btn {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  background: var(--bg);
  border: 1.5px solid var(--accent);
  border-radius: 100px;
  padding: 8px 18px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.copy-btn:hover { background: var(--accent); color: #fff; }
.copy-btn.copied { background: var(--ink); border-color: var(--ink); color: #fff; }

/* =========================================================
   SOCIAL
   ========================================================= */
.social-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  margin-top: 40px;
}

.social-tile {
  position: relative;
  padding: 20px 18px;
  background: var(--bg);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  gap: 13px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.social-tile:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}
.social-icon {
  width: 22px;
  height: 22px;
  color: var(--accent);
  flex-shrink: 0;
}
.social-copy { display: flex; flex-direction: column; gap: 2px; }
.social-platform { font-weight: 600; font-size: 0.98rem; }
.social-handle {
  font-size: 0.84rem;
  color: var(--ink-soft);
}

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
  background: var(--bg-soft);
  color: var(--ink-soft);
  border-top: 1px solid var(--line);
}

.footer-row {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  padding: 32px 28px;
}
.footer-logo {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--ink);
  font-size: 1.15rem;
}
.footer-copy { font-size: 0.85rem; }
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-left: auto;
  font-size: 0.88rem;
  font-weight: 500;
}
.footer-nav a { color: var(--ink-soft); }
.footer-nav a:hover { color: var(--accent); }

/* =========================================================
   REVEAL ANIMATION
   ========================================================= */
/* Elements are fully visible by default. JS opts them into the
   hidden-then-reveal state via .pre once it has confirmed it can
   also bring them back with .in — so a failed/blocked/disabled
   script never leaves content stuck invisible. */
.reveal.pre {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.pre.in { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .reveal.pre { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-photo-wrap { max-width: 360px; margin: 0 auto; order: -1; }
  .about-grid { grid-template-columns: 1fr; }
  .photo-panel { max-width: 260px; }
  .feature-row { grid-template-columns: 1fr; row-gap: 28px; }
  .feature-item { border-left: none; padding-left: 0; padding-top: 24px; border-top: 1px solid var(--line); }
  .feature-item:first-child { border-top: none; padding-top: 0; }
  .prompt-grid { grid-template-columns: 1fr; }
  .prompt-grid-compact { grid-template-columns: repeat(2, 1fr); }
  .work-grid { grid-template-columns: 1fr; gap: 32px; }
  .teaser-grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .carousel-head { flex-direction: column; align-items: flex-start; gap: 8px; }
  .post-card { flex-basis: 220px; }
  .reel-strip-track { margin: 0; }
  .reel-card { width: 104px; margin-left: -20px; }
  .photo-strip-item { width: 100px; margin-left: -18px; border-width: 3px; }
}

@media (max-width: 720px) {
  .site-nav { display: none; }
  .nav-toggle { display: flex; margin-left: 4px; }
  .header-row { gap: 10px; }
  /* CTA del newsletter visible y compacto, arriba a la derecha (header sticky) */
  .header-cta {
    display: inline-flex;
    margin-left: auto;
    padding: 8px 14px;
    font-size: 0.76rem;
    white-space: nowrap;
  }
  .site-nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    padding: 20px 28px;
    border-bottom: 1px solid var(--line);
    gap: 18px;
  }
  .photo-strip, .reel-strip { overflow-x: hidden; }

  /* Prompts: carrusel horizontal con flecha en vez de lista apilada */
  .prompt-carousel { position: relative; }
  .prompt-grid-compact {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin: 0 -28px;
    padding: 4px 28px 8px;
  }
  .prompt-grid-compact::-webkit-scrollbar { display: none; }
  .prompt-grid-compact .prompt-card {
    flex: 0 0 82%;
    scroll-snap-align: start;
  }
  .prompt-arrow {
    display: flex;
    position: absolute;
    right: 4px;
    top: 42%;
    transform: translateY(-50%);
  }
}

@media (max-width: 520px) {
  .section { padding: 68px 0; }
  .work-form { padding: 28px 22px; }
}

/* =========================================================
   CLICK SPARK (chispa azul en el cursor al hacer clic)
   ========================================================= */
.click-spark {
  position: fixed;
  width: 0;
  height: 0;
  pointer-events: none;
  z-index: 9999;
}
.click-spark-line {
  position: absolute;
  left: 0;
  top: 0;
  width: 2.5px;
  height: 11px;
  margin-left: -1.25px;
  margin-top: -5.5px;
  border-radius: 2px;
  transform-origin: center;
  will-change: transform, opacity;
}
