/*
 * Loops · landing (dirección "A2": producto premium oscuro).
 * Fondo casi negro con brillo verde, titulares blancos con degradado a verde gris, ventanas del sistema como protagonistas.
 * Una sola familia (Manrope). La única animación es la venta de madrugada del inicio.
 */

@font-face { font-family: "Manrope"; src: url("/fonts/Manrope-latin.woff2") format("woff2"); font-weight: 200 800; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Manrope"; src: url("/fonts/Manrope-latin-ext.woff2") format("woff2"); font-weight: 200 800; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --bg: #050706;
  --panel-top: #0d120f;
  --panel-bottom: #080b09;
  --line: #1c2420;
  --line-soft: #151c18;
  --text: #ffffff;
  --text-2: #9aa39e;
  --text-3: #6f7a74;
  --green: #2aae62;
  --green-ink: #03140a;
  --bubble-in: #18201b;
  --bubble-out: #0f3d24;
  --font: "Manrope", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 1.0625rem; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 700; text-wrap: balance; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 6px; }
.wrap { width: min(1180px, 100% - 48px); margin-inline: auto; }

.button { display: inline-block; font-weight: 700; text-decoration: none; padding: 14px 22px; border-radius: 12px; background: var(--green); color: var(--green-ink); transition: filter 0.15s; }
.button:hover { filter: brightness(1.1); }
.button--ghost { background: transparent; color: var(--text); border: 1px solid #2a312d; }
.button--ghost:hover { filter: none; border-color: #4a544f; }

/* Isotipo de fondo (como la marca de agua de los reels): fijo, muy tenue, con parallax por JS */
.mark { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.mark img { position: absolute; max-width: none; width: max(1100px, 130vw); right: calc(-0.45 * max(1100px, 130vw) + 10vw); top: 18vh; opacity: 0.06; transform-origin: 40% 50%; will-change: transform; }

/* Ventana / panel del sistema */
.panel, .demo { border: 1px solid var(--line); border-radius: 18px; background: linear-gradient(var(--panel-top), var(--panel-bottom)); }

/* Cabecera */
.top { position: sticky; top: 0; z-index: 10; background: rgba(5, 7, 6, 0.75); backdrop-filter: blur(14px); border-bottom: 1px solid rgba(255, 255, 255, 0.04); }
.top__in { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.top__nav { display: flex; align-items: center; gap: 30px; font-size: 0.95rem; color: #b9c0bc; }
.top__nav a { text-decoration: none; }
.top__nav a:hover { color: var(--text); }
.top__cta { background: var(--text); color: var(--bg) !important; font-weight: 700; padding: 9px 16px; border-radius: 10px; }

/* Inicio */
.hero { position: relative; overflow: hidden; padding: 72px 0 96px; text-align: center; }
.hero__glow, .contact__glow { position: absolute; left: 50%; width: 1200px; height: 760px; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(42, 174, 98, 0.32), transparent); pointer-events: none; }
.hero__glow { top: -330px; }
.hero .wrap { position: relative; }
.hero__title { font-size: clamp(2.6rem, 1.2rem + 5.4vw, 4.8rem); line-height: 1; letter-spacing: -0.045em; max-width: 20ch; margin-inline: auto; background: linear-gradient(180deg, #ffffff 45%, #9fb3a8); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__lead { color: var(--text-2); font-size: clamp(1.1rem, 1rem + 0.5vw, 1.3rem); line-height: 1.5; max-width: 44ch; margin: 24px auto 0; }
.hero__actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.demo { margin: 64px auto 0; max-width: 1120px; display: grid; grid-template-columns: 1.1fr 0.9fr; text-align: left; overflow: hidden; box-shadow: 0 40px 140px rgba(0, 0, 0, 0.65), 0 -30px 100px rgba(42, 174, 98, 0.08); }
.demo__label { font-size: 0.875rem; font-weight: 600; color: var(--text-3); margin-bottom: 14px; }
.demo__chat { padding: 26px 28px 30px; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.bubble { max-width: 80%; padding: 10px 14px; border-radius: 14px; font-size: 0.95rem; line-height: 1.4; }
.bubble--in { align-self: flex-start; background: var(--bubble-in); border-top-left-radius: 4px; }
.bubble--out { align-self: flex-end; background: var(--bubble-out); border-top-right-radius: 4px; }
.demo__acts { padding: 26px 28px 30px; }
.demo__acts ul { list-style: none; margin: 0; padding: 0; }
.demo__acts li { position: relative; padding: 13px 0 13px 36px; border-bottom: 1px solid var(--line-soft); }
.demo__acts li::before { content: ""; position: absolute; left: 0; top: 15px; width: 22px; height: 22px; border-radius: 50%; background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'%3E%3Cpath d='M6.5 11.3l3 3 6-6.6' fill='none' stroke='%2303140a' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 22px no-repeat; }
.demo__acts strong { display: block; font-weight: 600; }
.demo__acts span { display: block; font-size: 0.85rem; color: var(--text-3); }

/* La única animación: la venta de madrugada se arma sola al cargar */
@media (prefers-reduced-motion: no-preference) {
  .bubble, .demo__acts li { animation: appear 0.45s ease-out both; animation-delay: var(--t); }
  @keyframes appear { from { opacity: 0; transform: translateY(8px); } }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Secciones */
.section { padding: clamp(80px, 11vw, 140px) 0 0; }
.section__title { font-size: clamp(2rem, 1.2rem + 2.8vw, 3.3rem); line-height: 1.05; letter-spacing: -0.04em; max-width: 22ch; }
.section__lead { color: var(--text-2); font-size: 1.15rem; line-height: 1.55; max-width: 52ch; margin-top: 18px; }

.does { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 48px; }
.does .panel { padding: 28px 28px 22px; }
.does h3 { font-size: 1.6rem; letter-spacing: -0.03em; margin-bottom: 10px; }
.checks { list-style: none; margin: 0; padding: 0; }
.checks li { position: relative; padding: 12px 0 12px 28px; border-top: 1px solid var(--line-soft); color: #d2d8d4; line-height: 1.5; }
.checks li::before { content: ""; position: absolute; left: 0; top: 19px; width: 14px; height: 8px; border-left: 2px solid var(--green); border-bottom: 2px solid var(--green); transform: rotate(-45deg); }
.does__more { margin-top: 28px; color: var(--text-2); }

.steps { list-style: none; margin: 48px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.steps li { border-top: 1px solid var(--line); padding-top: 22px; }
.steps__n { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(42, 174, 98, 0.45); background: rgba(42, 174, 98, 0.08); color: var(--green); font-weight: 700; font-size: 0.95rem; margin-bottom: 18px; }
.steps h3 { font-size: 1.2rem; letter-spacing: -0.02em; }
.steps p { color: var(--text-2); margin-top: 8px; font-size: 1rem; }

.us { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(32px, 6vw, 80px); align-items: end; }
.us__rules { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.us__rules .panel { padding: 18px 22px; }
.us__rules strong { display: block; font-weight: 700; }
.us__rules span { color: var(--text-2); font-size: 0.97rem; }

/* Contacto */
.contact { position: relative; overflow: hidden; margin-top: clamp(80px, 11vw, 140px); padding: clamp(96px, 12vw, 160px) 0; text-align: center; border-top: 1px solid rgba(255, 255, 255, 0.04); }
.contact__glow { top: 40%; }
.contact__in { position: relative; }

/* Pie */
.foot { border-top: 1px solid rgba(255, 255, 255, 0.06); padding: 28px 0; font-size: 0.9rem; color: var(--text-3); }
.foot__in { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }

/* Responsive */
@media (max-width: 980px) {
  .does, .us { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 36px; }
}
@media (max-width: 720px) {
  .wrap { width: calc(100% - 32px); }
  .top__nav a:not(.top__cta) { display: none; }
  .hero { padding-top: 48px; }
  .demo { grid-template-columns: 1fr; margin-top: 44px; }
  .demo__chat { border-right: 0; border-bottom: 1px solid var(--line); padding: 20px; }
  .demo__acts { padding: 20px; }
  .bubble { max-width: 88%; }
  .mark img { width: 900px; right: -430px; top: 34vh; opacity: 0.06; }
  .steps { grid-template-columns: 1fr; }
}
.foot a { text-decoration: none; color: var(--text-2); }
.foot a:hover { color: var(--text); }
