:root {
  --c-primary: #0ea5e9;
  --c-primary-dark: #0369a1;
  --c-accent: #22d3ee;
  --c-dark: #0f172a;
  --c-ink: #1e293b;
  --c-muted: #64748b;
  --c-bg: #f8fafc;
  --c-line: #e2e8f0;
  --snow: #e0f2fe;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  color: var(--c-ink);
  background: var(--c-bg);
  line-height: 1.6;
}

.container { width: min(1100px, 92%); margin-inline: auto; }

a { color: inherit; text-decoration: none; }

/* ---------- Top bar ---------- */
.topbar {
  background: var(--c-dark);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 2px 12px rgba(15,23,42,.25);
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 0;
  flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 12px; }
.logo { width: 44px; height: 44px; }
.logo .box { fill: #0ea5e9; stroke: #fff; stroke-width: 2; }
.logo .vent, .logo .bar { fill: #0f172a; }
.logo .snow, .logo .snow.vert { stroke: var(--c-accent); stroke-width: 2.5; stroke-linecap: round; }
.brand-name { font-size: 1.15rem; letter-spacing: 2px; font-weight: 800; }
.brand-tag { font-size: .7rem; color: #a5f3fc; letter-spacing: 1px; }

.nav { display: flex; gap: 22px; font-size: .95rem; }
.nav a { color: #cbd5e1; transition: color .2s; }
.nav a:hover { color: #fff; }

.btn-call {
  background: var(--c-primary);
  color: #fff;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 700;
  font-size: .9rem;
  box-shadow: 0 4px 12px rgba(14,165,233,.4);
  transition: transform .2s, background .2s;
}
.btn-call:hover { background: var(--c-primary-dark); transform: translateY(-2px); }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, #0c4a6e 0%, var(--c-dark) 100%);
  color: #fff;
  overflow: hidden;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 30px;
  align-items: center;
  padding: 72px 0;
}
.hero-text h2 { font-size: clamp(1.8rem, 4vw, 2.9rem); line-height: 1.15; margin-bottom: 16px; }
.hero-text p { color: #bae6fd; max-width: 46ch; margin-bottom: 26px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }

.btn-primary {
  background: var(--c-primary);
  color: #fff;
  padding: 13px 26px;
  border-radius: 10px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  transition: background .2s, transform .2s;
  display: inline-block;
}
.btn-primary:hover { background: var(--c-primary-dark); transform: translateY(-2px); }

.btn-whatsapp {
  background: #25d366;
  color: #fff;
  padding: 13px 26px;
  border-radius: 10px;
  font-weight: 700;
  transition: opacity .2s, transform .2s;
}
.btn-whatsapp:hover { opacity: .9; transform: translateY(-2px); }

.hero-meta { display: flex; gap: 16px; flex-wrap: wrap; font-size: .85rem; }
.hero-meta span { background: rgba(255,255,255,.1); padding: 6px 12px; border-radius: 999px; }

.hero-art { width: 100%; max-width: 420px; justify-self: center; }
.drop-shadow { fill: rgba(15,23,42,.6); }
.unit { fill: url("#cold"); }
.panel { fill: #0b3a5c; }
.vent-fill { fill: #0b3a5c; }
.orb { fill: #a5f3fc; animation: float 3s ease-in-out infinite; }

@keyframes float {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* ---------- Sections ---------- */
.servicios { padding: 72px 0; }
.section-title { font-size: clamp(1.6rem, 3vw, 2.2rem); color: var(--c-dark); }
.section-sub { color: var(--c-muted); margin: 6px 0 34px; }
.servicios .section-title { text-align: center; }
.servicios .section-sub { text-align: center; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px;
}
.card {
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: 14px;
  padding: 26px 22px;
  transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-5px); box-shadow: 0 14px 30px rgba(15,23,42,.1); }
.icon { width: 54px; height: 54px; margin-bottom: 16px; }
.icon .i { fill: none; stroke: var(--c-primary); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { font-size: 1.1rem; margin-bottom: 8px; color: var(--c-dark); }
.card p { color: var(--c-muted); font-size: .92rem; }

/* ---------- Nosotros ---------- */
.nosotros { background: #fff; padding: 72px 0; border-block: 1px solid var(--c-line); }
.nosotros-inner { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; align-items: center; }
.nosotros-art svg { width: 100%; max-width: 340px; }
.badge-drop { fill: var(--c-line); }
.badge { fill: var(--c-accent); }
.flake-layer { stroke: #fff; stroke-width: 4; stroke-linecap: round; }
.nosotros-text p { color: var(--c-muted); margin: 14px 0; }
.checks { list-style: none; margin-bottom: 26px; }
.checks li { padding: 8px 0 8px 30px; position: relative; color: var(--c-ink); }
.checks li::before { content: "✓"; position: absolute; left: 4px; color: var(--c-primary); font-weight: 800; }
.stats { display: flex; gap: 34px; }
.stats div { text-align: center; }
.stats strong { display: block; font-size: 1.8rem; color: var(--c-primary-dark); }
.stats span { color: var(--c-muted); font-size: .9rem; }

/* ---------- Galería ---------- */
.galeria { padding: 72px 0; background: #fff; border-block: 1px solid var(--c-line); }
.galeria .section-title { text-align: center; }
.galeria .section-sub { text-align: center; }
.galeria-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.gal-item {
  border-radius: 14px;
  overflow: hidden;
  background: var(--c-bg);
  border: 1px solid var(--c-line);
  transition: transform .2s, box-shadow .2s;
}
.gal-item:hover { transform: translateY(-5px); box-shadow: 0 14px 30px rgba(15,23,42,.1); }
.gal-item img { width: 100%; display: block; aspect-ratio: 4/3; object-fit: cover; }
.gal-item figcaption { padding: 12px 14px; font-weight: 600; color: var(--c-dark); font-size: .92rem; }

/* ---------- Contacto ---------- */
.contacto { padding: 72px 0; }
.contacto-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.contacto-info p { color: var(--c-muted); margin: 6px 0 24px; }
.contacto-list { list-style: none; margin-bottom: 26px; }
.contacto-list li { display: flex; align-items: center; gap: 12px; padding: 9px 0; color: var(--c-ink); font-weight: 600; }
.contacto-list a:hover { color: var(--c-primary); }
.socials { display: flex; gap: 14px; }
.social {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  color: #fff;
  background: var(--c-dark);
  border-radius: 10px;
  transition: transform .2s, background .2s;
}
.social svg { width: 22px; height: 22px; }
.social .i { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.social .dot { fill: currentColor; }
.social .chat { fill: currentColor; stroke: none; }
.social:hover { background: var(--c-primary); transform: translateY(-3px); }

.form {
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: 14px;
  padding: 28px;
  box-shadow: 0 12px 30px rgba(15,23,42,.06);
}
.form h3 { margin-bottom: 18px; color: var(--c-dark); }
.form label { display: block; font-size: .9rem; font-weight: 600; margin-bottom: 14px; color: var(--c-ink); }
.form input, .form select, .form textarea {
  width: 100%;
  margin-top: 6px;
  padding: 11px 13px;
  border: 1px solid var(--c-line);
  border-radius: 8px;
  font: inherit;
  color: var(--c-ink);
  background: var(--c-bg);
  transition: border-color .2s;
}
.form input:focus, .form select:focus, .form textarea:focus {
  outline: none;
  border-color: var(--c-primary);
}
.form button { width: 100%; margin-top: 6px; }
.form-note { margin-top: 12px; font-size: .9rem; color: var(--c-primary-dark); text-align: center; }

/* ---------- Footer ---------- */
.footer { background: var(--c-dark); color: #94a3b8; text-align: center; }
.footer-inner { padding: 30px 0; gap: 6px; }
.footer .brand-name { color: #fff; display: block; }
.footer p { font-size: .85rem; }

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
  .hero-inner { grid-template-columns: 1fr; padding: 44px 0; }
  .hero-art { max-width: 320px; }
  .nosotros-inner, .contacto-inner { grid-template-columns: 1fr; }
  .nav { display: none; }
  .topbar-inner { justify-content: center; }
}