@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,600;0,9..144,900;1,9..144,500;1,9..144,600&family=Archivo:wght@400;500;600;700&family=Archivo+Expanded:wght@500;600;700&display=swap');

:root {
  --espresso: #1b1813;
  --espresso-2: #241f18;
  --flame: #f27837;
  --ember: #c6510b;
  --cream: #f7ecdd;
  --cream-dim: #e7d9c4;
  --silver: #b9afa0;
  --line: rgba(247, 236, 221, 0.14);

  --display: "Fraunces", serif;
  --label: "Archivo Expanded", sans-serif;
  --body: "Archivo", sans-serif;

  --container: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  background: var(--espresso);
  color: var(--cream);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; }

::selection { background: var(--flame); color: var(--espresso); }

:focus-visible {
  outline: 2px solid var(--flame);
  outline-offset: 3px;
}

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

.eyebrow {
  font-family: var(--label);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 0.72rem;
  color: var(--flame);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--flame);
  display: inline-block;
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  padding: 22px 0;
  background: linear-gradient(to bottom, rgba(27,24,19,0.92), rgba(27,24,19,0));
  transition: background 0.3s ease, padding 0.3s ease;
}
.site-header.scrolled {
  background: rgba(27,24,19,0.92);
  backdrop-filter: blur(8px);
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.wordmark {
  font-family: var(--label);
  letter-spacing: 0.22em;
  font-size: 0.95rem;
  line-height: 1.35;
  text-decoration: none;
}
.wordmark .l1 { color: var(--cream); font-weight: 600; display: block; }
.wordmark .l2 {
  color: var(--flame);
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  font-weight: 500;
  display: block;
  margin-top: 3px;
}
.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
  margin: 0; padding: 0;
  font-family: var(--label);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.nav-links a { text-decoration: none; color: var(--cream-dim); transition: color 0.2s ease; }
.nav-links a:hover { color: var(--flame); }
.nav-cta {
  font-family: var(--label);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--espresso);
  background: var(--flame);
  padding: 11px 20px;
  border-radius: 999px;
  white-space: nowrap;
}
@media (max-width: 860px) {
  .nav-links { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 62% 35%;
  transform: scale(1.1);
  animation: hero-settle 1.8s cubic-bezier(.2,.7,.2,1) forwards;
  filter: saturate(1.05) contrast(1.03);
}
@keyframes hero-settle {
  from { transform: scale(1.16); filter: saturate(1.05) contrast(1.03) brightness(0.85); }
  to { transform: scale(1.1); filter: saturate(1.05) contrast(1.03) brightness(1); }
}
.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(15,13,10,0.96) 0%, rgba(15,13,10,0.72) 26%, rgba(15,13,10,0.18) 56%, rgba(15,13,10,0.35) 100%),
    linear-gradient(to right, rgba(15,13,10,0.55) 0%, rgba(15,13,10,0.05) 45%);
}
.hero-inner {
  position: relative;
  z-index: 2;
  padding-bottom: 96px;
  padding-top: 160px;
  width: 100%;
}
.hero-content { max-width: 640px; }
.hero-content .eyebrow { margin-bottom: 22px; opacity: 0; animation: rise-in 0.7s ease 0.5s forwards; }
.hero-title {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(2.3rem, 5.6vw, 4.3rem);
  line-height: 1.06;
  letter-spacing: -0.01em;
  margin: 0 0 26px;
}
.hero-title br { display: block; }
.hero-title span,
.hero-title em {
  display: inline-block;
  opacity: 0;
  animation: rise-in 0.7s cubic-bezier(.2,.7,.2,1) forwards;
}
.hero-title em { font-style: italic; font-weight: 500; color: var(--flame); }
@keyframes rise-in {
  from { opacity: 0; transform: translateY(0.4em); }
  to { opacity: 1; transform: translateY(0); }
}
.hero-sub {
  font-size: 1.08rem;
  color: var(--cream-dim);
  max-width: 460px;
  margin: 0 0 36px;
  opacity: 0;
  animation: rise-in 0.7s ease 0.9s forwards;
}
.hero-content .btn-primary { opacity: 0; animation: rise-in 0.7s ease 1.05s forwards; }
.btn-primary {
  font-family: var(--label);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--espresso);
  background: var(--flame);
  padding: 17px 30px;
  border-radius: 999px;
  display: inline-block;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 14px 30px -12px rgba(242,120,55,0.5);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 20px 36px -14px rgba(242,120,55,0.6); }

.scroll-cue {
  position: absolute;
  right: 28px;
  bottom: 40px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--label);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cream-dim);
  opacity: 0;
  animation: rise-in 0.7s ease 1.3s forwards;
}
.scroll-cue span {
  width: 1px; height: 32px;
  background: linear-gradient(to bottom, var(--flame), transparent);
  position: relative;
  overflow: hidden;
}
.scroll-cue span::after {
  content: "";
  position: absolute;
  left: 0; top: -100%;
  width: 100%; height: 100%;
  background: var(--flame);
  animation: cue-fall 1.8s ease-in-out infinite;
}
@keyframes cue-fall {
  0% { top: -100%; }
  60%, 100% { top: 100%; }
}
@media (max-width: 900px) {
  .hero-inner { padding-top: 120px; padding-bottom: 64px; }
  .hero-media img { object-position: 68% 30%; }
  .scroll-cue { display: none; }
}

/* ---------- Section shell ---------- */
section { position: relative; padding: 120px 0; }
.section-head { max-width: 620px; margin-bottom: 64px; }
.section-title {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.9rem, 3.4vw, 2.7rem);
  margin: 18px 0 0;
  line-height: 1.15;
}
.section-title em { font-style: italic; color: var(--flame); }

/* ---------- Historia (scrollytelling) ---------- */
.story {
  padding: 0;
  background: var(--espresso-2);
}
.story-wrap {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 60px;
  align-items: start;
}
.story-blob-col {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.story-blob {
  position: relative;
  width: min(46vw, 480px);
  aspect-ratio: 1/1;
  overflow: hidden;
  border-radius: 62% 38% 55% 45% / 48% 45% 55% 52%;
  box-shadow: 0 50px 120px -40px rgba(0,0,0,0.65);
  transition: border-radius 1.2s cubic-bezier(.2,.7,.2,1);
}
.story-blob::after {
  content: "";
  position: absolute; inset: 0;
  background: var(--flame);
  mix-blend-mode: color;
  opacity: 0.5;
  z-index: 2;
  transition: background 1s ease;
  pointer-events: none;
}
.story-blob[data-active="1"] { border-radius: 42% 58% 38% 62% / 60% 40% 60% 40%; }
.story-blob[data-active="1"]::after { background: var(--ember); }
.story-blob[data-active="2"] { border-radius: 55% 45% 62% 38% / 40% 55% 45% 60%; }
.story-blob[data-active="2"]::after { background: #d99a2b; }
.story-blob-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 1s ease, transform 1.4s ease;
}
.story-blob-img.is-active { opacity: 1; transform: scale(1); }

.story-text-col {
  padding: 14vh 0 30vh;
}
.story-chapter {
  min-height: 62vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  opacity: 0.32;
  transform: translateY(10px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.story-chapter.is-active { opacity: 1; transform: translateY(0); }
.story-chapter .pillar-num {
  font-family: var(--label);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--flame);
  margin: 0 0 18px;
}
.story-chapter h3 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  margin: 0 0 20px;
  line-height: 1.15;
}
.story-chapter p { color: var(--cream-dim); max-width: 480px; margin: 0; font-size: 1.02rem; }

@media (max-width: 900px) {
  .story-wrap { grid-template-columns: 1fr; gap: 0; }
  .story-blob-col { position: relative; top: auto; height: auto; padding: 60px 0 20px; }
  .story-blob { width: 70vw; max-width: 340px; }
  .story-text-col { padding: 0 0 10vh; }
  .story-chapter { min-height: auto; padding: 40px 0; opacity: 1; transform: none; }
}

/* ---------- Portafolio ---------- */
.plate {
  aspect-ratio: 4/5;
  border-radius: 18px;
  overflow: hidden;
  position: relative;
  border: 1px solid var(--line);
}
.plate img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s ease, filter 0.6s ease;
}
.plate:hover img { transform: scale(1.06); filter: saturate(1.15); }
.plate.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: repeating-linear-gradient(135deg, var(--espresso-2) 0px 10px, transparent 10px 20px);
  text-align: center;
}
.plate.placeholder span {
  font-family: var(--label);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--silver);
  padding: 0 16%;
}
.plate-caption {
  margin-top: 14px;
  text-align: left;
  font-family: "Archivo", monospace;
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  color: var(--silver);
}

/* ---------- Portafolio tabs ---------- */
.folio-tabs {
  display: flex;
  gap: 12px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}
.folio-tab {
  font-family: var(--label);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: transparent;
  color: var(--cream-dim);
  border: 1px solid var(--line);
  padding: 12px 22px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.folio-tab:hover { border-color: var(--flame); color: var(--cream); }
.folio-tab.is-active {
  background: var(--flame);
  color: var(--espresso);
  border-color: var(--flame);
}
.folio-panel { display: none; }
.folio-panel.is-active { display: block; }

.filmstrip {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  padding-bottom: 18px;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
}
.filmstrip figure {
  flex: 0 0 240px;
  width: 240px;
  scroll-snap-align: start;
  margin: 0;
}
.filmstrip .plate { width: 240px; height: 300px; }
.filmstrip::-webkit-scrollbar { height: 6px; }
.filmstrip::-webkit-scrollbar-thumb { background: var(--line); border-radius: 999px; }

.reel-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
.reel-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 16;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--espresso-2);
}
.reel-embed iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: 0;
}
.reel-caption {
  margin: 14px 0 0;
  font-size: 0.86rem;
  color: var(--cream-dim);
  line-height: 1.5;
}
.folio-more {
  margin-top: 36px;
  font-family: var(--label);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--silver);
}
.folio-more a { color: var(--flame); text-decoration: none; }

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.canva-embed-wrap {
  position: relative;
  width: 100%;
  height: 0;
  padding-top: 56.2225%;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--espresso-2);
}
.canva-embed-wrap iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: 0;
}
.canva-locked {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  text-align: center;
}
.canva-locked span {
  position: static;
  font-family: var(--body);
  font-size: 0.86rem;
  color: var(--silver);
  line-height: 1.5;
}
.catalog-link {
  display: inline-block;
  margin-top: 14px;
  font-family: var(--label);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--flame);
  text-decoration: none;
}
.catalog-link:hover { color: var(--cream); }

@media (max-width: 900px) {
  .reel-grid { grid-template-columns: repeat(2, 1fr); }
  .catalog-grid { grid-template-columns: 1fr; }
}

/* ---------- Clientes ---------- */
.rating-stat {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 56px;
}
.rating-stars {
  font-size: 1.4rem;
  letter-spacing: 0.1em;
  color: var(--flame);
}
.rating-copy {
  font-family: var(--label);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--silver);
}
.review-shots {
  display: flex;
  align-items: flex-start;
  gap: 28px;
  overflow-x: auto;
  padding-bottom: 18px;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
}
.review-shot {
  flex: 0 0 auto;
  width: 380px;
  margin: 0;
  scroll-snap-align: start;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 20px 50px -25px rgba(0,0,0,0.6);
  line-height: 0;
  transition: transform 0.3s ease;
}
.review-shot:hover { transform: translateY(-4px); }
.review-shot img { width: 100%; height: auto; display: block; }
.review-shots::-webkit-scrollbar { height: 6px; }
.review-shots::-webkit-scrollbar-thumb { background: var(--line); border-radius: 999px; }
.review-hint {
  margin: 18px 0 0;
  font-family: var(--label);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--silver);
}
@media (max-width: 560px) {
  .review-shot { width: 82vw; }
}

/* ---------- Sobre mí ---------- */
.about { background: var(--espresso-2); }
.about-wrap {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 64px;
  align-items: center;
}
.about-media {
  border-radius: 58% 42% 52% 48% / 46% 50% 50% 54%;
  overflow: hidden;
  box-shadow: 0 40px 100px -35px rgba(0,0,0,0.6);
}
.about-media img { width: 100%; height: 100%; object-fit: cover; }
.about-copy p {
  color: var(--cream-dim);
  font-size: 1.02rem;
  margin: 0 0 18px;
}
.about-copy .section-title { margin-bottom: 26px; }
@media (max-width: 900px) {
  .about-wrap { grid-template-columns: 1fr; gap: 40px; }
  .about-media { max-width: 340px; margin: 0 auto; }
}

/* ---------- Proceso ---------- */
.menu-steps {
  position: relative;
  display: flex;
  gap: 56px;
  padding-top: 8px;
}
.menu-steps::before {
  content: "";
  position: absolute;
  top: 36px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--line);
}
.menu-steps::after {
  content: "";
  position: absolute;
  top: 36px;
  left: 0;
  height: 1px;
  width: 100%;
  background: linear-gradient(to right, var(--flame), var(--ember), #d99a2b);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.4s cubic-bezier(.2,.7,.2,1) 0.2s;
}
.menu-steps.is-visible::after { transform: scaleX(1); }

.menu-step { flex: 1; min-width: 0; }
.step-icon {
  display: block;
  width: 22px; height: 22px;
  margin-bottom: 30px;
  border-radius: 62% 38% 55% 45% / 48% 45% 55% 52%;
  background: var(--flame);
  box-shadow: 0 0 0 6px var(--espresso);
  position: relative;
  z-index: 1;
}
.menu-step:nth-child(2) .step-icon {
  border-radius: 42% 58% 38% 62% / 60% 40% 60% 40%;
  background: var(--ember);
}
.menu-step:nth-child(3) .step-icon {
  border-radius: 55% 45% 62% 38% / 40% 55% 45% 60%;
  background: #d99a2b;
}
.menu-step .course {
  font-family: var(--label);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--flame);
}
.menu-step:nth-child(2) .course { color: var(--ember); }
.menu-step:nth-child(3) .course { color: #d99a2b; }
.menu-step h4 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.4rem;
  margin: 14px 0 12px;
}
.menu-step p { color: var(--cream-dim); margin: 0; font-size: 0.94rem; max-width: 320px; }
@media (max-width: 760px) {
  .menu-steps { flex-direction: column; gap: 48px; }
  .menu-steps::before, .menu-steps::after { display: none; }
  .menu-step p { max-width: none; }
}

/* ---------- Clases y Mentorías ---------- */
.classes-sub {
  color: var(--cream-dim);
  font-size: 1.02rem;
  margin: 20px 0 32px;
  max-width: 560px;
}
.students { margin-top: 72px; }
.students-label {
  font-family: var(--display);
  font-style: italic;
  font-weight: 500;
  font-size: 1.3rem;
  color: var(--cream);
  margin: 0 0 28px;
}

/* ---------- CTA final ---------- */
.cta-final {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 170px 0;
  isolation: isolate;
}
.cta-media {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.cta-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(1.1);
  transform: scale(1.02);
  transition: transform 8s ease;
}
.cta-final.is-visible .cta-media img { transform: scale(1.14); }
.cta-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 140% at 20% 0%, rgba(198,81,11,0.55) 0%, rgba(27,24,19,0.88) 55%),
    linear-gradient(to top, var(--espresso) 0%, rgba(27,24,19,0.55) 40%, rgba(27,24,19,0.55) 100%);
}
.cta-final .eyebrow { justify-content: center; }
.cta-final .eyebrow::before { display: none; }
.cta-title {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(2rem, 4.6vw, 3.4rem);
  margin: 20px auto 34px;
  max-width: 780px;
  line-height: 1.12;
}
.cta-title em { font-style: italic; color: var(--flame); }

/* ---------- Footer ---------- */
footer {
  padding: 72px 0 40px;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 16px;
}
.footer-mark {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  flex-shrink: 0;
}
.footer-word { display: flex; flex-direction: column; }
.footer-word-name {
  font-family: var(--display);
  font-style: italic;
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--cream);
}
.footer-word-tag {
  font-family: var(--label);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--flame);
  margin-top: 4px;
}
.footer-rule {
  height: 1px;
  margin: 36px 0 28px;
  background: linear-gradient(to right, var(--flame), var(--ember) 45%, #d99a2b 70%, transparent);
  opacity: 0.55;
}
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  font-family: var(--label);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--silver);
}
.footer-bottom a { color: var(--cream-dim); text-decoration: none; transition: color 0.2s ease; }
.footer-bottom a:hover { color: var(--flame); }
.powered-by {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  opacity: 0.75;
  transition: opacity 0.2s ease;
}
.powered-by:hover { opacity: 1; }
.powered-by span {
  font-family: var(--label);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--silver);
}
.powered-by img { height: 14px; width: auto; }
@media (max-width: 600px) {
  .footer-top { flex-direction: column; align-items: flex-start; }
}

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
