/* ================================================================
   styles.css — Clima Tico  |  Modo claro · Tipografía legible
================================================================ */

:root {
  --blue: #1860d4;
  --blue2: #0d4aaa;
  --sky: #38b6ff;
  --bg: #f5f8ff;
  --white: #ffffff;
  --card: #eef3fc;
  --border: #dce6f8;
  --text: #0e1e3c;
  --soft: #4a6080;
  --muted: #8fa5c0;
  --green: #22c55e;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --sh: 0 4px 24px rgba(14, 30, 60, .10);
  --sh2: 0 12px 40px rgba(14, 30, 60, .16);
  --r: 12px;
  --r2: 18px;
}

/* ── RESET ───────────────────────────── */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box
}

html {
  font-size: 106.25%;
  /* Aumenta el tamaño base a 17px para hacer todo levemente más grande */
  scroll-behavior: smooth;
}

body {
  font-family: 'Outfit', sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: clip;
  /* Permite el momentum scroll natural en móviles */
  -webkit-font-smoothing: antialiased
}

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

img {
  max-width: 100%;
  display: block;
  object-fit: cover
}

ul {
  list-style: none
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none
}

::selection {
  background: var(--blue);
  color: #fff
}

::-webkit-scrollbar {
  width: 4px
}

::-webkit-scrollbar-track {
  background: var(--bg)
}

::-webkit-scrollbar-thumb {
  background: var(--blue);
  border-radius: 4px
}

/* ── HELPERS ─────────────────────────── */
.eyebrow {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: .5rem
}

.h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.7rem, 3.5vw, 2.5rem);
  font-weight: 700;
  line-height: 1.18;
  color: var(--text);
  letter-spacing: -.02em
}

.h2 em {
  font-style: italic;
  color: var(--blue)
}

.lead {
  font-size: .93rem;
  color: var(--soft);
  line-height: 1.72;
  margin-top: .8rem
}

.sec {
  padding: 3.5rem clamp(1rem, 4vw, 2.5rem)
}

.sec-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap
}

/* ── BUTTONS ─────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-size: .82rem;
  font-weight: 700;
  padding: .52rem 1.3rem;
  border-radius: 8px;
  background: var(--blue);
  color: #fff;
  box-shadow: 0 4px 14px rgba(24, 96, 212, .28);
  transition: all .2s;
  white-space: nowrap;
  font-family: 'Outfit', sans-serif;
  border: none;
  cursor: pointer
}

.btn:hover {
  background: var(--blue2);
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(24, 96, 212, .38)
}

.btn-white {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  background: #fff;
  color: var(--text);
  font-size: .87rem;
  font-weight: 800;
  padding: .8rem 1.8rem;
  border-radius: 9px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .22);
  transition: all .2s;
  white-space: nowrap
}

.btn-white:hover {
  background: var(--sky);
  transform: translateY(-2px)
}

.btn-white .ar {
  transition: transform .2s
}

.btn-white:hover .ar {
  transform: translateX(3px)
}

/* ── NAV ─────────────────────────────── */
#nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;
  padding: .85rem clamp(1rem, 4vw, 2.5rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: rgba(245, 248, 255, .93);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transform: translateZ(0);
  /* Aceleración por hardware obligatoria */
  will-change: background, backdrop-filter;
  border-bottom: 1px solid var(--border);
  transition: box-shadow .3s
}

#nav.up {
  box-shadow: var(--sh)
}

.logo {
  display: flex;
  align-items: center;
  gap: .6rem;
  flex-shrink: 0
}

.logo-img {
  width: 46px;
  height: 46px;
  object-fit: contain;
  border-radius: 50%;
  border: 2px solid rgba(56, 182, 255, .3);
  box-shadow: 0 2px 12px rgba(24, 96, 212, .18);
  flex-shrink: 0;
  background: #000;
}

.logo-name {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text)
}

.logo-name span {
  color: var(--blue)
}

.ft-logo .logo-name {
  color: #fff
}

.ft-logo .logo-img {
  border-color: rgba(56, 182, 255, .5);
  box-shadow: 0 2px 12px rgba(56, 182, 255, .2)
}

/* Keep .logo-ico for any fallback */
.logo-ico {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--blue), var(--sky));
  display: grid;
  place-items: center;
  font-size: 1.2rem;
  color: #fff;
  font-weight: 900;
  box-shadow: 0 4px 14px rgba(24, 96, 212, .3)
}

.nav-links {
  display: flex;
  gap: .1rem
}

.nl {
  font-size: .94rem;
  font-weight: 600;
  color: var(--soft);
  padding: .4rem .8rem;
  border-radius: 7px;
  transition: all .17s;
  white-space: nowrap
}

.nl:hover,
.nl.active {
  color: var(--blue);
  background: rgba(24, 96, 212, .07)
}

.nav-r {
  display: flex;
  align-items: center;
  gap: .7rem;
  flex-shrink: 0
}

#hbg {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: .55rem;
  border-radius: 7px;
  background: var(--card)
}

#hbg span {
  display: block;
  width: 17px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all .28s
}

#hbg.open span:nth-child(1) {
  transform: translateY(6px) rotate(45deg)
}

#hbg.open span:nth-child(2) {
  opacity: 0
}

#hbg.open span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg)
}

#mob {
  position: fixed;
  inset: 0;
  z-index: 998;
  background: rgba(245, 248, 255, .97);
  backdrop-filter: blur(24px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.8rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s var(--ease)
}

#mob.open {
  opacity: 1;
  pointer-events: all
}

.mob-a {
  font-size: clamp(1.6rem, 5vw, 2.4rem);
  font-weight: 800;
  color: var(--soft);
  transition: color .2s
}

.mob-a:hover {
  color: var(--blue)
}

/* ── HERO SLIDER ─────────────────────── */
#hero {
  position: relative;
  width: 100%;
  height: 100svh;
  min-height: 520px;
  overflow: hidden
}

.slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: clamp(5rem, 8vw, 7rem) clamp(1.5rem, 5vw, 4.5rem) clamp(2.5rem, 4vw, 4rem);
  opacity: 0;
  transition: opacity .9s var(--ease);
  z-index: 1
}

.slide.act {
  opacity: 1;
  z-index: 2
}

.sl-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 9s var(--ease)
}

.slide.act .sl-img {
  transform: scale(1.05)
}

.sl-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 22, 50, .88) 0%, rgba(10, 22, 50, .38) 45%, rgba(10, 22, 50, .1) 100%)
}

.sl-body {
  position: relative;
  z-index: 3;
  max-width: 660px
}

.sl-tag {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .9);
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 50px;
  padding: .28rem .9rem;
  background: rgba(255, 255, 255, .1);
  backdrop-filter: blur(6px);
  margin-bottom: 1rem
}

.sl-tag::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--sky);
  flex-shrink: 0
}

.sl-h {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.2rem, 6.5vw, 4.8rem);
  font-weight: 700;
  line-height: 1.08;
  color: #fff;
  letter-spacing: -.02em;
  margin-bottom: 1rem;
  text-shadow: 0 2px 16px rgba(0, 0, 0, .25)
}

.sl-h em {
  font-style: italic;
  color: var(--sky)
}

.sl-p {
  font-size: clamp(.88rem, 1.5vw, 1rem);
  color: rgba(255, 255, 255, .8);
  line-height: 1.65;
  max-width: 480px;
  margin-bottom: 1.8rem
}

.sl-dots {
  position: absolute;
  bottom: 1.8rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: .55rem;
  z-index: 10
}

.sd {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .3);
  border: none;
  cursor: pointer;
  transition: all .3s
}

.sd.on {
  background: #fff;
  width: 24px;
  border-radius: 4px
}

.sl-ar {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  width: 100%;
  padding: 0 1rem;
  z-index: 10;
  pointer-events: none
}

.sa {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .13);
  border: 1px solid rgba(255, 255, 255, .2);
  color: #fff;
  font-size: 1rem;
  pointer-events: all;
  cursor: pointer;
  display: grid;
  place-items: center;
  backdrop-filter: blur(8px);
  transition: all .2s
}

.sa:hover {
  background: rgba(255, 255, 255, .28)
}

.sl-prog {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  z-index: 10;
  background: linear-gradient(90deg, var(--blue), var(--sky));
  width: 0;
  transition: width 0s
}

.sl-prog.run {
  transition: width 5s linear
}

.hero-stats {
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 10;
  display: flex
}

.hs {
  padding: .85rem 1.4rem;
  text-align: center;
  background: rgba(245, 248, 255, .85);
  backdrop-filter: blur(14px);
  border-left: 1px solid var(--border);
  border-top: 1px solid var(--border)
}

.hs-n {
  font-family: 'Playfair Display', serif;
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--blue);
  line-height: 1
}

.hs-l {
  font-size: .6rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: .2rem
}

/* ── SERVICIOS ───────────────────────── */
.srv-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--r2);
  overflow: hidden
}

.sc {
  background: var(--white);
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  gap: .55rem;
  transition: background .2s;
  position: relative;
  overflow: hidden
}

.sc::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--blue), var(--sky));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s var(--ease)
}

.sc:hover {
  background: var(--bg)
}

.sc:hover::after {
  transform: scaleX(1)
}

.sc-ico {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: rgba(24, 96, 212, .1);
  display: grid;
  place-items: center;
  font-size: 1.3rem;
  margin-bottom: .3rem;
  transition: background .2s
}

.sc:hover .sc-ico {
  background: var(--blue)
}

.sc-title {
  font-size: .95rem;
  font-weight: 700;
  color: var(--text)
}

.sc-desc {
  font-size: .82rem;
  color: var(--soft);
  line-height: 1.6
}

.sc-more {
  margin-top: auto;
  font-size: .75rem;
  font-weight: 700;
  color: var(--blue);
  display: flex;
  align-items: center;
  gap: .3rem;
  transition: gap .2s
}

.sc:hover .sc-more {
  gap: .55rem
}

.sc.feat {
  background: linear-gradient(145deg, #0c2252, #143a80)
}

.sc.feat .sc-title {
  color: #fff
}

.sc.feat .sc-desc {
  color: rgba(255, 255, 255, .65)
}

.sc.feat .sc-ico {
  background: rgba(255, 255, 255, .12)
}

.sc.feat .sc-more {
  color: var(--sky)
}

.sc.feat:hover {
  background: linear-gradient(145deg, #0f2b65, #1a4898)
}

.sc-price {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--sky);
  line-height: 1;
  letter-spacing: -.04em;
  margin-top: .3rem
}

.sc-plbl {
  font-size: .65rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .38);
  margin-top: .15rem
}

/* ── oto:first-child{grid-column:1/-1;aspect-ratio:16/9}
.ab-photo:not(:first-child){aspect-ratio:4/3}
.ab-photo img{width:100%;height:100%;object-fit:cover;transition:transform .5s var(--ease)}
.ab-photo:hover img{transform:scale(1.05)}
.ab-photo figcaption{position:absolute;bottom:0;left:0;right:0;padding:.65rem .9rem;font-size:.7rem;font-weight:700;color:#fff;background:linear-gradient(to top,rgba(10,22,50,.8),transparent);opacity:0;transition:opacity .3s}
.ab-photo:hover figcaption{opacity:1}
.ab-txt .lead{margin-bottom:1.8rem}

/* who rows */
.ab-row {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
  cursor: default;
  transition: padding-left .2s
}

.ab-row:first-child {
  border-top: 1px solid var(--border)
}

.ab-row:hover {
  padding-left: .4rem
}

.ab-num {
  font-size: .68rem;
  font-weight: 700;
  color: var(--blue);
  flex-shrink: 0;
  width: 1.5rem;
  padding-top: .1rem
}

.ab-row h4 {
  font-size: .92rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: .18rem;
  transition: color .2s
}

.ab-row:hover h4 {
  color: var(--blue)
}

.ab-row p {
  font-size: .82rem;
  color: var(--soft);
  line-height: 1.6
}

.ab-arr {
  margin-left: auto;
  color: var(--muted);
  flex-shrink: 0;
  padding-top: .1rem;
  transition: all .2s
}

.ab-row:hover .ab-arr {
  color: var(--blue);
  transform: translate(2px, -2px)
}

/* mission / vision */
.mv-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 2.5rem 0
}

.mv-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 1.5rem;
  border-left: 3px solid var(--blue)
}

.mv-label {
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: .5rem
}

.mv-text {
  font-size: .9rem;
  color: var(--text);
  line-height: 1.7
}

/* timeline */
.tl-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
  margin: 2.5rem 0
}

.tl-label {
  margin-bottom: 1.5rem
}

.timeline {
  position: relative;
  padding-left: 1.8rem
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--blue), var(--border))
}

.tl-item {
  position: relative;
  padding-bottom: 1.8rem
}

.tl-item:last-child {
  padding-bottom: 0
}

.tl-dot {
  position: absolute;
  left: -1.95rem;
  top: 5px;
  width: 12px;
  height: 12px;
  background: var(--bg);
  border: 2.5px solid var(--blue);
  border-radius: 50%;
  transition: background .3s
}

.tl-item:hover .tl-dot {
  background: var(--blue)
}

.tl-year {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--blue);
  text-transform: uppercase;
  margin-bottom: .3rem
}

.tl-title {
  font-size: .92rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: .28rem
}

.tl-desc {
  font-size: .82rem;
  color: var(--soft);
  line-height: 1.6
}

/* valores */
.valores-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--r2);
  overflow: hidden;
  margin-top: 2.5rem
}

.val-card {
  background: var(--bg);
  padding: 1.5rem;
  transition: background .2s
}

.val-card:hover {
  background: var(--white)
}

.val-ico {
  font-size: 1.8rem;
  margin-bottom: .8rem
}

.val-title {
  font-size: .92rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: .4rem
}

.val-desc {
  font-size: .8rem;
  color: var(--soft);
  line-height: 1.6
}

/* certs */
.certs {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin-top: 1.8rem
}

.cert {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-size: .75rem;
  font-weight: 600;
  color: var(--blue);
  background: rgba(24, 96, 212, .08);
  border: 1px solid rgba(24, 96, 212, .18);
  border-radius: 50px;
  padding: .32rem .9rem
}

.cert::before {
  content: '✓';
  font-weight: 700
}

/* ── GALERÍA 3D ──────────────────────── */
#galeria {
  background: var(--white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border)
}

.gal-head {
  text-align: center;
  margin-bottom: 5rem
}

.gal-sub {
  font-size: .82rem;
  color: var(--muted);
  margin-top: .4rem
}

.scene {
  position: relative;
  height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1000px;
  margin-bottom: 3rem
}

.car3d {
  position: relative;
  width: 240px;
  height: 300px;
  transform-style: preserve-3d;
  animation: spin3d 20s linear infinite;
  cursor: grab
}

.car3d:active {
  cursor: grabbing
}

.car3d.paused {
  animation-play-state: paused
}

@keyframes spin3d {
  from {
    transform: rotateY(0)
  }

  to {
    transform: rotateY(-360deg)
  }
}

.ci3 {
  position: absolute;
  width: 240px;
  height: 300px;
  border-radius: 14px;
  overflow: hidden;
  top: 0;
  left: 0;
  border: 2px solid rgba(24, 96, 212, .15);
  box-shadow: 0 16px 48px rgba(14, 30, 60, .18);
  cursor: pointer;
  transition: border-color .3s;
  backface-visibility: hidden
}

.ci3:hover {
  border-color: rgba(56, 182, 255, .5)
}

.ci3 img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block
}

.ci3::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 22, 50, .82) 0%, transparent 52%)
}

.ci3-lbl {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: .9rem 1.1rem;
  z-index: 2
}

.ci3-lbl span {
  font-size: .8rem;
  font-weight: 700;
  color: #fff;
  display: block
}

.ci3-lbl small {
  font-size: .66rem;
  color: rgba(255, 255, 255, .55)
}

.gal-ctrl {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .8rem;
  margin-bottom: 2rem
}

.gc {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: .95rem;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: all .2s
}

.gc:hover {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue)
}

.gc-p {
  padding: .4rem 1.2rem;
  border-radius: 50px;
  background: var(--card);
  border: 1px solid var(--border);
  font-size: .75rem;
  font-weight: 700;
  color: var(--soft);
  cursor: pointer;
  transition: all .2s
}

.gc-p:hover {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue)
}

.gf-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(155px, 1fr));
  gap: .65rem
}

/* ── PORTAFOLIO ──────────────────────── */
#portafolio {
  background: var(--bg)
}

.ftabs {
  display: flex;
  gap: .4rem;
  flex-wrap: wrap
}

.ft {
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .04em;
  padding: .4rem 1rem;
  border-radius: 6px;
  border: 1px solid var(--border);
  color: var(--soft);
  background: transparent;
  cursor: pointer;
  transition: all .18s
}

.ft.on {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
  box-shadow: 0 4px 14px rgba(24, 96, 212, .28)
}

.ft:not(.on):hover {
  border-color: rgba(24, 96, 212, .4);
  color: var(--blue)
}

/* GRID PORTAFOLIO — filas con min-height para que no se corten */
.pf-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: minmax(180px, auto);
  gap: .75rem;
}

.pj {
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  transition: transform .35s var(--ease), box-shadow .35s;
  min-height: 180px;
}

.pj:nth-child(1) {
  grid-column: 1/6;
  grid-row: 1/3;
  min-height: 370px
}

.pj:nth-child(2) {
  grid-column: 6/9;
  grid-row: 1
}

.pj:nth-child(3) {
  grid-column: 9/13;
  grid-row: 1
}

.pj:nth-child(4) {
  grid-column: 6/10;
  grid-row: 2
}

.pj:nth-child(5) {
  grid-column: 10/13;
  grid-row: 2
}

.pj img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s var(--ease)
}

.pj:hover img {
  transform: scale(1.05)
}

.pj-ov {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 22, 50, .92) 0%, rgba(10, 22, 50, .2) 55%, transparent 100%);
  opacity: 0;
  transition: opacity .3s;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.4rem
}

.pj:hover .pj-ov {
  opacity: 1
}

.pj-cat {
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--sky);
  margin-bottom: .3rem
}

.pj-name {
  font-size: .95rem;
  font-weight: 700;
  color: #fff
}

.pj:first-child .pj-name {
  font-size: 1.2rem
}

.pj-det {
  font-size: .72rem;
  color: rgba(255, 255, 255, .55);
  margin-top: .2rem
}

.pf-mob {
  display: none;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: .75rem
}

.pj-mob {
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  aspect-ratio: 4/3;
  cursor: pointer
}

.pj-mob img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover
}

.pj-mob .pj-ov {
  opacity: 0;
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 22, 50, .9) 0%, transparent 55%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1rem;
  transition: opacity .3s
}

.pj-mob:hover .pj-ov {
  opacity: 1
}

/* ── CONTACTO ────────────────────────── */
#contacto {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start
}

.ct-lead {
  font-size: .9rem;
  color: var(--soft);
  line-height: 1.72;
  margin: 1rem 0 1.8rem
}

.ct-items {
  display: flex;
  flex-direction: column;
  gap: .65rem
}

.ci {
  display: flex;
  align-items: center;
  gap: .85rem;
  padding: .8rem .95rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  transition: border-color .2s
}

.ci:hover {
  border-color: var(--blue)
}

.ci-ico {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  background: rgba(24, 96, 212, .1);
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-size: .95rem;
  transition: background .2s
}

.ci:hover .ci-ico {
  background: var(--blue)
}

.ci-l {
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--muted)
}

.ci-v {
  font-size: .88rem;
  font-weight: 700;
  color: var(--text);
  transition: color .2s
}

.ci:hover .ci-v {
  color: var(--blue)
}

.cf {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r2);
  padding: 1.8rem;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.cf:hover {
  transform: translateY(-4px);
  box-shadow: var(--sh2);
}

.cf-h {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: .25rem
}

.cf-s {
  font-size: .75rem;
  color: var(--muted);
  margin-bottom: 1.4rem
}

.fg {
  margin-bottom: .85rem
}

.fg label {
  display: block;
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--soft);
  margin-bottom: .35rem
}

.fg input,
.fg select,
.fg textarea {
  width: 100%;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: .7rem .9rem;
  font-family: 'Outfit', sans-serif;
  font-size: .87rem;
  color: var(--text);
  outline: none;
  transition: border-color .2s, box-shadow .2s
}

.fg input:focus,
.fg select:focus,
.fg textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(24, 96, 212, .1)
}

.fg textarea {
  resize: vertical;
  min-height: 90px
}

.frow {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .75rem
}

.btn-send {
  width: 100%;
  background: linear-gradient(135deg, var(--blue), var(--blue2));
  color: #fff;
  font-size: .88rem;
  font-weight: 700;
  font-family: 'Outfit', sans-serif;
  padding: .85rem;
  border-radius: 9px;
  cursor: pointer;
  border: none;
  box-shadow: 0 6px 18px rgba(24, 96, 212, .3);
  transition: all .22s;
  margin-top: .3rem
}

.btn-send:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(24, 96, 212, .4)
}

/* ── LIGHTBOX ────────────────────────── */
#lb {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(10, 20, 44, .85);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  display: none;
  place-items: center;
  padding: 1.5rem
}

#lb.open {
  display: grid
}

.lb-w {
  max-width: 720px;
  width: 100%;
  will-change: transform, opacity;
  animation: lbp .32s var(--ease)
}

@keyframes lbp {
  from {
    opacity: 0;
    transform: scale(.93)
  }

  to {
    opacity: 1;
    transform: scale(1)
  }
}

.lb-img {
  width: 100%;
  aspect-ratio: 16/10;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .1);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .5);
  margin-bottom: 1.1rem
}

.lb-img img {
  width: 100%;
  height: 100%;
  object-fit: cover
}

.lb-t {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff
}

.lb-d {
  font-size: .8rem;
  color: rgba(255, 255, 255, .42);
  margin-top: .25rem
}

#lb-x {
  position: absolute;
  top: 1.4rem;
  right: 1.4rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .14);
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background .2s
}

#lb-x:hover {
  background: rgba(255, 255, 255, .2)
}

/* ── FOOTER ──────────────────────────── */
footer {
  background: var(--text);
  padding: 2rem clamp(1rem, 4vw, 2.5rem) 1.2rem;
  border-top: 3px solid var(--blue)
}

.ft-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.2rem
}

.ft-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.ft-logo .logo-name {
  color: #fff
}

.ft-info {
  font-size: .90rem;
  color: rgba(255, 255, 255, .38);
  line-height: 1.6;
  text-align: center;
  flex-grow: 1;
}

.ft-info a {
  color: rgba(255, 255, 255, .55);
  transition: color .2s
}

.ft-info a:hover {
  color: var(--sky)
}

.ft-soc {
  display: flex;
  gap: .45rem;
}

.fts {
  width: 32px;
  height: 32px;
  border-radius: 7px;
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .1);
  display: grid;
  place-items: center;
  font-size: .8rem;
  color: rgba(255, 255, 255, .45);
  transition: all .2s
}

.fts:hover {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue)
}

/* ── BOTONES FLOTANTES PYRAMID (Chatbot on top, WA/PH below) ─ */
.flts-pyramid {
  position: fixed;
  bottom: 25px;
  right: 25px;
  z-index: 9990;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.flts-row {
  display: flex;
  gap: 12px;
  align-items: center;
}

.flt-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
  flex-shrink: 0;
}

.flt-icon:hover {
  transform: scale(1.1) translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22);
}

.flt-icon-wa {
  background: #25d366;
}

.flt-icon-ph {
  background: #1860d4;
}

/* ── REVEAL ──────────────────────────── */
.rv {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .65s var(--ease), transform .65s var(--ease)
}

.rv.vis {
  opacity: 1;
  transform: translateY(0)
}

.rv-1 {
  transition-delay: .08s
}

.rv-2 {
  transition-delay: .16s
}

.rv-3 {
  transition-delay: .24s
}

.tl-item {
  opacity: 0;
  transform: translateX(12px);
  transition: opacity .6s var(--ease), transform .6s var(--ease)
}

.tl-item.vis {
  opacity: 1;
  transform: translateX(0)
}

/* ── RESPONSIVE ──────────────────────── */
@media(max-width:900px) {
  .nav-links {
    display: none
  }

  .nav-r .btn {
    display: none
  }

  #hbg {
    display: flex
  }

  .ab-intro {
    grid-template-columns: 1fr;
    gap: 2rem
  }

  .tl-section {
    grid-template-columns: 1fr;
    gap: 2rem
  }

  .mv-grid {
    grid-template-columns: 1fr;
    gap: .8rem
  }

  #contacto {
    grid-template-columns: 1fr;
    gap: 2rem
  }

  .hero-stats .hs {
    padding: .7rem 1rem
  }

  .scene {
    height: 320px
  }

  .car3d,
  .ci3 {
    width: 210px;
    height: 260px
  }

  footer .ft-inner {
    flex-direction: column;
    align-items: flex-start
  }

  #servicios .srv-wrap {
    overflow-x: visible;
    padding-bottom: 0;
  }

  .srv-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    min-width: auto;
    gap: 1.5rem;
    background: transparent;
    border: none;
  }

  /* Reducir carga gráfica del menú al hacer scroll en móviles */
  #nav {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
  }
}

@media(max-width:560px) {

  #servicios .srv-wrap {
    overflow-x: visible;
    padding-bottom: 0;
  }

  .srv-grid {
    grid-template-columns: 1fr;
    min-width: auto;
    gap: 1.5rem;
  }

  .ab-photos {
    grid-template-columns: 1fr
  }

  .ab-photo:first-c .hero-stats {
    display: none
  }

  .scene {
    height: 280px
  }

  .car3d,
  .ci3 {
    width: 180px;
    height: 230px
  }

  .valores-grid {
    grid-template-columns: 1fr 1fr
  }

  .pf-grid {
    display: none
  }

  .pf-mob {
    display: grid
  }
}

/* ── LOGO BANNER ─────────────────────── */
#logo-banner {
  background: linear-gradient(135deg, #0e1e3c 0%, #0d3a7a 55%, #0a2a5e 100%);
  padding: 2.5rem clamp(1rem, 4vw, 2.5rem);
  position: relative;
  overflow: hidden;
}

#logo-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='20' cy='20' r='.7' fill='%23fff' fill-opacity='.04'/%3E%3C/svg%3E");
}

.lb-inner {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 2.5rem;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.lb-logo {
  width: 120px;
  height: 120px;
  object-fit: contain;
  filter: drop-shadow(0 0 18px rgba(56, 182, 255, .35));
  animation: logoPulse 3s ease-in-out infinite;
}

@keyframes logoPulse {

  0%,
  100% {
    filter: drop-shadow(0 0 14px rgba(56, 182, 255, .3))
  }

  50% {
    filter: drop-shadow(0 0 26px rgba(56, 182, 255, .55))
  }
}

.lb-tagline {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  color: #fff;
  letter-spacing: -.02em;
  line-height: 1;
}

.lb-tagline strong {
  color: var(--sky)
}

.lb-sub {
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .45);
  margin: .4rem 0 1.4rem;
}

.lb-pills {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem
}

.lb-pills span {
  font-size: .72rem;
  font-weight: 700;
  color: rgba(255, 255, 255, .85);
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 50px;
  padding: .3rem .85rem;
  transition: all .2s;
}

.lb-pills span:hover {
  background: rgba(56, 182, 255, .2);
  border-color: rgba(56, 182, 255, .4);
  color: #fff
}

.lb-right {
  display: flex;
  align-items: center;
  gap: 1.5rem
}

.lb-stat {
  text-align: center
}

.lb-sn {
  font-family: 'Playfair Display', serif;
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--sky);
  line-height: 1;
}

.lb-sl {
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .45);
  margin-top: .25rem;
  line-height: 1.4
}

.lb-div {
  width: 1px;
  height: 48px;
  background: rgba(255, 255, 255, .15)
}

/* ── VALORES GRID — 6 items (3×2) ─────── */
.valores-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  /* force 3 cols so 6 fills perfectly */
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--r2);
  overflow: hidden;
  margin-top: 0
}

.val-card {
  background: var(--bg);
  padding: 1.4rem;
  transition: background .2s;
  cursor: default
}

.val-card:hover {
  background: var(--white)
}

.val-ico {
  font-size: 1.7rem;
  margin-bottom: .7rem
}

.val-title {
  font-size: .9rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: .35rem
}

.val-desc {
  font-size: .90rem;
  color: var(--soft);
  line-height: 1.6
}

/* ── GALLERY CARDS (replace .gf) ──────── */
.gf-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: .85rem;
}

.gf-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
  cursor: pointer;
  transition: transform .3s var(--ease), box-shadow .3s;
  display: flex;
  flex-direction: column;
}

.gf-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--sh2)
}

.gf-card-img {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  flex-shrink: 0;
}

.gf-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .45s var(--ease)
}

.gf-card:hover .gf-card-img img {
  transform: scale(1.07)
}

.gf-card-year {
  position: absolute;
  top: .6rem;
  right: .6rem;
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .06em;
  background: rgba(10, 22, 50, .72);
  color: #fff;
  backdrop-filter: blur(4px);
  border-radius: 50px;
  padding: .2rem .6rem;
}

.gf-card-body {
  padding: .9rem 1rem 1rem;
  display: flex;
  flex-direction: column;
  gap: .4rem;
  flex: 1
}

.gf-card-tag {
  display: inline-flex;
  align-items: center;
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  border-radius: 50px;
  padding: .2rem .7rem;
  align-self: flex-start;
}

.gf-card-title {
  font-size: .88rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3
}

.gf-card-detail {
  font-size: .76rem;
  color: var(--soft);
  line-height: 1.5;
  flex: 1
}

.gf-card-more {
  font-size: .72rem;
  font-weight: 700;
  color: var(--blue);
  margin-top: .4rem;
  transition: gap .2s;
  display: flex;
  align-items: center;
  gap: .3rem;
}

.gf-card:hover .gf-card-more {
  gap: .5rem
}

/* ── LOGO BANNER RESPONSIVE ──────────── */
@media(max-width:900px) {
  .lb-inner {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    text-align: center
  }

  .lb-left {
    display: flex;
    justify-content: center
  }

  .lb-pills {
    justify-content: center
  }

  .lb-right {
    justify-content: center
  }

  .lb-logo {
    width: 90px;
    height: 90px
  }
}

@media(max-width:560px) {
  .valores-grid {
    grid-template-columns: repeat(2, 1fr)
  }

  .lb-right {
    flex-wrap: wrap;
    gap: 1rem
  }

  .lb-div {
    display: none
  }

  .gf-grid {
    grid-template-columns: repeat(2, 1fr)
  }
}

@media(min-width: 901px) {
  .srv-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    /* 5 columnas fijas = 1 fila */
    gap: 1rem;
    background: transparent;
    border: none;
    border-radius: 0;
  }
}

.sc {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--r2);
  padding: 1.6rem 1.6rem 4.5rem 1.6rem;
  display: flex;
  flex-direction: column;
  gap: .6rem;
  transition: all .3s var(--ease);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.sc::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--sky));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s var(--ease);
}

.sc:hover {
  box-shadow: var(--sh2);
  border-color: rgba(24, 96, 212, .25);
  transform: translateY(-2px);
}

.sc:hover::before {
  transform: scaleX(1);
}

.sc.open {
  border-color: var(--blue);
  box-shadow: 0 8px 32px rgba(24, 96, 212, .2);
}

.sc.open::before {
  transform: scaleX(1);
}

.sc-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: .2rem;
}

.sc-ico {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(24, 96, 212, .1);
  display: grid;
  place-items: center;
  font-size: 1.3rem;
  transition: background .2s;
  flex-shrink: 0;
}

.sc:hover .sc-ico,
.sc.open .sc-ico {
  background: var(--blue);
}

.sc-tiempo {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--muted);
  text-align: right;
}

.sc-title {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text);
}

.sc-desc {
  font-size: .83rem;
  color: var(--soft);
  line-height: 1.62;
}

/* Detail panel — hidden by default, shown on .open */
.sc-detail {
  max-height: 0;
  overflow: hidden;
  transition: max-height .5s var(--ease), opacity .4s;
  opacity: 0;
}

.sc.open .sc-detail {
  max-height: 400px;
  opacity: 1;
}

.sc-detail-txt {
  font-size: .8rem;
  color: var(--soft);
  line-height: 1.65;
  margin-top: .6rem;
  padding-top: .8rem;
  border-top: 1px solid var(--border);
}

.sc-incluye {
  margin: .75rem 0;
  display: flex;
  flex-direction: column;
  gap: .35rem;
}

.sc-incluye li {
  font-size: .90rem;
  color: var(--text);
  display: flex;
  align-items: flex-start;
  gap: .5rem;
}

.sc-incluye li::before {
  content: '✓';
  color: var(--blue);
  font-weight: 800;
  flex-shrink: 0;
  margin-top: .05rem;
}

.sc-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: .6rem;
}

.sc-precio-tag {
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .05em;
  color: var(--blue);
  background: rgba(24, 96, 212, .08);
  border: 1px solid rgba(24, 96, 212, .18);
  border-radius: 50px;
  padding: .25rem .8rem;
}

.sc-more {
  font-size: .75rem;
  font-weight: 700;
  color: var(--blue);
  display: flex;
  align-items: center;
  gap: .3rem;
  transition: gap .2s;
}

.sc:hover .sc-more {
  gap: .5rem;
}

/* Featured service card */
.sc.feat {
  background: linear-gradient(145deg, #0c2252, #143a80);
  border-color: transparent;
}

.sc.feat .sc-title,
.sc.feat .sc-desc {
  color: rgba(255, 255, 255, .9);
}

.sc.feat .sc-ico {
  background: rgba(255, 255, 255, .12);
}

.sc.feat .sc-tiempo {
  color: rgba(255, 255, 255, .45);
}

.sc.feat .sc-more {
  color: var(--sky);
}

.sc.feat .sc-detail-txt {
  color: rgba(255, 255, 255, .65);
  border-top-color: rgba(255, 255, 255, .12);
}

.sc.feat .sc-incluye li {
  color: rgba(255, 255, 255, .85);
}

.sc.feat .sc-incluye li::before {
  color: var(--sky);
}

.sc.feat .sc-precio-tag {
  background: rgba(56, 182, 255, .15);
  border-color: rgba(56, 182, 255, .35);
  color: var(--sky);
}

.sc-price {
  font-family: 'Playfair Display', serif;
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--sky);
  line-height: 1;
  letter-spacing: -.04em;
}

/* ═══════════════════════════════════════════════════════════
   CALCULADORA DE BTU
═══════════════════════════════════════════════════════════ */
#calculadora {
  background: linear-gradient(135deg, #f0f5ff 0%, var(--white) 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.calc-wrap {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 3rem;
  align-items: start;
}

.calc-form {
  margin-top: 2rem;
}

.cf-row,
.cf-row-3 {
  margin-bottom: 1.2rem;
}

.cf-row-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .85rem;
}

.cf-field label {
  display: block;
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--soft);
  margin-bottom: .45rem;
}

.cf-field select {
  width: 100%;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 9px;
  padding: .62rem .9rem;
  font-family: 'Outfit', sans-serif;
  font-size: .85rem;
  color: var(--text);
  outline: none;
  cursor: pointer;
  transition: border-color .2s, box-shadow .2s;
}

.cf-field select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(24, 96, 212, .1);
}

.cf-range-wrap {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: #f8fbff;
  border: 1.5px solid rgba(24, 96, 212, 0.25);
  border-radius: 9px;
  padding: .55rem 1rem;
}

input[type=range] {
  -webkit-appearance: none;
  appearance: none;
  flex: 1;
  height: 4px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--blue) var(--pct, 30%), var(--border) var(--pct, 30%));
  outline: none;
  cursor: pointer;
}

input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 2px 8px rgba(24, 96, 212, .4);
  border: 2px solid #fff;
  cursor: pointer;
}

.cf-range-val {
  font-size: .82rem;
  font-weight: 800;
  color: var(--blue);
  white-space: nowrap;
  min-width: 48px;
  text-align: right;
}

/* Result panel */
.calc-result {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--r2);
  padding: 2rem;
  min-height: 300px;
  box-shadow: var(--sh);
}

.calc-out {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.calc-out-label {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: .8rem;
}

.calc-out-btu {
  font-family: 'Playfair Display', serif;
  font-size: clamp(3rem, 6vw, 4.5rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.04em;
  transition: color .4s;
}

.calc-out-unit {
  font-size: .8rem;
  font-weight: 600;
  color: var(--muted);
  margin-top: .2rem;
  margin-bottom: 1.2rem;
}

.calc-bar-wrap {
  width: 100%;
  height: 8px;
  background: var(--border);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.calc-bar {
  height: 100%;
  border-radius: 8px;
  transition: width .5s var(--ease), background .4s;
}

.calc-eq-card {
  width: 100%;
  text-align: left;
  padding: 1rem 1.2rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  margin-bottom: 1rem;
}

.calc-eq-tipo {
  font-size: .95rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: .2rem;
}

.calc-eq-ton {
  font-size: .78rem;
  color: var(--soft);
}

.calc-nota {
  font-size: .72rem;
  color: var(--muted);
  line-height: 1.6;
  text-align: left;
}

/* ═══════════════════════════════════════════════════════════
   COBERTURA LOCAL — SEO por provincia
═══════════════════════════════════════════════════════════ */
#cobertura {
  background: var(--bg);
}

.cob-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

.cob-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--r2);
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: .85rem;
  transition: all .25s var(--ease);
}

.cob-card:hover {
  box-shadow: var(--sh2);
  border-color: rgba(24, 96, 212, .25);
  transform: translateY(-2px);
}

.cob-top {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.cob-ico {
  font-size: 2rem;
  flex-shrink: 0;
}

.cob-prov {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
}

.cob-proyectos {
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--blue);
  margin-top: .2rem;
  display: block;
}

.cob-tiempo {
  margin-left: auto;
  text-align: right;
  flex-shrink: 0;
}

.cob-t-n {
  font-size: .88rem;
  font-weight: 800;
  color: var(--text);
}

.cob-t-l {
  font-size: .6rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .06em;
}

.cob-zonas {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  padding-top: .75rem;
  border-top: 1px solid var(--border);
}

.cob-zonas span {
  font-size: .68rem;
  font-weight: 600;
  color: var(--soft);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: .2rem .65rem;
  transition: all .2s;
}

.cob-card:hover .cob-zonas span {
  border-color: rgba(24, 96, 212, .2);
  color: var(--blue);
}

.cob-cta {
  font-size: .76rem;
  font-weight: 700;
  color: var(--blue);
  display: flex;
  align-items: center;
  gap: .3rem;
  padding-top: .75rem;
  border-top: 1px solid var(--border);
  transition: gap .2s;
}

.cob-card:hover .cob-cta {
  gap: .5rem;
}

/* ── RESPONSIVE NUEVAS SECCIONES ─────── */
@media(max-width:900px) {
  .calc-wrap {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .cf-row-3 {
    grid-template-columns: 1fr 1fr;
  }
}

@media(max-width:560px) {

  /* srv-grid: NO se colapsa, mantiene scroll horizontal */
  .cf-row-3 {
    grid-template-columns: 1fr;
  }

  .cob-grid {
    grid-template-columns: 1fr;
  }
}

/* ════════════════════════════════════════
   MEJORAS 4 & 5 — Calculadora BTU · Cobertura · Servicios Expandidos · FAQ
════════════════════════════════════════ */

/* ── SERVICIOS — tarjetas expandibles ── */
.sc-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: .5rem;
  margin-bottom: .4rem
}

.sc-tiempo {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--muted);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: .22rem .75rem;
  white-space: nowrap
}

.sc.feat .sc-tiempo {
  background: rgba(255, 255, 255, .12);
  color: rgba(255, 255, 255, .55);
  border-color: rgba(255, 255, 255, .15)
}

/* detail panel — hidden by default */
.sc-detail {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height .45s var(--ease), opacity .35s var(--ease), padding .35s;
  padding-top: 0;
}

.sc.open .sc-detail {
  max-height: 600px;
  opacity: 1;
  padding-top: 1rem
}

.sc-detail-txt {
  font-size: .8rem;
  color: var(--soft);
  line-height: 1.65;
  margin-bottom: .85rem
}

.sc.feat .sc-detail-txt {
  color: rgba(255, 255, 255, .6)
}

.sc-incluye {
  display: flex;
  flex-direction: column;
  gap: .35rem;
  margin-bottom: 1rem
}

.sc-incluye li {
  display: flex;
  align-items: center;
  gap: .55rem;
  font-size: .78rem;
  color: var(--soft);
  line-height: 1.4;
}

.sc-incluye li::before {
  content: '✓';
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgba(24, 96, 212, .12);
  color: var(--blue);
  font-size: .62rem;
  font-weight: 900;
  display: grid;
  place-items: center;
}

.sc.feat .sc-incluye li {
  color: rgba(255, 255, 255, .65)
}

.sc.feat .sc-incluye li::before {
  background: rgba(56, 182, 255, .2);
  color: var(--sky)
}

.sc-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: .8rem;
  border-top: 1px solid var(--border)
}

.sc.feat .sc-footer {
  border-color: rgba(255, 255, 255, .12)
}

.sc-precio-tag {
  font-size: .78rem;
  font-weight: 800;
  color: var(--blue);
  background: rgba(24, 96, 212, .1);
  border-radius: 50px;
  padding: .25rem .8rem
}

.sc.feat .sc-precio-tag {
  color: var(--sky);
  background: rgba(56, 182, 255, .15)
}

/* cursor hint */
.sc {
  cursor: pointer;
  user-select: none
}

.sc::after {
  content: 'Ver detalles ▾';
  position: absolute;
  bottom: 1.4rem;
  left: 50%;
  /* Alineación perfecta del texto */
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1;
  background: rgba(24, 96, 212, 0.08);
  color: var(--blue);
  padding: .6rem 1.6rem;
  border-radius: 50px;
  opacity: 0.95;
  transition: all .3s var(--ease);
  box-shadow: 0 4px 12px rgba(24, 96, 212, 0.15);
  transform: translateX(-50%);
  white-space: nowrap;
}

.sc:hover::after {
  opacity: 1;
  background: var(--blue);
  color: #fff;
  box-shadow: 0 6px 16px rgba(24, 96, 212, 0.4);
  transform: translateX(-50%) translateY(-3px);
}

.sc.open::after {
  content: 'Cerrar ▴';
  background: var(--card);
  color: var(--soft);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transform: translateX(-50%) translateY(0);
}

.sc.feat::after {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

.sc.feat:hover::after {
  background: var(--sky);
  color: #0e1e3c;
  box-shadow: 0 6px 16px rgba(56, 182, 255, 0.5);
}

.sc.feat.open::after {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.7);
  box-shadow: none;
}

/* ── CALCULADORA BTU ─────────────────── */
#calculadora {
  background: linear-gradient(135deg, #e4edff 0%, #d4e2fa 100%);
  border-top: 1px solid #c8d8f5;
  border-bottom: 1px solid #c8d8f5;
}

.calc-wrap {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

.calc-form {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem
}

.cf-row {
  display: flex;
  flex-direction: column;
  gap: .35rem
}

.cf-row-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .75rem
}

.cf-field label {
  display: block;
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--soft);
  margin-bottom: .4rem;
}

.cf-range-wrap {
  display: flex;
  align-items: center;
  gap: .9rem
}

.cf-range-wrap input[type=range] {
  flex: 1;
  -webkit-appearance: none;
  appearance: none;
  height: 5px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--blue) var(--val, 33%), var(--border) var(--val, 33%));
  outline: none;
  cursor: pointer;
}

.cf-range-wrap input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--blue);
  border: 2px solid #fff;
  box-shadow: 0 2px 8px rgba(24, 96, 212, .4);
  cursor: pointer;
}

.cf-range-val {
  font-size: .88rem;
  font-weight: 800;
  color: var(--blue);
  white-space: nowrap;
  min-width: 52px;
  text-align: right;
}

.cf-field select {
  width: 100%;
  background: #f8fbff;
  border: 1.5px solid rgba(24, 96, 212, 0.25);
  border-radius: 8px;
  padding: .62rem .8rem;
  font-family: 'Outfit', sans-serif;
  font-size: .94rem;
  color: var(--text);
  outline: none;
  cursor: pointer;
  transition: border-color .2s, box-shadow .2s;
}

.cf-field select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(24, 96, 212, .1)
}

/* Result panel */
.calc-result {
  background: var(--white);
  border: 2px solid var(--sky);
  border-radius: var(--r2);
  padding: 2rem;
  box-shadow: 0 16px 40px rgba(24, 96, 212, 0.15);
  position: sticky;
  top: 90px;
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.calc-out {
  width: 100%;
  text-align: center
}

.calc-out-label {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: .6rem
}

.calc-out-btu {
  font-family: 'Playfair Display', serif;
  font-size: clamp(3rem, 6vw, 4.5rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.04em;
  transition: color .4s
}

.calc-out-unit {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.4rem
}

.calc-bar-wrap {
  background: var(--border);
  height: 6px;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 1.2rem
}

.calc-bar {
  height: 100%;
  border-radius: 4px;
  transition: width .6s var(--ease), background .4s
}

.calc-eq-card {
  text-align: left;
  padding: 1rem 1.1rem;
  background: linear-gradient(135deg, #f5f8ff, #eef3fc);
  border: 1.5px solid rgba(24, 96, 212, 0.2);
  border-radius: 10px;
  margin-bottom: 1rem;
  transition: border-color .4s;
}

.calc-eq-tipo {
  font-size: .92rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: .25rem
}

.calc-eq-ton {
  font-size: .90rem;
  color: var(--soft);
  line-height: 1.5
}

.calc-nota {
  font-size: .72rem;
  color: var(--muted);
  line-height: 1.6;
  background: rgba(24, 96, 212, .05);
  border-radius: 8px;
  padding: .7rem .9rem;
  text-align: left;
  margin-bottom: .5rem;
}

/* ── COBERTURA LOCAL ─────────────────── */
#cobertura {
  background: var(--bg)
}

.cob-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

.cob-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--r2);
  padding: 1.4rem 1.5rem;
  transition: border-color .25s, transform .25s var(--ease), box-shadow .25s;
  display: flex;
  flex-direction: column;
  gap: .85rem;
}

.cob-card:hover {
  border-color: var(--blue);
  transform: translateY(-3px);
  box-shadow: var(--sh2);
}

.cob-top {
  display: flex;
  align-items: center;
  gap: .9rem
}

.cob-ico {
  font-size: 1.6rem;
  flex-shrink: 0
}

.cob-prov {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1.1
}

.cob-proyectos {
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--blue);
  background: rgba(24, 96, 212, .08);
  border-radius: 50px;
  padding: .18rem .65rem;
  margin-top: .25rem;
  display: inline-block;
}

.cob-tiempo {
  margin-left: auto;
  text-align: right;
  flex-shrink: 0
}

.cob-t-n {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1
}

.cob-t-l {
  font-size: .58rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: .15rem
}

.cob-zonas {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem
}

.cob-zonas span {
  font-size: .7rem;
  font-weight: 600;
  color: var(--soft);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: .2rem .65rem;
  transition: all .15s;
}

.cob-card:hover .cob-zonas span {
  background: rgba(24, 96, 212, .06);
  border-color: rgba(24, 96, 212, .2)
}

.cob-cta {
  margin-top: auto;
  font-size: .75rem;
  font-weight: 700;
  color: var(--blue);
  display: flex;
  align-items: center;
  gap: .35rem;
  padding-top: .75rem;
  border-top: 1px solid var(--border);
  transition: gap .2s;
  text-decoration: none;
}

.cob-card:hover .cob-cta {
  gap: .6rem
}

/* ── FAQ ─────────────────────────────── */
#faq .faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(440px, 1fr));
  gap: .6rem;
}

.faq-item {
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
  transition: border-color .2s, box-shadow .2s;
}

.faq-item.open {
  border-color: var(--blue);
  box-shadow: 0 4px 18px rgba(24, 96, 212, .1)
}

.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.3rem;
  background: transparent;
  cursor: pointer;
  font-size: .9rem;
  font-weight: 700;
  color: var(--text);
  text-align: left;
  font-family: 'Outfit', sans-serif;
  border: none;
  transition: color .2s;
}

.faq-item.open .faq-q {
  color: var(--blue)
}

.faq-ico {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--border);
  color: var(--soft);
  font-size: 1.1rem;
  font-weight: 700;
  display: grid;
  place-items: center;
  transition: all .25s;
  line-height: 1;
}

.faq-item.open .faq-ico {
  background: var(--blue);
  color: #fff;
  transform: rotate(45deg) scale(1.05)
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .45s var(--ease);
}

.faq-a-inner {
  padding: .15rem 1.3rem 1.2rem;
  font-size: .85rem;
  color: var(--soft);
  line-height: 1.72;
  border-top: 1px solid var(--border);
}

/* ── RESPONSIVE NUEVAS SECCIONES ─────── */
@media(max-width:900px) {
  .calc-wrap {
    grid-template-columns: 1fr;
    gap: 2rem
  }

  .calc-result {
    position: static;
    min-height: auto
  }

  .cf-row-3 {
    grid-template-columns: 1fr 1fr
  }

  #faq .faq-grid {
    grid-template-columns: 1fr
  }

  .cob-grid {
    grid-template-columns: 1fr
  }
}

@media(max-width:560px) {
  .cf-row-3 {
    grid-template-columns: 1fr
  }

  .cob-card {
    padding: 1.1rem
  }

  /* Optimizaciones de rendimiento en móviles para Lightbox */
  #lb {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }

  .lb-w {
    animation-duration: 0.2s;
  }
}

/* ═══════════════════════════════════════════════════════════
   SERVICIOS — hint "Ver más"
═══════════════════════════════════════════════════════════ */
.srv-hint {
  margin-top: 1.2rem;
  display: flex;
  justify-content: center;
}

.srv-hint span {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .90rem;
  font-weight: 600;
  color: var(--soft);
  background: var(--card);
  border: 1.5px dashed var(--border);
  border-radius: 50px;
  padding: .55rem 1.4rem;
  transition: all .2s;
}

.srv-hint span:hover {
  border-color: var(--blue);
  color: var(--blue);
}

/* ═══════════════════════════════════════════════════════════
   NOSOTROS — Bloque unificado rediseñado
═══════════════════════════════════════════════════════════ */
.sec-nosotros {
  background: var(--white);
}

.nos-header {
  margin-bottom: 2rem;
}

/* ── 3 columnas que se igualan en alto ── */
.nos-unified {
  display: grid;
  grid-template-columns: 1fr 1.1fr .9fr;
  gap: 0;
  border-radius: var(--r2);
  overflow: hidden;
  border: 1.5px solid var(--border);
  box-shadow: var(--sh);
  margin-bottom: 1rem;
  min-height: 420px;
  height: auto;
  /* Elminado height fijo para que respire en movil */
  /* altura fija: las 3 cols terminan exactamente igual */
  align-items: stretch;
}

/* Col 1 — fotos */
.nos-left {
  background: var(--bg);
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: .8rem;
  border-right: 1.5px solid var(--border);
  overflow: hidden;
}

/* Fotos llenan la columna proporcionalmente */
.nos-left .ab-photos {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: .8rem;
  min-height: 0;
}

.nos-left .ab-photo {
  flex: 1;
  margin: 0;
  min-height: 0;
  overflow: hidden;
  border-radius: var(--r);
}

.nos-left .ab-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.nos-left .ab-photo figcaption {
  display: none;
}

.nos-center {
  background: var(--white);
  padding: 1.8rem 2.2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-right: 1.5px solid var(--border);
  overflow: hidden;
}

.nos-benefits {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  margin-top: auto;
}

.nb-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.nb-ico {
  font-size: 1.4rem;
  line-height: 1;
  background: var(--bg);
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  flex-shrink: 0;
}

.nb-txt {
  display: flex;
  flex-direction: column;
}

.nb-txt strong {
  font-size: 0.92rem;
  color: var(--text);
  font-weight: 700;
}

.nb-txt span {
  font-size: 0.88rem;
  color: var(--soft);
}

/* Col 3 — misión/visión azul: llena verticalmente */
.nos-right {
  background: linear-gradient(160deg, #0c2252 0%, #0d3a7a 55%, #0a2a5e 100%);
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.nos-mv-block {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  justify-content: center;
  flex: 1;
}

.nos-mv-item {
  padding: 1.5rem 1.2rem;
  border-radius: var(--r);
  flex: 1;
  /* cada tarjeta ocupa la mitad del alto disponible */
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.nos-mision {
  background: rgba(56, 182, 255, .12);
  border-left: 3px solid var(--sky);
}

.nos-vision {
  background: rgba(255, 255, 255, .07);
  border-left: 3px solid rgba(255, 255, 255, .2);
}

.nos-mv-label {
  font-size: .6rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--sky);
  margin-bottom: .4rem;
  display: block;
}

.nos-vision .nos-mv-label {
  color: rgba(255, 255, 255, .5);
}

.nos-mv-text {
  font-size: .90rem;
  color: rgba(255, 255, 255, .82);
  line-height: 1.6;
  margin: 0;
}

/* ── Stats strip — fila separada abajo ── */
.nos-stats-strip {
  display: flex;
  align-items: center;
  justify-content: space-around;
  background: linear-gradient(90deg, #0c2252, #0d3a7a);
  border-radius: var(--r2);
  padding: 1.2rem 2rem;
  margin-bottom: 2.5rem;
}

.nss-item {
  text-align: center;
  flex: 1;
}

.nss-n {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 700;
  color: var(--sky);
  line-height: 1;
}

.nss-l {
  display: block;
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .45);
  margin-top: .3rem;
}

.nss-div {
  width: 1px;
  height: 40px;
  background: rgba(255, 255, 255, .15);
  flex-shrink: 0;
}

/* Bloque B: historia + valores */
.sec-nosotros .tl-section {
  background: var(--bg);
  border-radius: var(--r2);
  padding: 2rem;
  border: 1.5px solid var(--border);
  margin-bottom: 2rem;
}

/* Bloque C: certificaciones */
.certs-block {
  background: linear-gradient(90deg, var(--blue), var(--sky));
  border-radius: var(--r2);
  padding: 1.2rem 2rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: nowrap;
}

.certs-block .eyebrow {
  color: rgba(255, 255, 255, .65);
  white-space: nowrap;
  margin: 0;
}

/* Contenedor de botones ocupa todo el espacio restante */
.certs-block .certs {
  display: flex;
  flex-wrap: nowrap;
  gap: .5rem;
  flex: 1;
  margin-top: 0;
  /* anula el margin-top del .certs genérico */
}

/* Cada botón se estira igual */
.certs-block .cert {
  display: flex !important;
  /* pisa inline-flex del .cert genérico */
  align-items: center;
  justify-content: center;
  flex: 1;
  /* todos iguales, llenan el ancho */
  text-align: center;
  white-space: nowrap;
  background: rgba(255, 255, 255, .15);
  border: 1.5px solid rgba(255, 255, 255, .3);
  color: #fff;
  font-size: .75rem;
  font-weight: 700;
  border-radius: 50px;
  padding: .4rem 1rem;
}

/* ── RESPONSIVE ──────────────────────── */
@media(max-width:900px) {
  .nos-unified {
    grid-template-columns: 1fr;
    height: auto;
    min-height: auto;
  }

  .nos-left,
  .nos-center {
    border-right: none;
    border-bottom: 1.5px solid var(--border);
  }

  .nos-mv-block {
    flex-direction: column;
  }

  .nos-stats-strip {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem 1rem;
    padding: 1.5rem 1rem;
  }

  .certs-block {
    flex-wrap: wrap;
  }

  .certs-block .certs {
    flex-wrap: wrap;
  }

  .certs-block .cert {
    flex: 1 1 calc(50% - .5rem);
  }
}

@media(max-width:600px) {
  .certs-block {
    flex-direction: column;
    gap: .75rem;
    padding: 1rem 1.2rem;
  }

  .certs-block .eyebrow {
    white-space: normal;
    text-align: center;
  }

  .certs-block .certs {
    flex-wrap: wrap;
  }

  .certs-block .cert {
    flex: 1 1 100%;
  }
}

input[type=range] {
  -webkit-appearance: none;
  appearance: none;
  flex: 1;
  height: 6px;
  border-radius: 6px;
  background: var(--border);
  /* fallback, JS overrides */
  outline: none;
  cursor: pointer;
  transition: background .15s;
}

input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 2px 10px rgba(24, 96, 212, .45);
  border: 3px solid #fff;
  cursor: pointer;
  transition: transform .15s;
}

input[type=range]::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

input[type=range]::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 2px 10px rgba(24, 96, 212, .45);
  border: 3px solid #fff;
  cursor: pointer;
}

@media(max-width:560px) {

  .nos-left,
  .nos-right {
    padding: 1.4rem;
  }

  html {
    font-size: 96%;
  }
}

/* ═══════════════════════════════════════════════════════════
   MODAL DE ÉXITO — formulario enviado
═══════════════════════════════════════════════════════════ */
.smodal-bg {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(10, 20, 50, .55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  transition: opacity .3s;
}

.smodal-box {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 20px;
  padding: 2.5rem 2rem 2rem;
  max-width: 440px;
  width: 100%;
  text-align: center;
  box-shadow: 0 30px 80px rgba(10, 20, 60, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.5) inset;
  will-change: transform, opacity;
  animation: smPop .45s cubic-bezier(.22, 1, .36, 1);
}

@keyframes smPop {
  from {
    transform: scale(.88) translateY(20px);
    opacity: 0
  }

  to {
    transform: scale(1) translateY(0);
    opacity: 1
  }
}

/* Check SVG animado */
.smodal-check {
  width: 72px;
  height: 72px;
  margin: 0 auto 1.2rem;
  background: linear-gradient(135deg, var(--blue), var(--sky));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(24, 96, 212, .35);
}

.smodal-check svg {
  width: 52px;
  height: 52px;
}

.smc-circle {
  stroke-dasharray: 157;
  stroke-dashoffset: 157;
  animation: smCircle .6s .1s ease forwards;
}

.smc-tick {
  stroke-dasharray: 40;
  stroke-dashoffset: 40;
  animation: smTick .4s .65s ease forwards;
}

@keyframes smCircle {
  to {
    stroke-dashoffset: 0
  }
}

@keyframes smTick {
  to {
    stroke-dashoffset: 0
  }
}

.smodal-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  color: var(--text);
  margin-bottom: .5rem;
}

.smodal-sub {
  font-size: .85rem;
  color: var(--soft);
  line-height: 1.65;
  margin-bottom: 1.5rem;
}

/* Datos de contacto */
.smodal-contacts {
  display: flex;
  flex-direction: column;
  gap: .55rem;
  margin-bottom: 1.6rem;
  text-align: left;
}

.smc-item {
  display: flex;
  align-items: center;
  gap: .85rem;
  padding: .75rem 1rem;
  border-radius: 12px;
  text-decoration: none;
  transition: transform .15s, box-shadow .15s;
}

.smc-item:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, .1);
}

.smc-wa {
  background: linear-gradient(90deg, #dcfce7, #bbf7d0);
  color: #15803d;
}

.smc-ph {
  background: linear-gradient(90deg, #eff6ff, #dbeafe);
  color: #1d4ed8;
}

.smc-em {
  background: linear-gradient(90deg, #faf5ff, #ede9fe);
  color: #6d28d9;
}

.smc-addr {
  background: var(--bg);
  color: var(--soft);
  cursor: default;
}

.smc-item svg {
  flex-shrink: 0;
}

.smc-label {
  display: block;
  font-size: .6rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  opacity: .6;
  margin-bottom: .1rem;
}

.smc-val {
  display: block;
  font-size: .88rem;
  font-weight: 700;
}

/* Botón cerrar */
.smodal-close {
  width: 100%;
  padding: .75rem;
  border-radius: 10px;
  border: 1.5px solid var(--border);
  background: transparent;
  color: var(--soft);
  font-size: .85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all .2s;
  font-family: 'Outfit', sans-serif;
}

.smodal-close:hover {
  background: var(--bg);
  color: var(--text);
}

@media(max-width:480px) {
  .smodal-box {
    padding: 1.8rem 1.2rem 1.4rem;
    animation-duration: 0.25s;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }

  .smodal-title {
    font-size: 1.3rem;
  }
}


/* ── CHATBOT — Fría · Asistente Virtual Clima Tico ─────── */
#cb-btn {
  position: relative;
  /* Cambiado de fixed a relative para fluir en la pirámide */
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  background: linear-gradient(135deg, #1860d4, #38b6ff);
  animation: cbRipple 2.5s infinite;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .2s, box-shadow .2s;
}

#cb-btn:hover {
  transform: scale(1.08);
  animation: none;
  box-shadow: 0 8px 25px rgba(24, 96, 212, .5);
}

#cb-btn.is-open {
  animation: none;
  box-shadow: 0 4px 15px rgba(24, 96, 212, .3);
}

@keyframes cbRipple {
  0% {
    box-shadow: 0 0 0 0 rgba(56, 182, 255, 0.6), 0 6px 20px rgba(24, 96, 212, 0.4);
  }

  70% {
    box-shadow: 0 0 0 16px rgba(56, 182, 255, 0), 0 6px 20px rgba(24, 96, 212, 0.4);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(56, 182, 255, 0), 0 6px 20px rgba(24, 96, 212, 0.4);
  }
}

/* Tooltip Mensaje Inicial */
#cb-tooltip {
  position: absolute;
  right: 100%;
  top: 50%;
  transform: translateY(-50%) translateX(10px) scale(0.9);
  background: #fff;
  color: #0e1e3c;
  padding: 8px 14px;
  border-radius: 16px;
  border-bottom-right-radius: 4px;
  font-size: 13px;
  font-weight: 800;
  font-family: 'Outfit', sans-serif;
  white-space: nowrap;
  box-shadow: 0 8px 24px rgba(10, 20, 60, 0.15);
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(.22, 1, .36, 1);
  margin-right: 14px;
  border: 1.5px solid #dce8fb;
}

#cb-tooltip.show {
  opacity: 1;
  transform: translateY(-50%) translateX(0) scale(1);
  pointer-events: all;
}

#cb-ico,
#cb-cls {
  display: flex;
  align-items: center;
  justify-content: center;
}

#cb-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  min-width: 18px;
  height: 18px;
  border-radius: 10px;
  background: #ef4444;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
  animation: cbPop .65s ease infinite alternate;
}

@keyframes cbPop {
  from {
    transform: scale(1)
  }

  to {
    transform: scale(1.15)
  }
}

.cb-win {
  position: fixed;
  bottom: 100px;
  right: 25px;
  z-index: 9989;
  width: 360px;
  max-width: calc(100vw - 32px);
  max-height: 560px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 20px;
  box-shadow: 0 24px 70px rgba(10, 20, 60, 0.25), 0 0 0 1px rgba(255, 255, 255, 0.4) inset;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  will-change: transform, opacity;
  transform: scale(.9) translateY(16px);
  opacity: 0;
  pointer-events: none;
  transition: transform .3s cubic-bezier(.22, 1, .36, 1), opacity .25s;
}

.cb-win.cb-open {
  transform: scale(1) translateY(0);
  opacity: 1;
  pointer-events: all;
}

/* Header */
.cb-hdr {
  background: linear-gradient(90deg, #0d3a7a, #1860d4);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.cb-av {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  flex-shrink: 0;
  background: rgba(255, 255, 255, .14);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  position: relative;
}

.cb-dot {
  position: absolute;
  bottom: 1px;
  right: 1px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #22c55e;
  border: 2px solid #0d3a7a;
}

.cb-htxt {
  flex: 1;
  min-width: 0;
}

.cb-hname {
  font-size: 13px;
  font-weight: 800;
  color: #fff;
  line-height: 1;
  margin-bottom: 2px;
}

.cb-hsub {
  font-size: 10.5px;
  color: rgba(255, 255, 255, .6);
}

.cb-hx {
  background: none;
  border: none;
  color: rgba(255, 255, 255, .5);
  cursor: pointer;
  font-size: 14px;
  padding: 5px 6px;
  border-radius: 6px;
  transition: background .15s, color .15s;
}

.cb-hx:hover {
  background: rgba(255, 255, 255, .15);
  color: #fff;
}

/* Mensajes */
.cb-msgs {
  flex: 1;
  overflow-y: auto;
  padding: 12px 11px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: #f5f8ff;
  scroll-behavior: smooth;
  min-height: 0;
}

.cb-msgs::-webkit-scrollbar {
  width: 3px;
}

.cb-msgs::-webkit-scrollbar-thumb {
  background: rgba(24, 96, 212, .2);
  border-radius: 2px;
}

.cb-msg {
  display: flex;
  flex-direction: column;
  max-width: 92%;
}

.cb-bot {
  align-self: flex-start;
}

.cb-user {
  align-self: flex-end;
}

.cb-bub {
  padding: 9px 13px;
  border-radius: 16px;
  font-size: 13px;
  line-height: 1.55;
  word-break: break-word;
}

.cb-bot-bub {
  background: #fff;
  color: #0e1e3c;
  border: 1px solid #dce8fb;
  border-bottom-left-radius: 4px;
  box-shadow: 0 2px 8px rgba(24, 96, 212, .07);
}

.cb-user-bub {
  background: linear-gradient(135deg, #1860d4, #2a7de1);
  color: #fff;
  border-bottom-right-radius: 4px;
  box-shadow: 0 3px 12px rgba(24, 96, 212, .3);
}

/* Tabla inline */
.cb-trow {
  display: flex;
  gap: 6px;
  margin: 2px 0;
  font-size: 12px;
  border-bottom: 1px solid #eef3fc;
  padding-bottom: 2px;
}

.cb-trow span {
  flex: 1;
  min-width: 0;
}

.cb-trow:first-of-type {
  font-weight: 700;
  color: #1860d4;
}

/* Typing dots */
.cb-dots {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 3px 2px;
}

.cb-dots span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(24, 96, 212, .35);
  animation: cbDot 1.1s ease-in-out infinite;
}

.cb-dots span:nth-child(2) {
  animation-delay: .18s;
}

.cb-dots span:nth-child(3) {
  animation-delay: .36s;
}

@keyframes cbDot {

  0%,
  80%,
  100% {
    transform: scale(1);
    opacity: .4
  }

  40% {
    transform: scale(1.5);
    opacity: 1
  }
}

/* CTA Buttons */
.cb-cta {
  display: flex;
  gap: 6px;
  margin-top: 7px;
  flex-wrap: wrap;
}

.cb-btn-act {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 13px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  transition: transform .15s, box-shadow .15s;
  cursor: pointer;
  border: none;
}

.cb-wa {
  background: #25d366;
  color: #fff;
  box-shadow: 0 3px 10px rgba(37, 211, 102, .3);
}

.cb-wa:hover {
  background: #1fbc5a;
  transform: translateY(-1px);
}

.cb-form {
  background: #eef3fc;
  color: #1860d4;
  border: 1.5px solid #c8d8f5;
}

.cb-form:hover {
  background: #1860d4;
  color: #fff;
  transform: translateY(-1px);
}

/* Quick replies */
.cb-quick {
  padding: 7px 10px 4px;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  border-top: 1px solid #eef3fc;
  background: #fff;
  flex-shrink: 0;
}

.cb-sugs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 6px;
}

.cb-qb {
  font-size: 11.5px;
  font-weight: 600;
  color: #1860d4;
  background: #eef3fc;
  border: 1px solid #c8d8f5;
  border-radius: 20px;
  padding: 5px 11px;
  cursor: pointer;
  transition: background .15s, color .15s, transform .1s;
  white-space: nowrap;
}

.cb-qb:hover {
  background: #1860d4;
  color: #fff;
  border-color: #1860d4;
  transform: translateY(-1px);
}

.cb-qb-s {
  font-size: 11px;
  padding: 4px 9px;
}

/* Input row */
.cb-irow {
  display: flex;
  gap: 6px;
  align-items: center;
  padding: 8px 10px;
  border-top: 1px solid #eef3fc;
  background: #fff;
  flex-shrink: 0;
}

.cb-menu-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1.5px solid #dce8fb;
  background: #f5f8ff;
  color: #1860d4;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background .15s, border-color .15s;
}

.cb-menu-btn:hover {
  background: #1860d4;
  color: #fff;
  border-color: #1860d4;
}

.cb-inp {
  flex: 1;
  border: 1.5px solid #dce8fb;
  border-radius: 22px;
  padding: 8px 13px;
  font-size: 13px;
  color: #0e1e3c;
  background: #f5f8ff;
  outline: none;
  font-family: 'Outfit', sans-serif;
  transition: border-color .2s, box-shadow .2s;
}

.cb-inp:focus {
  border-color: #1860d4;
  box-shadow: 0 0 0 3px rgba(24, 96, 212, .1);
  background: #fff;
}

.cb-inp:disabled {
  opacity: .5;
}

.cb-sbtn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  background: linear-gradient(135deg, #1860d4, #38b6ff);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform .15s;
  box-shadow: 0 3px 10px rgba(24, 96, 212, .3);
}

.cb-sbtn:hover {
  transform: scale(1.08);
}

/* Responsive */
@media(max-width:480px) {
  .flts-pyramid {
    bottom: 18px;
    right: 18px;
    gap: 15px;
  }

  #cb-btn {
    width: 44px;
    height: 44px;
  }

  .flt-icon {
    width: 34px;
    height: 34px;
  }

  .cb-win {
    bottom: 84px;
    right: 18px;
    width: calc(100vw - 28px);
    transition: transform 0.2s cubic-bezier(.22, 1, .36, 1), opacity 0.15s;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }

  .cb-qb {
    font-size: 11px;
    padding: 4px 9px;
  }

  #cb-tooltip {
    font-size: 11.5px;
    padding: 6px 12px;
    margin-right: 10px;
  }
}