/* ============================================================
   AL2 CONSTRUCCIONES — Landing Page
   Paleta oscura premium · Glassmorphism · Cortes angulares
   ============================================================ */

:root {
  --bg: #0A0A0A;
  --bg-2: #141414;
  --bg-3: #1c1c1c;
  --green: #3A7D35;
  --green-light: #4CAF50;
  --green-glow: rgba(76, 175, 80, 0.35);
  --white: #ffffff;
  --muted: #A0A0A0;
  --line: rgba(255, 255, 255, 0.08);
  --glass: rgba(20, 20, 20, 0.55);
  --glass-brd: rgba(255, 255, 255, 0.10);
  --maxw: 1280px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font-head: 'Montserrat', system-ui, sans-serif;
  --font-body: 'Open Sans', system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  background: var(--bg);
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

ul {
  list-style: none;
}

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

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

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar {
  width: 10px;
}

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

::-webkit-scrollbar-thumb {
  background: #2a2a2a;
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--green);
}

/* ---------- Layout helpers ---------- */
.container {
  width: min(100% - 48px, var(--maxw));
  margin-inline: auto;
}

.section {
  position: relative;
  padding: clamp(64px, 8vw, 120px) 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--green-light);
}

.eyebrow::before {
  content: "";
  width: 34px;
  height: 2px;
  background: var(--green-light);
}

.section-title {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: clamp(2.1rem, 5vw, 3.6rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
  margin: 18px 0 0;
  text-wrap: balance;
}

.section-lead {
  color: var(--muted);
  font-weight: 400;
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  max-width: 60ch;
  margin-top: 18px;
  text-wrap: pretty;
}

.text-green {
  color: var(--green-light);
}

.stroke {
  color: transparent;
  -webkit-text-stroke: 1.4px rgba(255, 255, 255, 0.32);
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.86rem;
  letter-spacing: 0.04em;
  padding: 16px 30px;
  clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .35s var(--ease);
}

.btn svg {
  width: 17px;
  height: 17px;
  transition: transform .35s var(--ease);
}

.btn-primary {
  background: var(--green);
  color: #fff;
  box-shadow: 0 8px 30px -8px var(--green-glow);
}

.btn-primary:hover {
  background: var(--green-light);
  transform: translateY(-3px);
  box-shadow: 0 16px 44px -10px var(--green-glow);
}

.btn-primary:hover svg {
  transform: translateX(4px);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  border: 1px solid var(--glass-brd);
  backdrop-filter: blur(8px);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.09);
  transform: translateY(-3px);
}

/* ============================================================
   NAVBAR
   ============================================================ */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  padding: 10px 0;
  background: var(--glass);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  transition: padding .4s var(--ease), background .4s var(--ease), border-color .4s var(--ease), box-shadow .4s var(--ease);
  border-bottom: 1px solid var(--glass-brd);
  box-shadow: 0 20px 50px -30px rgba(0, 0, 0, 0.9);
}

.nav.scrolled {
  padding: 10px 0;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-logo {
  display: flex;
  align-items: center;
  height: 58px;
  transition: height .4s var(--ease);
}

.nav.scrolled .nav-logo {
  height: 58px;
}

.nav-logo img {
  height: 100%;
  width: auto;
  filter: drop-shadow(0 4px 16px rgba(76, 175, 80, 0.25));
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links a {
  position: relative;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.83rem;
  letter-spacing: 0.02em;
  padding: 10px 16px;
  color: rgba(255, 255, 255, 0.78);
  transition: color .25s var(--ease);
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 4px;
  height: 2px;
  background: var(--green-light);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s var(--ease);
}

.nav-links a:hover {
  color: #fff;
}

.nav-links a:hover::after {
  transform: scaleX(1);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.82rem;
  padding: 12px 22px;
  background: var(--green);
  color: #fff;
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
  transition: background .3s var(--ease), transform .3s var(--ease);
}

.nav-cta:hover {
  background: var(--green-light);
  transform: translateY(-2px);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}

.nav-toggle span {
  width: 26px;
  height: 2px;
  background: #fff;
  transition: .3s var(--ease);
}

.nav-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---- Menú móvil: scrim + bloqueo de scroll + fix de anclaje ---- */
.nav-scrim {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(0, 0, 0, 0.55);
  opacity: 0;
  pointer-events: none;
  transition: opacity .4s var(--ease);
}

.nav-scrim.open {
  opacity: 1;
  pointer-events: auto;
}

body.menu-open {
  overflow: hidden;
}

body.menu-open .nav {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 64svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: clamp(112px, 12vh, 150px);
  padding-bottom: clamp(44px, 5vw, 84px);
  background: var(--bg);
}

/* Foto full-bleed como fondo de apoyo (con opacidad), no galería */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.hero-bg .hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 2s ease-in-out, transform 10s ease-out;
  transform: scale(1.04);
}

.hero-bg .hero-slide.is-active {
  opacity: 0.5;
  transform: scale(1);
}

@media (prefers-reduced-motion: reduce) {
  .hero-bg .hero-slide {
    transition: none;
  }
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(82% 74% at 74% 16%, rgba(76, 175, 80, 0.16), transparent 58%),
    linear-gradient(180deg, rgba(10, 10, 10, 0.42) 0%, rgba(10, 10, 10, 0.30) 46%, var(--bg) 100%),
    linear-gradient(90deg, rgba(8, 8, 8, 0.90) 0%, rgba(8, 8, 8, 0.58) 38%, rgba(8, 8, 8, 0.10) 74%);
}

.hero-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(76, 175, 80, 0.14), transparent 26%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.03) 0 1px, transparent 1px 120px);
  mix-blend-mode: screen;
  opacity: 0.22;
}

.hero-inner {
  position: relative;
  z-index: 2;
}

@media (max-width: 860px) {
  .hero-bg .hero-slide.is-active {
    opacity: 0.4;
  }

  .hero-bg::after {
    background:
      linear-gradient(180deg, rgba(10, 10, 10, 0.55) 0%, rgba(10, 10, 10, 0.35) 40%, var(--bg) 100%),
      linear-gradient(90deg, rgba(8, 8, 8, 0.82) 0%, rgba(8, 8, 8, 0.35) 60%, transparent 100%);
  }
}

/* ---- Logo protagonista del hero ---- */
.hero-logo {
  position: relative;
  display: block;
  margin: 26px 0 0;
  width: min(500px, 76%);
  line-height: 0;
}

.hero-logo img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  filter:
    drop-shadow(0 0 2px rgba(255, 255, 255, 0.28)) drop-shadow(0 0 34px rgba(76, 175, 80, 0.38)) drop-shadow(0 18px 40px rgba(0, 0, 0, 0.7));
}

.hero-logo-glow {
  position: absolute;
  z-index: 0;
  inset: -18% -10%;
  background: radial-gradient(50% 50% at 50% 50%, rgba(76, 175, 80, 0.24), rgba(76, 175, 80, 0.05) 55%, transparent 72%);
  filter: blur(6px);
  pointer-events: none;
}

.hero-tag {
  max-width: 50ch;
  margin: 30px 0 0;
  font-weight: 400;
  font-size: clamp(1.05rem, 1.6vw, 1.4rem);
  color: rgba(255, 255, 255, 0.84);
  text-wrap: pretty;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 40px;
}

.hero-note {
  margin-top: 16px;
  font-family: var(--font-body);
  font-size: 0.82rem;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 48px;
}

/* Entrance is transform-only so content is NEVER hidden (print / paused tabs / export safe) */
@media (prefers-reduced-motion: no-preference) {
  .hero-eyebrow {
    animation: heroRise .8s var(--ease) both;
  }

  .hero-logo {
    animation: heroRise .9s var(--ease) .12s both;
  }

  .hero-tag {
    animation: heroRise .8s var(--ease) .26s both;
  }

  .hero-actions {
    animation: heroRise .9s var(--ease) .34s both;
  }

  .hero-chips {
    animation: heroRise .9s var(--ease) .42s both;
  }

  .hero-logo img {
    animation: logoFloat 6s ease-in-out 1.1s infinite;
  }
}

@keyframes heroRise {
  from {
    transform: translateY(30px);
  }

  to {
    transform: none;
  }
}

@keyframes logoFloat {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.74rem;
  letter-spacing: 0.04em;
  padding: 9px 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--glass-brd);
  border-radius: 100px;
  color: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(8px);
  transition: border-color .3s var(--ease), color .3s var(--ease), background .3s var(--ease);
}

.chip:hover {
  border-color: var(--green-light);
  color: #fff;
  background: rgba(76, 175, 80, 0.1);
}

.chip i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green-light);
  box-shadow: 0 0 10px var(--green-light);
}

.hero-scroll {
  position: absolute;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-size: 0.62rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero-scroll .mouse {
  width: 22px;
  height: 36px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 14px;
  display: flex;
  justify-content: center;
  padding-top: 6px;
}

.hero-scroll .mouse i {
  width: 3px;
  height: 7px;
  background: var(--green-light);
  border-radius: 3px;
  animation: scrolldot 1.6s infinite;
}

@keyframes scrolldot {
  0% {
    transform: translateY(0);
    opacity: 1;
  }

  70% {
    transform: translateY(10px);
    opacity: 0;
  }

  100% {
    opacity: 0;
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(34px);
  }

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

/* ============================================================
   BENEFICIOS CLAVE
   ============================================================ */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 60px;
}

/* ---- Encabezado centrado de Beneficios ---- */
.benefits .eyebrow {
  justify-content: center;
  width: 100%;
}

.benefits .section-title {
  text-align: center;
}

.benefit {
  position: relative;
  padding: clamp(30px, 4vw, 46px);
  overflow: hidden;
  background: var(--bg-2);
  border: 1px solid var(--line);
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 0 100%);
  transition: border-color .4s var(--ease), transform .4s var(--ease);
}

.benefit::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 4px;
  height: 0;
  background: var(--green-light);
  transition: height .5s var(--ease);
}

.benefit:hover {
  border-color: rgba(76, 175, 80, 0.4);
  transform: translateY(-4px);
}

.benefit:hover::before {
  height: 100%;
}

.benefit-ico {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  margin-bottom: 22px;
  background: rgba(76, 175, 80, 0.12);
  color: var(--green-light);
  clip-path: polygon(7px 0, 100% 0, 100% calc(100% - 7px), calc(100% - 7px) 100%, 0 100%, 0 7px);
  transition: background .4s var(--ease), color .4s var(--ease);
}

.benefit:hover .benefit-ico {
  background: var(--green);
  color: #fff;
}

.benefit-ico svg {
  width: 28px;
  height: 28px;
}

.benefit h3 {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.4rem;
}

.benefit p {
  color: var(--muted);
  font-weight: 400;
  margin-top: 12px;
  text-wrap: pretty;
}

/* ============================================================
   STATS
   ============================================================ */
.stats {
  background: var(--bg-2);
  border-block: 1px solid var(--line);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
}

.stat {
  background: var(--bg-2);
  padding: clamp(34px, 5vw, 60px) clamp(20px, 3vw, 44px);
  text-align: center;
  position: relative;
  transition: background .4s var(--ease);
}

.stat:hover {
  background: var(--bg-3);
}

.stat .num {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: clamp(2.6rem, 5vw, 4.2rem);
  line-height: 1;
  background: linear-gradient(160deg, #fff 30%, var(--green-light));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat .num span {
  color: var(--green-light);
  -webkit-text-fill-color: var(--green-light);
}

.stat .num span:not([data-count]) {
  font-size: clamp(2rem, 3.8vw, 3.2rem);
}

.stat .label {
  margin-top: 12px;
  color: var(--muted);
  font-weight: 400;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  max-width: 28ch;
  margin-inline: auto;
}

/* ============================================================
   QUIÉNES SOMOS
   ============================================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(40px, 6vw, 90px);
  align-items: center;
}

.about-copy p {
  color: var(--muted);
  font-weight: 400;
  margin-top: 18px;
  text-wrap: pretty;
}

.about-copy p strong {
  color: #fff;
  font-weight: 600;
}

.about-pillars {
  display: grid;
  gap: 14px;
  margin-top: 34px;
}

.about-pillar {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 18px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
}

.about-pillar:focus-visible,
.mv-card:focus-visible {
  outline: 2px solid var(--green-light);
  outline-offset: 4px;
}

.about-pillar:last-child {
  border-bottom: 1px solid var(--line);
}

.about-pillar .pillar-num {
  grid-row: span 2;
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  color: var(--green-light);
}

.about-pillar .pillar-title {
  display: block;
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #eef5ee;
}

.about-pillar p {
  grid-column: 2;
  margin-top: 8px;
  color: var(--muted);
  font-weight: 400;
}

.about-media {
  position: relative;
}

.about-media .frame {
  position: relative;
  aspect-ratio: 4/5;
  overflow: hidden;
  clip-path: polygon(0 0, 100% 0, 100% 88%, 88% 100%, 0 100%);
  border: 1px solid var(--line);
}

.about-media .frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 1.2s var(--ease);
}

.about-media:hover .frame img {
  transform: scale(1.06);
}

.about-badge {
  position: absolute;
  left: -28px;
  bottom: 36px;
  z-index: 2;
  background: var(--green);
  color: #fff;
  padding: 22px 28px;
  clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
  box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.8);
}

.about-badge b {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 2.4rem;
  display: block;
  line-height: 1;
}

.about-badge span {
  display: block;
  max-width: 24ch;
  font-size: 0.78rem;
  font-weight: 400;
  opacity: 0.9;
}

/* Misión / Visión */
.mv-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 64px;
}

.mv-card {
  position: relative;
  padding: clamp(30px, 4vw, 48px);
  background: var(--bg-2);
  border: 1px solid var(--line);
  clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 0 100%);
  overflow: hidden;
  transition: border-color .4s var(--ease), transform .4s var(--ease);
}

.mv-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 4px;
  height: 0;
  background: var(--green-light);
  transition: height .5s var(--ease);
}

.mv-card:hover {
  border-color: rgba(76, 175, 80, 0.4);
  transform: translateY(-4px);
}

.mv-card:hover::before {
  height: 100%;
}

.mv-card .mv-ico {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  margin-bottom: 22px;
  background: rgba(76, 175, 80, 0.12);
  color: var(--green-light);
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
}

.mv-card .mv-ico svg {
  width: 26px;
  height: 26px;
}

.mv-card .mv-title {
  display: block;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.5rem;
}

.mv-card p {
  color: var(--muted);
  font-weight: 400;
  margin-top: 14px;
  text-wrap: pretty;
}

/* ============================================================
   SERVICIOS
   ============================================================ */
/* ---- Encabezado centrado de Servicios ---- */
.services-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  flex-wrap: wrap;
}

#servicios .services-head {
  flex-direction: column;
  align-items: center;
  text-align: center;
}

#servicios .services-head .section-lead {
  max-width: 560px;
}

.services-head .section-lead {
  max-width: 560px;
}

.services-hint {
  margin-top: 18px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 400;
  text-align: center;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
  margin-top: 60px;
}

/* Cada tarjeta ocupa 2 de 6 columnas (= 3 por fila). Las 2 últimas ocupan 3 (= media fila) para llenar el ancho. */
.services-grid .svc {
  grid-column: span 2;
}

.services-grid .svc:nth-last-child(1),
.services-grid .svc:nth-last-child(2) {
  grid-column: span 3;
}

/* ---- Tarjetas de servicio: foto + título; descripción al pinchar ---- */
.svc-card {
  position: relative;
  height: 100%;
  min-height: 168px;
  border: 1px solid var(--line);
  overflow: hidden;
  cursor: pointer;
  display: block;
  width: 100%;
  text-align: left;
  color: inherit;
  background: var(--bg-2);
  border-radius: 8px;
  clip-path: none;
  transition: border-color .45s var(--ease), transform .45s var(--ease), box-shadow .45s var(--ease);
}

.svc-card:hover {
  border-color: rgba(76, 175, 80, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 18px 54px -38px rgba(76, 175, 80, 0.78);
}

.svc-card:focus-visible {
  outline: 2px solid var(--green-light);
  outline-offset: 3px;
}

/* ---- Tarjetas destacadas con acento verde ---- */
.svc-card-accent {
  border-color: rgba(76, 175, 80, 0.38);
  box-shadow: 0 12px 40px -20px var(--green-glow);
}

.svc-card-accent::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 4px;
  height: 100%;
  background: var(--green-light);
  z-index: 3;
  border-radius: 8px 0 0 8px;
}

.svc-card-accent:hover {
  border-color: var(--green-light);
  box-shadow: 0 20px 60px -28px rgba(76, 175, 80, 0.9);
}

.svc-card-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: brightness(0.62) saturate(0.88);
  transition: filter .55s var(--ease), transform .6s var(--ease);
}

.svc-card:hover .svc-card-img {
  filter: brightness(0.9) saturate(1.02);
  transform: scale(1.045);
}

.svc-card.open .svc-card-img {
  filter: brightness(0.46) saturate(0.95);
  transform: scale(1.045);
}

.svc-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(8, 8, 8, 0.08) 0%, rgba(8, 8, 8, 0.12) 45%, rgba(8, 8, 8, 0.58) 100%);
  transition: background .45s var(--ease);
}

.svc-card:hover::after,
.svc-card.open::after {
  background: linear-gradient(180deg, rgba(8, 8, 8, 0.34) 0%, rgba(8, 8, 8, 0.24) 38%, rgba(8, 8, 8, 0.78) 100%);
}

.svc-card-num {
  display: none;
  position: absolute;
  top: 18px;
  left: 20px;
  z-index: 2;
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  color: #fff;
  background: rgba(76, 175, 80, 0.92);
  padding: 5px 11px;
  clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
}

.svc-card-foot {
  position: absolute;
  left: 0;
  right: 0;
  top: auto;
  bottom: 0;
  z-index: 2;
  width: auto;
  max-width: none;
  padding: 10px 14px 11px;
  background: linear-gradient(90deg, rgba(7, 7, 7, 0.5), rgba(7, 7, 7, 0.28));
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0;
  backdrop-filter: blur(8px) saturate(1.05);
  -webkit-backdrop-filter: blur(8px) saturate(1.05);
  transform: translateY(0);
  opacity: 1;
  transition: transform .42s var(--ease), opacity .42s var(--ease);
}

.svc-card:hover .svc-card-foot,
.svc-card.open .svc-card-foot {
  transform: translateY(0);
  opacity: 1;
}

.svc-card-bar {
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  gap: 14px;
}

.svc-card-title {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(0.66rem, 0.62vw, 0.76rem);
  line-height: 1.14;
  letter-spacing: 0.075em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
  width: 100%;
  text-align: left;
  overflow-wrap: anywhere;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.45);
  transition: color .35s var(--ease), transform .35s var(--ease), letter-spacing .35s var(--ease);
}

.svc-card:hover .svc-card-title,
.svc-card.open .svc-card-title {
  color: #fff;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.45);
  transform: none;
  letter-spacing: 0.085em;
}

.svc-card-strip {
  display: none;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2;
  padding: 7px 14px 9px;
  background: rgba(6, 6, 6, 0.72);
  backdrop-filter: blur(6px);
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.67rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(200, 210, 200, 0.72);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: opacity .35s var(--ease), color .35s var(--ease);
}

.svc-card:hover .svc-card-strip {
  opacity: 0;
}

.svc-card.open .svc-card-strip {
  opacity: 0;
}

.svc-card-toggle {
  display: none;
  flex: none;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.45);
  color: #fff;
  border-radius: 50%;
  transition: transform .45s var(--ease), background .35s var(--ease), border-color .35s var(--ease);
}

.svc-card:hover .svc-card-toggle {
  background: rgba(76, 175, 80, 0.92);
  border-color: transparent;
}

.svc-card.open .svc-card-toggle {
  transform: rotate(135deg);
  background: var(--green);
  border-color: transparent;
}

.svc-card-toggle svg {
  width: 18px;
  height: 18px;
}

.svc-card-panel {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  margin-top: 0;
  transition: grid-template-rows .5s var(--ease), opacity .4s var(--ease), margin-top .5s var(--ease);
}

.svc-card-panel>p {
  overflow: hidden;
  min-height: 0;
  width: 100%;
  max-width: none;
  color: rgba(255, 255, 255, 0.68);
  font-weight: 400;
  font-size: 0.78rem;
  line-height: 1.42;
  text-align: justify;
  text-align-last: left;
  text-justify: inter-word;
  hyphens: auto;
  overflow-wrap: anywhere;
}

.svc-card.open .svc-card-panel {
  grid-template-rows: 1fr;
  opacity: 1;
  margin-top: 8px;
}

.svc-card-cta {
  display: inline-flex;
  margin-top: 16px;
  font-size: 0.72rem;
  padding: 10px 18px;
  opacity: 0;
  transition: opacity 0.4s var(--ease) 0.1s;
}

.svc-card.open .svc-card-cta {
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {

  .svc-card-img,
  .svc-card-panel,
  .svc-card-toggle {
    transition: none;
  }
}

/* ============================================================
   SERVICIOS — TABS
   ============================================================ */
.svc-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 52px;
}

.svc-tab {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  padding: 14px 22px;
  border: 1px solid var(--line);
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 9px;
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
  transition: color .3s var(--ease), border-color .3s var(--ease), background .3s var(--ease);
}

.svc-tab svg {
  width: 17px;
  height: 17px;
  flex: none;
}

.svc-tab:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.04);
}

.svc-tab.active {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}

.svc-cat-desc {
  display: none;
  margin-top: 22px;
  color: var(--muted);
  font-weight: 400;
  font-size: 0.96rem;
  max-width: 72ch;
  text-wrap: pretty;
}

.svc-cat-desc.active {
  display: block;
}

/* ---- Mosaico de servicios: tarjetas de distintos tamaños en un grid ---- */
.svc-mosaic {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-template-rows: repeat(4, minmax(158px, 13vw));
  grid-auto-flow: dense;
  gap: 14px;
  margin-top: 32px;
}

.svc-card:nth-child(2) {
  grid-column: 4 / 7;
  grid-row: 1;
}

.svc-card:nth-child(3) {
  grid-column: 4 / 6;
  grid-row: 2;
}

.svc-card:nth-child(4) {
  grid-column: 1 / 3;
  grid-row: 3;
}

.svc-card:nth-child(5) {
  grid-column: 3 / 5;
  grid-row: 3;
}

.svc-card:nth-child(6) {
  grid-column: 6;
  grid-row: 2;
}

.svc-card:nth-child(7) {
  grid-column: 5 / 7;
  grid-row: 3;
}

.svc-card:nth-child(8) {
  grid-column: 1 / 3;
  grid-row: 4;
}

.svc-card:nth-child(9) {
  grid-column: 3 / 5;
  grid-row: 4;
}

.svc-card:nth-child(10) {
  grid-column: 5 / 7;
  grid-row: 4;
}

.svc-card-feature {
  min-height: 100%;
  grid-column: 1 / 4;
  grid-row: 1 / 3;
  border-color: rgba(76, 175, 80, 0.38);
  box-shadow: 0 24px 80px -42px rgba(76, 175, 80, 0.65);
}

.svc-card-feature::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(72% 90% at 78% 20%, rgba(76, 175, 80, 0.28), transparent 62%);
}

.svc-card-feature .svc-card-title {
  max-width: 100%;
}

.svc-card-feature .svc-card-num {
  display: inline-flex;
  align-items: center;
  color: #fff;
  background: var(--green);
  border: 1px solid rgba(76, 175, 80, 0.68);
  box-shadow: 0 10px 28px -14px var(--green-glow);
  backdrop-filter: blur(8px);
}

.svc-card-feature .svc-card-foot {
  padding: 10px 13px 11px;
}

.svc-card-feature .svc-card-toggle {
  width: 44px;
  height: 44px;
}

.svc-card-feature .svc-card-panel>p {
  max-width: none;
}

@keyframes panelIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

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

/* ============================================================
   GALERÍA POR SERVICIO — badge cámara + lightbox
   ============================================================ */
.svc {
  cursor: pointer;
}

.svc-cam {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(10, 10, 10, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 7px 11px;
  backdrop-filter: blur(6px);
  clip-path: polygon(7px 0, 100% 0, 100% calc(100% - 7px), calc(100% - 7px) 100%, 0 100%, 0 7px);
  opacity: 0;
  transform: translateY(-6px);
  transition: .4s var(--ease);
}

.svc-cam svg {
  width: 14px;
  height: 14px;
}

.svc:hover .svc-cam {
  opacity: 1;
  transform: translateY(0);
}

.svc:hover .svc-cam {
  background: var(--green);
  border-color: var(--green);
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(6, 6, 6, 0.94);
  backdrop-filter: blur(10px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s var(--ease);
  padding: 24px;
}

.lightbox.open {
  opacity: 1;
  pointer-events: auto;
}

body.lb-open {
  overflow: hidden;
}

.lb-inner {
  width: min(100%, 1100px);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.lb-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

.lb-head h3 {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(1.1rem, 2.4vw, 1.7rem);
  color: #fff;
}

.lb-count {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.82rem;
  color: var(--green-light);
  letter-spacing: 0.06em;
  flex: none;
}

.lb-stage {
  position: relative;
  background: var(--bg-2);
  border: 1px solid var(--line);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 18px), calc(100% - 18px) 100%, 0 100%);
}

.lb-stage img {
  width: auto;
  max-width: 100%;
  max-height: 64vh;
  object-fit: contain;
  display: block;
  margin-inline: auto;
  background: #0c0c0c;
}

.lb-stage figcaption {
  padding: 14px 20px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 400;
  border-top: 1px solid var(--line);
}

.lb-strip {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.lb-strip button {
  flex: none;
  width: 88px;
  height: 64px;
  overflow: hidden;
  padding: 0;
  border: 2px solid transparent;
  opacity: 0.55;
  transition: .3s var(--ease);
  clip-path: polygon(5px 0, 100% 0, 100% calc(100% - 5px), calc(100% - 5px) 100%, 0 100%, 0 5px);
}

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

.lb-strip button:hover {
  opacity: 0.85;
}

.lb-strip button.active {
  opacity: 1;
  border-color: var(--green-light);
}

.lb-close,
.lb-nav {
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--glass-brd);
  backdrop-filter: blur(8px);
  transition: .3s var(--ease);
}

.lb-close svg,
.lb-nav svg {
  width: 24px;
  height: 24px;
}

.lb-close {
  top: 22px;
  right: 22px;
  border-radius: 50%;
}

.lb-close:hover {
  background: var(--green);
  border-color: var(--green);
  transform: rotate(90deg);
}

.lb-nav {
  top: 50%;
  transform: translateY(-50%);
}

.lb-prev {
  left: 22px;
}

.lb-next {
  right: 22px;
}

.lb-nav:hover {
  background: var(--green);
  border-color: var(--green);
}

@media (max-width: 700px) {
  .lb-nav {
    width: 42px;
    height: 42px;
  }

  .lb-prev {
    left: 8px;
  }

  .lb-next {
    right: 8px;
  }

  .lb-stage img {
    max-height: 54vh;
  }
}

/* ============================================================
   GALERÍA / PROYECTOS
   ============================================================ */
.gallery {
  background: var(--bg-2);
  border-block: 1px solid var(--line);
}

/* ---- Encabezado centrado de Galería ---- */
.gallery .services-head {
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.gallery .services-head .section-lead {
  max-width: 60ch;
}

/* ---- Filtros superiores centrados ---- */
.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 32px;
  justify-content: center;
}

.filter-btn {
  font-family: var(--font-head);
  font-weight: 750;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  background: transparent;
  border: none;
  padding: 6px 0;
  position: relative;
  cursor: pointer;
  transition: color 0.3s var(--ease);
}

.filter-btn::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--green);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease);
}

.filter-btn:hover,
.filter-btn.active {
  color: var(--green);
}

.filter-btn:hover::after,
.filter-btn.active::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* ---- Gallery Tabs Container ---- */
.gallery-edge {
  width: 100%;
  position: relative;
  margin-top: 48px;
}

/* Contenedor de la grilla tipo Mosaico (CSS Grid Strict) */
.gallery-grid {
  display: grid;
  grid-template-rows: repeat(2, clamp(160px, 16vw, 320px));
  grid-auto-columns: 1fr; /* Estira uniformemente para ocupar el 100% del contenedor */
  grid-auto-flow: column;
  gap: 16px;
  width: 100%;
  padding-bottom: 24px;

  /* Lógica de tabs (fade out por defecto) */
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s var(--ease);
}

.gallery-grid.active {
  position: relative;
  opacity: 1;
  pointer-events: auto;
}

/* Reglas especiales para TODAS (Scroll horizontal) */
.gallery-grid[data-category="all"] {
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  grid-auto-columns: clamp(240px, 25vw, 380px); /* Ancho fijo para forzar scroll */
}
.gallery-grid[data-category="all"]::-webkit-scrollbar {
  display: none;
}
.gallery-grid[data-category="all"] {
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.gallery-grid[data-category="all"] .work-tile {
  scroll-snap-align: start;
}

/* Flechas de Navegación */
.gallery-scroll-btn {
  position: absolute;
  top: calc(50% - 12px);
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(0, 0, 0, 0.7);
  border: 1px solid var(--green-light);
  color: var(--green-light);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: none; /* Se muestra por JS */
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(4px);
  transition: all 0.3s ease;
}
.gallery-scroll-btn:hover {
  background: var(--green-light);
  color: #000;
}
.gallery-scroll-btn.left { left: 16px; }
.gallery-scroll-btn.right { right: 16px; }

/* ---- Tarjetas Individuales (Work Tile) ---- */
.work-tile {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: var(--bg);
  cursor: pointer;
}

/* Si el último elemento queda solo en una columna (por ser cantidad impar), ocupa las 2 filas automáticamente para no dejar vacíos */
.work-tile:last-child:nth-child(odd) {
  grid-row: span 2;
}

.work-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.65) saturate(0.85);
  transition: transform 1.2s var(--ease), filter 0.6s var(--ease);
}

.work-tile:hover img {
  transform: scale(1.08);
  filter: brightness(1) saturate(1);
}

.work-tile span {
  display: none;
}

/* ============================================================
   PROCESO
   ============================================================ */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin-top: 56px;
  position: relative;
  background: var(--line);
  border: 1px solid var(--line);
}

.pstep {
  position: relative;
  min-height: 260px;
  padding: 34px 30px;
  background: var(--bg-2);
  border: 0;
  transition: background .4s var(--ease), transform .4s var(--ease);
}

.pstep:hover {
  background: var(--bg-3);
  transform: translateY(-4px);
}

.pstep .pnum {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 4rem;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(76, 175, 80, 0.5);
}

.pstep .pstep-title {
  display: block;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.4rem;
  margin-top: 18px;
}

.pstep p {
  color: var(--muted);
  font-weight: 400;
  margin-top: 12px;
  text-wrap: pretty;
}

.pstep .pico {
  position: absolute;
  top: 34px;
  right: 30px;
  color: rgba(76, 175, 80, 0.6);
}

.pstep .pico svg {
  width: 30px;
  height: 30px;
}

/* ---- Proceso sobrio ---- */
.process-section {
  background:
    radial-gradient(70% 90% at 82% 16%, rgba(76, 175, 80, 0.11), transparent 58%),
    var(--bg);
  border-block: 1px solid var(--line);
}

/* ---- Encabezado centrado de Proceso ---- */
.process-section > .container > .eyebrow {
  justify-content: center;
  width: 100%;
}

.process-section > .container > .section-title {
  text-align: center;
}

.process-section > .container > .section-lead {
  text-align: center;
  max-width: 60ch;
  margin-inline: auto;
}

/* ============================================================
   TESTIMONIOS
   ============================================================ */
.testi {
  background: var(--bg-2);
  border-block: 1px solid var(--line);
}

.testi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 60px;
}

.tcard {
  padding: 40px 34px;
  background: var(--bg);
  border: 1px solid var(--line);
  clip-path: polygon(22px 0, 100% 0, 100% 100%, 0 100%, 0 22px);
  transition: transform .4s var(--ease), border-color .4s var(--ease);
}

.tcard:hover {
  transform: translateY(-5px);
  border-color: rgba(76, 175, 80, 0.35);
}

.tcard .quote {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 3rem;
  line-height: 0.6;
  color: var(--green);
}

.tcard p {
  color: rgba(255, 255, 255, 0.82);
  font-weight: 400;
  font-size: 1.02rem;
  margin-top: 18px;
  text-wrap: pretty;
}

.tcard .who {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 26px;
}

.tcard .who .av {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(140deg, var(--green), var(--bg-3));
  display: grid;
  place-items: center;
  font-family: var(--font-head);
  font-weight: 800;
  color: #fff;
}

.tcard .who b {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.95rem;
  display: block;
}

.tcard .who span {
  color: var(--muted);
  font-size: 0.82rem;
}

.stars {
  color: var(--green-light);
  letter-spacing: 3px;
  margin-top: 6px;
  font-size: 0.8rem;
}

/* ============================================================
   COTIZACIÓN / CONTACTO
   ============================================================ */
#contacto {
  position: relative;
  overflow: hidden;
}

.brand-wm {
  position: absolute;
  z-index: 0;
  pointer-events: none;
  user-select: none;
  right: -4%;
  bottom: -8%;
  width: min(560px, 48%);
  height: auto;
  opacity: 0.04;
  filter: grayscale(1) brightness(2);
}

#contacto .container {
  position: relative;
  z-index: 1;
}

.quote-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}

.contact-header {
  text-align: center;
  max-width: 60ch;
  margin: 0 auto 48px;
}

#contacto .form-card {
  max-width: 760px;
  margin: 0 auto;
}

.contact-list {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.citem {
  display: flex;
  gap: 18px;
  align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.citem .ci {
  width: 50px;
  height: 50px;
  flex: none;
  display: grid;
  place-items: center;
  color: var(--green-light);
  background: rgba(76, 175, 80, 0.1);
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
}

.citem .ci svg {
  width: 22px;
  height: 22px;
}

.citem .ct span {
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-family: var(--font-head);
  font-weight: 600;
}

.citem .ct b {
  display: block;
  font-weight: 400;
  font-size: 1.05rem;
  margin-top: 3px;
}

.contact-numbers {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-top: 4px;
}

.contact-numbers a {
  color: #fff;
  font-weight: 400;
  font-size: 1.05rem;
  transition: color .25s var(--ease);
}

.contact-numbers a:hover {
  color: var(--green-light);
}

.social-row {
  display: flex;
  gap: 12px;
  margin-top: 30px;
}

.social-row a:not(.social-label) {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(76, 175, 80, 0.28);
  color: var(--green-light);
  background: rgba(76, 175, 80, 0.08);
  transition: .3s var(--ease);
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
}

.social-row a:not(.social-label):hover {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
  transform: translateY(-3px);
}

.social-row a svg {
  width: 20px;
  height: 20px;
}

.social-label {
  align-self: center;
  color: #fff;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.form-card {
  padding: clamp(32px, 4vw, 52px);
  background: var(--glass);
  border: 1px solid var(--glass-brd);
  backdrop-filter: blur(16px);
  clip-path: polygon(0 0, calc(100% - 28px) 0, 100% 28px, 100% 100%, 28px 100%, 0 calc(100% - 28px));
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.field {
  margin-top: 18px;
}

.field label {
  display: block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 9px;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  color: #fff;
  padding: 15px 16px;
  font-family: var(--font-body);
  font-size: 0.96rem;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}

.field textarea {
  resize: vertical;
  min-height: 120px;
}

.field input::placeholder,
.field textarea::placeholder {
  color: #6a6a6a;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--green-light);
  background: rgba(76, 175, 80, 0.05);
}

.field select {
  appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='none' stroke='%234CAF50' stroke-width='2'%3E%3Cpath d='M2 4l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
}

.field select option {
  background: #141414;
  color: #fff;
}

.field select option:checked {
  background: var(--green);
  color: #fff;
}

.form-card .btn {
  margin-top: 26px;
  width: 100%;
  justify-content: center;
}

.form-note {
  margin-top: 16px;
  color: var(--muted);
  font-size: 0.82rem;
  text-align: center;
}

.form-ok {
  margin-top: 18px;
  padding: 16px;
  border: 1px solid rgba(76, 175, 80, 0.4);
  background: rgba(76, 175, 80, 0.08);
  color: var(--green-light);
  font-size: 0.92rem;
  text-align: center;
  display: none;
}

.form-ok.show {
  display: block;
  animation: rise .4s var(--ease);
}

.form-check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 20px;
  cursor: pointer;
}

.form-check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  min-width: 18px;
  margin-top: 2px;
  accent-color: var(--green);
  cursor: pointer;
}

.form-check span {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

.privacy-link {
  appearance: none;
  border: 0;
  padding: 0;
  background: none;
  color: var(--green-light);
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
}

.privacy-link:hover {
  color: #fff;
}

.form-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.btn-full {
  width: 100%;
  justify-content: center;
}

/* ============================================================
   POLÍTICA DE PRIVACIDAD
   ============================================================ */
.privacy-modal {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: none;
  padding: 20px;
  align-items: center;
  justify-content: center;
}

.privacy-modal.open {
  display: flex;
}

.privacy-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .78);
  backdrop-filter: blur(7px);
}

.privacy-dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 680px);
  max-height: min(86vh, 720px);
  overflow: auto;
  padding: clamp(28px, 5vw, 48px);
  background: var(--bg-2);
  border: 1px solid rgba(76, 175, 80, .45);
  color: #d5d0c4;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .55);
}

.privacy-dialog h2 {
  margin: 0 36px 8px 0;
  color: #fff;
  font-size: clamp(1.7rem, 4vw, 2.2rem);
}

.privacy-dialog p {
  margin: 0 0 17px;
  line-height: 1.65;
  font-size: .96rem;
}

.privacy-dialog strong {
  color: #fff;
}

.privacy-dialog a {
  color: var(--green-light);
  overflow-wrap: anywhere;
}

.privacy-intro {
  color: var(--muted);
  font-size: .84rem !important;
}

.privacy-close {
  position: absolute;
  top: 18px;
  right: 20px;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}

.privacy-accept {
  margin-top: 8px;
}

body.privacy-open {
  overflow: hidden;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: #060606;
  border-top: 1px solid var(--line);
  padding-top: clamp(60px, 8vw, 100px);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: clamp(24px, 4vw, 60px);
  align-items: start;
}

.footer-logo {
  height: 92px;
  width: auto;
  margin-bottom: 24px;
  filter: drop-shadow(0 6px 22px rgba(76, 175, 80, 0.22));
}

.footer-brand p {
  color: var(--muted);
  font-weight: 400;
  max-width: 34ch;
}

.footer-brand .social-row {
  margin-top: 24px;
}

.footer-col h2 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 22px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.footer-col:last-child {
  align-items: flex-end;
  text-align: right;
}

.footer-col a {
  display: block;
  color: var(--muted);
  padding: 7px 0;
  transition: color .25s var(--ease);
  font-size: 0.95rem;
}

.footer-col:last-child a:hover {
  color: var(--green-light);
}

.footer-col:not(:last-child) a:hover {
  color: var(--green-light);
}

.footer-news p {
  color: var(--muted);
  font-weight: 400;
  margin-bottom: 16px;
  font-size: 0.95rem;
}

.news-form {
  display: flex;
}

.news-form input {
  flex: 1;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  border-right: none;
  color: #fff;
  padding: 14px 16px;
  font-size: 0.9rem;
}

.news-form input:focus {
  outline: none;
  border-color: var(--green-light);
}

.news-form button {
  background: var(--green);
  color: #fff;
  padding: 0 20px;
  display: grid;
  place-items: center;
  transition: background .3s var(--ease);
}

.news-form button:hover {
  background: var(--green-light);
}

.news-form button svg {
  width: 18px;
  height: 18px;
}

.footer-bottom {
  margin-top: clamp(50px, 7vw, 80px);
  padding: 30px 0;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 10px;
  text-align: center;
}

.footer-bottom p {
  color: var(--muted);
  font-size: 0.85rem;
}

.footer-bottom .made {
  font-size: 0.78rem;
}

.footer-bottom .made a {
  color: var(--muted);
  text-decoration: underline;
  transition: color .25s var(--ease);
}

.footer-bottom .made a:hover {
  color: var(--green-light);
}

.footer-contact-item {
  margin-bottom: 18px;
  width: 100%;
}

.footer-contact-label {
  display: block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green-light);
  margin-bottom: 4px;
}

.footer-contact-item a,
.footer-contact-item span {
  display: block;
  color: var(--muted);
  font-size: 0.9rem;
  transition: color .25s var(--ease);
}

.footer-contact-item a:hover {
  color: var(--green-light);
}

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}

.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

.reveal.d1 {
  transition-delay: .08s;
}

.reveal.d2 {
  transition-delay: .16s;
}

.reveal.d3 {
  transition-delay: .24s;
}

.reveal.d4 {
  transition-delay: .32s;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  * {
    animation-duration: .001s !important;
  }
}

@media print {
  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }

  .hero-bg .hero-slide {
    opacity: 0 !important;
  }

  .hero-bg .hero-slide.is-active {
    opacity: .62 !important;
  }
}

/* ============================================================
   WHATSAPP FLOTANTE
   ============================================================ */
.wa-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 200;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #25D366;
  color: #fff;
  box-shadow: 0 10px 30px -6px rgba(37, 211, 102, 0.6);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}

.wa-float svg {
  width: 32px;
  height: 32px;
  position: relative;
  z-index: 2;
}

.wa-float:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 16px 40px -8px rgba(37, 211, 102, 0.7);
}

.wa-pulse {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #25D366;
  z-index: 1;
}

@media (prefers-reduced-motion: no-preference) {
  .wa-pulse {
    animation: waPulse 2.4s ease-out infinite;
  }
}

@keyframes waPulse {
  0% {
    transform: scale(1);
    opacity: 0.6;
  }

  70%,
  100% {
    transform: scale(1.9);
    opacity: 0;
  }
}

@media (max-width: 560px) {
  .wa-float {
    width: 54px;
    height: 54px;
    right: 16px;
    bottom: 16px;
  }

  .wa-float svg {
    width: 28px;
    height: 28px;
  }
}

/* ============================================================
   ANGULAR SECTION DIVIDER
   ============================================================ */
.cut-top {
  clip-path: polygon(0 40px, 100% 0, 100% 100%, 0 100%);
  margin-top: -40px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .svc-mosaic {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: none;
    grid-auto-rows: 170px;
  }

  .svc-card:nth-child(n) {
    grid-column: auto;
    grid-row: auto;
  }

  .svc-card-feature {
    grid-column: 1 / 3;
    grid-row: 1 / 3;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 40px;
    align-items: start;
  }

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

@media (max-width: 860px) {
  .nav-cta {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-links {
    display: flex;
    position: fixed;
    inset: 0 0 0 auto;
    width: min(80vw, 320px);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 8px;
    background: rgba(8, 8, 8, 0.96);
    backdrop-filter: blur(20px);
    padding: 40px;
    transform: translateX(100%);
    transition: transform .45s var(--ease);
    z-index: 90;
  }

  .nav-links.open {
    transform: translateX(0);
  }

  .nav-links a {
    font-size: 1.4rem;
    padding: 14px 0;
  }

  .nav-links a::after {
    display: none;
  }

  .about-grid,
  .quote-grid {
    grid-template-columns: 1fr;
  }

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

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

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

  .services-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .services-head .section-lead {
    max-width: 100%;
  }

  .process-grid,
  .testi-grid {
    grid-template-columns: 1fr;
  }

  .about-media {
    max-width: 460px;
  }

  .work-carousel {
    padding-inline: 0;
  }

  .work-nav-removed {
    top: auto;
    bottom: 18px;
    transform: none;
  }

  .work-prev {
    left: 18px;
  }

  .work-next {
    right: 18px;
  }

  .work-nav:hover {
    transform: scale(1.04);
  }

  .work-dots {
    justify-content: flex-start;
    margin-bottom: 58px;
  }

  .nav,
  .btn-ghost,
  .chip,
  .svc-card-foot,
  .form-card,
  .lightbox,
  .work-nav {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .svc-card-img,
  .work-tile img,
  .about-media .frame img {
    transition-duration: .35s;
  }
}

@media (max-width: 560px) {
  .svc-mosaic {
    grid-template-columns: 1fr;
    grid-template-rows: none;
    grid-auto-rows: auto;
    gap: 9px;
  }

  .svc-card:nth-child(n),
  .svc-card-feature {
    grid-column: span 1;
    grid-row: auto;
  }

  .svc-card {
    min-height: 104px;
    transition: min-height .42s var(--ease), border-color .35s var(--ease);
  }

  .svc-card.open {
    min-height: 222px;
  }

  .svc-card-feature {
    min-height: 132px;
    grid-row: auto;
  }

  .svc-card-feature.open {
    min-height: 332px;
  }

  .svc-card-foot,
  .svc-card-feature .svc-card-foot {
    left: 0;
    right: 0;
    bottom: 0;
    max-width: none;
    padding: 9px 12px 10px;
  }

  .svc-card-title,
  .svc-card-feature .svc-card-title,
  .svc-card-feature:hover .svc-card-title,
  .svc-card-feature.open .svc-card-title {
    font-size: 0.72rem;
    line-height: 1.16;
    letter-spacing: 0.075em;
  }

  .svc-card-panel>p,
  .svc-card-feature .svc-card-panel>p {
    font-size: 0.76rem;
    line-height: 1.42;
  }

  .svc-card.open .svc-card-panel {
    margin-top: 8px;
  }

  .svc-card-feature .svc-card-num {
    top: 14px;
    left: 18px;
    font-size: 0.64rem;
    padding: 5px 9px;
  }

  .about-pillar,
  .mv-card,
  .pstep {
    cursor: pointer;
  }

  .about-pillar:hover,
  .about-pillar.open {
    border-color: rgba(76, 175, 80, 0.38);
  }

  .about-pillar p,
  .mv-card p,
  .pstep p {
    max-height: 0;
    margin-top: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height .45s var(--ease), opacity .35s var(--ease), margin-top .35s var(--ease);
  }

  .about-pillar.open p,
  .pstep.open p {
    max-height: 240px;
    margin-top: 8px;
    opacity: 1;
  }

  .mv-card.open p {
    max-height: 360px;
    margin-top: 14px;
    opacity: 1;
  }

  .mv-card.open {
    border-color: rgba(76, 175, 80, 0.4);
    transform: translateY(-4px);
  }

  .mv-card.open::before {
    height: 100%;
  }

  .process-grid {
    gap: 8px;
    background: transparent;
    border: 0;
  }

  .pstep {
    min-height: 112px;
    padding: 24px 22px;
    border: 1px solid var(--line);
  }

  .pstep.open {
    background: var(--bg-3);
  }

  .pstep .pico {
    top: 24px;
    right: 22px;
  }

  .pstep .pstep-title {
    font-size: 1.08rem;
    margin-top: 14px;
    padding-right: 36px;
  }

  .gallery-filters {
    gap: 10px 16px;
    margin-top: 24px;
  }

  .filter-btn {
    font-size: 0.62rem;
    letter-spacing: 0.06em;
    padding: 5px 0;
  }

  .contact-header {
    margin: 0 auto 28px;
  }

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

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

  .footer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-brand p {
    max-width: 100%;
  }

  .footer-col {
    align-items: center;
    text-align: center;
  }

  .footer-col:last-child {
    align-items: center;
    text-align: center;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .container {
    width: min(100% - 32px, var(--maxw));
  }

  .work-slide {
    padding: 14px;
  }

  .work-slide-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .work-mini-grid {
    grid-auto-rows: 138px;
    gap: 8px;
  }

  .work-tile span {
    left: 12px;
    right: 12px;
    bottom: 12px;
    font-size: 0.78rem;
  }

  .work-dots button {
    font-size: 0.58rem;
    padding: 8px 9px;
  }
}

/* ====== Tarjetas de servicio: botón Cotizar flotante ====== */
.svc-card-quote {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  background: var(--green);
  padding: 7px 14px;
  border-radius: 100px;
  white-space: nowrap;
  box-shadow: 0 10px 26px -12px var(--green-glow);
  cursor: pointer;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity .3s var(--ease), transform .3s var(--ease), background .25s var(--ease);
  pointer-events: none;
}
.svc-card:hover .svc-card-quote,
.svc-card:focus-within .svc-card-quote,
.svc-card.open .svc-card-quote {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.svc-card-quote:hover,
.svc-card-quote:focus-visible {
  background: var(--green-light);
}
