:root{
  --bg0:#060807;
  --bg1:#0b0f0d;

  --card:rgba(18,26,22,.72);
  --card2:rgba(18,26,22,.55);

  --stroke:rgba(255,255,255,.10);
  --stroke2:rgba(255,255,255,.18);

  --text:#eaf3ee;
  --muted:rgba(234,243,238,.70);

  --accent:#8fd3a8;
  --accent2:#b8f0cf;

  /* medidor (sutil granate) */
  --meter:#6f3a3a;

  --danger:#ff6b6b;
  --shadow:0 24px 70px rgba(0,0,0,.55);
  --radius:24px;

  /* layout fijo topbar */
  --topbar-gap: 14px;
  --topbar-h: 74px; /* altura estimada desktop */
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
html{ color-scheme: dark; scroll-behavior:smooth; }

body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  color:var(--text);
  overflow-x:hidden;
  background:
    radial-gradient(1100px 800px at 18% 6%, rgba(143,211,168,.08), transparent 58%),
    radial-gradient(900px 650px at 88% 14%, rgba(184,240,207,.06), transparent 62%),
    radial-gradient(1200px 900px at 50% 110%, rgba(60,120,95,.06), transparent 60%),
    linear-gradient(180deg, var(--bg0), var(--bg1));
}

a{ color:inherit; text-decoration:none; }
strong{ font-weight:650; }
.muted{ color:var(--muted); }
.accent{ color:var(--accent2); }
.note{ font-size:12px; color:var(--muted); margin-top:14px; line-height:1.35; }

.bg{ position:fixed; inset:0; pointer-events:none; z-index:-1; }
.bg__vignette{
  position:absolute; inset:-20%;
  background: radial-gradient(circle at 50% 30%, transparent 35%, rgba(0,0,0,.55) 75%);
  filter: blur(10px);
}
.bg__grain{
  position:absolute; inset:0;
  opacity:.07;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='.35'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

.app{ min-height:100%; }

.container{
  width:min(1100px, 92vw);
  margin:0 auto;
  /* antes era 92px fijo, ahora compensa topbar (y safe-area) */
  padding: calc(var(--topbar-h) + var(--topbar-gap) + env(safe-area-inset-top)) 0 80px;
}

/* =======================
   TOPBAR
   ======================= */
.topbar{
  position:fixed;
  top:14px;
  left:50%;
  transform:translateX(-50%);
  width:min(1100px, 92vw);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:10px 14px;
  background: rgba(10,14,12,.55);
  border:1px solid var(--stroke);
  border-radius: 999px;
  backdrop-filter: blur(10px);
  z-index:50;
}

.topbar__left{ display:flex; align-items:center; gap:10px; }
.brand__mark{
  width:30px; height:30px;
  border-radius:999px;
  border:1px solid var(--stroke);
  background:rgba(255,255,255,.03);
  overflow:hidden;
  flex:0 0 auto;
}
.brand__mark img{ width:100%; height:100%; object-fit:cover; display:block; }
.brand__name{ letter-spacing:.12em; font-size:12px; font-weight:700; color:var(--accent2); }
.topbar__right{ display:flex; align-items:center; gap:10px; flex-wrap:wrap; }

/* =======================
   SECTION / CARDS
   ======================= */
.section{ margin-top:30px; }
.section__head{ padding:0 8px 12px; }
.section__head h2{ margin:0 0 8px; font-size:22px; letter-spacing:.02em; }
.section__head p{ margin:0; line-height:1.45; }

.card{
  position:relative;
  background: linear-gradient(180deg, rgba(18,26,22,.78), rgba(18,26,22,.58));
  border:1px solid var(--stroke);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow:hidden;
}

/* =======================
   HERO
   ======================= */
.hero{
  padding:34px 26px;
  min-height: 520px;
  display:flex;
  align-items:center;
}

.hero__wm{
  position:absolute;
  inset:0;
  pointer-events:none;
  z-index:0;
}

/* watermark */
.hero__wm::after{
  content:"";
  position:absolute;
  inset:-20%;
  background-image:url("images/logo/logo-easeforms.png");
  background-repeat:no-repeat;
  background-size:min(980px, 120vw);
  background-position:115% 45%;
  opacity:.08;
  filter: blur(2px);
  transform: rotate(-6deg);
  mix-blend-mode: soft-light;

  -webkit-mask-image: radial-gradient(circle, rgba(0,0,0,1) 58%, rgba(0,0,0,0) 68%);
  mask-image: radial-gradient(circle, rgba(0,0,0,1) 58%, rgba(0,0,0,0) 68%);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: 115% 45%;
  mask-position: 115% 45%;
  -webkit-mask-size: min(980px, 120vw);
  mask-size: min(980px, 120vw);
}

.hero__inner{
  position:relative;
  z-index:1;
  width:100%;
  display:flex;
  flex-direction:column;
  align-items:center;
  text-align:center;
}

.hero__logo{
  width:108px; height:108px;
  border-radius:999px;
  border: 1px solid rgba(255,255,255,.25);
  background: transparent;
  display:grid;
  place-items:center;
  box-shadow: 0 18px 60px rgba(0,0,0,.45);
  overflow:hidden;
}
.hero__logoImg{
  width:86%;
  height:86%;
  object-fit:contain;
  display:block;
}

/* RUÍDO */
.noise{
  margin-top:16px;
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:10px 14px;
  border-radius:999px;
  border:1px solid var(--stroke);
  background: rgba(0,0,0,.15);
  color:var(--text);
  cursor:pointer;
  user-select:none;
  position:relative;
}
.noise:hover{ border-color:var(--stroke2); }
.noise::after{
  content:"";
  position:absolute;
  inset:-2px;
  border-radius:999px;
  pointer-events:none;
  opacity:0;
  background: radial-gradient(120px 60px at 18% 50%, rgba(255,107,107,.18), transparent 65%);
}
.noise.is-active::after{
  opacity:1;
  animation: flicker 1.25s ease-in-out infinite;
}
@keyframes flicker{
  0%,100%{ opacity:.22; filter: blur(0px); }
  40%{ opacity:.08; filter: blur(1px); }
  60%{ opacity:.26; filter: blur(0px); }
}
.noise__dot{
  width:10px; height:10px; border-radius:999px;
  background: var(--danger);
  box-shadow: 0 0 0 0 rgba(255,107,107,.45);
  animation: pulseRed 1.45s ease-in-out infinite;
}
.noise__text{ display:flex; gap:10px; align-items:baseline; }
.noise__hint{ font-size:12px; color:var(--muted); text-transform:uppercase; letter-spacing:.08em; }
.noise.is-paused .noise__dot{ background: var(--accent); animation:none; box-shadow:none; }
.noise.is-paused{ background: rgba(0,0,0,.12); }
.noise.is-paused::after{ opacity:0 !important; animation:none !important; }
.noise.is-paused .noise__hint{ color: rgba(184,240,207,.85); }
@keyframes pulseRed{
  0%{ box-shadow: 0 0 0 0 rgba(255,107,107,.38); }
  70%{ box-shadow: 0 0 0 10px rgba(255,107,107,0); }
  100%{ box-shadow: 0 0 0 0 rgba(255,107,107,0); }
}

.hero__title{
  margin:18px 0 8px;
  font-size: clamp(28px, 4vw, 44px);
  line-height:1.08;
}
.hero__sub{
  margin:0 0 18px;
  max-width: 70ch;
  color:var(--muted);
  line-height:1.45;
}

.stats{
  width:100%;
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:12px;
  margin-top:10px;
}
.stat{
  background: rgba(0,0,0,.12);
  border:1px solid var(--stroke);
  border-radius: 18px;
  padding:14px 12px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
}
.stat__num{ font-size:22px; font-weight:800; }
.stat__lbl{ font-size:13px; line-height:1.15; }

.hero__cta{
  margin-top:18px;
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  justify-content:center;
}

/* Buttons */
.btn{
  border-radius:999px;
  border:1px solid var(--stroke);
  padding:11px 16px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  font-weight:650;
  cursor:pointer;
  background: rgba(0,0,0,.12);
  color:var(--text);
}
.btn:hover{ border-color:var(--stroke2); }
.btn--primary{
  background: rgba(143,211,168,.18);
  border-color: rgba(143,211,168,.35);
  color: var(--text);
}
.btn--ghost{ background: rgba(0,0,0,.08); }
.btn--wide{ width:100%; }

/* Split cards */
.split{ display:grid; grid-template-columns: 1.05fr .95fr; }
.split__left, .split__right{ padding:20px 20px; }
.split__left{ border-right: 1px solid var(--stroke); }
.split__right{ background: rgba(0,0,0,.08); }

.chip{
  display:inline-block;
  border:1px solid var(--stroke);
  border-radius:999px;
  padding:6px 10px;
  font-size:12px;
  color:rgba(184,240,207,.85);
  background: rgba(143,211,168,.08);
  margin-bottom:10px;
}

.reading{
  border:1px solid var(--stroke);
  background: rgba(0,0,0,.10);
  border-radius: 18px;
  padding:16px 14px;
}
.reading h4{ margin:0 0 8px; font-size:16px; }
.reading p{ margin:0 0 10px; line-height:1.45; }
.reading ul{ margin:0; padding-left:18px; color:var(--muted); line-height:1.45; }

.checklist{ margin-top:14px; }
.check{
  display:flex;
  gap:10px;
  align-items:flex-start;
  padding:12px 12px;
  border:1px solid var(--stroke);
  background: rgba(0,0,0,.08);
  border-radius: 16px;
  margin-bottom:10px;
}
.check input{ margin-top:3px; }

.sliders{ display:flex; flex-direction:column; gap:14px; }
.sliderRow{
  border:1px solid var(--stroke);
  border-radius: 18px;
  background: rgba(0,0,0,.08);
  padding:12px 12px;
}
.sliderRow__top{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:10px;
  margin-bottom:10px;
}
input[type="range"]{ width:100%; accent-color: var(--meter); }
.rowBtns{ display:flex; gap:10px; margin-top:10px; flex-wrap:wrap; }
.mt{ margin-top:14px; }

/* =======================
   TESTS
   ======================= */
.tests .split__left{ padding:14px; }
.tests__menu{ display:flex; flex-direction:column; gap:10px; }

.testCard{
  text-align:left;
  border:1px solid var(--stroke);
  border-radius: 18px;
  background: rgba(0,0,0,.08);
  padding:14px;
  cursor:pointer;
  color:var(--text);
}
.testCard:hover{ border-color:var(--stroke2); }
.testCard.is-active{
  background: rgba(143,211,168,.10);
  border-color: rgba(143,211,168,.35);
}

.badge{
  display:inline-block;
  font-size:11px;
  letter-spacing:.14em;
  color: rgba(184,240,207,.85);
  margin-bottom:6px;
}

.tests, .tests *{ color: var(--text); }
.tests .muted{ color: var(--muted); opacity:1; }
.testCard .muted{ color: var(--muted) !important; }

.tests__panel{ padding:18px; }
.test{ display:none; }
.test.is-active{ display:block; }

.qform .q{
  border:1px solid var(--stroke);
  border-radius: 18px;
  background: rgba(0,0,0,.08);
  padding:14px;
  margin:0 0 12px;
}
.qform legend{
  padding:0 2px 10px;
  font-weight:700;
  color:rgba(234,243,238,.92);
}
.radio{
  display:flex;
  gap:10px;
  align-items:flex-start;
  padding:10px 10px;
  border:1px solid rgba(255,255,255,.06);
  background: rgba(0,0,0,.08);
  border-radius: 14px;
  margin-bottom:8px;
}
.radio input{ margin-top:2px; }

/* Styles grid */
.styleGrid{ display:grid; grid-template-columns: repeat(2, 1fr); gap:10px; }
.styleCard{
  border:1px solid var(--stroke);
  border-radius: 18px;
  overflow:hidden;
  background: rgba(0,0,0,.08);
}
.styleCard__img{
  height:110px;
  background-size:cover;
  background-position:center;
  background-repeat:no-repeat;
}
.styleCard__body{ padding:10px; }
.styleCard__body strong{ display:block; margin-bottom:4px; }
.styleCard__body span{ color:var(--muted); font-size:12px; line-height:1.35; display:block; }

/* =======================
   SUMMARY
   ======================= */
.summary{ padding:18px; }
.summary__top h2{ margin:0 0 6px; }
.summary__top p{ margin:0; }

.summary__grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:12px;
  margin-top:14px;
}
.summaryBox{
  border:1px solid var(--stroke);
  border-radius: 18px;
  background: rgba(0,0,0,.08);
  padding:12px;
}
.summaryBox__k{ font-size:12px; color:var(--muted); margin-bottom:6px; }
.summaryBox__v{ font-weight:800; font-size:18px; }

.matrix{
  margin-top:14px;
  border:1px solid var(--stroke);
  border-radius: 18px;
  background: rgba(0,0,0,.08);
  padding:12px;
  display:flex;
  gap:12px;
  align-items:center;
  flex-wrap:wrap;
}
.matrix__bar{
  height:10px;
  flex:1 1 220px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.08);
  background: linear-gradient(90deg, rgba(143,211,168,.22), rgba(143,211,168,.10), rgba(143,211,168,.22));
  background-size: 60px 100%;
  animation: matrixMove 1.2s linear infinite;
}
@keyframes matrixMove{ from{ background-position: 0 0; } to{ background-position: 60px 0; } }
.matrix__txt{ color:var(--muted); }

/* =======================
   PLANS (fix bordes/imagenes)
   ======================= */
.planGrid{
  display:grid;
  grid-template-columns: repeat(2, 1fr);
  gap:14px;
}

.plan{
  overflow:hidden; /* recorte real */
  border-radius: var(--radius);
}

.plan__img{
  height:190px;
  width:100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-bottom:1px solid var(--stroke);
  position:relative;
  background-color: rgba(0,0,0,.10); /* fallback */
  transform: translateZ(0); /* evita artefactos en bordes en algunos móviles */
}

/* overlay para “sellar” bordes y homogeneizar imágenes */
.plan__img::after{
  content:"";
  position:absolute; inset:0;
  background: linear-gradient(180deg, rgba(0,0,0,.00), rgba(0,0,0,.35));
  pointer-events:none;
}

.plan__body{ padding:14px; }
.plan__meta{ margin-bottom:8px; }
.plan h3{ margin:0 0 6px; font-size:18px; }
.price{
  margin:0 0 10px;
  color: rgba(184,240,207,.95);
  font-weight:850;
}
.footerLine{ margin:18px 6px 0; text-align:center; }

/* resaltado recomendado */
.plan.is-recommended{
  border-color: rgba(143,211,168,.55);
  box-shadow: 0 26px 80px rgba(0,0,0,.6);
}
.plan.is-recommended .plan__meta .badge{ color: rgba(234,243,238,.95); }

/* =======================
   INNERMETHOD (todo junto + foto contenida)
   ======================= */
.innermethod__wrap{
  padding:22px;
}

.innermethod__shell{
  display:flex;
  flex-direction:column;
  gap:18px;
}

.innermethod__hero{
  display:grid;
  grid-template-columns: .9fr 1.1fr;
  gap:20px;
  align-items:center;
  padding-bottom:18px;
  border-bottom:1px solid var(--stroke);
}

.innermethod__media{
  display:flex;
  justify-content:center;
}

.innermethod__img{
  width:100%;
  max-width:340px;
  aspect-ratio: 4 / 5;
  border-radius:18px;
  object-fit:cover;
  box-shadow: 0 20px 60px rgba(0,0,0,.45);
}

.innermethod__quote{
  font-size: clamp(20px, 2.2vw, 28px);
  line-height:1.2;
  font-weight:750;
  margin:0 0 10px;
}
.innermethod__author{
  font-size:12px;
  letter-spacing:.14em;
  text-transform:uppercase;
  color:var(--accent2);
  margin:0 0 12px;
}

.innermethod__about{
  display:grid;
  grid-template-columns: 1fr;
  gap:10px;
}

.innermethod__aboutBox{
  border:1px solid var(--stroke);
  background: rgba(0,0,0,.08);
  border-radius:18px;
  padding:14px;
}
.innermethod__aboutBox h4{
  margin:0 0 8px;
  font-size:14px;
  letter-spacing:.06em;
  color: rgba(184,240,207,.9);
}
.innermethod__aboutBox p{ margin:0; line-height:1.5; color:var(--muted); }
.innermethod__aboutBox ul{ margin:10px 0 0; padding-left:18px; color:var(--muted); line-height:1.5; }

/* =======================
   CONTACT
   ======================= */
#contact .card{ scroll-margin-top: 110px; }

.contactCard .contactInner{
  display:grid;
  grid-template-columns: 1fr .8fr;
  gap:14px;
  padding:18px;
  align-items:center;
}
.contactBtns{ display:flex; align-items:center; justify-content:flex-end; }

/* Footer */
.footer{
  margin-top:18px;
  padding:18px 6px 0;
  border-top:1px solid rgba(255,255,255,.06);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  flex-wrap:wrap;
}
.footer__links{ display:flex; gap:14px; }

.footer, .footer *{ pointer-events: auto; }
.footer{ position: relative; z-index: 5; }
.footerLink{
  background: transparent;
  border: none;
  padding: 0;
  margin: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.footerLink:focus{ outline: none; }

/* Modal */
.modal{ position:fixed; inset:0; display:none; z-index:200; }
.modal.is-open{ display:block; }
.modal__backdrop{
  position:absolute; inset:0;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(6px);
}
.modal__panel{
  position:relative;
  width:min(720px, 92vw);
  margin: 90px auto 0;
  background: linear-gradient(180deg, rgba(18,26,22,.88), rgba(18,26,22,.70));
  border:1px solid var(--stroke2);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding:16px;
}
.modal__head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  border-bottom:1px solid rgba(255,255,255,.06);
  padding-bottom:12px;
}
.modal__form{ padding-top:12px; }

.field{ display:flex; flex-direction:column; gap:8px; margin-bottom:12px; }
.field span{ font-size:12px; color:var(--muted); }
.field input, .field textarea, .field select{
  width:100%;
  border-radius: 16px;
  border:1px solid var(--stroke);
  background: rgba(0,0,0,.14);
  color: var(--text);
  padding:12px 12px;
  outline:none;
}
.field input:focus, .field textarea:focus, .field select:focus{
  border-color: rgba(143,211,168,.35);
}
.grid2{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:12px;
}

/* Responsive */
@media (max-width: 900px){
  :root{ --topbar-h: 140px; } /* en móvil el nav se apila y crece */
  .split{ grid-template-columns:1fr; }
  .split__left{ border-right:none; border-bottom:1px solid var(--stroke); }
  .stats{ grid-template-columns:1fr; }
  .planGrid{ grid-template-columns:1fr; }
  .summary__grid{ grid-template-columns:1fr; }
  .contactCard .contactInner{ grid-template-columns:1fr; }
  .contactBtns{ justify-content:flex-start; }

  .innermethod__hero{
    grid-template-columns:1fr;
    text-align:center;
  }
}

@media (max-width: 520px){
  :root{ --topbar-h: 160px; }
  .hero{ min-height: 560px; }
}

/* debug opcional */
body::before{
  content:"CSS_OK";
  position:fixed;
  bottom:8px;
  right:8px;
  font-size:10px;
  opacity:.5;
  z-index:9999
}
/* opcional, mejora móvil cuando el modal está abierto */
.modal.is-open { overscroll-behavior: contain; }

