:root {
  --bg: #0f172a; --surface: #1e293b; --text: #e2e8f0; --muted: #94a3b8;
  --accent: #38bdf8; --accent2: #0ea5e9; --radius: 14px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: "Segoe UI", system-ui, Roboto, Arial, sans-serif;
  background: var(--bg); color: var(--text); line-height: 1.6; min-height: 100vh;
  display: flex; flex-direction: column;
}
.container { width: min(1080px, 92%); margin: 0 auto; }
a { color: var(--accent); text-decoration: none; }

/* Header */
.site-header { background: rgba(15,23,42,.9); border-bottom: 1px solid #263449; position: sticky; top: 0; backdrop-filter: blur(8px); z-index: 10; }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 16px 0; }
.logo { font-size: 1.35rem; font-weight: 700; color: #fff; letter-spacing: .5px; }
.logo:hover { color: var(--accent); }
nav a { color: var(--muted); margin-left: 22px; font-weight: 500; padding-bottom: 4px; }
nav a:hover, nav a.active { color: var(--accent); border-bottom: 2px solid var(--accent); }

main { flex: 1; }

/* Hero */
.hero { padding: 90px 0 70px; background: radial-gradient(ellipse at top, #14273f 0%, var(--bg) 70%); text-align: center; }
.hero h1 { font-size: clamp(1.9rem, 4.5vw, 3.1rem); line-height: 1.2; margin-bottom: 18px; }
.hero h1 span { color: var(--accent); }
.hero p { color: var(--muted); font-size: 1.12rem; max-width: 640px; margin: 0 auto 30px; }
.cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.btn { display: inline-block; padding: 13px 26px; border-radius: 999px; font-weight: 600; transition: .2s; border: none; cursor: pointer; font-size: 1rem; }
.btn-primary { background: linear-gradient(135deg, var(--accent2), var(--accent)); color: #06263a; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(56,189,248,.35); }
.btn-ghost { border: 1px solid #334155; color: var(--text); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* Features / cards */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; padding: 55px 0; }
.features article, .cards article {
  background: var(--surface); padding: 26px; border-radius: var(--radius);
  border: 1px solid #263449; transition: .2s;
}
.features article:hover, .cards article:hover { transform: translateY(-4px); border-color: var(--accent); }
.features h3, .cards h3 { margin-bottom: 10px; font-size: 1.1rem; }
.features p, .cards p { color: var(--muted); font-size: .96rem; }

.band { background: linear-gradient(135deg, #0c4a6e, #0ea5e9); border-radius: var(--radius); padding: 44px; text-align: center; margin-bottom: 60px; }
.band h2 { font-size: 1.7rem; margin-bottom: 8px; color: #fff; }
.band p { color: #e0f2fe; margin-bottom: 20px; }
.band .btn-primary { background: #fff; }

/* Páginas internas */
.page-head { padding: 55px 0 35px; background: linear-gradient(180deg, #14273f, transparent); }
.page-head h1 { font-size: 2.2rem; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 22px; padding-bottom: 60px; }
.prose { padding-bottom: 60px; max-width: 760px; }
.prose p { margin-bottom: 14px; color: var(--muted); }
.prose strong { color: var(--text); }
.prose ul { margin: 16px 0 0 20px; color: var(--muted); }
.prose li { margin-bottom: 8px; }

/* Contacto */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; padding-bottom: 60px; }
.contact-form { background: var(--surface); padding: 26px; border-radius: var(--radius); border: 1px solid #263449; display: flex; flex-direction: column; gap: 14px; }
.contact-form label { font-size: .9rem; color: var(--muted); display: flex; flex-direction: column; gap: 6px; }
.contact-form input, .contact-form textarea {
  background: #0f172a; border: 1px solid #334155; border-radius: 8px;
  padding: 11px 13px; color: var(--text); font-size: 1rem; font-family: inherit;
}
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--accent); }
.ok { color: #4ade80; font-weight: 600; }

/* Footer */
.site-footer { border-top: 1px solid #263449; padding: 26px 0; text-align: center; color: var(--muted); font-size: .9rem; }
.site-footer .muted { font-size: .8rem; opacity: .7; margin-top: 4px; }

@media (max-width: 700px) {
  .contact-grid { grid-template-columns: 1fr; }
  nav a { margin-left: 12px; font-size: .9rem; }
}
