/* ==========================================================================
   NIVEL CONSTRUCSECO — Design System
   Ink #1B222C · Blue #124786 · Blue Deep #0B2E57 · Paper #FAFAF9
   Display: Big Shoulders Display · Body: Inter
   ========================================================================== */

:root{
  --ink:#1B222C;
  --ink-soft:#2C3542;
  --ink-70:rgba(27,34,44,.70);
  --ink-50:rgba(27,34,44,.55);

  --blue:#124786;
  --blue-deep:#0B2E57;
  --blue-bright:#3E7BC4;
  --blue-mist:#EAF0F8;
  --blue-mist-2:#F3F6FA;

  --paper:#FAFAF9;
  --white:#FFFFFF;
  --line:#E1E5EB;
  --line-soft:#ECEFF3;
  --steel:#5B6572;

  --radius-sm:8px;
  --radius-md:14px;
  --radius-lg:22px;

  --shadow-sm: 0 1px 2px rgba(20,26,34,.04), 0 1px 1px rgba(20,26,34,.03);
  --shadow-md: 0 12px 28px -12px rgba(11,46,87,.18);
  --shadow-lg: 0 24px 60px -20px rgba(11,46,87,.28);

  --ease: cubic-bezier(.22,.61,.36,1);
}

@media (prefers-reduced-motion: reduce){
  *{ animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
html, body{ overflow-x:hidden; max-width:100%; }

body{
  font-family:'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color:var(--ink);
  background:var(--paper);
  font-size:16px;
  line-height:1.65;
  -webkit-font-smoothing:antialiased;
}

a{ color:inherit; text-decoration:none; }
img{ max-width:100%; display:block; }
ul{ list-style:none; margin:0; padding:0; }

::selection{ background:var(--blue); color:var(--white); }

:focus-visible{
  outline: 2.5px solid var(--blue-bright);
  outline-offset: 3px;
  border-radius: 4px;
}

.container{ max-width:1260px; }

h1,h2,h3,h4{
  font-family:'Big Shoulders Display', sans-serif;
  color:var(--ink);
  margin:0;
  letter-spacing:-.01em;
  line-height:1.02;
}

p{ margin:0; }

/* ---------- Section rhythm ---------- */
section{ padding: clamp(64px, 9vw, 128px) 0; position:relative; }

.section-eyebrow{
  font-family:'Inter', sans-serif;
  font-weight:700;
  font-size:.78rem;
  letter-spacing:.14em;
  text-transform:uppercase;
  color:var(--blue);
  margin-bottom:14px;
}
.section-eyebrow-light{ color:var(--blue-bright); }

.section-title{
  font-size:clamp(2rem, 3.6vw, 3rem);
  font-weight:800;
  margin-bottom:20px;
}
.section-title-light{ color:var(--white); }

.section-lead{
  font-size:1.05rem;
  color:var(--ink-70);
  max-width:52ch;
  margin-bottom:16px;
}
.section-lead-light{ color:rgba(255,255,255,.78); }
.section-lead-center{ max-width:64ch; margin-left:auto; margin-right:auto; }

.section-head{ text-align:center; max-width:760px; margin:0 auto clamp(40px,6vw,64px); }
.section-head .section-lead{ margin-left:auto; margin-right:auto; }

.deepdive-caption{
  font-family:'Inter';
  font-weight:700;
  font-size:.82rem;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:var(--steel);
  margin-bottom:18px;
}

/* ---------- Scroll reveal ---------- */
[data-reveal]{
  opacity:0;
  transform:translateY(18px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
[data-reveal].is-visible{ opacity:1; transform:translateY(0); }
[data-reveal-delay="1"]{ transition-delay:.08s; }
[data-reveal-delay="2"]{ transition-delay:.16s; }
[data-reveal-delay="3"]{ transition-delay:.24s; }
[data-reveal-delay="4"]{ transition-delay:.32s; }

/* ==========================================================================
   LEVEL SCROLL INDICATOR (signature element)
   ========================================================================== */
.level-track{
  position:fixed;
  top:0; left:0; right:0;
  height:3px;
  z-index:1060;
  background:var(--line-soft);
}
.level-vial{
  position:relative;
  width:100%; height:100%;
}
.level-bubble{
  position:absolute;
  top:50%; left:0;
  width:64px; height:3px;
  transform:translate(0,-50%);
  background:linear-gradient(90deg, var(--blue), var(--blue-bright));
  transition: box-shadow .3s var(--ease);
  will-change:left;
}
.level-bubble.is-level{
  box-shadow: 0 0 14px 2px rgba(62,123,196,.65);
}

/* ==========================================================================
   NAVBAR
   ========================================================================== */
.nivel-navbar{
  padding: 18px 0;
  background: rgba(250,250,249,0);
  transition: background .35s var(--ease), padding .35s var(--ease), box-shadow .35s var(--ease), backdrop-filter .35s var(--ease);
  top:3px;
}
.nivel-navbar.is-scrolled{
  background: rgba(250,250,249,.92);
  backdrop-filter: blur(10px);
  padding: 12px 0;
  box-shadow: 0 1px 0 var(--line), 0 12px 24px -18px rgba(11,46,87,.25);
}
.brand-logo{
  height:56px;
  width:auto;
  background:transparent;
  mix-blend-mode:multiply;
  transition:height .35s var(--ease);
}
.nivel-navbar.is-scrolled .brand-logo{ height:46px; }

.nivel-navbar .nav-link{
  font-weight:600;
  font-size:.95rem;
  color:var(--ink-soft);
  padding:8px 14px !important;
  position:relative;
}
.nivel-navbar .nav-link::after{
  content:"";
  position:absolute;
  left:14px; right:14px; bottom:4px;
  height:2px;
  background:var(--blue);
  transform:scaleX(0);
  transform-origin:left;
  transition:transform .3s var(--ease);
}
.nivel-navbar .nav-link:hover::after{ transform:scaleX(1); }
.nivel-navbar .nav-link:hover{ color:var(--ink); }

.navbar-toggler{ border:none; padding:6px; box-shadow:none !important; }
.toggler-line{
  display:block; width:24px; height:2px; background:var(--ink);
  margin:5px 0; transition:transform .3s var(--ease), opacity .3s var(--ease);
}

.btn-sm-nav{ padding:9px 20px !important; font-size:.88rem !important; }

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn{ border-radius:999px; font-weight:700; letter-spacing:.01em; }

.btn-nivel-primary{
  background:var(--blue);
  color:var(--white);
  border:1.5px solid var(--blue);
  padding:14px 28px;
  display:inline-flex; align-items:center; gap:10px;
  transition: background .3s var(--ease), transform .25s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
  box-shadow: var(--shadow-sm);
}
.btn-nivel-primary:hover{
  background:var(--blue-deep);
  border-color:var(--blue-deep);
  color:var(--white);
  transform:translateY(-2px);
  box-shadow: var(--shadow-md);
}
.btn-nivel-primary .btn-arrow{ transition:transform .3s var(--ease); }
.btn-nivel-primary:hover .btn-arrow{ transform:translateX(3px); }

.btn-nivel-ghost{
  background:transparent;
  color:var(--ink);
  border:1.5px solid var(--line);
  padding:14px 28px;
  transition: border-color .3s var(--ease), background .3s var(--ease), transform .25s var(--ease);
}
.btn-nivel-ghost:hover{
  border-color:var(--ink);
  background:var(--white);
  color:var(--ink);
  transform:translateY(-2px);
}

.btn-nivel-light{
  background:var(--white);
  color:var(--blue-deep);
  border:1.5px solid var(--white);
  padding:14px 28px;
  display:inline-flex; align-items:center; gap:10px;
  transition: transform .25s var(--ease), box-shadow .3s var(--ease);
}
.btn-nivel-light:hover{
  transform:translateY(-2px);
  box-shadow:0 16px 32px -16px rgba(0,0,0,.4);
  color:var(--blue-deep);
}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero{
  padding-top: clamp(140px, 18vw, 190px);
  padding-bottom: clamp(70px, 8vw, 100px);
  background:
    radial-gradient(1100px 520px at 82% -8%, var(--blue-mist) 0%, rgba(234,240,248,0) 60%),
    var(--paper);
}

.eyebrow{
  display:flex; align-items:center; gap:12px;
  font-weight:700;
  font-size:.82rem;
  letter-spacing:.1em;
  text-transform:uppercase;
  color:var(--blue);
  margin-bottom:22px;
}
.eyebrow-dash{ width:30px; height:2px; background:var(--blue); display:inline-block; }

.hero-title{
  font-size:clamp(3rem, 6.4vw, 5.6rem);
  font-weight:900;
  margin-bottom:24px;
  color:var(--ink);
}
.text-accent{ color:var(--blue); }

.hero-lead{
  font-size:1.15rem;
  color:var(--ink-70);
  max-width:46ch;
  margin-bottom:36px;
}

.hero-actions{
  display:flex; flex-wrap:wrap; gap:16px;
  margin-bottom:48px;
}

.hero-stats{
  display:flex; align-items:center; flex-wrap:wrap; gap:20px;
}
.hero-stat{ display:flex; flex-direction:column; gap:2px; }
.hero-stat-num{ font-family:'Big Shoulders Display'; font-weight:800; font-size:1.6rem; color:var(--ink); line-height:1; }
.hero-stat-label{ font-size:.82rem; color:var(--steel); font-weight:500; }
.hero-stat-sep{ width:1px; height:32px; background:var(--line); }

/* Hero — single background image */
.hero-visual{ position:relative; padding: 10px; }

.hero-image{
  position:relative;
  height: clamp(340px, 34vw, 480px);
  border-radius:var(--radius-lg);
  overflow:hidden;
  box-shadow:var(--shadow-lg);
  background-color:var(--blue-mist);
  background-image:
    linear-gradient(155deg, rgba(11,46,87,.25), rgba(18,71,134,.1)),
    url('/images/hero.webp');
  background-size:cover;
  background-position:center;
  animation: heroFloat 8s var(--ease) infinite;
}
@keyframes heroFloat{
  0%,100%{ transform:translateY(0); }
  50%{ transform:translateY(-8px); }
}

.hp-tag{
  position:absolute;
  left:5%; bottom:-6%;
  background:var(--white);
  border:1px solid var(--line);
  border-radius:999px;
  padding:12px 18px;
  font-size:.85rem;
  font-weight:600;
  display:flex; align-items:center; gap:10px;
  box-shadow:var(--shadow-md);
  max-width:280px;
  z-index:2;
}
.hp-tag-dot{ width:8px; height:8px; border-radius:50%; background:var(--blue); flex:none; }

/* ==========================================================================
   SECTION DIVIDER (level motif)
   ========================================================================== */
.section-divider{
  display:flex; justify-content:center;
  color:var(--line);
  padding: 4px 0 0;
}
.section-divider svg{ width:240px; height:24px; }

/* ==========================================================================
   PILLARS
   ========================================================================== */
.pillars{ padding-top: clamp(40px,6vw,72px); padding-bottom: clamp(40px,6vw,72px); }
.pillar-card{
  background:var(--white);
  border:1px solid var(--line);
  border-radius:var(--radius-lg);
  padding: 34px 30px;
  height:100%;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}
.pillar-card:hover{
  transform:translateY(-6px);
  box-shadow:var(--shadow-md);
  border-color:transparent;
}
.pillar-index{
  display:block;
  font-family:'Big Shoulders Display';
  font-weight:800;
  font-size:1rem;
  color:var(--blue);
  letter-spacing:.06em;
  margin-bottom:16px;
}
.pillar-card h3{ font-size:1.5rem; font-weight:800; margin-bottom:10px; }
.pillar-card p{ color:var(--ink-70); font-size:.98rem; }

/* ==========================================================================
   ABOUT
   ========================================================================== */
.about{ background:var(--blue-mist-2); }
.about-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:1px;
  background:var(--line);
  border:1px solid var(--line);
  border-radius:var(--radius-lg);
  overflow:hidden;
}
.about-item{
  background:var(--white);
  padding:28px 26px;
}
.about-item-wide{ grid-column:1 / -1; }
.about-item h4{
  font-family:'Inter'; font-weight:700; font-size:1rem;
  margin-bottom:10px; color:var(--ink);
}
.about-item p{ color:var(--ink-70); font-size:.96rem; }

.check-list{ display:flex; flex-direction:column; gap:10px; }
.check-list li{ display:flex; align-items:center; gap:10px; font-weight:600; font-size:.95rem; }
.check-list-inline{ flex-direction:row; flex-wrap:wrap; gap:12px 22px; }
.check-mark{
  flex:none;
  width:20px; height:20px; border-radius:50%;
  background:var(--blue-mist);
  position:relative;
}
.check-mark::after{
  content:"";
  position:absolute; left:50%; top:50%;
  width:7px; height:11px;
  border-right:2px solid var(--blue);
  border-bottom:2px solid var(--blue);
  transform:translate(-60%,-60%) rotate(45deg);
}
.check-mark-light{ background:rgba(255,255,255,.14); }
.check-mark-light::after{ border-color:var(--white); }

/* ==========================================================================
   SERVICES
   ========================================================================== */
.service-card{
  display:flex; flex-direction:column;
  height:100%;
  background:var(--white);
  border:1px solid var(--line);
  border-radius:var(--radius-lg);
  padding:32px;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}
.service-card:hover{
  transform:translateY(-6px);
  box-shadow:var(--shadow-md);
  border-color:transparent;
}
.service-icon{
  width:52px; height:52px;
  display:flex; align-items:center; justify-content:center;
  border-radius:var(--radius-sm);
  background:var(--blue-mist);
  color:var(--blue);
  margin-bottom:22px;
  transition: background .3s var(--ease), transform .3s var(--ease);
}
.service-icon svg{ width:26px; height:26px; }
.service-card:hover .service-icon{ background:var(--blue); color:var(--white); transform:scale(1.06) rotate(-4deg); }
.ic-accent-fill{ fill: var(--blue-bright); }
.service-card:hover .ic-accent-fill{ fill: var(--white); }
.ic-accent-stroke{ stroke: var(--blue-bright); }
.service-card:hover .ic-accent-stroke{ stroke: var(--white); }

.service-card h3{ font-size:1.3rem; font-weight:800; margin-bottom:10px; }
.service-card p{ color:var(--ink-70); font-size:.95rem; margin-bottom:20px; flex:1; }
.service-link{
  display:inline-flex; align-items:center; gap:8px;
  font-weight:700; font-size:.88rem; color:var(--blue);
}
.service-link svg{ transition:transform .3s var(--ease); }
.service-card:hover .service-link svg{ transform:translateX(4px); }

/* ==========================================================================
   SPECIALTY SECTIONS (Durlock / Pintura / Altura)
   A shared, more distinctive treatment for the three "Especialidad" blocks.
   ========================================================================== */
.specialty-section{ position:relative; }

.specialty-header{
  display:flex;
  align-items:flex-start;
  gap:18px;
  margin-bottom:22px;
}
.specialty-badge{
  flex:none;
  width:56px; height:56px;
  border-radius:16px;
  background:linear-gradient(155deg, var(--blue), var(--blue-deep));
  display:flex; align-items:center; justify-content:center;
  box-shadow: 0 10px 24px -10px rgba(18,71,134,.55);
}
.specialty-badge svg{ width:28px; height:28px; color:var(--white); }
.specialty-heading{ padding-top:4px; }
.specialty-eyebrow{
  display:flex; align-items:center; gap:10px;
  font-weight:700;
  font-size:.78rem;
  letter-spacing:.14em;
  text-transform:uppercase;
  color:var(--blue);
  margin-bottom:6px;
}
.specialty-eyebrow-line{ width:22px; height:2px; background:var(--blue-bright); display:inline-block; }

.specialty-panel{
  background:var(--white);
  border:1px solid var(--line);
  border-radius:var(--radius-lg);
  padding: clamp(28px, 4vw, 40px);
  box-shadow: var(--shadow-sm);
}
.specialty-panel-accent{
  border-left:4px solid var(--blue);
  border-top-left-radius:6px;
  border-bottom-left-radius:6px;
}

.specialty-figure{
  border-left:4px solid var(--blue);
  padding-left:20px;
  margin-top:32px;
}
.specialty-figure-num{
  display:block;
  font-family:'Big Shoulders Display'; font-weight:800;
  font-size:2rem; color:var(--ink); line-height:1.1;
}
.specialty-figure-label{ font-size:.88rem; color:var(--steel); max-width:34ch; }
.specialty-figure-group{ display:flex; flex-direction:column; gap:22px; margin-top:32px; }

.specialty-chip-list{ display:flex; flex-wrap:wrap; gap:10px; margin-top:24px; }
.specialty-chip{
  display:inline-flex; align-items:center; gap:8px;
  padding:10px 16px;
  border-radius:999px;
  background:var(--blue-mist-2);
  border:1px solid var(--line);
  font-size:.86rem; font-weight:600; color:var(--ink-soft);
  transition: background .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}
.specialty-chip:hover{ background:var(--blue-mist); border-color:var(--blue-bright); transform:translateY(-2px); }
.specialty-chip-dot{ width:6px; height:6px; border-radius:50%; background:var(--blue); flex:none; }

.specialty-system-grid{
  display:grid; grid-template-columns:1fr 1fr; gap:12px 18px;
  margin-top:8px;
}
.specialty-system-grid li{
  display:flex; align-items:flex-start; gap:10px;
  font-weight:600; font-size:.94rem;
  padding:14px 16px;
  background:var(--blue-mist-2);
  border-radius:var(--radius-sm);
  border:1px solid transparent;
  transition: border-color .25s var(--ease), background .25s var(--ease);
}
.specialty-system-grid li:hover{ border-color:var(--blue-bright); background:var(--white); }
.specialty-system-grid .check-mark{ margin-top:1px; }

.specialty-process{ display:flex; flex-direction:column; gap:0; margin-top:8px; }
.specialty-process-step{
  display:flex; gap:18px;
  padding:18px 0;
  border-bottom:1px solid var(--line-soft);
}
.specialty-process-step:last-child{ border-bottom:none; }
.specialty-process-num{
  flex:none;
  width:36px; height:36px;
  border-radius:50%;
  border:1.5px solid var(--blue);
  color:var(--blue);
  font-family:'Big Shoulders Display'; font-weight:800; font-size:.98rem;
  display:flex; align-items:center; justify-content:center;
}
.specialty-process-step h4{ font-family:'Inter'; font-weight:700; font-size:1.02rem; margin-bottom:4px; }
.specialty-process-step p{ color:var(--ink-70); font-size:.92rem; }

.specialty-icon-panel{
  position:relative;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:var(--radius-lg);
  background: linear-gradient(155deg, var(--blue-mist) 0%, var(--blue-mist-2) 100%);
  min-height: clamp(280px, 28vw, 380px);
}
.specialty-icon-panel svg{
  width: clamp(84px, 10vw, 128px);
  height: clamp(84px, 10vw, 128px);
  color: var(--blue);
}

/* ==========================================================================
   RENO CHAIN
   ========================================================================== */
.reno{ background:var(--white); }
.reno-panel{ margin-top:28px; }
.chain-row{
  display:flex; align-items:center; flex-wrap:wrap; gap:14px 10px;
  margin-bottom:26px;
}
.chain-chip{
  padding:12px 22px;
  border-radius:999px;
  background:var(--ink);
  color:var(--white);
  font-weight:700; font-size:.9rem;
}
.chain-link{
  width:26px; height:2px;
  background:var(--line);
  margin:0 2px;
}
.chain-note{ color:var(--ink-70); font-size:.95rem; max-width:52ch; }

/* ==========================================================================
   ENTERPRISE (dark band)
   ========================================================================== */
.enterprise{
  background: linear-gradient(160deg, var(--ink) 0%, var(--blue-deep) 130%);
  color:var(--white);
}
.enterprise-grid{
  display:grid; grid-template-columns:1fr 1fr; gap:20px;
}
.enterprise-item{
  display:flex; gap:14px; align-items:flex-start;
  padding:20px;
  border-radius:var(--radius-md);
  background:rgba(255,255,255,.05);
  border:1px solid rgba(255,255,255,.1);
}
.enterprise-item p{ color:rgba(255,255,255,.85); font-size:.94rem; font-weight:500; }

/* ==========================================================================
   METHOD TIMELINE
   ========================================================================== */
.method{ background:var(--blue-mist-2); }
.timeline{
  max-width:760px; margin:0 auto;
  position:relative;
}
.timeline::before{
  content:"";
  position:absolute;
  left:27px; top:10px; bottom:10px;
  width:1.5px;
  background:var(--line);
}
.timeline-item{
  display:flex; gap:24px;
  position:relative;
  padding-bottom:40px;
}
.timeline-item:last-child{ padding-bottom:0; }
.timeline-num{
  flex:none;
  width:56px; height:56px;
  border-radius:50%;
  background:var(--white);
  border:1.5px solid var(--line);
  display:flex; align-items:center; justify-content:center;
  font-family:'Big Shoulders Display'; font-weight:800; font-size:1.15rem;
  color:var(--blue);
  z-index:1;
}
.timeline-body{ padding-top:10px; }
.timeline-body h4{ font-family:'Inter'; font-weight:700; font-size:1.08rem; margin-bottom:6px; }
.timeline-body p{ color:var(--ink-70); font-size:.95rem; max-width:52ch; }

/* ==========================================================================
   ZONE
   ========================================================================== */
.zone{ background:var(--white); }
.zone-diagram{
  position:relative;
  aspect-ratio:1/1;
  max-width:440px;
  margin:0 auto;
  display:flex; align-items:center; justify-content:center;
}
.zone-ring{
  position:absolute;
  border-radius:50%;
  border:1.5px dashed var(--line);
  display:flex; align-items:flex-start; justify-content:center;
}
.zone-ring-out{ inset:0; }
.zone-ring-mid{
  inset:16%;
  border-style:solid;
  border-color:var(--blue-mist);
  background:var(--blue-mist);
  flex-direction:column;
  align-items:center;
  padding:16px 10px 12px;
  gap:12px;
}
.zone-ring-label{
  font-size:.72rem; font-weight:700; letter-spacing:.05em; text-transform:uppercase;
  color:var(--steel);
  margin-top:14px;
  background:var(--paper);
  padding:2px 10px;
  border-radius:999px;
}
.zone-ring-mid .zone-ring-label{
  color:var(--blue);
  background:var(--white);
  margin-top:0;
}
.zone-chips{
  position:relative;
  display:flex; flex-wrap:wrap; gap:8px;
  justify-content:center;
  max-width:100%;
  z-index:1;
}
.zone-chip{
  background:var(--white);
  border:1px solid var(--line);
  padding:7px 14px;
  border-radius:999px;
  font-size:.78rem; font-weight:700;
  color:var(--ink-soft);
  box-shadow:var(--shadow-sm);
}

/* ==========================================================================
   GALLERY — CAROUSEL (button-controlled only, no autoplay)
   ========================================================================== */
.gallery{ background:var(--blue-mist-2); }

.carousel{
  position:relative;
  display:flex;
  align-items:center;
  gap:14px;
}

.carousel-viewport{
  flex:1;
  overflow:hidden;
  border-radius:var(--radius-lg);
}

.carousel-track{
  display:flex;
  gap:20px;
  will-change:transform;
  transition: transform .5s var(--ease);
}

.carousel-slide{
  flex:0 0 auto;
  width: 380px;
  border-radius:var(--radius-md);
  overflow:hidden;
  background:var(--white);
  border:1px solid var(--line);
  box-shadow:var(--shadow-sm);
}

.carousel-slide-img{
  position:relative;
  aspect-ratio:4/3;
  width:100%;
  background:
    linear-gradient(155deg, var(--blue-mist) 0%, var(--blue-mist-2) 100%);
}

.carousel-btn{
  flex:none;
  width:48px; height:48px;
  border-radius:50%;
  background:var(--white);
  border:1.5px solid var(--line);
  color:var(--ink);
  display:flex; align-items:center; justify-content:center;
  transition: background .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease), transform .2s var(--ease);
  box-shadow:var(--shadow-sm);
  z-index:2;
}
.carousel-btn svg{ width:20px; height:20px; }
.carousel-btn:hover:not(:disabled){
  background:var(--blue);
  border-color:var(--blue);
  color:var(--white);
  transform:translateY(-2px);
}
.carousel-btn:disabled{
  opacity:.35;
  cursor:not-allowed;
}

.carousel-meta{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  margin-top:22px;
}
.carousel-counter{
  font-size:.82rem;
  font-weight:700;
  color:var(--steel);
  letter-spacing:.02em;
}
.carousel-progress{
  width:160px;
  height:3px;
  border-radius:999px;
  background:var(--line);
  overflow:hidden;
}
.carousel-progress-bar{
  height:100%;
  width:0%;
  background:var(--blue);
  transition: width .4s var(--ease);
}

/* ==========================================================================
   CONTACT
   ========================================================================== */
.contact{ background:var(--white); }
.contact-info{ display:flex; flex-direction:column; gap:4px; margin-top:36px; }
.contact-info-item{
  display:flex; align-items:center; gap:16px;
  padding:16px 4px;
  border-bottom:1px solid var(--line-soft);
  transition: padding-left .3s var(--ease);
}
a.contact-info-item:hover{ padding-left:8px; }
.contact-info-item-static:hover{ padding-left:4px; }
.contact-info-icon{
  flex:none;
  width:42px; height:42px;
  border-radius:50%;
  background:var(--blue-mist);
  color:var(--blue);
  display:flex; align-items:center; justify-content:center;
}
.contact-info-icon svg{ width:19px; height:19px; }
.contact-info-label{ display:block; font-size:.76rem; color:var(--steel); font-weight:600; text-transform:uppercase; letter-spacing:.05em; }
.contact-info-value{ display:block; font-weight:700; font-size:1rem; color:var(--ink); }

.contact-form{
  background:var(--blue-mist-2);
  border:1px solid var(--line);
  border-radius:var(--radius-lg);
  padding: clamp(24px, 4vw, 40px);
}
.form-label{ font-weight:700; font-size:.85rem; color:var(--ink-soft); margin-bottom:6px; }
.nivel-input{
  background:var(--white);
  border:1.5px solid var(--line);
  border-radius:var(--radius-sm);
  padding:12px 14px;
  font-size:.96rem;
  transition:border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.nivel-input:focus{
  border-color:var(--blue);
  box-shadow:0 0 0 4px var(--blue-mist);
}
.form-note{ font-size:.82rem; color:var(--steel); margin-top:14px; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.nivel-footer{
  background:var(--ink);
  color:rgba(255,255,255,.75);
  padding: 72px 0 0;
}
.footer-logo{ height:52px; width:auto; margin-bottom:20px; }
.footer-about{ font-size:.92rem; max-width:38ch; margin-bottom:24px; color:rgba(255,255,255,.6); }
.footer-social{ display:flex; gap:12px; }
.footer-social a{
  width:38px; height:38px; border-radius:50%;
  border:1px solid rgba(255,255,255,.18);
  display:flex; align-items:center; justify-content:center;
  transition: background .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease);
}
.footer-social a svg{ width:16px; height:16px; }
.footer-social a:hover{ background:var(--blue); border-color:var(--blue); transform:translateY(-3px); }

.footer-heading{
  font-family:'Inter'; font-weight:700; font-size:.86rem;
  text-transform:uppercase; letter-spacing:.08em;
  color:rgba(255,255,255,.9);
  margin-bottom:20px;
}
.footer-links{ display:flex; flex-direction:column; gap:12px; }
.footer-links li{ font-size:.92rem; color:rgba(255,255,255,.6); }
.footer-links a{ transition:color .25s var(--ease), padding-left .25s var(--ease); display:inline-block; }
.footer-links a:hover{ color:var(--white); padding-left:4px; }

.footer-bottom{
  margin-top:56px;
  padding: 24px 0 28px;
  border-top:1px solid rgba(255,255,255,.1);
  display:flex; flex-wrap:wrap; gap:10px 24px;
  justify-content:space-between;
  font-size:.84rem;
  color:rgba(255,255,255,.5);
}
.footer-bottom a{ color:rgba(255,255,255,.85); font-weight:700; transition:color .25s var(--ease); }
.footer-bottom a:hover{ color:var(--blue-bright); }

/* ==========================================================================
   FLOATING WHATSAPP
   ========================================================================== */
.wa-float{
  position:fixed;
  right:22px; bottom:22px;
  width:56px; height:56px;
  border-radius:50%;
  background:var(--blue);
  color:var(--white);
  display:flex; align-items:center; justify-content:center;
  box-shadow:var(--shadow-lg);
  z-index:1040;
  transition: transform .3s var(--ease), background .3s var(--ease);
  animation: waPulse 3.2s ease-in-out infinite;
}
.wa-float svg{ width:26px; height:26px; }
.wa-float:hover{ background:var(--blue-deep); transform:scale(1.08); color:var(--white); }
@keyframes waPulse{
  0%,100%{ box-shadow: 0 0 0 0 rgba(18,71,134,.28), var(--shadow-lg); }
  50%{ box-shadow: 0 0 0 10px rgba(18,71,134,0), var(--shadow-lg); }
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 991.98px){
  .nivel-navbar{ background:rgba(250,250,249,.98); backdrop-filter:blur(10px); box-shadow:0 1px 0 var(--line); padding:14px 0; }
  .nivel-navbar .navbar-collapse{
    margin-top:16px;
    padding: 8px 4px 20px;
  }
  .nivel-navbar .nav-link{ padding:12px 4px !important; border-bottom:1px solid var(--line-soft); }
  .nivel-navbar .nav-link::after{ display:none; }
  .btn-sm-nav{ display:inline-flex; margin-top:14px; }

  .about-grid{ grid-template-columns:1fr; }
  .enterprise-grid{ grid-template-columns:1fr; }
  .specialty-system-grid{ grid-template-columns:1fr; }
  .chain-row{ gap:10px 0; }
}

@media (max-width: 767.98px){
  section{ padding: clamp(52px, 12vw, 80px) 0; }
  .hero{ padding-top: 128px; }
  .hero-actions{ flex-direction:column; align-items:stretch; }
  .hero-actions .btn{ justify-content:center; }
  .hero-stats{ gap:16px 22px; }
  .hero-image{ height:280px; margin-top:20px; }
  .hp-tag{ max-width:220px; font-size:.78rem; padding:10px 14px; }
  .timeline::before{ left:23px; }
  .timeline-num{ width:48px; height:48px; font-size:1rem; }
  .chain-row{ flex-direction:column; align-items:flex-start; }
  .chain-link{ width:2px; height:16px; margin:0 0 0 24px; }
  .wa-float{ right:16px; bottom:16px; width:52px; height:52px; }
  .zone-diagram{ max-width:320px; }
  .carousel-slide{ width:280px; }
  .carousel-btn{ width:40px; height:40px; }
  .specialty-header{ gap:14px; }
  .specialty-badge{ width:46px; height:46px; border-radius:13px; }
  .specialty-badge svg{ width:22px; height:22px; }
  .specialty-icon-panel{ min-height:220px; }
}

@media (max-width: 575.98px){
  .container{ padding-left:20px; padding-right:20px; }
  .hero-title{ font-size:2.6rem; }
  .section-title{ font-size:1.9rem; }
  .btn-nivel-primary, .btn-nivel-ghost, .btn-nivel-light{ padding:13px 22px; font-size:.92rem; }
  .about-item{ padding:22px 20px; }
  .service-card{ padding:26px 22px; }
  .carousel-slide{ width:230px; }
}

@media (min-width: 1400px){
  .container{ max-width:1320px; }
}


/* Galería: todos los cuadros del mismo tamaño */
.carousel-slide {
  overflow: hidden;
  border: 0;
  border-radius: 16px;
  background: #fff;
}

.carousel-slide-img {
  aspect-ratio: 4 / 3;
  width: 100%;
  overflow: hidden;
  background: #fff;
}

.carousel-slide-img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* ==========================================================================
   OPTIMIZACIÓN DE RENDER — content-visibility
   Le dice al navegador que difiera el trabajo de layout/paint de las
   secciones que están fuera de pantalla hasta que el usuario esté por
   llegar a ellas. No cambia nada visual ni de contenido: solo hace que
   la carga inicial sea más liviana y rápida. contain-intrinsic-size
   evita saltos de layout mientras el contenido aún no se renderizó.
   ========================================================================== */
.about,
.services,
.specialty-section,
.reno,
.enterprise,
.method,
.zone,
.gallery,
.contact{
  content-visibility: auto;
  contain-intrinsic-size: 900px;
}

.nivel-footer{
  content-visibility: auto;
  contain-intrinsic-size: 500px;
}