:root {
  --bg: #ffffff;
  --bg2: #f4f7fb;
  --ink: #0f172a;
  --ink2: #1e293b;
  --muted: #5b6472;
  --line: #e3e8ef;
  --primary: #1d4ed8;
  --primary-dark: #1e3a8a;
  --primary-soft: #eaf0ff;
  --accent: #f59e0b;
  --ok: #16a34a;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(15, 23, 42, 0.07);
  --shadow-lg: 0 14px 40px rgba(15, 23, 42, 0.12);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

.container { max-width: 1120px; margin: 0 auto; padding: 0 1.3rem; }

/* ── Botones ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .5rem; font-weight: 600; font-size: .95rem;
  padding: .8rem 1.5rem; border-radius: 10px; cursor: pointer;
  border: 1px solid transparent; transition: transform .15s, box-shadow .15s, background .15s;
}
.btn-sm { padding: .55rem 1rem; font-size: .88rem; }
.btn-lg { padding: .95rem 1.9rem; font-size: 1rem; }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 6px 18px rgba(29,78,216,.28); }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }

/* ── Header ── */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.85); backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s;
}
.nav.scrolled { border-color: var(--line); box-shadow: 0 1px 12px rgba(15,23,42,.05); }
.nav-in { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo { display: flex; align-items: center; gap: .55rem; font-size: 1.2rem; font-weight: 600; color: var(--ink); }
.logo strong { color: var(--primary); font-weight: 800; }
.logo-mark { display: flex; }
.links { display: flex; align-items: center; gap: 1.6rem; }
.links a { font-size: .93rem; font-weight: 500; color: var(--ink2); transition: color .15s; }
.links a:hover { color: var(--primary); }
.links .btn { color: #fff; }
.links .btn:hover { color: #fff; }
.burger { display: none; background: none; border: none; color: var(--ink); cursor: pointer; }

/* ── Hero ── */
.hero { position: relative; overflow: hidden; padding: 5.5rem 0 4.5rem; background: linear-gradient(180deg, var(--primary-soft), #fff 75%); }
.hero-grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(29,78,216,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(29,78,216,.06) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
}
.hero-in { position: relative; max-width: 820px; }
.tag {
  display: inline-block; background: #fff; border: 1px solid var(--line);
  color: var(--primary); font-size: .8rem; font-weight: 600;
  padding: .35rem .9rem; border-radius: 50px; margin-bottom: 1.3rem; box-shadow: var(--shadow);
}
.hero h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); font-weight: 800; line-height: 1.1; letter-spacing: -.02em; margin-bottom: 1.1rem; }
.hero h1 .accent { color: var(--primary); }
.lead { font-size: clamp(1rem, 2vw, 1.18rem); color: var(--muted); max-width: 640px; margin-bottom: 2rem; }
.hero-btns { display: flex; gap: .8rem; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 2.5rem; flex-wrap: wrap; margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.hero-stats div { display: flex; flex-direction: column; }
.hero-stats strong { font-size: 1.02rem; color: var(--ink); }
.hero-stats span { font-size: .85rem; color: var(--muted); }

/* ── Secciones ── */
.section { padding: 5rem 0; }
.section-alt { background: var(--bg2); }
.head { max-width: 640px; margin: 0 auto 3rem; text-align: center; }
.eyebrow { display: inline-block; color: var(--primary); font-weight: 700; font-size: .8rem; letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: .6rem; }
.head h2 { font-size: clamp(1.7rem, 3.5vw, 2.3rem); font-weight: 800; letter-spacing: -.02em; line-height: 1.18; margin-bottom: .7rem; }
.head p { color: var(--muted); font-size: 1.02rem; }

/* ── Catálogo (grid de servicios) ── */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.6rem; transition: transform .2s, box-shadow .2s, border-color .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: #cdd8ec; }
.card .ico {
  display: inline-flex; align-items: center; justify-content: center;
  width: 50px; height: 50px; font-size: 1.5rem;
  background: var(--primary-soft); border-radius: 12px; margin-bottom: 1rem;
}
.card h3 { font-size: 1.08rem; font-weight: 700; margin-bottom: .4rem; }
.card p { color: var(--muted); font-size: .92rem; }

/* ── Galería / Ejemplos ── */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
.shot {
  margin: 0; border-radius: var(--radius); overflow: hidden;
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow);
}
.shot img { width: 100%; height: 220px; object-fit: cover; display: block; transition: transform .3s; }
.shot:hover img { transform: scale(1.04); }
.shot figcaption {
  padding: .7rem .9rem; font-size: .88rem; font-weight: 600; color: var(--ink2);
  border-top: 1px solid var(--line);
}
.gallery-note { text-align: center; color: var(--muted); font-size: .88rem; margin-top: 1.5rem; }

/* ── Proceso ── */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.step {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.6rem; position: relative;
}
.step .num {
  display: inline-block; font-size: 1.5rem; font-weight: 800; color: var(--accent);
  background: #fff7e8; width: 46px; height: 46px; line-height: 46px; text-align: center;
  border-radius: 12px; margin-bottom: .9rem;
}
.step h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: .35rem; }
.step p { color: var(--muted); font-size: .92rem; }

/* ── Nosotros ── */
.why-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 3.5rem; align-items: center; }
.why-lead { color: var(--muted); font-size: 1.05rem; margin: .8rem 0 1.8rem; }
.why-list { list-style: none; display: flex; flex-direction: column; gap: 1.2rem; }
.why-list li { display: flex; gap: 1rem; align-items: flex-start; }
.why-list span {
  flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%;
  background: #e7f6ec; color: var(--ok); font-weight: 800;
  display: flex; align-items: center; justify-content: center; font-size: .9rem;
}
.why-list strong { display: block; font-size: 1rem; margin-bottom: .15rem; }
.why-list p { color: var(--muted); font-size: .9rem; }

/* ── CTA contacto ── */
.section-cta { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: #fff; padding: 5rem 0; }
.cta-in { text-align: center; max-width: 680px; margin: 0 auto; }
.cta-in h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); font-weight: 800; letter-spacing: -.02em; margin-bottom: .8rem; }
.cta-in p { color: rgba(255,255,255,.85); font-size: 1.05rem; margin-bottom: 2rem; }
.cta-in .hero-btns { justify-content: center; }
.cta-in .btn-primary { background: #fff; color: var(--primary); box-shadow: 0 8px 22px rgba(0,0,0,.18); }
.cta-in .btn-primary:hover { background: var(--accent); color: #fff; }
.cta-in .btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.cta-in .btn-ghost:hover { border-color: #fff; color: #fff; }
.cta-note { font-size: .9rem !important; margin-top: 1.5rem !important; margin-bottom: 0 !important; }

/* ── Footer ── */
.footer { background: #0f172a; color: #cbd5e1; padding: 3rem 0 1.5rem; }
.footer-in { text-align: center; }
.logo-foot { justify-content: center; color: #fff; margin-bottom: .8rem; }
.logo-foot strong { color: #93b4ff; }
.footer-tag { color: #94a3b8; font-size: .9rem; margin-bottom: 1.4rem; }
.footer-links { display: flex; gap: 1.5rem; justify-content: center; flex-wrap: wrap; margin-bottom: 2rem; }
.footer-links a { color: #cbd5e1; font-size: .92rem; transition: color .15s; }
.footer-links a:hover { color: #fff; }
.footer-bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem;
  padding-top: 1.5rem; border-top: 1px solid #1e293b; font-size: .82rem; color: #64748b;
}

/* ── WhatsApp flotante ── */
.wa-float {
  position: fixed; bottom: 1.6rem; right: 1.6rem; z-index: 200;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25d366; color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 20px rgba(37,211,102,.45); transition: transform .2s;
}
.wa-float:hover { transform: scale(1.07); }

/* ── Responsive ── */
@media (max-width: 860px) {
  .grid, .steps, .gallery { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: 1fr; gap: 2rem; }
}
@media (max-width: 720px) {
  .burger { display: flex; }
  .links {
    position: absolute; top: 68px; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; gap: 0;
    padding: .5rem 1.3rem 1rem; display: none; box-shadow: var(--shadow);
  }
  .links.open { display: flex; }
  .links a { padding: .8rem 0; border-bottom: 1px solid var(--line); }
  .links .btn { margin-top: .6rem; }
  .links a:last-child { border-bottom: none; }
}
@media (max-width: 540px) {
  .grid, .steps, .gallery { grid-template-columns: 1fr; }
  .hero-stats { gap: 1.4rem; }
  .footer-bottom { justify-content: center; text-align: center; }
}
