/* ===== Tokens ===== */
:root {
  --ink: #12232e;
  --ink-soft: #2c3e4a;
  --paper: #faf8f5;
  --paper-alt: #f2ede4;
  --line: #e2dcd0;
  --gold: #b08d57;
  --gold-dark: #8f6f3f;
  --gold-light: #c9a05c;
  --white: #ffffff;
  --text: #23303a;
  --text-muted: #5a6670;
  --whatsapp: #25d366;
  --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-sans: 'Source Sans 3', 'Segoe UI', Arial, sans-serif;
  --radius: 10px;
  --shadow-sm: 0 2px 8px rgba(18, 35, 46, 0.06);
  --shadow-md: 0 8px 28px rgba(18, 35, 46, 0.10);
  --container: 1140px;
}

/* ===== Reset ===== */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; cursor: pointer; }
h1, h2, h3 { font-family: var(--font-serif); font-weight: 700; color: var(--ink); line-height: 1.2; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.narrow { max-width: 760px; }
.center { text-align: center; margin-left: auto; margin-right: auto; }

.eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 10px;
}
.eyebrow-center { text-align: center; }
.lead-text { font-size: 1.1rem; color: var(--text-muted); }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--gold);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--gold-dark); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--line);
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-dark); }
.btn-lg { padding: 15px 30px; font-size: 1rem; }
.btn-block { width: 100%; }
.btn-nav { padding: 10px 20px; font-size: 0.88rem; }

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 248, 245, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  gap: 24px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  background: var(--ink);
  color: var(--gold-light);
  font-family: var(--font-serif);
  font-weight: 700;
  border-radius: 50%;
  font-size: 1.05rem;
}
.brand-name {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--ink);
  font-weight: 600;
}
.brand-name strong { color: var(--gold-dark); font-weight: 700; }

.main-nav { display: flex; gap: 32px; margin-left: auto; }
.main-nav a {
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--ink-soft);
  position: relative;
  padding: 4px 0;
}
.main-nav a:hover { color: var(--gold-dark); }
.main-nav .nav-login { display: none; }

.header-actions { display: flex; align-items: center; gap: 12px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px; height: 40px;
  background: none;
  border: none;
}
.nav-toggle span {
  width: 22px; height: 2px;
  background: var(--ink);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  padding: 96px 0 90px;
  overflow: hidden;
  background: linear-gradient(180deg, #ffffff 0%, var(--paper) 100%);
}
.hero-decor {
  position: absolute;
  top: -160px; right: -160px;
  width: 480px; height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(176,141,87,0.14), transparent 70%);
  pointer-events: none;
}
.hero-inner { position: relative; max-width: 760px; text-align: center; margin: 0 auto; }
.hero h1 {
  font-size: clamp(2rem, 4.4vw, 3.1rem);
  margin: 6px 0 20px;
  letter-spacing: -0.01em;
}
.hero-lead {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 620px;
  margin: 0 auto 36px;
}
.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== Problema ===== */
.problema { padding: 70px 0; background: var(--ink); }
.problema .eyebrow { color: var(--gold-light); }
.problema h2 { color: var(--white); font-size: clamp(1.6rem, 3vw, 2.1rem); margin-bottom: 20px; }
.problema .lead-text { color: rgba(255,255,255,0.78); font-size: 1.12rem; }
.problema strong { color: var(--gold-light); }

/* ===== Funciones ===== */
.funciones { padding: 96px 0; }
.funciones h2 { font-size: clamp(1.7rem, 3vw, 2.2rem); margin-bottom: 52px; }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.feature-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}
.feature-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  border-color: var(--gold-light);
}
.feature-card-highlight {
  grid-column: span 3;
  background: linear-gradient(135deg, var(--ink) 0%, #1c3646 100%);
  border: none;
}
.feature-card-highlight h3,
.feature-card-highlight p { color: var(--white); }
.feature-card-highlight p { color: rgba(255,255,255,0.78); }
.feature-card-highlight .feature-icon { color: var(--gold-light); background: rgba(255,255,255,0.08); }

.feature-icon {
  width: 46px; height: 46px;
  display: flex; align-items: center; justify-content: center;
  background: var(--paper-alt);
  color: var(--gold-dark);
  border-radius: 10px;
  margin-bottom: 18px;
}
.feature-icon svg { width: 24px; height: 24px; }
.feature-card h3 { font-size: 1.1rem; margin-bottom: 10px; }
.feature-card p { color: var(--text-muted); font-size: 0.96rem; }
.feature-card code {
  background: var(--paper-alt);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.85em;
}

/* ===== Capturas ===== */
.capturas { padding: 96px 0; background: var(--paper-alt); }
.capturas h2 { font-size: clamp(1.7rem, 3vw, 2.2rem); margin-bottom: 52px; }

.showcase {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 24px;
  align-items: start;
}
.showcase-secondary {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 24px;
  height: 100%;
}

.browser-frame {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.browser-bar {
  display: flex;
  gap: 6px;
  padding: 10px 14px;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.browser-bar span {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--line);
}
.browser-bar span:nth-child(1) { background: #e2a0a0; }
.browser-bar span:nth-child(2) { background: #e2cf9e; }
.browser-bar span:nth-child(3) { background: #a7d3ae; }

.screenshot-btn {
  display: block;
  width: 100%;
  padding: 0;
  border: none;
  background: none;
  cursor: zoom-in;
  position: relative;
}
.screenshot-btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(18, 35, 46, 0);
  transition: background 0.15s ease;
}
.screenshot-btn:hover::after { background: rgba(18, 35, 46, 0.12); }
.screenshot-img {
  display: block;
  width: 100%;
  aspect-ratio: 21 / 10;
  object-fit: cover;
  object-position: top left;
  background: var(--paper-alt);
}
.browser-frame figcaption {
  padding: 12px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-soft);
  border-top: 1px solid var(--line);
  background: var(--white);
}

/* ===== Lightbox ===== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5vh 5vw;
  background: rgba(15, 24, 30, 0.88);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox figure {
  max-width: 100%;
  max-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.lightbox img {
  max-width: 100%;
  max-height: 82vh;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}
.lightbox figcaption {
  color: rgba(255,255,255,0.85);
  font-size: 0.95rem;
  font-weight: 600;
}
.lightbox-close {
  position: absolute;
  top: 20px; right: 24px;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.1);
  color: var(--white);
  font-size: 1.6rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease;
}
.lightbox-close:hover { background: rgba(255,255,255,0.22); }

/* ===== Pasos ===== */
.pasos { padding: 96px 0; background: var(--paper-alt); }
.pasos h2 { font-size: clamp(1.7rem, 3vw, 2.2rem); margin-bottom: 52px; }
.pasos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.paso { text-align: center; padding: 0 12px; }
.paso-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--gold-light);
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 18px;
}
.paso h3 { font-size: 1.15rem; margin-bottom: 8px; }
.paso p { color: var(--text-muted); font-size: 0.95rem; }

/* ===== Resumen ===== */
.resumen { padding: 90px 0; }
.resumen h2 { font-size: clamp(1.7rem, 3vw, 2.2rem); margin-bottom: 18px; }

/* ===== Contacto ===== */
.contacto { padding: 96px 0; background: var(--ink); }
.contacto-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.contacto .eyebrow { color: var(--gold-light); }
.contacto-info h2 { color: var(--white); font-size: clamp(1.7rem, 3vw, 2.2rem); margin: 4px 0 16px; }
.contacto-info .lead-text { color: rgba(255,255,255,0.72); margin-bottom: 36px; }

.contact-list { display: flex; flex-direction: column; gap: 20px; }
.contact-list li { display: flex; align-items: center; gap: 14px; }
.contact-icon {
  width: 42px; height: 42px;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.08);
  color: var(--gold-light);
  border-radius: 50%;
}
.contact-icon svg { width: 20px; height: 20px; }
.contact-list strong { display: block; color: var(--white); font-size: 0.85rem; font-weight: 600; }
.contact-list a, .contact-list span { color: rgba(255,255,255,0.75); font-size: 0.98rem; }
.contact-list a:hover { color: var(--gold-light); }

.contacto-form {
  background: var(--white);
  border-radius: 14px;
  padding: 36px;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.form-row { display: flex; flex-direction: column; gap: 6px; }
.form-row-half { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-row-half > div { display: flex; flex-direction: column; gap: 6px; }
.contacto-form label { font-size: 0.85rem; font-weight: 600; color: var(--ink-soft); }
.contacto-form input,
.contacto-form textarea {
  border: 1.5px solid var(--line);
  border-radius: 8px;
  padding: 11px 14px;
  font: inherit;
  color: var(--text);
  background: var(--paper);
  transition: border-color 0.15s ease;
  resize: vertical;
}
.contacto-form input:focus,
.contacto-form textarea:focus {
  outline: none;
  border-color: var(--gold);
}
.form-hint { font-size: 0.8rem; color: var(--text-muted); text-align: center; }
.form-row-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-message { font-size: 0.85rem; text-align: center; min-height: 1.2em; margin: 0; }
.form-message.is-success { color: #1a7f4b; }
.form-message.is-error { color: #c0392b; }

/* ===== Footer ===== */
.site-footer { padding: 40px 0; background: #0d1a22; }
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.site-footer .brand-name { color: var(--white); }
.site-footer .brand-name strong { color: var(--gold-light); }
.site-footer p { color: rgba(255,255,255,0.5); font-size: 0.88rem; }

.footer-credit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.12);
}
.footer-credit span {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
}
.footer-credit img { height: 20px; width: auto; opacity: 0.85; transition: opacity 0.15s ease; }
.footer-credit a:hover img { opacity: 1; }

/* ===== WhatsApp float button ===== */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 58px; height: 58px;
  background: var(--whatsapp);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
  z-index: 90;
  transition: transform 0.15s ease;
}
.whatsapp-float:hover { transform: scale(1.08); }
.whatsapp-float svg { width: 30px; height: 30px; }

/* ===== Scroll reveal ===== */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-card-highlight { grid-column: span 2; }
  .pasos-grid { grid-template-columns: 1fr; gap: 40px; }
  .contacto-grid { grid-template-columns: 1fr; gap: 48px; }
  .showcase { grid-template-columns: 1fr; }
  .showcase-secondary { grid-template-columns: 1fr 1fr; grid-template-rows: none; }
}

@media (max-width: 720px) {
  .main-nav { display: none; }
  .nav-toggle { display: flex; }
  .btn-nav { display: none; }

  .site-header.nav-open .main-nav {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 76px;
    left: 0; right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 20px 24px 28px;
    gap: 18px;
  }

  .site-header.nav-open .main-nav .nav-login {
    display: inline-flex;
    justify-content: center;
    margin-top: 4px;
    padding: 11px 0;
    border-radius: 999px;
    background: var(--ink);
    color: var(--white);
    font-weight: 600;
  }

  .feature-grid { grid-template-columns: 1fr; }
  .feature-card-highlight { grid-column: span 1; }
  .form-row-half { grid-template-columns: 1fr; }
  .showcase-secondary { grid-template-columns: 1fr; }
  .hero { padding: 64px 0 60px; }
  .funciones, .pasos, .resumen, .contacto, .capturas { padding: 64px 0; }
}
