/* =============================================================
   Angelina S. — Coming Soon
   Paleta, tipografía y layout base
   ============================================================= */

:root {
  --ink: #101010;          /* negro tipografía / botones */
  --ink-soft: #4a4a4a;     /* texto secundario */
  --line: #dcdcdc;         /* bordes finos */
  --paper: #ffffff;        /* fondo del sitio */
  --yellow: #ffc83d;       /* amarillo marca */
  --yellow-deep: #f7b500;
  --yellow-soft: #fff0c2;
  --teal: #2ec4b6;         /* acento de las gráficas */

  --radius-card: 18px;
  --radius-pill: 999px;
  --shadow-sm: 0 6px 20px rgba(16, 16, 16, .07);
  --shadow-md: 0 14px 40px rgba(16, 16, 16, .10);
  --shadow-lg: 0 30px 70px rgba(16, 16, 16, .13);

  --pad-x: clamp(20px, 5vw, 72px);
  --max: 1240px;
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  font-family: "Poppins", "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* =============================================================
   Lienzo full-bleed (sin marco negro)
   ============================================================= */
.sheet {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  padding: clamp(22px, 3.2vw, 40px) var(--pad-x) clamp(24px, 3vw, 40px);
  overflow: hidden;
  background: var(--paper);
}

/* Degradado cálido que baña la mitad superior derecha */
.glow {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(120% 90% at 88% 6%, rgba(255, 200, 61, .95) 0%, rgba(255, 214, 105, .55) 30%, rgba(255, 240, 194, .18) 55%, rgba(255, 255, 255, 0) 72%),
    radial-gradient(80% 70% at 100% 40%, rgba(255, 196, 44, .40) 0%, rgba(255, 255, 255, 0) 60%);
  pointer-events: none;
}

/* Círculo amarillo sólido detrás del mockup */
.blob {
  position: absolute;
  z-index: -1;
  top: 24%;
  right: 15%;
  width: min(27vw, 340px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--yellow) 0%, var(--yellow-deep) 78%);
  filter: blur(.4px);
  opacity: .95;
  pointer-events: none;
}

/* =============================================================
   HEADER
   ============================================================= */
.header {
  position: relative;
  z-index: 5;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand__mark { width: 22px; height: 30px; fill: var(--ink); }
.brand__text {
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: -.01em;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 40px);
  margin: 0 auto;
  font-size: .875rem;
  font-weight: 500;
}
.nav a { position: relative; padding: 4px 0; color: var(--ink); opacity: .85; transition: opacity .2s; }
.nav a::after {
  content: "";
  position: absolute; left: 0; bottom: 0;
  width: 0; height: 1.5px;
  background: var(--ink);
  transition: width .25s ease;
}
.nav a:hover { opacity: 1; }
.nav a:hover::after { width: 100%; }
.nav__cta-mobile { display: none; }

.header__right { display: flex; align-items: center; gap: 18px; }

.btn-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 22px;
  border-radius: var(--radius-pill);
  background: var(--ink);
  color: #fff;
  font-size: .875rem;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
}
.btn-pill svg { width: 14px; height: 14px; }
.btn-pill:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

.burger {
  display: grid; gap: 6px;
  width: 28px; padding: 6px 0;
  background: none; border: 0;
}
.burger span {
  display: block; height: 2px; width: 100%;
  background: var(--ink); border-radius: 2px;
  transition: transform .3s ease, opacity .3s ease;
}
.burger.is-open span:first-child { transform: translateY(4px) rotate(45deg); }
.burger.is-open span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* =============================================================
   HERO
   ============================================================= */
.hero {
  position: relative;
  z-index: 2;
  flex: 1;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.14fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(24px, 4vw, 56px);
  padding: clamp(14px, 3.2vh, 64px) 0;
}

.hero__copy { max-width: 600px; min-width: 0; }

.eyebrow {
  display: flex; align-items: center; gap: 10px;
  margin: 0 0 18px;
  font-size: .95rem;
  font-weight: 600;
}
.eyebrow__dash { width: 22px; height: 2px; background: var(--ink); }

.hero__title {
  margin: 0 0 34px;
  font-size: clamp(2.3rem, 4.85vw, 3.95rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -.035em;
}

/* --- Formulario --- */
.notify {
  display: flex;
  align-items: center;
  gap: 8px;
  width: min(100%, 420px);
  padding: 6px 6px 6px 8px;
  border: 1.5px solid var(--ink);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, .75);
  backdrop-filter: blur(6px);
  transition: box-shadow .25s ease, border-color .25s ease;
}
.notify:focus-within { box-shadow: 0 0 0 4px rgba(255, 200, 61, .45); }
.notify.is-error { border-color: #e5484d; }

.notify__input {
  flex: 1; min-width: 0;
  padding: 12px 10px 12px 14px;
  border: 0; background: none; outline: none;
  font-size: .95rem; color: var(--ink);
}
.notify__input::placeholder { color: #8d8d8d; }

.notify__btn {
  position: relative;
  display: inline-grid; place-items: center;
  min-width: 132px;
  padding: 14px 24px;
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--ink);
  color: #fff;
  font-size: .9rem; font-weight: 600;
  transition: transform .2s ease, background .2s ease;
}
.notify__btn:hover { transform: translateY(-1px); background: #000; }
.notify__btn:disabled { opacity: .75; cursor: progress; transform: none; }

.notify__spinner {
  position: absolute;
  width: 16px; height: 16px;
  border: 2px solid rgba(255, 255, 255, .35);
  border-top-color: #fff;
  border-radius: 50%;
  opacity: 0;
  animation: spin .7s linear infinite;
}
.is-loading .notify__label { opacity: 0; }
.is-loading .notify__spinner { opacity: 1; }
@keyframes spin { to { transform: rotate(360deg); } }

.notify__msg {
  min-height: 20px;
  margin: 12px 0 0;
  font-size: .82rem;
  font-weight: 500;
  color: #157f4c;
}
.notify__msg.is-error { color: #d33b3f; }

.notify__note {
  margin: 10px 0 0;
  font-size: .8rem;
  color: var(--ink-soft);
}

/* =============================================================
   MOCKUP (columna derecha)
   ============================================================= */
.hero__visual {
  position: relative;
  min-width: 0;              /* evita que el aspect-ratio infle la columna */
  aspect-ratio: 1 / .92;
  min-height: 420px;
}

.card {
  position: absolute;
  background: #fff;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-lg);
}

/* --- Tarjeta principal (tipo teléfono) --- */
.card--main {
  top: 1%;
  left: 16%;
  width: 48%;
  min-width: 210px;
  padding: 12px 12px 14px;
  border-radius: 22px;
}

.statusbar {
  display: flex; align-items: center; justify-content: space-between;
  font-size: .5rem; font-weight: 600;
  color: var(--ink);
  padding: 0 4px 8px;
}
.statusbar__title { font-size: .58rem; font-weight: 600; }
.statusbar__icons svg { width: 26px; height: 10px; fill: var(--ink); }

.profile { display: flex; align-items: center; gap: 8px; padding: 6px 2px 10px; }
.avatar {
  display: grid; place-items: center;
  flex: 0 0 auto;
  width: 26px; height: 26px;
  border-radius: 50%;
  font-size: .5rem; font-weight: 700; color: #fff;
  letter-spacing: .02em;
}
.avatar--a { background: linear-gradient(140deg, #ffc83d, #e08a00); color: #2a1c00; }
.avatar--b { background: linear-gradient(140deg, #ffb37a, #d9613c); }

.profile__meta { display: grid; line-height: 1.25; }
.profile__meta b { font-size: .62rem; }
.profile__meta i { font-size: .5rem; font-style: normal; color: #9a9a9a; }

.chip {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 5px 10px;
  border-radius: var(--radius-pill);
  font-size: .5rem; font-weight: 600;
  white-space: nowrap;
}
.chip svg { width: 8px; height: 8px; }
.chip--yellow { margin-left: auto; background: var(--yellow); color: var(--ink); }
.chip--dark { background: var(--ink); color: #fff; }
.chip--cta { background: var(--yellow); color: var(--ink); box-shadow: 0 4px 12px rgba(247, 181, 0, .45); }
.chip--wide { width: 100%; justify-content: center; padding: 7px 10px; }

/* Editor de código dentro de la tarjeta */
.editor {
  border-radius: 12px;
  overflow: hidden;
  background: #12151c;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .05);
}
.editor__tabs {
  display: flex; align-items: center; gap: 4px;
  padding: 6px 8px;
  background: #1b1f29;
}
.editor__tabs em {
  margin-left: 6px;
  font-style: normal; font-size: .46rem; color: #8b93a5;
}
.dot { width: 5px; height: 5px; border-radius: 50%; }
.dot--r { background: #ff5f57; }
.dot--y { background: #febc2e; }
.dot--g { background: #28c840; }

.editor__code {
  margin: 0;
  padding: 8px 10px 10px;
  font-family: "SFMono-Regular", ui-monospace, "Cascadia Mono", Consolas, monospace;
  font-size: .47rem;
  line-height: 1.7;
  color: #cdd3df;
  white-space: pre;
  overflow: hidden;
}
.c-key  { color: #ff7b9c; }
.c-fn   { color: #7fd1ff; }
.c-tag  { color: #7ee787; }
.c-attr { color: #ffc83d; }
.c-str  { color: #ffab70; }

.card__foot {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 8px;
  padding: 10px 2px 0;
}
.card__foot-txt { display: grid; line-height: 1.3; }
.card__foot-txt b { font-size: .62rem; }
.card__foot-txt i { font-size: .5rem; font-style: normal; color: #9a9a9a; }

.card__price {
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px;
  padding-top: 10px;
}
.card__price b { font-size: .72rem; font-weight: 700; }

/* --- Tarjeta deploy --- */
.card--deploy {
  top: 14%;
  right: 3%;
  width: 28%;
  min-width: 130px;
  padding: 10px;
  text-align: center;
}
.card--deploy small {
  display: block;
  margin-top: 7px;
  font-size: .48rem; font-weight: 600;
  color: var(--ink);
}
.deploy__map {
  position: relative;
  height: 74px;
  margin-bottom: 8px;
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(160deg, #dff3e4, #bfe6cd 55%, #a9dcc0);
}
.deploy__grid {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, .7) 1px, transparent 1px) 0 0 / 22px 22px,
    linear-gradient(rgba(255, 255, 255, .7) 1px, transparent 1px) 0 0 / 22px 22px;
  opacity: .8;
}
.pin {
  position: absolute; top: 50%; left: 50%;
  translate: -50% -60%;
  display: grid; place-items: center;
  width: 30px; height: 30px;
}
.pin svg { width: 30px; height: 30px; fill: var(--yellow-deep); filter: drop-shadow(0 3px 5px rgba(0, 0, 0, .25)); }

/* --- Tarjeta métricas --- */
.card--chart {
  top: 44%;
  right: 6%;
  width: 26%;
  min-width: 120px;
  padding: 12px 10px;
}
.bars {
  display: flex; align-items: flex-end; gap: 5px;
  height: 62px;
  padding-left: 8px;
  border-left: 1.5px solid #ececec;
  border-bottom: 1.5px solid #ececec;
}
.bars i {
  flex: 1;
  height: var(--h);
  border-radius: 3px 3px 0 0;
  background: var(--teal);
  transform-origin: bottom;
  animation: grow .9s cubic-bezier(.2, .8, .2, 1) backwards;
}
.bars i:nth-child(even) { background: var(--yellow); }
.bars i:nth-child(1) { animation-delay: .45s; }
.bars i:nth-child(2) { animation-delay: .52s; }
.bars i:nth-child(3) { animation-delay: .59s; }
.bars i:nth-child(4) { animation-delay: .66s; }
.bars i:nth-child(5) { animation-delay: .73s; }
.bars i:nth-child(6) { animation-delay: .80s; }
.bars i:nth-child(7) { animation-delay: .87s; }
.bars i:nth-child(8) { animation-delay: .94s; }
@keyframes grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }

/* --- Tarjeta testimonio --- */
.card--review {
  bottom: 10%;
  left: 0%;
  width: 44%;
  min-width: 190px;
  display: flex; gap: 8px;
  padding: 10px 12px;
}
.review__body { flex: 1; min-width: 0; }
.review__top { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.review__top b { font-size: .62rem; }
.review__top time { font-size: .46rem; color: #a3a3a3; }
.review__body p { margin: 3px 0 6px; font-size: .52rem; color: #6d6d6d; }
.review__react { display: flex; align-items: center; gap: 4px; font-size: .5rem; }
.review__react small { color: #a3a3a3; }

/* --- Botón compartir --- */
.share {
  position: absolute;
  right: 20%;
  bottom: 30%;
  display: grid; place-items: center;
  width: 26px; height: 26px;
  border-radius: 8px;
  background: var(--ink);
  box-shadow: var(--shadow-md);
}
.share svg { width: 13px; height: 13px; fill: #fff; }

/* Flotación suave */
.float { animation: bob var(--dur, 6s) ease-in-out var(--delay, 0s) infinite; }
@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}

/* =============================================================
   FOOTER
   ============================================================= */
.footer {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.social { display: flex; gap: 12px; margin: 0; padding: 0; list-style: none; }
.social a {
  display: grid; place-items: center;
  width: 38px; height: 38px;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}
.social svg { width: 15px; height: 15px; fill: currentColor; }
.social a:hover { background: var(--ink); color: #fff; transform: translateY(-2px); }

.legal { display: flex; gap: clamp(16px, 3vw, 34px); font-size: .85rem; font-weight: 500; }
.legal a { padding-bottom: 2px; border-bottom: 1.5px solid transparent; }
.legal a:hover { border-color: var(--ink); }
.legal a.is-active { border-color: var(--ink); }

/* =============================================================
   Animación de entrada
   ============================================================= */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  animation: rise .7s cubic-bezier(.2, .75, .25, 1) forwards;
  animation-delay: calc(var(--d, 0) * 110ms);
}
.reveal[data-delay="0"] { --d: 0; }
.reveal[data-delay="1"] { --d: 1; }
.reveal[data-delay="2"] { --d: 2; }
.reveal[data-delay="3"] { --d: 3; }
.reveal[data-delay="4"] { --d: 4; }
.reveal[data-delay="5"] { --d: 5; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* =============================================================
   RESPONSIVE
   ============================================================= */
@media (max-width: 1024px) {
  .hero { grid-template-columns: 1fr; }
  .hero__copy { max-width: 560px; }
  .hero__visual { order: 2; width: min(100%, 560px); margin-inline: auto; }
  .blob { top: auto; bottom: 12%; right: 8%; }
}

@media (max-width: 860px) {
  .nav {
    position: absolute;
    top: calc(100% + 14px);
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    padding: 8px;
    border-radius: 16px;
    background: #fff;
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity .22s ease, transform .22s ease, visibility .22s;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav a { padding: 13px 14px; border-radius: 10px; }
  .nav a::after { display: none; }
  .nav a:hover { background: #f6f6f6; }
  .nav__cta-mobile { display: block; }
  .header { justify-content: space-between; }
  .header .btn-pill { display: none; }
}

@media (min-width: 861px) {
  .burger { display: none; }
}

@media (max-width: 560px) {
  .hero__title { letter-spacing: -.03em; }
  .notify { flex-wrap: nowrap; }
  .notify__btn { min-width: 104px; padding: 13px 16px; font-size: .82rem; }
  .footer { flex-direction: column; align-items: flex-start; gap: 22px; }
  .hero__visual { aspect-ratio: auto; height: 380px; min-height: 0; }
  .card--main { left: 14%; width: 54%; }
  .card--review { left: 0; width: 52%; }
}

/* Respeta la preferencia de menos movimiento */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
