/* =========================================================
   MiniWeb — Hosting compartido y páginas web
   Paleta: azul profundo, agua marina y morado (dark minimal)
   ========================================================= */

:root {
  --bg: #070b18;
  --bg-2: #0b1226;
  --surface: rgba(255, 255, 255, 0.04);
  --border: rgba(255, 255, 255, 0.10);
  --text: #eaf0ff;
  --muted: #96a2c4;
  --blue: #3b82f6;
  --aqua: #22d3ee;
  --purple: #a855f7;
  --grad: linear-gradient(100deg, var(--aqua), var(--blue) 45%, var(--purple));
  --radius: 18px;
  --maxw: 1160px;
  --shadow: 0 30px 80px rgba(2, 6, 23, .6);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Inter", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, .brand-name { font-family: "Sora", system-ui, sans-serif; line-height: 1.15; }
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container { width: min(100% - 2.5rem, var(--maxw)); margin-inline: auto; }
.container.narrow { width: min(100% - 2.5rem, 720px); }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.muted { color: var(--muted); }

/* Fondo ambiental */
.bg-aura {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60% 45% at 50% 0%, rgba(34, 211, 238, .16), transparent 70%),
    radial-gradient(50% 40% at 85% 25%, rgba(168, 85, 247, .16), transparent 70%),
    radial-gradient(45% 40% at 10% 45%, rgba(59, 130, 246, .14), transparent 70%);
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .5rem; padding: .7rem 1.15rem; border-radius: 999px;
  font-weight: 600; font-size: .95rem; border: 1px solid transparent;
  cursor: pointer; transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.btn-lg { padding: .95rem 1.6rem; font-size: 1rem; }
.btn-primary { background: var(--grad); color: #05070f; box-shadow: 0 10px 30px rgba(59, 130, 246, .35); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px rgba(168, 85, 247, .4); }
.btn-ghost { border-color: var(--border); background: var(--surface); color: var(--text); }
.btn-ghost:hover { border-color: rgba(34, 211, 238, .6); transform: translateY(-2px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(7, 11, 24, .72);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 72px; }
.brand { display: flex; align-items: center; gap: .6rem; }
.brand-mark { display: grid; place-items: center; }
.brand-name { font-size: 1.3rem; font-weight: 800; letter-spacing: -.02em; }
.nav { display: flex; align-items: center; gap: 1.6rem; }
.nav a { font-size: .95rem; color: var(--muted); transition: color .2s; }
.nav a:hover { color: var(--text); }
.nav .nav-cta { color: #05070f; }
.burger { display: none; background: none; border: 0; padding: .4rem; cursor: pointer; }
.burger span { display: block; width: 24px; height: 2px; background: var(--text); margin: 5px 0; border-radius: 2px; transition: .25s; }
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { padding: clamp(3.5rem, 9vw, 7rem) 0 clamp(3rem, 7vw, 5rem); }
.hero-inner { text-align: center; }
.pill {
  display: inline-block; padding: .35rem .9rem; border-radius: 999px;
  border: 1px solid var(--border); background: var(--surface);
  font-size: .82rem; color: var(--muted); margin-bottom: 1.4rem;
}
.hero h1 { font-size: clamp(2.3rem, 6.2vw, 4.2rem); font-weight: 800; letter-spacing: -.03em; }
.lead { max-width: 620px; margin: 1.2rem auto 0; color: var(--muted); font-size: clamp(1rem, 2vw, 1.15rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: center; margin-top: 2rem; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 1.4rem; justify-content: center; margin-top: 2rem; color: var(--muted); font-size: .88rem; }
.hero-badges li::before { content: "✓"; color: var(--aqua); margin-right: .4rem; }
.hero-shot {
  margin-top: clamp(2.5rem, 6vw, 4rem);
  border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); background: var(--bg-2);
}

/* ---------- Secciones ---------- */
.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.section-alt { background: linear-gradient(180deg, rgba(255,255,255,.025), transparent); border-block: 1px solid var(--border); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto clamp(2rem, 5vw, 3.2rem); }
.eyebrow { text-transform: uppercase; letter-spacing: .18em; font-size: .75rem; color: var(--aqua); font-weight: 600; }
.section-head h2, .about h2 { font-size: clamp(1.8rem, 4vw, 2.7rem); font-weight: 700; letter-spacing: -.02em; margin-top: .6rem; }
.section-sub { color: var(--muted); margin-top: .8rem; }

/* ---------- Cards ---------- */
.cards { display: grid; gap: 1.1rem; }
.cards-2 { grid-template-columns: repeat(2, 1fr); }
.cards-3 { grid-template-columns: repeat(3, 1fr); }
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.5rem;
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.card:hover { transform: translateY(-4px); border-color: rgba(34, 211, 238, .45); background: rgba(255,255,255,.06); }
.card h3 { font-size: 1.1rem; margin: .8rem 0 .4rem; }
.card p { color: var(--muted); font-size: .95rem; }
.card .ic {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px;
  background: var(--grad); color: #05070f; font-size: 1rem; font-weight: 700;
}

/* MiniWeb layout */
.miniweb-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.2rem, 3vw, 2.5rem); align-items: center; }
.miniweb-image { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }

/* Planes */
.plan { display: flex; flex-direction: column; position: relative; padding: 1.9rem 1.6rem; }
.plan .price { margin: .6rem 0 1.2rem; color: var(--muted); }
.plan .price span { font-family: "Sora", sans-serif; font-size: 2.3rem; font-weight: 800; color: var(--text); }
.plan ul { display: grid; gap: .6rem; margin-bottom: 1.6rem; font-size: .94rem; color: var(--muted); }
.plan li::before { content: "✓"; color: var(--aqua); margin-right: .55rem; }
.plan .btn { margin-top: auto; }
.plan.featured { border-color: rgba(168, 85, 247, .55); background: rgba(168, 85, 247, .08); box-shadow: 0 20px 60px rgba(168,85,247,.18); }
.plan .tag {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--grad); color: #05070f; font-size: .72rem; font-weight: 700;
  padding: .25rem .8rem; border-radius: 999px; white-space: nowrap;
}

/* Nosotros */
.about { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.about p { color: var(--muted); margin-top: 1rem; }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.stats > div { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.3rem; text-align: center; }
.stats dt { font-family: "Sora", sans-serif; font-size: 1.7rem; font-weight: 800; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stats dd { color: var(--muted); font-size: .88rem; margin-top: .25rem; }

/* Formulario */
.form { display: grid; gap: 1.1rem; }
.field { display: grid; gap: .45rem; }
.field label { font-size: .88rem; color: var(--muted); font-weight: 500; }
input, textarea {
  width: 100%; font: inherit; color: var(--text);
  background: rgba(255,255,255,.04); border: 1px solid var(--border);
  border-radius: 12px; padding: .8rem 1rem; outline: none;
  transition: border-color .2s, box-shadow .2s;
}
input::placeholder, textarea::placeholder { color: #64708f; }
input:focus, textarea:focus { border-color: var(--aqua); box-shadow: 0 0 0 3px rgba(34, 211, 238, .18); }
textarea { resize: vertical; }
.form .btn { justify-self: start; }
.form-msg { font-size: .9rem; min-height: 1.2rem; }
.form-msg.ok { color: #34d399; }
.form-msg.err { color: #f87171; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 3rem 0 1.5rem; background: rgba(255,255,255,.02); }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
.footer-inner .muted { margin-top: .5rem; max-width: 320px; font-size: .92rem; }
.footer-links, .socials { display: grid; gap: .55rem; font-size: .93rem; color: var(--muted); }
.footer-links a:hover, .socials a:hover { color: var(--aqua); }
.socials a { color: var(--muted); }
.copyright { margin-top: 2.5rem; padding-top: 1.2rem; border-top: 1px solid var(--border); color: var(--muted); font-size: .85rem; text-align: center; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .miniweb-grid, .about { grid-template-columns: 1fr; }
  .cards-3 { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 780px) {
  .burger { display: block; }
  .nav {
    position: fixed; inset: 72px 0 auto; flex-direction: column; align-items: stretch;
    gap: .25rem; padding: 1rem 1.25rem 1.6rem;
    background: rgba(7, 11, 24, .97); border-bottom: 1px solid var(--border);
    transform: translateY(-130%); transition: transform .3s ease; visibility: hidden;
  }
  .nav.open { transform: translateY(0); visibility: visible; }
  .nav a { padding: .75rem .25rem; border-bottom: 1px solid var(--border); }
  .nav .nav-cta { margin-top: .8rem; border-bottom: 0; justify-content: center; }
}
@media (max-width: 560px) {
  .cards-2 { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; scroll-behavior: auto; }
}
section[id] { scroll-margin-top: 80px; }
