/* ================================
   FBOS Landing v1.2
   Mobile-first · minimal · refined
================================ */

:root {
  --ink: #111111;
  --bg: #ffffff;

  /* FBOS accent */
  --accent: #aec3ea;
  --accent-strong: #8ea9de;
  --accent-soft: #eef3fb;
}

/* Reset básico */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ================================
   Layout container
================================ */

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 12px 20px 72px;
}

/* ================================
   Header
================================ */

.site-header {
  border-bottom: 1px solid rgba(0,0,0,0.06);
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 20;
}

/* importante: evitar padding heredado del wrap */

.site-header .wrap {
  padding: 0 20px;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  height: 100%;
}

.brand-mark {
  height: 44px;
  width: auto;
  display: block;
}

/* navegación */

.site-nav {
  display: none;
  gap: 24px;
}

.site-nav a {
  text-decoration: none;
  font-size: 14px;
  color: var(--ink);
  opacity: 0.72;
  transition: opacity .15s ease;
}

.site-nav a:hover {
  opacity: 1;
}

/* ---------------- HERO ---------------- */

.hero {
  padding: 24px 0 8px;
  background:
    radial-gradient(circle at 85% 15%, rgba(174,195,234,0.25), transparent 55%);
}

.hero-split {
  display: grid;
  gap: 26px;
  align-items: start;
}

.hero-copy {
  max-width: 62ch;
  padding-top: 8px;
}

h1 {
  font-size: clamp(2.7rem, 6vw, 4.8rem);
  line-height: 0.94;
  letter-spacing: -0.06em;
  margin: 0 0 20px;
  max-width: 10ch;
}

.lead {
  font-size: 17px;
  line-height: 1.65;
  margin: 0;
  max-width: 60ch;
  opacity: 0.88;
}

.hero-note {
  margin: 18px 0 0;
  font-size: 13px;
  opacity: 0.56;
  letter-spacing: 0.01em;
}

.hero-media {
  display: flex;
  justify-content: center;
  border-radius: 28px;
  background: linear-gradient(to bottom, rgba(174,195,234,0.18), rgba(0,0,0,0.015));
  padding: 18px;
  border: 1px solid rgba(0,0,0,0.05);
}

.hero-mock {
  width: 100%;
  max-width: 300px;
  height: auto;
  display: block;
  border-radius: 30px;
  border: 1px solid rgba(0,0,0,0.07);
  background: #fff;
  box-shadow:
    0 24px 60px rgba(0,0,0,0.08),
    0 8px 20px rgba(0,0,0,0.05);
}

/* ---------------- SECCIONES ---------------- */

.section {
  margin-top: 80px;
}

.section:nth-of-type(even) {
  background: var(--accent-soft);
  border-radius: 24px;
  padding: 28px 22px;
}

.section:nth-of-type(odd) {
  padding: 0;
}

h2 {
  font-size: 22px;
  line-height: 1.15;
  margin: 0 0 18px;
  letter-spacing: -0.03em;
}

h3 {
  font-size: 16px;
  margin: 0 0 10px;
  letter-spacing: -0.02em;
}

.section p {
  margin: 0 0 14px;
  max-width: 65ch;
  line-height: 1.6;
}

/* ---------------- GRID & CARDS ---------------- */

.grid {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr;
}

.card {
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 18px;
  padding: 20px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(0,0,0,0.04);
}

/* ---------------- BOTONES ---------------- */

.cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease;
}

.btn:hover {
  transform: translateY(-1px);
  background: var(--accent-strong);
  border-color: var(--accent-strong);
}

.btn.ghost {
  background: transparent;
  color: var(--ink);
  border-color: rgba(0,0,0,0.14);
}

.btn.ghost:hover {
  background: rgba(174,195,234,0.18);
  border-color: var(--accent-strong);
}

/* ---------------- FORMULARIO ---------------- */

.form {
  display: grid;
  gap: 12px;
  max-width: 520px;
  margin: 0 auto;
}

input,
textarea,
select {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,0.14);
  font: inherit;
  width: 100%;
  background: #fff;
  color: var(--ink);
  transition: border-color .15s ease, box-shadow .15s ease;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--accent-strong);
  box-shadow: 0 0 0 3px rgba(174,195,234,0.35);
}

textarea {
  resize: vertical;
}

.fine {
  font-size: 12px;
  opacity: 0.75;
  min-height: 16px;
}

/* ---------------- PROBLEMA ---------------- */

.problem-sources {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.source {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,0.1);
  font-size: 14px;
  background: var(--accent-soft);
}

/* ---------------- FOOTER ---------------- */

.foot {
  margin-top: 96px;
  padding-top: 22px;
  font-size: 12px;
  opacity: 0.6;
}

/* ---------------- DESKTOP ---------------- */

@media (min-width: 820px) {
  .hero {
    padding-top: 32px;
  }

  .hero-split {
    grid-template-columns: 1.08fr 0.92fr;
    gap: 42px;
  }

  .grid {
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 18px;
  }

  #ventajas .grid {
    grid-template-columns: repeat(3, minmax(0,1fr));
  }

  .section:nth-of-type(even) {
    padding: 32px 28px;
  }
}

@media (min-width: 900px) {
  .site-nav {
    display: flex;
  }

  .brand-mark {
    height: 48px;
  }
}

.infra-list {
  list-style: none;
  padding: 0;
  margin-top: 24px;
}

.infra-list li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 12px;
  line-height: 1.6;
}

.infra-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent);
  font-weight: 600;
}

.cf-turnstile {
  margin: 16px 0 18px;
}

/* ================================
   Language switch
================================ */

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  padding: 4px;
  border: 1px solid rgba(17, 17, 17, 0.08);
  background: rgba(255, 255, 255, 0.82);
  border-radius: 999px;
  white-space: nowrap;
  box-shadow: 0 1px 2px rgba(17, 17, 17, 0.04);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.lang-link {
  text-decoration: none;
  color: var(--ink);
  font-size: 0.82rem;
  line-height: 1;
  padding: 8px 10px;
  border-radius: 999px;
  opacity: 0.58;
  transition: background-color 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
}

.lang-link:hover {
  opacity: 1;
}

.lang-link.active {
  opacity: 1;
  font-weight: 600;
  background: var(--accent-soft);
  box-shadow: inset 0 0 0 1px rgba(17, 17, 17, 0.04);
}

.lang-sep {
  display: none;
}

@media (max-width: 860px) {
  .header-inner {
    flex-wrap: wrap;
    row-gap: 12px;
  }

  .site-nav {
    order: 3;
    width: 100%;
  }

  .lang-switch {
    order: 2;
    margin-left: auto;
  }

  .lang-link {
    padding: 7px 9px;
    font-size: 0.8rem;
  }
}
