/* MarceTuCoach landing — base styles */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: 'Poppins', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: #0a0c10;
  color: #f1f3f7;
}

body {
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 24px;
}

#root { width: 100%; display: flex; justify-content: center; }

/* hide scrollbar inside the device but keep functional */
.mtc-scroll::-webkit-scrollbar { width: 0; }
.mtc-scroll { scrollbar-width: none; }

/* root tokens — overridden by tweaks */
:root {
  --mtc-accent: #0072ef;
  --mtc-accent-soft: rgba(0, 114, 239, 0.12);
  --mtc-accent-line: rgba(0, 114, 239, 0.35);
  --mtc-bg: #07090d;
  --mtc-bg-elev: #10131a;
  --mtc-bg-elev-2: #161a23;
  --mtc-border: #1d2230;
  --mtc-border-strong: #2a3142;
  --mtc-text: #f1f3f7;
  --mtc-text-dim: #9aa3b2;
  --mtc-text-mute: #626c7c;
  --mtc-section-pad: 64px;
  --mtc-card-pad: 22px;
}

@media (max-width: 640px) {
  :root { --mtc-section-pad: 44px; }
}

.mtc-app { background: var(--mtc-bg); color: var(--mtc-text); }
.mtc-app a { color: inherit; text-decoration: none; }
.mtc-app p { margin: 0; color: var(--mtc-text-dim); line-height: 1.7; }
.mtc-app h1, .mtc-app h2, .mtc-app h3 { margin: 0; letter-spacing: -0.02em; color: var(--mtc-text); }
.mtc-app strong { color: var(--mtc-text); font-weight: 600; }

/* page-level helpers */
.mtc-wrap { padding: 0 22px; }
.mtc-section { padding: var(--mtc-section-pad) 0; border-top: 1px solid var(--mtc-border); }
.mtc-section:first-of-type { border-top: 0; }

.mtc-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--mtc-text-mute);
}
.mtc-eyebrow .num {
  color: var(--mtc-accent);
  font-variant-numeric: tabular-nums;
}
.mtc-eyebrow .line {
  width: 22px; height: 1px; background: var(--mtc-border-strong);
}

.mtc-h1 { font-size: 32px; line-height: 1.12; font-weight: 600; text-wrap: balance; }
.mtc-h2 { font-size: 24px; line-height: 1.18; font-weight: 600; text-wrap: balance; }
.mtc-h3 { font-size: 17px; line-height: 1.3; font-weight: 600; }
.mtc-lead { font-size: 16.5px; line-height: 1.6; color: var(--mtc-text-dim); }
.mtc-body { font-size: 15.5px; line-height: 1.7; color: var(--mtc-text-dim); }
.mtc-small { font-size: 13px; line-height: 1.55; color: var(--mtc-text-mute); }

/* buttons */
.mtc-btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; padding: 15px 18px; border-radius: 12px;
  font-family: inherit; font-size: 14.5px; font-weight: 600;
  border: 0; cursor: pointer; width: 100%;
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
  letter-spacing: -0.01em;
}
.mtc-btn:active { transform: scale(0.985); }
.mtc-btn-primary {
  background: var(--mtc-accent); color: #fff;
  box-shadow: 0 8px 24px -8px rgba(0, 114, 239, 0.55), inset 0 1px 0 rgba(255,255,255,0.18);
}
.mtc-btn-primary:hover { background: #1a83f5; }
.mtc-btn-ghost {
  background: transparent; color: var(--mtc-text);
  border: 1px solid var(--mtc-border-strong);
}
.mtc-btn-ghost:hover { border-color: #3a4358; background: rgba(255,255,255,0.02); }
.mtc-btn-link {
  background: transparent; color: var(--mtc-text); padding: 12px 0;
  border-bottom: 1px solid var(--mtc-border-strong); border-radius: 0;
  width: auto;
}

/* card */
.mtc-card {
  background: var(--mtc-bg-elev); border: 1px solid var(--mtc-border);
  border-radius: 14px; padding: var(--mtc-card-pad);
}
.mtc-card-tight { padding: 16px; }

/* checks and crosses */
.mtc-tick {
  flex: 0 0 22px; width: 22px; height: 22px; border-radius: 7px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--mtc-accent-soft); color: var(--mtc-accent);
  margin-top: 1px;
}
.mtc-cross {
  flex: 0 0 22px; width: 22px; height: 22px; border-radius: 7px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(160, 170, 185, 0.08); color: #6b7585;
  margin-top: 1px;
}

/* Authority section — quieter divider (sin "líneas moradas") */
[data-section="authority"] {
  border-top: 0;
}
[data-section="authority"] .mtc-eyebrow .line {
  display: none;
}
[data-section="authority"] .mtc-eyebrow {
  gap: 10px;
}
[data-section="authority"] .mtc-eyebrow .num {
  color: var(--mtc-text-mute);
  font-weight: 600;
}

/* Sticky CTA — barra flotante anclada abajo dentro del frame */
.mtc-sticky {
  left: 0; right: 0;
  padding: 18px 16px 18px;
  background:
    linear-gradient(to top,
      var(--mtc-bg) 0%,
      var(--mtc-bg) 45%,
      rgba(7, 9, 13, 0.85) 75%,
      rgba(7, 9, 13, 0) 100%);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  z-index: 30;
  pointer-events: none;
  animation: mtc-sticky-in 0.28s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.mtc-sticky > * { pointer-events: auto; }
.mtc-sticky .mtc-btn {
  padding: 13px 18px;
  font-size: 14px;
  border-radius: 14px;
  box-shadow:
    0 10px 28px -10px rgba(0, 114, 239, 0.55),
    0 2px 8px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.18) !important;
}
@keyframes mtc-sticky-in {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Transformations carousel */
.mtc-carousel-track {
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  gap: 14px;
  padding-bottom: 4px; /* room for snap shadow */
  margin-right: -22px; /* let last card show peek of edge */
  scroll-padding-right: 22px;
}
.mtc-carousel-track::-webkit-scrollbar { display: none; }

.mtc-carousel-slide {
  flex: 0 0 calc(100% - 22px); /* one card per view; small peek of next card */
  min-width: 0;
  scroll-snap-align: start;
}

.mtc-tx-card {
  background: var(--mtc-bg-elev);
  border: 1px solid var(--mtc-border);
  border-radius: 18px;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.mtc-tx-tag {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mtc-text-mute);
  padding: 16px 18px 10px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.mtc-tx-tag::before {
  content: "";
  width: 5px; height: 5px;
  border-radius: 99px;
  background: var(--mtc-accent);
  opacity: 0.7;
}

.mtc-tx-photo {
  position: relative;
  aspect-ratio: 4 / 5;
  background:
    radial-gradient(circle at 50% 40%, #131722 0%, #0a0d13 70%);
  overflow: hidden;
  border-top: 1px solid var(--mtc-border);
  border-bottom: 1px solid var(--mtc-border);
}

.mtc-tx-meta {
  padding: 16px 18px 18px;
  display: grid;
  gap: 6px;
}
.mtc-tx-line {
  font-size: 14px;
  line-height: 1.45;
  color: var(--mtc-text);
  margin: 0;
  letter-spacing: -0.005em;
}
.mtc-tx-duration {
  font-size: 11.5px;
  color: var(--mtc-text-mute);
  margin: 0;
  letter-spacing: 0.02em;
}

/* dots */
.mtc-carousel-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-top: 18px;
}
.mtc-dot {
  width: 6px; height: 6px;
  padding: 0;
  border-radius: 99px;
  border: 0;
  background: var(--mtc-border-strong);
  cursor: pointer;
  transition: background .25s ease, width .25s ease;
}
.mtc-dot.active {
  background: var(--mtc-accent);
  width: 22px;
}

/* faq */
.mtc-faq-item {
  border-bottom: 1px solid var(--mtc-border);
}
.mtc-faq-q {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; padding: 18px 0; background: transparent; border: 0;
  font-family: inherit; font-size: 14.5px; font-weight: 500; color: var(--mtc-text);
  cursor: pointer; text-align: left; letter-spacing: -0.005em;
}
.mtc-faq-a {
  font-size: 13.5px; line-height: 1.65; color: var(--mtc-text-dim);
  padding: 0 28px 18px 0;
}
.mtc-chev {
  width: 22px; height: 22px; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.04); color: var(--mtc-text-dim);
  transition: transform .25s ease, background .2s ease, color .2s ease;
  flex: 0 0 22px;
}
.mtc-faq-item.open .mtc-chev { transform: rotate(45deg); background: var(--mtc-accent-soft); color: var(--mtc-accent); }

/* modal */
.mtc-modal-backdrop {
  position: absolute; inset: 0; background: rgba(3,5,9,0.78);
  backdrop-filter: blur(6px);
  z-index: 100;
  display: flex; align-items: flex-end; justify-content: center;
  animation: mtcfade .2s ease;
}
@keyframes mtcfade { from { opacity: 0; } to { opacity: 1; } }
@keyframes mtcslide { from { transform: translateY(40px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.mtc-modal {
  width: 100%; background: var(--mtc-bg-elev);
  border-top-left-radius: 22px; border-top-right-radius: 22px;
  padding: 22px 22px 28px; border-top: 1px solid var(--mtc-border);
  animation: mtcslide .28s cubic-bezier(0.2, 0.8, 0.2, 1);
  max-height: 92%; overflow: auto;
}
.mtc-grab { width: 36px; height: 4px; border-radius: 99px; background: #2a3142; margin: 0 auto 14px; }
.mtc-input, .mtc-textarea {
  width: 100%; background: var(--mtc-bg); border: 1px solid var(--mtc-border);
  color: var(--mtc-text); padding: 12px 14px; border-radius: 10px;
  font-family: inherit; font-size: 14px;
  outline: none;
}
.mtc-input:focus, .mtc-textarea:focus { border-color: var(--mtc-accent); }
.mtc-textarea { resize: none; min-height: 80px; }
.mtc-label { display: block; font-size: 12px; font-weight: 500; color: var(--mtc-text-dim); margin-bottom: 6px; letter-spacing: 0.01em; }

/* before/after slider — taller portrait so the torso lands big and clear */
.mtc-ba {
  position: relative; aspect-ratio: 3/5; border-radius: 12px; overflow: hidden;
  min-height: 440px;
  user-select: none; touch-action: none; background: #0c0f15;
  border: 1px solid var(--mtc-border);
}
.mtc-ba-img { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.mtc-ba-handle {
  position: absolute; top: 0; bottom: 0; width: 2px; background: #fff;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.2);
}
.mtc-ba-handle::after {
  content: ''; position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 36px; height: 36px; border-radius: 999px;
  background: #fff; box-shadow: 0 4px 14px rgba(0,0,0,0.35);
}
.mtc-ba-arrows {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%); color: #07090d; font-size: 14px; font-weight: 700;
  pointer-events: none; letter-spacing: -0.08em;
}
.mtc-ba-tag {
  position: absolute; bottom: 12px; padding: 6px 12px; border-radius: 99px;
  font-size: 10.5px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  background: rgba(0,0,0,0.45); backdrop-filter: blur(4px);
}

/* radial bg behind hero */
.mtc-hero {
  position: relative; overflow: hidden;
  padding: 32px 0 48px;
}
.mtc-hero::before {
  content: ''; position: absolute; top: -120px; left: 50%;
  transform: translateX(-50%);
  width: 420px; height: 420px; border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 114, 239, 0.18), rgba(0, 114, 239, 0) 60%);
  pointer-events: none;
}

/* density */
.mtc-app[data-density="compact"] { --mtc-section-pad: 44px; --mtc-card-pad: 16px; }
.mtc-app[data-density="airy"]    { --mtc-section-pad: 72px; --mtc-card-pad: 24px; }
