:root{
  --ink:#0b1f3f;
  --text:#22324d;
  --muted:#6b7a90;
  --card:#f6f8fb;
  --line:#e6ebf2;
  --btn:#0b1f3f;
  --btn2:#ffffff;
  --accent:#1b78b0;
  --shadow: 0 10px 30px rgba(11,31,63,.10);
  --radius:16px;
  --max:1120px;
}

*{box-sizing:border-box}

body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  color:var(--text);
  background:linear-gradient(180deg,#fff 0%, #fbfcfe 100%);
}

a{color:inherit; text-decoration:none}
.wrap{max-width:var(--max); margin:0 auto; padding:0 20px}

/* =========================
   TOPBAR
   ========================= */
.topbar{
  position:sticky; top:0; z-index:20;
  background:rgba(255,255,255,.90);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom:1px solid var(--line);
}
.topbar .row{
  display:flex; align-items:center; justify-content:space-between;
  padding:14px 0; gap:16px;
}

/* BRAND (LOGO) */
.brand{display:flex; align-items:center; gap:12px}
.brand-link{display:flex; align-items:center}
.brand-logo{height:38px; width:auto; display:block}

/* HERO logo (grande) */
.brand-headerlogo{
  height:140px;
  width:auto;
  display:block;
  margin-top: 21px;
  margin-bottom: 30px;
}

nav{display:flex; gap:16px; flex-wrap:wrap}
nav a{color:var(--muted); font-weight:700; font-size:14px}
nav a:hover{color:var(--ink)}

.req{color:#c62828; font-weight:900; margin-left:2px}

/* =========================
   BUTTONS
   ========================= */
.btn{
  display:inline-flex; align-items:center; justify-content:center;
  padding:12px 16px;
  border-radius:12px;
  border:1px solid transparent;
  font-weight:800;
  background:var(--btn); color:var(--btn2);
  box-shadow:0 12px 24px rgba(11,31,63,.18);
  cursor:pointer;
  white-space:nowrap;
}
.btn:hover{opacity:.95}
.btn.ghost{
  background:#fff;
  color:var(--ink);
  border:1px solid var(--line);
  box-shadow:none;
}
.btn.small{padding:10px 12px; font-size:13px}

/* =========================
   HERO
   ========================= */
.hero{padding:56px 0 26px}
.hero-grid{
  display:grid;
  grid-template-columns:1.08fr .92fr;
  gap:28px;
  align-items:stretch;
}
.kicker{
  display:inline-flex; align-items:center; gap:8px;
  padding:8px 10px;
  border:1px solid var(--line);
  background:#fff;
  border-radius:999px;
  color:var(--muted);
  font-weight:800;
  font-size:13px;
}
.dot{width:8px; height:8px; border-radius:99px; background:var(--accent)}
h1{margin:14px 0 10px; color:var(--ink); font-size:42px; line-height:1.08; letter-spacing:-.6px}
.subtitle{font-size:18px; line-height:1.55; color:var(--text); margin:0 0 14px}
.subtitle strong{font-weight:900}
.micro{margin-top:10px; color:var(--muted); font-size:18px; line-height:1.45}

/* =========================
   CARD
   ========================= */
.card{
  background:var(--card);
  border:1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.card.pad{padding:18px}
.card h3{margin:0 0 10px; color:var(--ink); font-size:18px}
.card p{margin:0; color:var(--muted); line-height:1.55; font-size:14px}

/* =========================
   FORM
   ========================= */
.form{display:grid; gap:10px; margin-top:12px}
.form-row{display:grid; grid-template-columns: 1fr 1fr; gap:10px}
label{font-size:12px; color:var(--muted); font-weight:800}
input, textarea{
  width:100%;
  padding:12px 12px;
  border-radius:12px;
  border:1px solid var(--line);
  background:#fff;
  outline:none;
  font-size:14px;
  color:var(--text);
}
textarea{min-height:96px; resize:vertical}
.fineprint{font-size:14px; color:var(--muted); line-height:1.5; margin-top:8px}

/* =========================
   SECTIONS
   ========================= */
section{padding:46px 0; scroll-margin-top:60px}
.section-title{font-size:28px; color:var(--ink); margin:0 0 10px; letter-spacing:-.3px}
.section-sub{margin:0 0 18px; color:var(--muted); line-height:1.6}
.grid3{display:grid; grid-template-columns: repeat(3, 1fr); gap:16px}
.grid2{display:grid; grid-template-columns: repeat(2, 1fr); gap:16px}

/* =========================
   LIST
   ========================= */
.list{margin:10px 0 0; padding:0; list-style:none; display:grid; gap:10px}
.list li{
  display:flex; gap:10px; align-items:flex-start;
  padding:12px;
  background:#fff;
  border:1px solid var(--line);
  border-radius:14px;
}
.tick{
  width:22px; height:22px; border-radius:7px;
  background:rgba(27,120,176,.12);
  display:flex; align-items:center; justify-content:center;
  color:var(--accent);
  font-weight:900;
  flex:0 0 auto;
}
.li-title{font-weight:900; color:var(--ink); margin:0 0 2px}
.li-desc{margin:0; color:var(--muted); font-size:13px; line-height:1.45}

.hr{height:1px; background:var(--line); margin:14px 0}

.cta{
  padding:18px;
  display:flex; gap:14px; align-items:center; justify-content:space-between;
  background:linear-gradient(135deg, rgba(11,31,63,.06), rgba(27,120,176,.06));
  border:1px solid var(--line);
  border-radius: var(--radius);
}
.cta strong{color:var(--ink)}
.small{font-size:12px; color:var(--muted)}

/* =========================
   PREVIEW TABS
   ========================= */
.tabs{display:flex; gap:10px; flex-wrap:wrap}
.tab{
  border:1px solid var(--line);
  background:#fff;
  border-radius:12px;
  padding:10px 12px;
  font-weight:900;
  color:var(--muted);
  cursor:pointer;
  user-select:none;
}
.tab.active{
  color:var(--ink);
  border-color:rgba(27,120,176,.35);
  box-shadow: 0 10px 22px rgba(11,31,63,.08);
}
.viewer{
  margin-top:12px;
  background:#fff;
  border:1px solid var(--line);
  border-radius: var(--radius);
  overflow:hidden;
  box-shadow: var(--shadow);
}
.viewer .bar{
  display:flex; align-items:center; justify-content:space-between; gap:12px;
  padding:12px 14px;
  border-bottom:1px solid var(--line);
  background:linear-gradient(180deg,#fff, #fbfcfe);
}
.viewer .title{font-weight:950; color:var(--ink)}
.viewer iframe{
  width:100%;
  height:720px;
  border:0;
  display:block;
  background:#fff;
}
.viewer img{
  border-radius: 12px;
  border: 1px solid var(--line);
  box-shadow: 0 10px 22px rgba(11,31,63,.08);
}

/* =========================
   DATA TABLE
   ========================= */
table{
  width:100%;
  border-collapse:separate;
  border-spacing:0;
  overflow:hidden;
  border:1px solid var(--line);
  border-radius:14px;
  background:#fff;
}
th,td{
  padding:12px 12px;
  border-bottom:1px solid var(--line);
  font-size:13px;
  color:var(--text);
  vertical-align:top;
}
th{color:var(--ink); font-weight:950; background:#fbfcfe}
tr:last-child td{border-bottom:none}
.tag{
  display:inline-block;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid var(--line);
  background:#fff;
  color:var(--muted);
  font-weight:900;
  font-size:12px;
  margin:2px 6px 0 0;
}

/* =========================
   CLIENTES (DESKTOP/TABLET)
   ========================= */
#clientes .card.pad{padding:16px}

/* Desktop/tablet: grid normal */
#clientes .logos{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap:14px;
  align-items:stretch;
}
#clientes .logo{
  background:#fff;
  border:1px solid var(--line);
  border-radius:14px;
  padding:12px;

  height:86px;                 /* altura fija = no se enciman */
  display:flex;
  align-items:center;
  justify-content:center;

  overflow:hidden;
}
#clientes .logo img{
  display:block;
  width:100%;
  height:100%;
  max-width:100%;
  max-height:100%;
  object-fit:contain;
  object-position:center;

  opacity:.85;
  filter:grayscale(100%);
  transition:opacity .2s ease, filter .2s ease;
}
#clientes .logo:hover img{
  opacity:1;
  filter:grayscale(0%);
}

/* =========================
   FOOTER
   ========================= */
.footer{
  padding:26px 0 36px;
  border-top:1px solid var(--line);
  color:var(--muted);
  font-size:13px;
}

/* =========================
   RESPONSIVE
   ========================= */
@media (max-width: 980px){
  .hero-grid{grid-template-columns:1fr}
  h1{font-size:36px}
  .grid3{grid-template-columns:1fr}
  .grid2{grid-template-columns:1fr}
  .form-row{grid-template-columns:1fr}
  nav{display:none}
  .viewer iframe{height:560px}
}

/* MOBILE FIX: TOPBAR + HERO */
@media (max-width: 720px){

  .topbar .row{
    padding: 10px 0;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: space-between;
  }

  .brand-logo{height:32px}

  .topbar .btn{
    padding: 10px 12px;
    border-radius: 12px;
    font-size: 13px;
  }

  .hero{padding: 22px 0 18px}
  .hero-grid{gap: 14px}

  .brand-headerlogo{
    height:auto;
    width:min(420px, 92%);
    max-width:92%;
    margin:10px auto 14px;
  }

  .subtitle{font-size:16px; line-height:1.5; margin:0 0 12px}

  /* domar tu inline font-size:25px del primer subtitle */
  .hero .subtitle[style*="font-size:25px"]{
    font-size:20px !important;
    line-height:1.25 !important;
  }

  .micro{font-size:14px; line-height:1.45}

  .hero .btn{width:100%}
  .hero .btn.ghost{width:100%}

  /* ===== CLIENTES: SCROLL HORIZONTAL EN MÓVIL ===== */
  #clientes .card.pad{
    padding: 12px;
  }

  /* convierte grid a carrusel horizontal */
  #clientes .logos{
    display:flex;
    gap:12px;
    overflow-x:auto;
    padding: 6px 2px 10px;

    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }

  /* oculta scrollbar (opcional) */
  #clientes .logos::-webkit-scrollbar{height:0}
  #clientes .logos{ scrollbar-width:none }

  /* cada logo como “slide” */
  #clientes .logo{
    flex:0 0 72%;
    height:84px;
    scroll-snap-align: start;
  }
}

/* Móviles chicos */
@media (max-width: 420px){
  .kicker{font-size:12px; padding:7px 10px}
  .brand-headerlogo{width:96%; margin:8px auto 12px}

  #clientes .logo{
    flex-basis: 82%;
  }
}

/* Oculto en desktop */
.swipe-hint{ display:none; }

/* Visible solo en móvil */
@media (max-width: 720px){
  .swipe-hint{
    display:block;
    text-align:center;   /* opcional */
    opacity:.9;          /* opcional */
  }
}


/* CTA FAQ – fix mobile overflow */
@media (max-width: 720px){
  #faq .cta{
    flex-direction: column;     /* apila texto + botón */
    align-items: stretch;       /* ancho completo */
    gap: 12px;
    text-align: center;
  }

  #faq .cta .btn{
    width: 100%;                /* botón full-width */
  }
}

/* EBOOK CARD */
.ebook-grid{
  display:grid;
  grid-template-columns: 160px 1fr;
  gap:16px;
  align-items:start;
}

.ebook-cover img{
  width:100%;
  height:auto;
  display:block;
  border-radius:12px;
  border:1px solid var(--line);
  box-shadow: var(--shadow);
  background:#fff;
}

@media (max-width: 820px){
  .ebook-grid{
    grid-template-columns: 1fr;
  }
  .ebook-cover{
    max-width: 220px;
  }
}

.ebook-cover-title{
  font-size:12px;
  font-weight:800;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:var(--muted);
  margin-bottom:6px;
  text-align:center;
}

/* TOPBAR NAV: más legible */
.topbar nav{
  display:flex;
  gap:0px;                 /* más aire entre links */
  flex-wrap:wrap;           /* si falta espacio, baja limpio */
  align-items:center;
}

.topbar nav a{
  font-size:14px;           /* súbelo si lo quieres más grande: 15px */
  font-weight:700;
  color:var(--muted);
  padding:8px 10px;
  border-radius:10px;
  text-decoration:none;
  line-height:1;
  transition: background .15s ease, color .15s ease;
}

.topbar nav a:hover{
  color:var(--ink);
  background:rgba(11,31,63,.06); /* suave */
}

/* Link activo (si usas :target luego) */
.topbar nav a.active{
  color:var(--ink);
  background:rgba(27,120,176,.10);
}

/* Si tu nav está dentro de .topbar .row */
.topbar .row{
  gap:14px;                 /* aire entre logo / nav / botones */
}

/* que el nav no empuje a los botones */
.topbar nav{
  max-width: 760px;         /* ajusta según tu layout */
}

.topbar nav a{
  color:#516079;  /* un poquito más oscuro que var(--muted) si quieres */
}

/* Lista compacta de beneficios eBook */
.ebook-benefits{
  display:flex;
  flex-direction:column;
  gap:8px; /* espacio entre items */
}

.ebook-benefit{
  display:flex;
  align-items:center;
  gap:10px;

  padding:6px 10px;        /* ↓ menos alto */
  border:1px solid var(--line);
  border-radius:12px;

  background:#fff;
  font-size:14px;
  line-height:1.3;
  color:var(--text);
}

/* Check */
.ebook-benefit .checkmark{
  width:20px;
  height:20px;
  min-width:20px;

  display:flex;
  align-items:center;
  justify-content:center;

  border-radius:50%;
  background:rgba(27,120,176,.12);
  color:var(--accent);

  font-size:12px;          /* ↓ más pequeño */
  font-weight:900;
}




