/* Estilos base sin dependencias externas */
/* Paleta y tipografía */
:root{
  --bg: #f8fafc;       /* gris muy claro */
  --text: #1f2937;     /* gris 800 */
  --muted: #eef2f7;    /* gris 100-200 */
  --primary: #2563eb;  /* azul 600 */
  --primary-700: #1d4ed8;
  --success: #22c55e;
  --white: #ffffff;
  --shadow: 0 8px 20px rgba(0,0,0,.08);
  --radius: 16px;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, Helvetica Neue, Arial, 'Apple Color Emoji','Segoe UI Emoji';
  color:var(--text);
  background:var(--bg);
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}

/* Layout utilidades */
.container{max-width:1100px;margin:0 auto;padding:0 20px}
.center{text-align:center}
.narrow{max-width:760px}
.mt-16{margin-top:16px}

/* Header fijo */
.header{
  position:fixed; inset:0 0 auto 0;
  background:#fff; border-bottom:1px solid #e5e7eb;
  box-shadow:0 2px 8px rgba(0,0,0,.03);
  z-index:10;
}
.head-wrap{display:flex; align-items:center; justify-content:space-between; padding:14px 0}
.brand{font-weight:800; letter-spacing:.5px; font-size:20px}
.brand span{color:var(--primary)}
.nav{display:flex; gap:24px}
.nav a{color:#374151; text-decoration:none; font-weight:500}
.nav a:hover{color:var(--primary)}
.nav-toggle{display:none; font-size:22px; background:none; border:0; cursor:pointer}

@media (max-width: 768px){
  .nav{display:none; position:absolute; top:58px; right:20px; left:20px; flex-direction:column; background:#fff; padding:14px; border:1px solid #e5e7eb; border-radius:12px; box-shadow:var(--shadow)}
  .nav.open{display:flex}
  .nav-toggle{display:inline-block}
}

/* Hero */
.hero{
  padding-top:96px; /* compensa el header fijo */
  min-height:calc(100vh - 64px);
  display:flex; align-items:center;
  background:linear-gradient(90deg, #2563eb, #4f46e5);
  color:#fff;
}
.hero-inner{padding:40px 0}
.hero h1{font-size:40px; line-height:1.1; margin:0 0 14px; font-weight:800}
.hero p{font-size:18px; opacity:.95; margin:0 0 24px}
.cta-row{display:flex; gap:12px; flex-wrap:wrap}

/* Secciones */
.section{padding:72px 0; background:var(--bg)}
.section.muted{background:var(--muted)}
.section-title{font-size:28px; margin:0 0 28px; text-align:center}

/* Botones */
.btn{display:inline-block; padding:12px 20px; border-radius:999px; text-decoration:none; font-weight:700; text-align:center; border:2px solid transparent; transition:.15s}
.btn-primary{background:var(--white); color:var(--primary); border-color:var(--white)}
.btn-primary:hover{background:#f3f4f6}
.btn-ghost{background:transparent; color:#fff; border-color:#fff}
.btn-ghost:hover{background:rgba(255,255,255,.12)}
.btn-success{background:var(--success); color:#fff}
.btn-success:hover{filter:brightness(.95)}
.btn-block{width:100%}

/* Cards */
.grid{display:grid; gap:20px}
@media (min-width: 768px){
  .grid.cards{grid-template-columns:repeat(3, 1fr)}
}
.card{background:#fff; border:1px solid #e5e7eb; border-radius:var(--radius); padding:24px; box-shadow:var(--shadow); transition: transform .12s ease, box-shadow .12s ease}
.card:hover{transform:translateY(-2px); box-shadow:0 12px 24px rgba(0,0,0,.10)}
.card h3{margin:10px 0 8px; font-size:18px}
.card-emoji{font-size:40px}

/* Formulario */
.form{margin-top:10px}
.form-row{margin-bottom:12px}
.form input,.form textarea{
  width:100%; padding:14px; border:1px solid #d1d5db; border-radius:12px; background:#fff; font:inherit;
}
.form input:focus,.form textarea:focus{outline:none; border-color:var(--primary); box-shadow:0 0 0 3px rgba(37,99,235,.15)}

/* Footer */
.footer{background:#fff; border-top:1px solid #e5e7eb; padding:20px 0; margin-top:20px}
.muted-text{color:#4b5563}
