/* ===========================================================================
   RestoOS · Web corporativa
   Paleta blanca/gris claro + negro + rojo #c41e3a. Manrope. Mobile-first.
   =========================================================================== */

:root {
  --bg: #ffffff;
  --bg-soft: #f7f6f3;
  --bg-card: #ffffff;
  --text: #0a0a0a;
  --text-muted: #5a5a5a;
  --text-dim: #8b8b8b;
  --border: #e7e5e2;
  --border-strong: #d8d5d0;
  --accent: #c41e3a;
  --accent-hover: #a8172e;
  --accent-soft: #fbeef0;

  --radius: 12px;
  --radius-lg: 18px;
  --shadow-sm: 0 1px 2px rgba(10, 10, 10, 0.04);
  --shadow-md: 0 8px 24px rgba(10, 10, 10, 0.06);
  --shadow-lg: 0 20px 60px rgba(10, 10, 10, 0.1);

  --font-sans: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto,
    sans-serif;

  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
svg {
  display: block;
  max-width: 100%;
}

button {
  font: inherit;
  cursor: pointer;
}

ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.logo {
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.02em;
  color: var(--text);
}
.logo__resto {
  color: var(--text);
}
.logo__os {
  color: var(--accent);
}
.logo--sm {
  font-size: 20px;
}

.nav {
  display: none;
  align-items: center;
  gap: 32px;
}
.nav a {
  font-weight: 500;
  font-size: 15px;
  color: var(--text-muted);
  transition: color 0.15s;
}
.nav a:hover {
  color: var(--text);
}
.nav__cta {
  padding: 9px 18px;
  border-radius: 999px;
  background: var(--text);
  color: #fff !important;
  font-weight: 600;
}
.nav__cta:hover {
  background: var(--accent) !important;
  color: #fff !important;
}

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: 0;
  padding: 10px;
  border-radius: 8px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
}

/*
 * Menú móvil — oculto por defecto via [hidden]. El JS hace toggle del
 * atributo; la regla :not([hidden]) lo muestra como flex. En desktop se
 * fuerza a no mostrarse nunca aunque el atributo estuviera fuera.
 */
.mobile-nav {
  flex-direction: column;
  gap: 6px;
  padding: 14px 20px 22px;
  border-top: 1px solid var(--border);
  background: #fff;
}
.mobile-nav a {
  padding: 12px 4px;
  font-weight: 600;
  border-bottom: 1px solid var(--border);
}
.mobile-nav a.btn {
  border-bottom: 0;
  margin-top: 10px;
  text-align: center;
}
.mobile-nav:not([hidden]) {
  display: flex;
}

/*
 * Desktop (>= 880px): nav horizontal en la barra; menú hamburguesa y
 * mobile-nav siempre ocultos, da igual el estado de [hidden].
 */
@media (min-width: 880px) {
  .nav { display: flex; }
  .nav-toggle { display: none; }
  .mobile-nav { display: none !important; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.005em;
  transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.05s;
  cursor: pointer;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn--lg {
  padding: 15px 28px;
  font-size: 16px;
}

.btn--full { width: 100%; }

.btn--primary {
  background: var(--accent);
  color: #fff;
}
.btn--primary:hover {
  background: var(--accent-hover);
}

.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}
.btn--ghost:hover {
  background: var(--bg-soft);
  border-color: var(--text);
}

/* ---------- Hero ---------- */
.hero {
  padding: 64px 0 80px;
  background:
    radial-gradient(circle at 80% 0%, rgba(196, 30, 58, 0.06), transparent 55%),
    radial-gradient(circle at 10% 100%, rgba(10, 10, 10, 0.04), transparent 60%),
    var(--bg);
}

.hero__inner {
  text-align: center;
}

.hero__eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 6px 14px;
  border-radius: 999px;
  margin: 0 0 22px;
}

.hero__title {
  font-size: clamp(34px, 6vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 800;
  margin: 0 0 22px;
}
.hero__title-accent {
  color: var(--accent);
}

.hero__subtitle {
  font-size: clamp(17px, 2vw, 21px);
  color: var(--text-muted);
  max-width: 540px;
  margin: 0 auto 32px;
  line-height: 1.5;
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 18px;
}

.hero__fineprint {
  font-size: 13px;
  color: var(--text-dim);
  margin: 14px 0 0;
}

/* ---------- Value props ---------- */
.value {
  padding: 64px 0;
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.value__grid {
  display: grid;
  gap: 22px;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) {
  .value__grid { grid-template-columns: repeat(3, 1fr); }
}

.value__card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s;
}
.value__card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.value__icon {
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 18px;
}
.value__icon svg { width: 24px; height: 24px; }

.value__title {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 8px;
}
.value__desc {
  font-size: 15px;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.6;
}

/* ---------- Section heads ---------- */
.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 48px;
}
.section-head__eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 12px;
}
.section-head__title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin: 0 0 14px;
}
.section-head__title--left { text-align: left; }
.section-head__sub {
  font-size: 17px;
  color: var(--text-muted);
  margin: 0;
}

/* ---------- Modules ---------- */
.modules {
  padding: 80px 0;
}
.modules__grid {
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .modules__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
  .modules__grid { grid-template-columns: repeat(4, 1fr); }
}

.module {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  transition: border-color 0.15s, transform 0.15s;
}
.module:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}
.module__icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--bg-soft);
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.module__icon svg { width: 22px; height: 22px; }
.module__title {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 6px;
  letter-spacing: -0.01em;
}
.module__desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0;
}

/* ---------- Pricing ---------- */
.pricing {
  padding: 80px 0;
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.pricing__grid {
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr;
  align-items: stretch;
}
@media (min-width: 880px) {
  .pricing__grid { grid-template-columns: repeat(3, 1fr); }
}

.plan {
  position: relative;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 26px;
  display: flex;
  flex-direction: column;
}
.plan--featured {
  border-color: var(--text);
  border-width: 2px;
  background: linear-gradient(180deg, #fff 0%, var(--bg-soft) 100%);
  box-shadow: var(--shadow-md);
}
.plan__badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--text);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 5px 14px;
  border-radius: 999px;
  text-transform: uppercase;
}

.plan__name {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 12px;
  letter-spacing: -0.01em;
}
.plan__price {
  margin: 0 0 6px;
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.plan__price-num {
  font-size: 56px;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
}
.plan__price-suffix {
  font-size: 14px;
  color: var(--text-muted);
}
.plan__tagline {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0 0 22px;
  min-height: 38px;
}
.plan__features {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0 0 26px;
  flex: 1;
}
.plan__features li {
  position: relative;
  padding-left: 26px;
  font-size: 15px;
  color: var(--text);
  line-height: 1.5;
}
.plan__features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 7px;
  width: 16px;
  height: 16px;
  background: var(--accent-soft);
  border-radius: 50%;
}
.plan__features li::after {
  content: '';
  position: absolute;
  left: 4px;
  top: 11px;
  width: 8px;
  height: 4px;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}

.pricing__note {
  text-align: center;
  font-size: 13px;
  color: var(--text-dim);
  margin: 28px 0 0;
}

/* ---------- Demo ---------- */
.demo {
  padding: 80px 0;
}
.demo__inner {
  display: grid;
  gap: 48px;
  align-items: center;
  grid-template-columns: 1fr;
}
@media (min-width: 860px) {
  .demo__inner { grid-template-columns: 1.2fr 1fr; }
}

.demo__desc {
  font-size: 17px;
  color: var(--text-muted);
  margin: 0 0 22px;
  line-height: 1.6;
}
.demo__points {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0 0 30px;
}
.demo__points li {
  position: relative;
  padding-left: 28px;
  font-size: 15px;
  color: var(--text);
}
.demo__points li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent);
  font-weight: 800;
}

/* Phone mock */
.demo__aside {
  display: flex;
  justify-content: center;
}
.phone {
  width: 240px;
  height: 480px;
  background: linear-gradient(180deg, #1a1a1a, #0a0a0a);
  border-radius: 36px;
  padding: 14px;
  box-shadow: var(--shadow-lg);
  position: relative;
}
.phone__notch {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 22px;
  background: #0a0a0a;
  border-radius: 0 0 14px 14px;
  z-index: 2;
}
.phone__screen {
  width: 100%;
  height: 100%;
  background: #fff;
  border-radius: 24px;
  padding: 36px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.phone__bar {
  width: 60%;
  height: 14px;
  background: var(--accent);
  border-radius: 4px;
  margin-bottom: 8px;
}
.phone__line {
  height: 10px;
  background: var(--bg-soft);
  border-radius: 4px;
  width: 100%;
}
.phone__line--lg { width: 90%; height: 14px; }
.phone__line--md { width: 70%; }

/* ---------- Register form ---------- */
.register {
  padding: 80px 0;
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
}

.register__inner {
  max-width: 580px;
  margin: 0 auto;
}

.form {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  box-shadow: var(--shadow-sm);
}
@media (min-width: 600px) {
  .form { padding: 40px 36px; }
}

.form__row {
  display: flex;
  flex-direction: column;
  gap: 8px;
  border: 0;
  padding: 0;
  margin: 0;
}

.form__label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.form__input {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  font: inherit;
  font-size: 16px;
  background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.form__input:focus {
  outline: 0;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.form__plan-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr;
}
@media (min-width: 480px) {
  .form__plan-grid { grid-template-columns: repeat(3, 1fr); }
}

.form__plan {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 14px 10px;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.form__plan input[type='radio'] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.form__plan:hover { border-color: var(--text); }
.form__plan:has(input:checked) {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.form__plan-name {
  font-weight: 700;
  font-size: 15px;
}
.form__plan-price {
  font-size: 13px;
  color: var(--text-muted);
}

.form__error {
  background: var(--accent-soft);
  color: var(--accent-hover);
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 14px;
  border: 1px solid rgba(196, 30, 58, 0.2);
}

.form__legal {
  font-size: 12px;
  color: var(--text-dim);
  text-align: center;
  margin: 0;
  line-height: 1.5;
}

.form__success {
  text-align: center;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 48px 28px;
  box-shadow: var(--shadow-sm);
}
.form__success-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: 800;
}
.form__success h3 {
  font-size: 22px;
  margin: 0 0 8px;
  font-weight: 800;
}
.form__success p {
  color: var(--text-muted);
  margin: 0;
  font-size: 16px;
}

/* ---------- Footer ---------- */
.footer {
  padding: 64px 0 32px;
  background: var(--text);
  color: #d8d6d2;
}
.footer__inner {
  display: grid;
  gap: 40px;
  grid-template-columns: 1fr;
}
@media (min-width: 760px) {
  .footer__inner { grid-template-columns: 1.2fr 2fr; }
}

.footer__brand .logo {
  color: #fff;
  margin-bottom: 12px;
  display: inline-block;
}
.footer__brand .logo__resto { color: #fff; }
.footer__tag {
  color: #a8a6a2;
  font-size: 14px;
  max-width: 280px;
  margin: 0;
}

.footer__nav {
  display: grid;
  gap: 32px;
  grid-template-columns: repeat(3, 1fr);
}

.footer__col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer__col h4 {
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  margin: 0 0 6px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.footer__col a {
  color: #a8a6a2;
  font-size: 14px;
  transition: color 0.15s;
}
.footer__col a:hover { color: #fff; }

.footer__copy {
  grid-column: 1 / -1;
  margin: 32px 0 0;
  padding-top: 24px;
  border-top: 1px solid #1c1c1c;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
  color: #6d6b67;
}
