/* ═══════════════════════════════════════════════════
   MIMISSFITT — Morpho Elite · Anti-aesthetic Edition
   ═══════════════════════════════════════════════════ */

:root {
  --blue:   #1A8FE3;
  --dark:   #0A0A0A;
  --black:  #000;
  --white:  #F8F8F6;
  --cream:  #F2EDE8;
  --muted:  rgba(248,248,246,0.55);
  --wa:     #25D366;

  --serif:  'Noto Serif', Georgia, serif;
  --sans:   'Inter', system-ui, sans-serif;

  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-expo:  cubic-bezier(0.7,  0, 0.84, 0);
}

/* ── RESET ─────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scrollbar-gutter: stable; }
body {
  font-family: var(--sans);
  background: var(--dark);
  color: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.loading { overflow: hidden; }
img  { display: block; max-width: 100%; }
a    { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

/* ── INTRO CINEMATIC ────────────────────────────── */
.intro {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  animation: introOut 0.6s var(--ease-in-expo) 1.8s both;
}
.intro__word {
  font-family: var(--serif);
  font-weight: 900;
  font-size: clamp(2rem, 10vw, 7rem);
  letter-spacing: -0.04em;
  color: var(--white);
  opacity: 0;
  animation: introWord 0.9s var(--ease-out-expo) 0.3s both;
}
@keyframes introWord {
  from { opacity: 0; transform: scale(0.88) translateY(16px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}
@keyframes introOut {
  to { opacity: 0; transform: scale(1.06); }
}

/* ── GRAIN TEXTURE ──────────────────────────────── */
.grain {
  position: fixed;
  inset: -50%;
  width: 200%;
  height: 200%;
  pointer-events: none;
  z-index: 900;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grainShift 0.12s steps(1) infinite;
}
@keyframes grainShift {
  0%  { transform: translate(0, 0); }
  20% { transform: translate(-3%, -3%); }
  40% { transform: translate(3%, 1%); }
  60% { transform: translate(-1%, 3%); }
  80% { transform: translate(2%, -2%); }
  100%{ transform: translate(0, 0); }
}

/* ── HERO — SPLIT LAYOUT (portrait video) ──────── */
.hero {
  position: relative;
  width: 100%;
  height: 100svh;
  min-height: 640px;
  display: grid;
  /* centro = ancho natural del vídeo portrait a altura 100svh = 100svh * 9/16 */
  grid-template-columns: minmax(0, 1fr) calc(100svh * 9 / 16) minmax(0, 1fr);
  background: var(--dark);
  overflow: hidden;
}

/* ── Columna izquierda ── */
.hero__left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(32px, 4vw, 72px);
  gap: 28px;
  position: relative;
  z-index: 10;
  animation: heroIn 1s var(--ease-out-expo) 2s both;
}
@keyframes heroIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero__top {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.hero__brand {
  font-family: var(--serif);
  font-weight: 900;
  font-size: clamp(0.9rem, 1.5vw, 1.1rem);
  letter-spacing: 0.18em;
  color: var(--blue);
  text-transform: uppercase;
}
.hero__tag {
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  color: var(--muted);
  text-transform: uppercase;
}

.hero__headline-wrap { overflow: visible; }
.hero__headline {
  font-family: var(--serif);
  font-weight: 900;
  line-height: 0.92;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  color: var(--white);
}
.line {
  display: block;
  font-size: clamp(2.5rem, 5.5vw, 5.5rem);
}
.line--2 { color: var(--blue); }
.line--3 { font-size: clamp(2rem, 5.5vw, 5rem); opacity: 0.9; }

.hero__cta-wrap {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
}
.hero__promise {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.5;
}
.hero__promise em { color: var(--white); font-style: normal; }

/* ── Columna central: vídeo portrait ── */
.hero__video-wrap {
  position: relative;
  height: 100%;
  overflow: hidden;
}
.hero__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.05) saturate(0.9);
  display: block;
}
.hero__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, rgba(10,10,10,0.4) 0%, transparent 20%, transparent 80%, rgba(10,10,10,0.4) 100%),
    linear-gradient(to top, rgba(10,10,10,0.5) 0%, transparent 35%);
  pointer-events: none;
}

/* ── Columna derecha ── */
.hero__right {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(32px, 4vw, 72px);
  position: relative;
  z-index: 10;
  animation: heroIn 1s var(--ease-out-expo) 2.2s both;
}

.hero__r-label {
  font-family: var(--serif);
  font-size: clamp(1.1rem, 2vw, 1.6rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
  text-transform: uppercase;
}
.hero__r-sub {
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  color: var(--blue);
  text-transform: uppercase;
  margin-top: 6px;
}

.hero__pillars {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.hero__pillars li {
  font-size: clamp(0.75rem, 1.2vw, 0.9rem);
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding-left: 14px;
  border-left: 2px solid var(--blue);
}

.hero__r-handle {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(0.9rem, 1.5vw, 1.1rem);
  color: var(--white);
  letter-spacing: 0.04em;
}
.hero__r-networks {
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  color: var(--muted);
  text-transform: uppercase;
  margin-top: 4px;
}

.hero__scroll {
  position: absolute;
  bottom: 32px;
  right: clamp(24px, 6vw, 80px);
  z-index: 10;
  font-size: 1.2rem;
  color: var(--muted);
  animation: bounce 2s ease-in-out infinite;
}
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

/* ── BOTÓN HERO ─────────────────────────────────── */
.btn-hero {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  border: 1.5px solid var(--white);
  color: var(--white);
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 14px 24px;
  text-transform: uppercase;
  transition: background 0.25s, color 0.25s, border-color 0.25s;
}
.btn-hero span  { opacity: 0.7; }
.btn-hero strong { font-weight: 800; }
.btn-hero:hover {
  background: var(--blue);
  border-color: var(--blue);
  color: var(--white);
}

/* ── SECCIÓN BASE ───────────────────────────────── */
.section { overflow: hidden; }

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 clamp(24px, 6vw, 80px);
}

.eyebrow {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 20px;
}
.eyebrow--light { color: rgba(248,248,246,0.45); }
.eyebrow--blue  { color: var(--blue); }

/* ── MIRIAM / HISTORIA ──────────────────────────── */
.s-miriam {
  background: var(--cream);
  color: var(--dark);
  position: relative;
  padding: clamp(80px, 12vh, 140px) 0;
}
.s-miriam__deco {
  position: absolute;
  right: -0.15em;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--serif);
  font-weight: 900;
  font-size: clamp(18rem, 30vw, 40rem);
  line-height: 1;
  letter-spacing: -0.05em;
  color: rgba(0,0,0,0.04);
  pointer-events: none;
  user-select: none;
  z-index: 0;
}
.s-miriam__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 70vh;
}
.s-miriam__img-col { overflow: hidden; }
.s-miriam__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}
.s-miriam__text-col {
  padding: clamp(48px, 8vw, 96px) clamp(32px, 5vw, 72px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
}
.s-miriam__h2 {
  font-family: var(--serif);
  font-weight: 900;
  font-size: clamp(3rem, 6vw, 5.5rem);
  line-height: 1.0;
  letter-spacing: -0.04em;
  color: var(--dark);
}
.s-miriam__h2 em {
  font-style: italic;
  color: var(--blue);
}
.s-miriam__text-col p {
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(10,10,10,0.7);
}
.s-miriam__text-col strong { color: var(--dark); }
.manifesto {
  margin-top: 12px;
  padding-left: 20px;
  border-left: 2px solid var(--blue);
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  line-height: 1.55;
  color: var(--dark);
}
.manifesto strong { font-style: normal; }

/* ── MÉTODO ─────────────────────────────────────── */
.s-metodo {
  background: var(--dark);
  padding: clamp(80px, 12vh, 140px) clamp(24px, 6vw, 80px);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(48px, 8vw, 120px);
  align-items: start;
}
.s-metodo__header {
  position: sticky;
  top: clamp(48px, 8vh, 80px);
}
.s-metodo__title {
  font-family: var(--serif);
  font-weight: 900;
  font-size: clamp(2.5rem, 4.5vw, 4.5rem);
  line-height: 1.0;
  letter-spacing: -0.04em;
  color: var(--white);
  max-width: 10ch;
}
.s-metodo__list {
  display: flex;
  flex-direction: column;
}
.s-metodo__item {
  display: flex;
  gap: 32px;
  align-items: flex-start;
  padding: clamp(32px, 5vh, 56px) 0;
  border-top: 1px solid rgba(248,248,246,0.1);
}
.s-metodo__item:last-child { border-bottom: 1px solid rgba(248,248,246,0.1); }
.s-metodo__n {
  font-family: var(--serif);
  font-weight: 900;
  font-size: clamp(3.5rem, 7vw, 6rem);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(248,248,246,0.2);
  flex-shrink: 0;
  width: 80px;
  transition: color 0.3s, -webkit-text-stroke 0.3s;
}
.s-metodo__item:hover .s-metodo__n {
  color: var(--blue);
  -webkit-text-stroke: 1px var(--blue);
}
.s-metodo__content h3 {
  font-family: var(--serif);
  font-size: clamp(1.3rem, 2.2vw, 1.8rem);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 12px;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.s-metodo__content p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--muted);
}

/* ── MANIFIESTO ─────────────────────────────────── */
.s-manifiesto {
  background: var(--black);
  padding: clamp(80px, 12vh, 140px) clamp(24px, 6vw, 80px);
  max-width: 100%;
}
.s-manifiesto__inner { max-width: 900px; margin: 0 auto; }
.s-manifiesto__list {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.s-manifiesto__item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 5vw, 80px);
  align-items: start;
  padding: clamp(28px, 4vh, 48px) 0;
  border-top: 1px solid rgba(248,248,246,0.08);
}
.s-manifiesto__item:last-child { border-bottom: 1px solid rgba(248,248,246,0.08); }
.s-manifiesto__tag {
  font-family: var(--serif);
  font-size: clamp(1.1rem, 2vw, 1.6rem);
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.s-manifiesto__item p {
  font-size: 0.9rem;
  line-height: 1.75;
  color: var(--muted);
  padding-top: 4px;
}

/* ── PROCESO ────────────────────────────────────── */
.s-proceso {
  background: var(--cream);
  color: var(--dark);
  padding: clamp(80px, 12vh, 140px) 0;
}
.s-proceso__title {
  font-family: var(--serif);
  font-weight: 900;
  font-size: clamp(2.5rem, 5vw, 5rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
  margin-bottom: clamp(48px, 8vh, 96px);
  color: var(--dark);
}
.s-proceso__title em { font-style: italic; color: var(--blue); }
.s-proceso__steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
}
.s-proceso__steps li {
  background: var(--dark);
  color: var(--white);
  padding: clamp(28px, 4vw, 48px);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.s-proceso__steps li strong {
  font-family: var(--serif);
  font-size: clamp(2.5rem, 4vw, 4rem);
  font-weight: 900;
  color: var(--blue);
  line-height: 1;
  letter-spacing: -0.04em;
}
.s-proceso__steps li span {
  font-size: clamp(0.9rem, 1.2vw, 1.05rem);
  font-weight: 600;
  color: var(--white);
  line-height: 1.3;
}
.s-proceso__steps li span em { font-style: normal; color: var(--blue); }
.s-proceso__steps li p {
  font-size: 0.85rem;
  color: rgba(248,248,246,0.5);
  line-height: 1.6;
}

/* ── CTA FINAL ──────────────────────────────────── */
.s-cta {
  background: var(--blue);
  padding: clamp(96px, 14vh, 160px) clamp(24px, 6vw, 80px);
}
.s-cta__inner {
  max-width: 800px;
}
.s-cta__title {
  font-family: var(--serif);
  font-weight: 900;
  font-size: clamp(4rem, 12vw, 10rem);
  line-height: 0.92;
  letter-spacing: -0.05em;
  color: var(--white);
  margin-bottom: clamp(24px, 4vh, 48px);
  text-transform: uppercase;
}
.s-cta__sub {
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.75);
  max-width: 480px;
  margin-bottom: clamp(32px, 6vh, 56px);
}
.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--dark);
  color: var(--white);
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 18px 32px;
  text-transform: uppercase;
  transition: background 0.2s, color 0.2s;
}
.btn-cta:hover { background: var(--white); color: var(--blue); }

/* ── FOOTER ─────────────────────────────────────── */
.footer {
  background: var(--dark);
  border-top: 1px solid rgba(248,248,246,0.08);
  padding: clamp(40px, 6vh, 64px) clamp(24px, 6vw, 80px);
}
.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.footer__logo { width: 100px; border-radius: 3px; }
.footer__social {
  display: flex;
  gap: 32px;
}
.footer__social a {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--muted);
  transition: color 0.2s;
}
.footer__social a:hover { color: var(--white); }
.footer__form-link {
  font-size: 0.78rem;
  color: rgba(248,248,246,0.30);
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: color 0.2s;
  border-bottom: 1px solid rgba(248,248,246,0.12);
  padding-bottom: 2px;
}
.footer__form-link:hover { color: rgba(248,248,246,0.65); }
.footer__copy {
  font-size: 0.75rem;
  color: rgba(248,248,246,0.25);
  letter-spacing: 0.06em;
}

/* ── WHATSAPP FLOTANTE ──────────────────────────── */
.wa-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 500;
  width: 54px;
  height: 54px;
  background: var(--wa);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 24px rgba(37,211,102,0.35);
  transition: transform 0.2s var(--ease-out-expo), box-shadow 0.2s;
  animation: waPulse 3s ease-in-out infinite;
}
.wa-float:hover {
  transform: scale(1.08);
  animation: none;
  box-shadow: 0 8px 32px rgba(37,211,102,0.5);
}
@keyframes waPulse {
  0%, 100% { box-shadow: 0 4px 24px rgba(37,211,102,0.35); }
  50%       { box-shadow: 0 4px 40px rgba(37,211,102,0.65); }
}

/* ── SCROLL REVEAL ──────────────────────────────── */
.reveal-section {
  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity  0.9s var(--ease-out-expo),
    transform 0.9s var(--ease-out-expo);
}
.reveal-section.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ══════════════════════════════════════════════════
   RESPONSIVE MOBILE
══════════════════════════════════════════════════ */
@media (max-width: 900px) {

  /* Hero: columna derecha oculta, video ocupa todo */
  .hero {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr auto;
  }
  .hero__right { display: none; }
  .hero__video-wrap {
    position: absolute;
    inset: 0;
  }
  .hero__video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
  }
  .hero__left {
    position: relative;
    z-index: 10;
    justify-content: flex-end;
    padding-bottom: clamp(48px, 10vh, 96px);
    background: transparent;
  }
  .hero__left::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10,10,10,0.92) 0%, rgba(10,10,10,0.3) 50%, transparent 100%);
    pointer-events: none;
  }

  /* Método: stack */
  .s-metodo {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .s-metodo__header { position: static; }
  .s-metodo__n { width: 60px; }

  /* Historia: stack */
  .s-miriam__grid { grid-template-columns: 1fr; }
  .s-miriam__img-col { aspect-ratio: 3 / 4; }
  .s-miriam__img  {
    height: 100%;
    object-position: center top;
  }
  .s-miriam__deco { display: none; }

  /* Manifiesto: stack */
  .s-manifiesto__item { grid-template-columns: 1fr; gap: 8px; }

  /* Proceso: 2x2 */
  .s-proceso__steps { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 540px) {
  /* Proceso: 1 col */
  .s-proceso__steps { grid-template-columns: 1fr; }

  .line { font-size: clamp(2.8rem, 16vw, 5rem); }
  .line--3 { font-size: clamp(1.6rem, 10vw, 3rem); }

  .s-cta__title { font-size: clamp(3.5rem, 18vw, 6rem); }

  .footer__inner { flex-direction: column; align-items: flex-start; }
}
