/* ===========================================================
   Clima Perles — Stylesheet
   Brand colors: navy #1a2c50, orange #d76b2c
   =========================================================== */

:root {
  --navy: #1a2c50;
  --navy-deep: #0f1d3a;
  --navy-soft: #2a3f6b;
  --orange: #d76b2c;
  --orange-light: #e88245;
  --orange-dark: #b9551d;
  --beige: #f5f1ea;
  --bg: #ffffff;
  --bg-soft: #f6f7fa;
  --bg-section: #fafbfd;
  --text: #1a2c50;
  --text-body: #2f3a52;
  --text-muted: #6d7588;
  --border: #e3e7ef;
  --shadow-sm: 0 2px 8px rgba(26, 44, 80, 0.06);
  --shadow-md: 0 6px 24px rgba(26, 44, 80, 0.08);
  --shadow-lg: 0 16px 48px rgba(26, 44, 80, 0.12);
  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 20px;
  --maxw: 1200px;
  --pad: 24px;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-display: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  max-width: 100%;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  color: var(--text-body);
  background: var(--bg);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

img, svg, video { max-width: 100%; height: auto; display: block; }

a { color: var(--orange); text-decoration: none; transition: color .2s; }
a:hover { color: var(--orange-dark); }

h1, h2, h3, h4 {
  color: var(--navy);
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 0.6em;
  letter-spacing: -0.01em;
  overflow-wrap: break-word;
  hyphens: auto;
}

h1 { font-size: clamp(1.85rem, 4vw, 3.2rem); }
h2 { font-size: clamp(1.55rem, 3vw, 2.3rem); }
h3 { font-size: 1.2rem; }

p { margin: 0 0 1em; overflow-wrap: break-word; }

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
  width: 100%;
}

/* ===== Top info bar ===== */
.topbar {
  background: var(--navy-deep);
  color: rgba(255,255,255,0.85);
  font-size: 0.85rem;
  padding: 8px 0;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.topbar a { color: rgba(255,255,255,0.92); }
.topbar a:hover { color: var(--orange-light); }
.topbar-left { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; min-width: 0; }
.topbar-left span { display: inline-flex; align-items: center; gap: 6px; }
.topbar-right { display: flex; gap: 12px; align-items: center; flex-shrink: 0; }

.lang-switch {
  display: inline-flex;
  background: rgba(255,255,255,0.08);
  border-radius: 999px;
  padding: 3px;
  border: 1px solid rgba(255,255,255,0.12);
}
.lang-switch button {
  background: transparent;
  border: 0;
  color: rgba(255,255,255,0.7);
  padding: 4px 12px;
  font-size: 0.78rem;
  font-weight: 600;
  border-radius: 999px;
  cursor: pointer;
  letter-spacing: 0.04em;
  transition: all .2s;
  min-height: 28px;
}
.lang-switch button.active {
  background: var(--orange);
  color: #fff;
}
.lang-switch button:not(.active):hover { color: #fff; }

/* ===== Header / Nav ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.brand img { height: 58px; width: auto; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}
.main-nav a {
  color: var(--navy);
  font-weight: 500;
  font-size: 0.94rem;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  transition: background .2s, color .2s;
  white-space: nowrap;
}
.main-nav a:hover { background: var(--bg-soft); color: var(--orange); }
.main-nav a.active { color: var(--orange); }

.nav-cta {
  background: var(--orange);
  color: #fff !important;
  padding: 9px 16px !important;
  border-radius: 999px !important;
  font-weight: 600 !important;
  margin-left: 4px;
}
.nav-cta:hover { background: var(--orange-dark) !important; color: #fff !important; }

.menu-toggle {
  display: none;
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 8px;
  color: var(--navy);
  flex-shrink: 0;
}
.menu-toggle svg { width: 28px; height: 28px; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  font-weight: 600;
  font-size: 0.97rem;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  transition: transform .15s ease, background .2s, box-shadow .2s, color .2s;
  text-decoration: none;
  text-align: center;
  min-height: 48px;
  line-height: 1.2;
}
.btn-primary {
  background: var(--orange);
  color: #fff;
  box-shadow: 0 6px 18px rgba(215, 107, 44, 0.25);
}
.btn-primary:hover { background: var(--orange-dark); color: #fff; transform: translateY(-2px); }
.btn-secondary {
  background: var(--navy);
  color: #fff;
}
.btn-secondary:hover { background: var(--navy-deep); color: #fff; transform: translateY(-2px); }
.btn-outline {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid var(--navy);
}
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-whatsapp {
  background: #25D366;
  color: #fff;
}
.btn-whatsapp:hover { background: #1eb558; color: #fff; transform: translateY(-2px); }
.btn-block { width: 100%; }
.btn svg { flex-shrink: 0; }

/* ===== Hero ===== */
.hero {
  padding: 56px 0 72px;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-section) 100%);
  overflow: hidden;
}
.hero .container {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 48px;
  align-items: center;
}
.hero-content { min-width: 0; }
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(215, 107, 44, 0.1);
  color: var(--orange-dark);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.hero h1 {
  font-size: clamp(1.85rem, 4.1vw, 3.1rem);
  line-height: 1.12;
  margin-bottom: 18px;
}
.hero-lead {
  font-size: 1.06rem;
  color: var(--text-muted);
  margin-bottom: 26px;
  max-width: 540px;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 26px; }
.hero-meta {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  color: var(--text-muted);
  font-size: 0.9rem;
}
.hero-meta span { display: inline-flex; align-items: center; gap: 6px; }
.hero-meta svg { width: 17px; height: 17px; color: var(--orange); flex-shrink: 0; }

.hero-visual {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 5/6;
  background: var(--navy);
  min-width: 0;
}
.hero-visual img { width: 100%; height: 100%; object-fit: cover; }
.hero-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(15,29,58,0.55) 100%);
  pointer-events: none;
}
.hero-tag {
  position: absolute;
  left: 18px;
  bottom: 18px;
  right: 18px;
  z-index: 1;
  background: rgba(255,255,255,0.94);
  color: var(--navy);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 10px 14px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: max-content;
  max-width: calc(100% - 36px);
}
.hero-tag .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); flex-shrink: 0; }

/* ===== Sections ===== */
section { padding: 72px 0; }
.section-soft { background: var(--bg-section); }
.section-dark { background: var(--navy); color: rgba(255,255,255,0.9); }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark p { color: rgba(255,255,255,0.75); }

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 48px;
  padding: 0 8px;
}
.section-head .eyebrow {
  display: inline-block;
  color: var(--orange);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.section-head h2 { margin-bottom: 14px; }
.section-head p { color: var(--text-muted); font-size: 1.04rem; margin-bottom: 0; }
.section-dark .section-head p { color: rgba(255,255,255,0.7); }

/* ===== Trust strip ===== */
.trust-strip {
  background: var(--navy);
  color: #fff;
  padding: 28px 0;
}
.trust-strip .container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.88);
  min-width: 0;
}
.trust-item svg { width: 22px; height: 22px; color: var(--orange-light); flex-shrink: 0; }

/* ===== Services grid ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.service-card {
  background: #fff;
  padding: 30px 26px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: all .25s ease;
  position: relative;
  overflow: hidden;
  min-width: 0;
}
.service-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0;
  width: 4px; height: 100%;
  background: var(--orange);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform .3s;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: transparent; }
.service-card:hover::before { transform: scaleY(1); }
.service-icon {
  width: 52px; height: 52px;
  border-radius: 12px;
  background: rgba(215, 107, 44, 0.12);
  color: var(--orange);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.service-icon svg { width: 26px; height: 26px; }
.service-card h3 { font-size: 1.16rem; margin-bottom: 8px; }
.service-card p { color: var(--text-muted); font-size: 0.94rem; margin: 0; }

/* ===== Systems list ===== */
.systems-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}
.system-chip {
  background: #fff;
  border: 1px solid var(--border);
  padding: 16px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 500;
  color: var(--navy);
  font-size: 0.93rem;
  transition: all .2s;
  min-width: 0;
}
.system-chip:hover { border-color: var(--orange); background: #fff; box-shadow: var(--shadow-sm); }
.system-chip .ic {
  width: 38px; height: 38px;
  flex-shrink: 0;
  border-radius: 10px;
  background: var(--bg-section);
  color: var(--orange);
  display: flex; align-items: center; justify-content: center;
}
.system-chip .ic svg { width: 20px; height: 20px; }
.system-chip > span:last-child { min-width: 0; overflow-wrap: break-word; }

/* ===== About section ===== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 48px;
  align-items: center;
}
.about-photo {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  position: relative;
  aspect-ratio: 4/5;
  min-width: 0;
}
.about-photo img { width: 100%; height: 100%; object-fit: cover; }
.about-content { min-width: 0; }
.about-content .eyebrow {
  color: var(--orange);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 12px;
}
.about-content h2 { margin-bottom: 18px; }
.about-content p { color: var(--text-muted); font-size: 1rem; }
.about-points {
  list-style: none;
  padding: 0;
  margin: 22px 0 26px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;
}
.about-points li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.93rem;
  color: var(--text-body);
}
.about-points svg {
  width: 20px; height: 20px;
  color: var(--orange);
  flex-shrink: 0;
  margin-top: 2px;
}

/* ===== Testimonials ===== */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
}
.testimonial {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 26px;
  position: relative;
  transition: all .25s;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.testimonial:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: transparent; }
.testimonial-quote-mark {
  font-family: Georgia, serif;
  font-size: 4rem;
  line-height: 1;
  color: var(--orange);
  opacity: 0.15;
  position: absolute;
  top: 12px;
  right: 20px;
  pointer-events: none;
}
.testimonial-stars {
  display: flex;
  gap: 2px;
  color: var(--orange);
  margin-bottom: 14px;
}
.testimonial-stars svg { width: 16px; height: 16px; }
.testimonial p {
  color: var(--text-body);
  font-size: 0.97rem;
  font-style: italic;
  line-height: 1.55;
  flex: 1;
  margin-bottom: 18px;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.testimonial-photo {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--bg-soft);
  flex-shrink: 0;
  border: 2px solid #fff;
  box-shadow: 0 2px 8px rgba(26,44,80,0.12);
}
.testimonial-photo img { width: 100%; height: 100%; object-fit: cover; }
.testimonial-photo.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--orange) 0%, var(--orange-light) 100%);
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
}
.testimonial-name {
  font-weight: 700;
  color: var(--navy);
  font-size: 0.97rem;
  line-height: 1.2;
}
.testimonial-role {
  font-size: 0.84rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ===== Contact / map ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 32px;
}
.contact-info {
  background: #fff;
  padding: 32px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  min-width: 0;
}
.contact-info h3 { margin-bottom: 8px; }
.contact-info .role { color: var(--text-muted); margin-bottom: 22px; font-size: 0.94rem; }
.contact-list { list-style: none; padding: 0; margin: 0 0 22px; }
.contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
  min-width: 0;
}
.contact-list li:last-child { border-bottom: 0; }
.contact-list li > div { min-width: 0; flex: 1; word-break: break-word; }
.contact-list .ic {
  width: 36px; height: 36px;
  flex-shrink: 0;
  background: rgba(215, 107, 44, 0.1);
  color: var(--orange);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
}
.contact-list svg { width: 18px; height: 18px; }
.contact-list a { color: var(--text-body); font-weight: 500; word-break: break-word; }
.contact-list a:hover { color: var(--orange); }
.contact-list .label { display: block; font-size: 0.76rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 2px; }

.contact-map {
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 460px;
  border: 1px solid var(--border);
  background: var(--bg-soft);
}
.contact-map iframe { width: 100%; height: 100%; min-height: 460px; border: 0; display: block; }

/* ===== CTA banner ===== */
.cta-banner {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: #fff;
  padding: 64px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(215, 107, 44, 0.18) 0%, transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(215, 107, 44, 0.12) 0%, transparent 40%);
  pointer-events: none;
}
.cta-banner h2 { color: #fff; margin-bottom: 14px; position: relative; }
.cta-banner p { color: rgba(255,255,255,0.78); margin-bottom: 26px; font-size: 1.06rem; position: relative; max-width: 600px; margin-left: auto; margin-right: auto; padding: 0 8px; }
.cta-banner .hero-actions { justify-content: center; position: relative; }

/* ===== Gallery ===== */
.filter-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 32px;
}
.filter-btn {
  background: #fff;
  border: 1.5px solid var(--border);
  color: var(--navy);
  padding: 10px 18px;
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: 999px;
  cursor: pointer;
  transition: all .2s;
  min-height: 40px;
}
.filter-btn:hover { border-color: var(--orange); color: var(--orange); }
.filter-btn.active { background: var(--orange); color: #fff; border-color: var(--orange); }

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}
.gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4/3;
  background: var(--bg-soft);
  box-shadow: var(--shadow-sm);
  transition: transform .25s, box-shadow .25s;
}
.gallery-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s;
}
.gallery-item:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15,29,58,0.4) 0%, transparent 50%);
  opacity: 0;
  transition: opacity .25s;
  pointer-events: none;
}
.gallery-item:hover::after { opacity: 1; }
.gallery-item .zoom-hint {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(255,255,255,0.92);
  color: var(--navy);
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.85);
  transition: all .25s;
  z-index: 2;
}
.gallery-item:hover .zoom-hint { opacity: 1; transform: scale(1); }
.gallery-item .zoom-hint svg { width: 18px; height: 18px; }

/* ===== Lightbox ===== */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(10, 18, 36, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 24px;
  backdrop-filter: blur(6px);
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: 92vw;
  max-height: 84vh;
  border-radius: var(--radius);
  box-shadow: 0 30px 80px rgba(0,0,0,0.6);
}
.lightbox-close, .lightbox-nav {
  position: absolute;
  background: rgba(255,255,255,0.14);
  border: 0;
  color: #fff;
  width: 50px; height: 50px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s;
  z-index: 1;
}
.lightbox-close { top: 20px; right: 20px; }
.lightbox-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 20px; top: 50%; transform: translateY(-50%); }
.lightbox-close:hover, .lightbox-nav:hover { background: rgba(255,255,255,0.26); }
.lightbox-close svg, .lightbox-nav svg { width: 22px; height: 22px; }
.lightbox-counter {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.85);
  font-size: 0.88rem;
  background: rgba(0,0,0,0.45);
  padding: 6px 14px;
  border-radius: 999px;
  white-space: nowrap;
}

/* ===== Tech page ===== */
.tech-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: #fff;
  padding: 72px 0 64px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.tech-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 20%, rgba(215, 107, 44, 0.2) 0%, transparent 40%),
    radial-gradient(circle at 85% 80%, rgba(215, 107, 44, 0.12) 0%, transparent 40%);
}
.tech-hero .container { position: relative; }
.tech-hero h1 { color: #fff; max-width: 760px; margin: 0 auto 16px; }
.tech-hero p { color: rgba(255,255,255,0.78); max-width: 640px; margin: 0 auto; font-size: 1.06rem; padding: 0 4px; }

.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
}
.tech-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 28px;
  transition: all .25s;
  position: relative;
  overflow: hidden;
  min-width: 0;
}
.tech-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: transparent; }
.tech-card-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}
.tech-card-head > div:last-child { min-width: 0; flex: 1; }
.tech-card .tech-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--orange) 0%, var(--orange-light) 100%);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 8px 18px rgba(215, 107, 44, 0.25);
}
.tech-card .tech-icon svg { width: 26px; height: 26px; }
.tech-card h3 { font-size: 1.18rem; margin: 0 0 4px; line-height: 1.25; }
.tech-card .tag {
  display: inline-block;
  background: rgba(26, 44, 80, 0.08);
  color: var(--navy);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 999px;
}
.tech-card .tag.edge { background: rgba(215, 107, 44, 0.12); color: var(--orange-dark); }
.tech-card p { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 12px; }
.tech-card .meta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.82rem;
  color: var(--text-muted);
  padding-top: 14px;
  border-top: 1px dashed var(--border);
}
.tech-card .meta span { display: inline-flex; align-items: center; gap: 5px; }
.tech-card .meta svg { width: 15px; height: 15px; color: var(--orange); flex-shrink: 0; }

/* ===== Installations page hero ===== */
.page-hero {
  background: linear-gradient(180deg, var(--bg-section) 0%, var(--bg) 100%);
  padding: 60px 0 40px;
  text-align: center;
}
.page-hero h1 { margin-bottom: 12px; }
.page-hero p { color: var(--text-muted); font-size: 1.06rem; max-width: 640px; margin: 0 auto; padding: 0 4px; }
.breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.86rem;
  margin-bottom: 14px;
  flex-wrap: wrap;
  justify-content: center;
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--orange); }
.breadcrumb svg { width: 14px; height: 14px; }

/* ===== Floating WhatsApp ===== */
.fab-whatsapp {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
  z-index: 99;
  transition: transform .2s;
}
.fab-whatsapp:hover { transform: scale(1.08); color: #fff; }
.fab-whatsapp svg { width: 28px; height: 28px; }

/* ===== Footer ===== */
.site-footer {
  background: var(--navy-deep);
  color: rgba(255,255,255,0.7);
  padding: 56px 0 24px;
}
.site-footer .footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 36px;
}
.site-footer h4 {
  color: #fff;
  font-size: 0.92rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}
.site-footer a { color: rgba(255,255,255,0.7); display: block; padding: 5px 0; font-size: 0.93rem; word-break: break-word; }
.site-footer a:hover { color: var(--orange-light); }
.footer-brand p { color: rgba(255,255,255,0.6); font-size: 0.92rem; margin: 12px 0; }
.footer-brand .logo-foot {
  height: 56px;
  width: auto;
  background: #fff;
  padding: 8px 14px;
  border-radius: 10px;
}
.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}
.footer-social a {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: background .2s, color .2s;
}
.footer-social a:hover { background: var(--orange); color: #fff; }
.footer-social svg { width: 17px; height: 17px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.84rem;
  color: rgba(255,255,255,0.5);
}

/* ===== Quote modal ===== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(10, 18, 36, 0.7);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1100;
  padding: 16px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  overflow-y: auto;
}
.modal-backdrop.open { display: flex; }
.modal {
  background: #fff;
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 540px;
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  position: relative;
  box-shadow: 0 30px 80px rgba(0,0,0,0.3);
  animation: modalIn .25s ease-out;
}
@keyframes modalIn {
  from { opacity: 0; transform: translateY(20px) scale(0.97); }
  to { opacity: 1; transform: none; }
}
.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: var(--bg-soft);
  border: 0;
  width: 36px; height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: var(--navy);
  transition: background .2s;
  z-index: 1;
}
.modal-close:hover { background: var(--border); }
.modal-close svg { width: 18px; height: 18px; }
.modal-header {
  padding: 32px 32px 16px;
}
.modal-header h2 { font-size: 1.5rem; margin-bottom: 6px; }
.modal-header p { color: var(--text-muted); font-size: 0.94rem; margin: 0; }

.modal-quick {
  display: flex;
  gap: 10px;
  padding: 12px 32px 0;
  flex-wrap: wrap;
}
.modal-quick a {
  flex: 1 1 140px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  border: 1.5px solid var(--border);
  color: var(--navy);
  background: #fff;
  transition: all .2s;
  text-decoration: none;
  min-height: 46px;
}
.modal-quick a:hover { border-color: var(--orange); color: var(--orange); }
.modal-quick a.wa { background: #25D366; border-color: #25D366; color: #fff; }
.modal-quick a.wa:hover { background: #1eb558; border-color: #1eb558; color: #fff; }
.modal-quick svg { width: 18px; height: 18px; }

.modal-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 32px 4px;
  color: var(--text-muted);
  font-size: 0.84rem;
}
.modal-divider::before, .modal-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.quote-form {
  padding: 12px 32px 28px;
  display: grid;
  gap: 14px;
}
.quote-form label {
  display: block;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
}
.quote-form input,
.quote-form textarea,
.quote-form select {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-size: 0.96rem;
  font-family: inherit;
  color: var(--text-body);
  background: #fff;
  transition: border-color .2s, box-shadow .2s;
}
.quote-form input:focus,
.quote-form textarea:focus,
.quote-form select:focus {
  outline: 0;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(215, 107, 44, 0.12);
}
.quote-form textarea { resize: vertical; min-height: 90px; }
.quote-form .field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.radio-pref {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.radio-pref label {
  cursor: pointer;
  margin: 0;
  padding: 10px 10px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  text-align: center;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--navy);
  transition: all .2s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  background: #fff;
}
.radio-pref label svg { width: 18px; height: 18px; color: var(--orange); }
.radio-pref input { position: absolute; opacity: 0; pointer-events: none; }
.radio-pref input:checked + svg + span,
.radio-pref label:has(input:checked) {
  border-color: var(--orange);
  background: rgba(215, 107, 44, 0.08);
}

.quote-form button[type="submit"] {
  margin-top: 4px;
  width: auto;
  align-self: center;
  padding-left: 36px;
  padding-right: 36px;
}

/* ===== Helpers ===== */
.fade-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .6s ease, transform .6s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ===========================================================
   Responsive — tablet & mobile
   =========================================================== */

/* Tablet — collapse nav, simplify hero */
@media (max-width: 1024px) {
  :root { --pad: 22px; }
  .hero .container { grid-template-columns: 1fr; gap: 36px; }
  .hero-visual { max-width: 540px; margin: 0 auto; aspect-ratio: 5/4; width: 100%; }
  .about-grid { grid-template-columns: 1fr; gap: 36px; }
  .about-photo { max-width: 460px; margin: 0 auto; width: 100%; }
  .contact-grid { grid-template-columns: 1fr; }
  .tech-grid { grid-template-columns: 1fr; }
  .site-footer .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* Show mobile menu trigger and stack nav */
@media (max-width: 860px) {
  .menu-toggle { display: inline-flex; }
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    gap: 2px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    max-height: calc(100vh - 100px);
    overflow-y: auto;
  }
  .main-nav.open { display: flex; }
  .main-nav a {
    padding: 14px 16px;
    border-radius: 10px;
    font-size: 1rem;
  }
  .nav-cta { margin-left: 0 !important; margin-top: 8px; text-align: center; }
}

/* Mobile */
@media (max-width: 720px) {
  :root { --pad: 18px; }
  section { padding: 52px 0; }
  .hero { padding: 32px 0 48px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
  .hero-meta { gap: 14px; font-size: 0.86rem; }
  .topbar { font-size: 0.78rem; }
  .topbar .container { justify-content: center; gap: 10px; }
  .topbar-left { justify-content: center; gap: 12px; }
  .topbar-left .hide-sm { display: none; }
  .brand img { height: 48px; }
  .section-head { margin-bottom: 36px; }
  .contact-info { padding: 24px; }
  .cta-banner { padding: 52px 0; }
  .cta-banner .hero-actions { flex-direction: column; align-items: stretch; }
  .cta-banner .hero-actions .btn { width: 100%; }
  .site-footer { padding: 44px 0 20px; }
  .site-footer .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { justify-content: center; text-align: center; }
  .fab-whatsapp { right: 14px; bottom: 14px; width: 52px; height: 52px; }
  .fab-whatsapp svg { width: 26px; height: 26px; }

  /* Modal full-screen on mobile */
  .modal-backdrop { padding: 0; align-items: stretch; }
  .modal { border-radius: 0; max-width: 100%; max-height: 100vh; }
  .modal-header { padding: 24px 22px 12px; padding-right: 60px; }
  .modal-quick { padding: 8px 22px 0; }
  .modal-divider { padding: 16px 22px 4px; }
  .quote-form { padding: 8px 22px 28px; }
  .quote-form .field-row { grid-template-columns: 1fr; }
  .radio-pref { grid-template-columns: 1fr; }
  .radio-pref label { flex-direction: row; justify-content: center; }

  /* Filter scroll */
  .filter-bar {
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: flex-start;
    -webkit-overflow-scrolling: touch;
    padding: 4px 2px;
    margin-left: -2px;
    margin-right: -2px;
  }
  .filter-btn { flex-shrink: 0; }

  /* Tighter trust strip */
  .trust-strip { padding: 24px 0; }
  .trust-strip .container { grid-template-columns: 1fr; gap: 12px; }

  /* Testimonials single column */
  .testimonial { padding: 24px 22px; }
}

@media (max-width: 420px) {
  :root { --pad: 16px; }
  h1 { font-size: 1.7rem; }
  h2 { font-size: 1.45rem; }
  .topbar { padding: 10px 0; }
  .hero-eyebrow { font-size: 0.72rem; padding: 5px 12px; }
  .hero-lead { font-size: 1rem; }
  .service-card { padding: 26px 22px; }
  .tech-card { padding: 26px 22px; }
  .system-chip { padding: 14px; font-size: 0.9rem; }
  .system-chip .ic { width: 34px; height: 34px; }
  .hero-tag { font-size: 0.78rem; padding: 8px 12px; left: 14px; right: 14px; bottom: 14px; }
  .filter-btn { padding: 9px 14px; font-size: 0.82rem; }
  .lightbox-prev, .lightbox-next { width: 42px; height: 42px; }
  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
  .lightbox-close { top: 12px; right: 12px; width: 40px; height: 40px; }
}
