/* ==========================================================================
   Reflect Studio — Estilos v2.0 — "Sitio del 2070"
   GSAP + Lenis + Liquid Glass + Floating + Marquee + 3D Tilt + Noise
   ========================================================================== */

/* ---------- Custom Properties ---------- */
:root {
  --green-dark: #04411C;
  --green-darker: #021F0E;
  --gradient-start: #7CDA83;
  --gradient-end: #408564;
  --green-accent: #56B95C;
  --bg-white: #FFFFFF;
  --bg-light: #F5F5F7;
  --text-dark: #1D1D1F;
  --font: 'Lexend', sans-serif;
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
}

html.lenis, html.lenis body {
  height: auto;
}

body {
  font-family: var(--font);
  color: var(--text-dark);
  background: var(--bg-white);
  line-height: 1.6;
  overflow-x: hidden;
  cursor: none;
}

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

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

button { cursor: none; }
ul { list-style: none; }

.container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: max(calc((100vw - 1200px) / 2), 88px);
  padding: 0 24px;
}
@media (max-width: 768px) {
  .container {
    margin-right: auto;
  }
}

/* ---------- Tipografía ---------- */
h1 { font-size: clamp(2.6rem, 6vw, 4.5rem); font-weight: 700; line-height: 1.08; letter-spacing: -0.03em; text-wrap: balance; }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 600; line-height: 1.15; letter-spacing: -0.02em; text-wrap: balance; }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); font-weight: 600; line-height: 1.35; text-wrap: balance; }
p  { font-size: clamp(1rem, 1.2vw, 1.125rem); text-wrap: pretty; }

/* ---------- Noise Overlay ---------- */
.noise-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px;
}

/* ---------- Scroll Progress ---------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--gradient-start), var(--gradient-end));
  z-index: 10001;
  transition: none;
}

/* ---------- Botones ---------- */
.btn {
  display: inline-block;
  padding: 16px 36px;
  border-radius: 14px;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 500;
  cursor: none;
  transition: transform 0.5s var(--ease-out-expo), box-shadow 0.5s var(--ease-out-expo);
  border: none;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.15);
  transform: translateX(-100%);
  transition: transform 0.6s var(--ease-out-expo);
}

.btn:hover::before {
  transform: translateX(0);
}

.btn:hover {
  transform: translateY(-3px) scale(1.02);
}

.btn-primary {
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  color: #fff;
}

.btn-primary:hover {
  box-shadow: 0 10px 40px rgba(124, 218, 131, 0.4), 0 0 80px rgba(124, 218, 131, 0.15);
}

.btn-secondary {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.btn-secondary:hover {
  border-color: var(--gradient-start);
  box-shadow: 0 4px 30px rgba(124, 218, 131, 0.2);
}

/* ==========================================================================
   CUSTOM CURSOR
   ========================================================================== */
.cursor {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 99999;
  pointer-events: none;
  mix-blend-mode: difference;
}

.cursor__dot {
  width: 8px;
  height: 8px;
  background: #fff;
  border-radius: 50%;
  position: absolute;
  top: -4px;
  left: -4px;
}

.cursor__outline {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255,255,255,0.5);
  border-radius: 50%;
  position: absolute;
  top: -20px;
  left: -20px;
  transition: width 0.4s var(--ease-out-expo), height 0.4s var(--ease-out-expo), top 0.4s var(--ease-out-expo), left 0.4s var(--ease-out-expo), background 0.4s ease, border-color 0.3s ease;
}

.cursor__text {
  position: absolute;
  top: -40px;
  left: -40px;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font);
  font-size: 0.75rem;
  font-weight: 600;
  color: #fff;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.cursor.cursor--hover .cursor__outline {
  width: 80px;
  height: 80px;
  top: -40px;
  left: -40px;
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.8);
}

.cursor.cursor--portfolio .cursor__outline {
  width: 100px;
  height: 100px;
  top: -50px;
  left: -50px;
  background: rgba(124, 218, 131, 0.15);
  border-color: var(--gradient-start);
}

.cursor.cursor--portfolio .cursor__text {
  opacity: 1;
  top: -50px;
  left: -50px;
  width: 100px;
  height: 100px;
}

/* ==========================================================================
   FLOATING ORBS
   ========================================================================== */
.floating-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  will-change: transform;
}

.floating-orb--1 {
  width: 500px;
  height: 500px;
  top: -15%;
  right: -10%;
  background: radial-gradient(circle, rgba(124, 218, 131, 0.12) 0%, transparent 70%);
  filter: blur(60px);
}

.floating-orb--2 {
  width: 350px;
  height: 350px;
  bottom: -10%;
  left: -5%;
  background: radial-gradient(circle, rgba(64, 133, 100, 0.1) 0%, transparent 70%);
  filter: blur(50px);
}

.floating-orb--3 {
  width: 200px;
  height: 200px;
  top: 40%;
  left: 50%;
  background: radial-gradient(circle, rgba(86, 185, 92, 0.08) 0%, transparent 70%);
  filter: blur(40px);
}

.floating-orb--4 {
  width: 400px;
  height: 400px;
  top: -10%;
  left: -8%;
  background: radial-gradient(circle, rgba(124, 218, 131, 0.08) 0%, transparent 70%);
  filter: blur(50px);
}

.floating-orb--5 {
  width: 300px;
  height: 300px;
  bottom: -5%;
  right: -5%;
  background: radial-gradient(circle, rgba(64, 133, 100, 0.06) 0%, transparent 70%);
  filter: blur(40px);
}

.floating-orb--6 {
  width: 450px;
  height: 450px;
  top: -20%;
  right: -15%;
  background: radial-gradient(circle, rgba(124, 218, 131, 0.1) 0%, transparent 70%);
  filter: blur(60px);
}

/* ==========================================================================
   DESKTOP LOGO — Pill glassmorphism fijo arriba-izquierda
   ========================================================================== */
.desktop-logo {
  position: fixed;
  top: 24px;
  left: 24px;
  z-index: 1000;
  display: flex;
  align-items: center;
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(10, 10, 12, 0.85);
  -webkit-backdrop-filter: blur(24px) saturate(1.6);
  backdrop-filter: blur(24px) saturate(1.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.04) inset;
  text-decoration: none;
  transition: transform 0.3s var(--ease-out-expo), box-shadow 0.3s ease;
}
.desktop-logo:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 48px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.06) inset;
}
.desktop-logo img {
  height: 22px;
  width: auto;
  display: block;
}

/* ==========================================================================
   MOBILE HEADER — Logo fijo arriba (solo mobile)
   ========================================================================== */
.mobile-header {
  display: none;
}

/* ==========================================================================
   NAVBAR
   ========================================================================== */
/* ====== NAVBAR — Burbuja vertical lateral derecha ====== */
.navbar {
  position: fixed;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 10px;
  border-radius: 999px;
  background: rgba(10, 10, 12, 0.85);
  -webkit-backdrop-filter: blur(24px) saturate(1.6);
  backdrop-filter: blur(24px) saturate(1.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.04) inset;
  transition: transform 0.5s var(--ease-out-expo), opacity 0.5s var(--ease-out-expo);
}

/* Icon items */
.navbar__item {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.45);
  transition: color 0.3s ease, background 0.3s ease;
  text-decoration: none;
  position: relative;
}

.navbar__item:hover {
  color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.06);
}

.navbar__item--active {
  color: var(--gradient-start);
  background: rgba(124, 218, 131, 0.12);
}

.navbar__item--active:hover {
  color: var(--gradient-start);
  background: rgba(124, 218, 131, 0.18);
}

.navbar__icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

/* Tooltip label — aparece a la izquierda en hover */
.navbar__label {
  position: absolute;
  right: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%) translateX(4px);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.85);
  white-space: nowrap;
  background: rgba(10, 10, 12, 0.92);
  padding: 6px 12px;
  border-radius: 8px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.navbar__item:hover .navbar__label {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

/* CTA button */
.navbar__item--cta {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  padding: 0;
  background: #fff;
  color: var(--green-darker);
  margin-top: 4px;
}

.navbar__item--cta:hover {
  background: rgba(255, 255, 255, 0.9);
  color: var(--green-darker);
}

.navbar__cta-text {
  display: none;
}

.navbar__icon--arrow {
  width: 20px;
  height: 20px;
  stroke: var(--green-darker);
  transition: transform 0.3s var(--ease-out-expo);
}

.navbar__item--cta:hover .navbar__icon--arrow {
  transform: translateX(2px);
}

/* Separator between nav groups */
.navbar__separator {
  width: 28px;
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  margin: 4px 0;
  flex-shrink: 0;
}

/* More button — hidden on desktop */
.navbar__more-btn {
  display: none;
  border: none;
  cursor: pointer;
  background: transparent;
}

/* Extras wrapper — visible inline on desktop */
.navbar__extras {
  display: contents;
}

/* Mobile toggle button */
.navbar__toggle {
  display: none;
  position: fixed;
  bottom: 24px;
  right: 20px;
  z-index: 1001;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(10, 10, 12, 0.88);
  -webkit-backdrop-filter: blur(24px) saturate(1.6);
  backdrop-filter: blur(24px) saturate(1.6);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  padding: 0;
  transition: background 0.3s ease;
}

.navbar__toggle span {
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all 0.4s var(--ease-out-expo);
  transform-origin: center;
}

.navbar__toggle.active {
  background: rgba(124, 218, 131, 0.15);
}

.navbar__toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.navbar__toggle.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.navbar__toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  background: var(--green-dark);
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 120px 0 80px;
}

/* Hero background image */
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero__bg-img {
  filter: blur(4px);
}

.hero__bg-overlay {
  position: absolute;
  inset: 0;
  background: rgba(4, 65, 28, 0.93);
}

.hero__container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 2;
}

.hero__content {
  max-width: 700px;
  overflow: visible;
}

.hero__title {
  color: #fff;
  margin-bottom: 24px;
  overflow: visible;
  padding-right: 0.15em;
}

.hero__title-line {
  display: block;
  overflow: visible;
  padding-bottom: 0.15em;
}

.hero__title-line em {
  display: inline-block;
  font-style: italic;
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  padding-right: 0.1em;
}

.hero__subtitle {
  color: rgba(255, 255, 255, 0.6);
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  font-weight: 300;
  margin-bottom: 44px;
  max-width: 500px;
}

.hero__ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Hero visual */
.hero__visual {
  position: relative;
  width: 420px;
  height: 420px;
  flex-shrink: 0;
}

.hero__isotipo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 55%;
  height: auto;
  opacity: 0.25;
  filter: drop-shadow(0 0 60px rgba(124, 218, 131, 0.2));
  z-index: 2;
}

/* Scroll indicator */
.hero__scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  z-index: 3;
}

.hero__scroll-indicator span {
  color: rgba(255, 255, 255, 0.35);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

.hero__scroll-line {
  width: 1px;
  height: 50px;
  background: rgba(255,255,255,0.15);
  position: relative;
  overflow: hidden;
}

.hero__scroll-line::after {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gradient-start);
  animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
  0% { top: -100%; }
  50% { top: 100%; }
  100% { top: 100%; }
}

/* ==========================================================================
   MARQUEE
   ========================================================================== */
.marquee {
  padding: 20px 0;
  background: var(--green-darker);
  overflow: hidden;
  border-top: 1px solid rgba(124, 218, 131, 0.06);
  border-bottom: 1px solid rgba(124, 218, 131, 0.06);
}

.marquee__track {
  display: flex;
  width: max-content;
  animation: marqueeScroll 30s linear infinite;
}

.marquee--reverse .marquee__track {
  animation-direction: reverse;
}

.marquee__track span {
  color: rgba(255, 255, 255, 0.2);
  font-size: clamp(0.85rem, 1.2vw, 1rem);
  font-weight: 400;
  white-space: nowrap;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

@keyframes marqueeScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ==========================================================================
   SOBRE REFLECT — Full-width con fotos de fondo
   ========================================================================== */
.sobre {
  padding: 160px 0;
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--bg-light);
  margin-top: -2px;
}

/* Background — full width photo with directional fade */
.sobre__bg {
  position: absolute;
  inset: -20px;
  z-index: 0;
}

.sobre__bg-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  will-change: transform;
}

.sobre__bg-fade {
  position: absolute;
  inset: 0;
  /* Left side: fully covered by bg-light so text is readable.
     Right side: semi-transparent so image shows through behind cards. */
  background: linear-gradient(
    to right,
    var(--bg-light) 0%,
    var(--bg-light) 30%,
    rgba(245, 245, 247, 0.82) 50%,
    rgba(245, 245, 247, 0.45) 75%,
    rgba(245, 245, 247, 0.25) 100%
  );
  z-index: 1;
}

.sobre__label {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--green-accent);
  margin-bottom: 20px;
}

/* Layout: texto izq, cards der */
.sobre__layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.sobre__text-col {
  max-width: 520px;
}

.sobre__title {
  color: var(--text-dark);
  margin-bottom: 28px;
}

.sobre__text {
  color: var(--text-dark);
  opacity: 0.7;
  margin-bottom: 12px;
  max-width: 480px;
  font-size: 1.05rem;
  line-height: 1.7;
}

.sobre__location {
  color: var(--green-accent);
  font-weight: 500;
  font-size: 0.95rem;
  margin-top: 8px;
}

/* Cards — estilo numerado */
.sobre__cards-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.value-card {
  background: rgba(255, 255, 255, 0.7);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(4, 65, 28, 0.08);
  border-radius: 20px;
  padding: 32px;
  display: flex;
  gap: 24px;
  align-items: flex-start;
  transition: transform 0.5s var(--ease-out-expo), box-shadow 0.5s var(--ease-out-expo), border-color 0.3s ease;
  transform-style: preserve-3d;
  will-change: transform;
}

.value-card:hover {
  box-shadow: 0 20px 60px rgba(64, 133, 100, 0.1);
  border-color: rgba(86, 185, 92, 0.2);
}

.value-card__number {
  font-size: 2.2rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  flex-shrink: 0;
  min-width: 48px;
}

.value-card__content {
  flex: 1;
}

.value-card__title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-dark);
}

.value-card__desc {
  font-size: 0.9rem;
  color: var(--text-dark);
  opacity: 0.6;
  margin-top: 6px;
  line-height: 1.6;
}


/* ==========================================================================
   SERVICIOS
   ========================================================================== */
.servicios {
  padding: 140px 0;
  background: var(--green-dark);
  position: relative;
  overflow: hidden;
}

.servicios__title {
  color: #fff;
  text-align: center;
  margin-bottom: 72px;
}

.servicios__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.servicio-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(124, 218, 131, 0.15);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border-radius: 28px;
  padding: 44px 36px;
  transition: border-color 0.5s var(--ease-out-expo);
  position: relative;
  overflow: hidden;
  transform-style: preserve-3d;
  will-change: transform;
}

.servicio-card__glow {
  position: absolute;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124, 218, 131, 0.2), transparent 70%);
  filter: blur(40px);
  top: -100px;
  left: -100px;
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.servicio-card:hover .servicio-card__glow {
  opacity: 1;
}

.servicio-card:hover {
  border-color: var(--green-accent);
}

.servicio-card__icon {
  width: 48px;
  height: 48px;
  margin-bottom: 28px;
}

.servicio-card__icon svg {
  width: 100%;
  height: 100%;
}

.servicio-card__title {
  color: #fff;
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.servicio-card__tagline {
  color: var(--gradient-start);
  font-weight: 500;
  font-size: 1rem;
  margin-bottom: 18px;
}

.servicio-card__desc {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ==========================================================================
   CONSULTORÍA — Sección independiente
   ========================================================================== */
.consultoria {
  padding: 80px 0;
  background: var(--bg-light);
}

.consultoria__card {
  display: grid;
  grid-template-columns: 1fr 240px;
  align-items: center;
  gap: 48px;
  padding: 56px 64px;
  background: var(--green-darker);
  border-radius: 32px;
  position: relative;
  overflow: hidden;
}

.consultoria__label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--gradient-start);
  margin-bottom: 12px;
}

.consultoria__title {
  color: #fff;
  margin-bottom: 16px;
}

.consultoria__text {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 24px;
}

.consultoria__list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 24px;
  margin-bottom: 32px;
}

.consultoria__list li {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.92rem;
  padding-left: 20px;
  position: relative;
}
.consultoria__list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--gradient-start);
  font-weight: 700;
}

.consultoria__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.2;
}
.consultoria__icon svg {
  width: 200px;
  height: 200px;
}

@media (max-width: 1024px) {
  .consultoria__card {
    grid-template-columns: 1fr;
    padding: 40px 36px;
  }
  .consultoria__icon {
    display: none;
  }
  .consultoria__list {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   PORTFOLIO PREVIEW
   ========================================================================== */
.portfolio {
  padding: 140px 0;
  background: var(--bg-light);
  position: relative;
}

.portfolio__title {
  text-align: center;
  margin-bottom: 72px;
}

.portfolio__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  grid-template-rows: auto auto;
  gap: 20px;
  margin-bottom: 20px;
}

.portfolio-card {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  cursor: none;
  text-decoration: none;
  display: block;
}

.portfolio-card--large {
  grid-row: span 2;
}

.portfolio-card__img-wrap {
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.portfolio-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease-out-expo);
}

.portfolio-card__placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #e2e2e2, #c0c0c0);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  font-size: 0.95rem;
  transition: transform 0.8s var(--ease-out-expo);
}

.portfolio-card__overlay {
  position: absolute;
  inset: 0;
  background: rgba(4, 65, 28, 0.8);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.5s var(--ease-out-expo);
}

.portfolio-card:hover .portfolio-card__overlay {
  opacity: 1;
}

.portfolio-card:hover .portfolio-card__img,
.portfolio-card:hover .portfolio-card__placeholder {
  transform: scale(1.06);
}

.portfolio-card__name {
  color: #fff;
  font-size: 1.3rem;
  font-weight: 600;
}

.portfolio-card__cat {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.9rem;
  margin-top: 6px;
}

.portfolio__row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 56px;
}

.portfolio__cta {
  text-align: center;
}

/* ==========================================================================
   TESTIMONIOS — Carrusel infinito con controles
   ========================================================================== */
.testimonios {
  padding: 140px 0 120px;
  background: var(--bg-white);
  position: relative;
  overflow: hidden;
}

.testimonios__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 56px;
}

.testimonios__title {
  margin-bottom: 0;
}

.testimonios__nav {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}

.testimonios__arrow {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(4, 65, 28, 0.15);
  background: transparent;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: none;
  transition: all 0.4s var(--ease-out-expo);
}

.testimonios__arrow:hover {
  background: var(--green-dark);
  border-color: var(--green-dark);
  color: #fff;
}

/* Carousel */
.testimonios__carousel {
  overflow: hidden;
  cursor: grab;
  -webkit-user-select: none;
  user-select: none;
}

.testimonios__carousel:active {
  cursor: grabbing;
}

.testimonios__track {
  display: flex;
  gap: 24px;
  padding: 0 max(24px, calc((100vw - 1200px) / 2 + 24px));
  will-change: transform;
}

/* Dots */
.testimonios__dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 48px;
}

.testimonios__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: rgba(4, 65, 28, 0.15);
  cursor: none;
  transition: all 0.4s var(--ease-out-expo);
  padding: 0;
  flex-shrink: 0;
}

.testimonios__dot.active {
  background: var(--green-dark);
  width: 28px;
  border-radius: 4px;
}

/* Cards */
.testimonio-card {
  background: var(--bg-light);
  border-radius: 20px;
  padding: 44px 36px;
  position: relative;
  transform-style: preserve-3d;
  will-change: transform;
  border: 1px solid transparent;
  transition: border-color 0.3s ease, box-shadow 0.5s var(--ease-out-expo);
  flex: 0 0 380px;
  min-height: 220px;
}

.testimonio-card:hover {
  border-color: rgba(86, 185, 92, 0.15);
  box-shadow: 0 20px 60px rgba(0,0,0,0.06);
}

.testimonio-card__quote {
  position: absolute;
  top: 16px;
  left: 28px;
  font-size: 4rem;
  color: var(--green-accent);
  font-family: Georgia, serif;
  line-height: 1;
  opacity: 0.35;
}

.testimonio-card__text {
  font-size: 1rem;
  color: var(--text-dark);
  line-height: 1.75;
  margin-top: 28px;
  font-style: italic;
}

.testimonio-card__author {
  margin-top: 24px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-dark);
}

/* ==========================================================================
   CONTACTO
   ========================================================================== */
.contacto {
  padding: 140px 0;
  background: var(--green-dark);
  position: relative;
  overflow: hidden;
}

.contacto__content {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.contacto__title {
  color: #fff;
  margin-bottom: 16px;
}

.contacto__subtitle {
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 52px;
  font-size: 1.05rem;
}

.contacto__form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: left;
}

.contacto__input,
.contacto__textarea {
  width: 100%;
  padding: 18px 22px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  color: #fff;
  font-family: var(--font);
  font-size: 1rem;
  outline: none;
  transition: border-color 0.4s var(--ease-out-expo), background 0.4s ease, box-shadow 0.4s ease;
}

.contacto__input::placeholder,
.contacto__textarea::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.contacto__input:focus,
.contacto__textarea:focus {
  border-color: var(--gradient-start);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 30px rgba(124, 218, 131, 0.08);
}

.contacto__textarea {
  resize: vertical;
  min-height: 150px;
}

.contacto__select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1.5l5 5 5-5' stroke='rgba(255,255,255,0.5)' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 18px center;
  cursor: pointer;
}
.contacto__select option {
  background: #1a1a1a;
  color: #fff;
}

.contacto__field-label {
  display: block;
  grid-column: 1 / -1;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  margin-bottom: 0;
}

.contacto__checkboxes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 8px 0;
}

.contacto__checkbox {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  color: rgba(255, 255, 255, 0.65);
  font-family: var(--font);
  font-size: 0.9rem;
  cursor: pointer;
  text-align: center;
  transition: border-color 0.3s ease, background 0.3s ease, color 0.3s ease;
}
.contacto__checkbox:hover {
  border-color: rgba(124, 218, 131, 0.3);
  background: rgba(255, 255, 255, 0.1);
}
.contacto__checkbox input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  border-radius: 5px;
  background: transparent;
  cursor: pointer;
  transition: background 0.3s ease, border-color 0.3s ease;
  flex-shrink: 0;
}
.contacto__checkbox input[type="checkbox"]:checked {
  background: var(--gradient-start);
  border-color: var(--gradient-start);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='10' fill='none'%3E%3Cpath d='M1 5.5l3 3 7-7' stroke='%23021F0E' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}
.contacto__checkbox:has(input:checked) {
  border-color: rgba(124, 218, 131, 0.4);
  background: rgba(124, 218, 131, 0.08);
  color: #fff;
}

.contacto__form-placeholder {
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: left;
}

.contacto__submit {
  align-self: center;
  margin-top: 8px;
  min-width: 220px;
}

/* ---------- Gravity Forms override (WordPress) ---------- */
.contacto .gform_wrapper {
  text-align: left;
}
.contacto .gform_body {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.contacto .gfield {
  margin: 0;
  padding: 0;
}
/* Labels — override Gravity Forms framework theme */
.contacto .gfield_label,
.contacto .gform-field-label,
.contacto .gform_wrapper .gfield_label,
.contacto .gform_wrapper .gform-field-label,
.contacto .gform-theme--framework .gform-field-label {
  color: rgba(255, 255, 255, 0.6) !important;
  font-family: var(--font) !important;
  font-size: 0.9rem !important;
  font-weight: 500 !important;
  margin-bottom: 6px;
}
/* Required text (Obligatorio) */
.contacto .gfield_required,
.contacto .gfield_required_text,
.contacto .gform_wrapper .gfield_required {
  color: rgba(124, 218, 131, 0.6) !important;
  font-size: 0.8rem !important;
}
/* Sub-labels (below inputs) */
.contacto .gform_wrapper .gfield_description,
.contacto .gform-theme--framework .gfield_description {
  display: none !important;
}
.contacto .gform_wrapper input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]),
.contacto .gform_wrapper textarea,
.contacto .gform_wrapper select,
.contacto .gform-theme--framework input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]),
.contacto .gform-theme--framework textarea,
.contacto .gform-theme--framework select {
  width: 100% !important;
  padding: 18px 22px !important;
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 14px !important;
  color: #fff !important;
  font-family: var(--font) !important;
  font-size: 1rem !important;
  outline: none !important;
  transition: border-color 0.4s var(--ease-out-expo), background 0.4s ease, box-shadow 0.4s ease;
}
.contacto .gform_wrapper input:not([type="checkbox"]):not([type="radio"]):not([type="submit"])::placeholder,
.contacto .gform_wrapper textarea::placeholder {
  color: rgba(255, 255, 255, 0.35);
}
.contacto .gform_wrapper input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):focus,
.contacto .gform_wrapper textarea:focus,
.contacto .gform_wrapper select:focus {
  border-color: var(--gradient-start);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 30px rgba(124, 218, 131, 0.08);
}
.contacto .gform_wrapper select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1.5l5 5 5-5' stroke='rgba(255,255,255,0.5)' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 18px center;
  cursor: pointer;
}
.contacto .gform_wrapper select option {
  background: #1a1a1a;
  color: #fff;
}
.contacto .gform_wrapper textarea {
  resize: vertical;
  min-height: 150px;
}
.contacto .gform_wrapper .gchoice {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.7);
  font-family: var(--font);
  font-size: 0.9rem;
  cursor: pointer;
  margin: 0 8px 8px 0;
  transition: border-color 0.3s ease, background 0.3s ease;
}
.contacto .gform_wrapper .gchoice:hover {
  border-color: rgba(124, 218, 131, 0.3);
  background: rgba(255, 255, 255, 0.1);
}
.contacto .gform_wrapper .gchoice input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  border-radius: 5px;
  background: transparent;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.3s ease, border-color 0.3s ease;
}
.contacto .gform_wrapper .gchoice input[type="checkbox"]:checked {
  background: var(--gradient-start);
  border-color: var(--gradient-start);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='10' fill='none'%3E%3Cpath d='M1 5.5l3 3 7-7' stroke='%23021F0E' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}
.contacto .gform_wrapper .gform_footer,
.contacto .gform-theme--framework .gform_footer {
  text-align: center;
  margin-top: 24px !important;
  padding-top: 8px;
}
.contacto .gform_wrapper .gform_button,
.contacto .gform-theme--framework .gform_button,
.contacto .gform_wrapper input[type="submit"] {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  padding: 16px 36px !important;
  border-radius: 14px !important;
  font-family: var(--font) !important;
  font-weight: 500 !important;
  font-size: 1rem !important;
  border: none !important;
  cursor: none !important;
  position: relative !important;
  overflow: hidden !important;
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end)) !important;
  color: #fff !important;
  min-width: 220px;
  transition: transform 0.5s var(--ease-out-expo), box-shadow 0.5s var(--ease-out-expo) !important;
}
.contacto .gform_wrapper .gform_button::before,
.contacto .gform-theme--framework .gform_button::before,
.contacto .gform_wrapper input[type="submit"]::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.15);
  transform: translateX(-100%);
  transition: transform 0.6s var(--ease-out-expo);
}
.contacto .gform_wrapper .gform_button:hover::before,
.contacto .gform-theme--framework .gform_button:hover::before,
.contacto .gform_wrapper input[type="submit"]:hover::before {
  transform: translateX(0);
}
.contacto .gform_wrapper .gform_button:hover,
.contacto .gform-theme--framework .gform_button:hover,
.contacto .gform_wrapper input[type="submit"]:hover {
  transform: translateY(-3px) scale(1.02) !important;
  box-shadow: 0 10px 40px rgba(124, 218, 131, 0.4), 0 0 80px rgba(124, 218, 131, 0.15) !important;
}
.contacto .gform_wrapper .gform_validation_errors,
.contacto .gform_wrapper .validation_message {
  color: #ff6b6b;
  font-family: var(--font);
  font-size: 0.85rem;
}

.contacto__links {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-top: 36px;
}

.contacto__link {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9rem;
  transition: color 0.3s ease;
  position: relative;
}

.contacto__link::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gradient-start);
  transition: width 0.4s var(--ease-out-expo);
}

.contacto__link:hover {
  color: var(--gradient-start);
}

.contacto__link:hover::after {
  width: 100%;
}

/* ---------- Gravity Forms overrides de alta especificad (!important) ---------- */
body .contacto .gform-theme--framework .gform-field-label,
body .contacto .gform-theme--framework .gfield_list_group_item::before {
  color: rgba(255, 255, 255, 0.6) !important;
}
body .contacto .gform-theme--framework .gfield_required {
  color: rgba(255, 255, 255, 0.4) !important;
  font-weight: normal !important;
}

/* Ocultar etiquetas (labels) de inputs normales, manteniendo solo placeholders.
   Bypass textarea, select y checkbox que sí necesitan la etiqueta visible */
body .contacto .gform-theme--framework input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]),
body .contacto .gform-theme--framework textarea,
body .contacto .gform-theme--framework select {
  background: rgba(255, 255, 255, 0.06) !important;
  color: #fff !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 14px !important;
}
body .contacto .gform-theme--framework .gchoice label {
  color: rgba(255, 255, 255, 0.7) !important;
}
body .contacto .gform-theme--framework .gform_button {
  padding: 16px 36px !important;
  border-radius: 14px !important;
  font-weight: 500 !important;
  cursor: none !important;
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end)) !important;
  color: #fff !important;
  box-shadow: none !important;
  transition: transform 0.5s var(--ease-out-expo), box-shadow 0.5s var(--ease-out-expo) !important;
}
body .contacto .gform-theme--framework .gform_button:hover {
  transform: translateY(-3px) scale(1.02) !important;
  box-shadow: 0 10px 40px rgba(124, 218, 131, 0.4), 0 0 80px rgba(124, 218, 131, 0.15) !important;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
  background: var(--green-darker);
  padding: 56px 0;
}

.footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer__logo {
  display: flex;
  align-items: center;
}

.footer__logo-img {
  height: 28px;
  width: auto;
  opacity: 0.5;
  transition: opacity 0.3s ease;
}

.footer__logo:hover .footer__logo-img {
  opacity: 0.8;
}

.footer__links {
  display: flex;
  gap: 28px;
}

.footer__links a {
  color: rgba(255, 255, 255, 0.35);
  font-size: 0.85rem;
  transition: color 0.3s ease;
}

.footer__links a:hover {
  color: rgba(255, 255, 255, 0.75);
}

.footer__copy {
  color: rgba(255, 255, 255, 0.2);
  font-size: 0.8rem;
  width: 100%;
  text-align: center;
  margin-top: 32px;
}

/* ==========================================================================
   GSAP INITIAL STATES — managed entirely by JS (gsap.set)
   No CSS opacity:0 here — GSAP handles visibility
   ========================================================================== */

/* ==========================================================================
   PAGE HERO — shared hero for inner pages (Proyectos, PDP)
   ========================================================================== */
.page-hero {
  padding: 180px 0 100px;
  background: var(--green-darker);
  position: relative;
  overflow: hidden;
  text-align: center;
}

.page-hero__label {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gradient-start);
  margin-bottom: 20px;
}

.page-hero__title {
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  font-weight: 700;
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 24px;
}

.page-hero__subtitle {
  max-width: 600px;
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.55);
  font-size: 1.1rem;
  line-height: 1.7;
}

/* ==========================================================================
   PROYECTOS — Filters
   ========================================================================== */
.proyectos-filters {
  padding: 48px 0 0;
  background: var(--bg-light);
}

.proyectos-filters__bar {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-btn {
  padding: 10px 24px;
  border: 1px solid rgba(29, 29, 31, 0.12);
  border-radius: 100px;
  background: transparent;
  color: var(--text-dark);
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.4s var(--ease-out-expo);
}

.filter-btn:hover {
  border-color: var(--green-dark);
  color: var(--green-dark);
}

.filter-btn.active {
  background: var(--green-dark);
  border-color: var(--green-dark);
  color: #fff;
}

/* ==========================================================================
   PROYECTOS — Grid
   ========================================================================== */
.proyectos-grid-section {
  padding: 56px 0 120px;
  background: var(--bg-light);
}

.proyectos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.proyecto-card {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  text-decoration: none;
  display: block;
  cursor: none;
}

.proyecto-card--large {
  grid-column: span 1;
}

.proyecto-card__img-wrap {
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  transition: transform 0.8s var(--ease-out-expo);
}

.proyecto-card__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease-out-expo);
}

.proyecto-card__placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #e2e2e2, #c0c0c0);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  font-size: 0.9rem;
  transition: transform 0.8s var(--ease-out-expo);
}

.proyecto-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(4, 65, 28, 0.92) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  opacity: 0;
  transition: opacity 0.5s var(--ease-out-expo);
}

.proyecto-card:hover .proyecto-card__overlay {
  opacity: 1;
}

.proyecto-card:hover .proyecto-card__img-wrap img,
.proyecto-card:hover .proyecto-card__placeholder {
  transform: scale(1.06);
}

.proyecto-card__cat {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gradient-start);
  margin-bottom: 8px;
}

.proyecto-card__name {
  color: #fff;
  font-size: clamp(1rem, 1.2vw, 1.4rem);
  font-weight: 600;
  margin-bottom: 6px;
}

.proyecto-card__excerpt {
  color: rgba(255, 255, 255, 0.6);
  font-size: clamp(0.75rem, 0.85vw, 0.9rem);
  line-height: 1.4;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.proyecto-card__arrow {
  color: var(--gradient-start);
  font-size: 1.4rem;
  transition: transform 0.4s var(--ease-out-expo);
}

.proyecto-card:hover .proyecto-card__arrow {
  transform: translateX(8px);
}

/* Hidden by filter */
.proyecto-card.hidden {
  display: none;
}

/* ==========================================================================
   PROYECTOS — CTA section
   ========================================================================== */
.proyectos-cta {
  padding: 140px 0;
  background: var(--green-dark);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.proyectos-cta__content {
  max-width: 640px;
  margin: 0 auto;
}

.proyectos-cta__emoji {
  display: inline-block;
  font-size: 3.5rem;
  margin-bottom: 24px;
  animation: ctaWave 2.5s ease-in-out infinite;
  transform-origin: 70% 70%;
}

@keyframes ctaWave {
  0%, 100% { transform: rotate(0deg); }
  10% { transform: rotate(14deg); }
  20% { transform: rotate(-8deg); }
  30% { transform: rotate(14deg); }
  40% { transform: rotate(-4deg); }
  50% { transform: rotate(10deg); }
  60% { transform: rotate(0deg); }
}

.proyectos-cta__title {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: 20px;
  line-height: 1.15;
}

.proyectos-cta__text {
  color: rgba(255, 255, 255, 0.55);
  font-size: 1.15rem;
  line-height: 1.6;
  margin-bottom: 40px;
}

/* ==========================================================================
   PDP — Project Detail Page Hero
   ========================================================================== */
.pdp-hero {
  position: relative;
  min-height: 75vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.pdp-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

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

.pdp-hero__placeholder {
  width: 100%;
  height: 100%;
  min-height: 75vh;
  background: linear-gradient(135deg, #2a2a2a, #1a1a1a);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #555;
  font-size: 1rem;
}

.pdp-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(2, 31, 14, 0.3) 0%, rgba(2, 31, 14, 0.92) 100%);
  z-index: 1;
}

.pdp-hero__content {
  position: relative;
  z-index: 2;
  padding-bottom: 72px;
}

.pdp-hero__back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9rem;
  text-decoration: none;
  margin-bottom: 28px;
  transition: color 0.3s ease;
  cursor: pointer;
}

.pdp-hero__back:hover {
  color: var(--gradient-start);
}

.pdp-hero__back-arrow {
  font-size: 1.2rem;
  transition: transform 0.3s var(--ease-out-expo);
}

.pdp-hero__back:hover .pdp-hero__back-arrow {
  transform: translateX(-4px);
}

.pdp-hero__cat {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gradient-start);
  margin-bottom: 16px;
}

.pdp-hero__title {
  font-size: clamp(2.6rem, 6vw, 5rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.1;
  max-width: 800px;
}

/* ==========================================================================
   PDP — Project Info
   ========================================================================== */
.pdp-info {
  padding: 100px 0;
  background: var(--bg-light);
}

.pdp-info__grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 80px;
  align-items: start;
}

.pdp-info__meta {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.pdp-info__meta-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.pdp-info__label {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(29, 29, 31, 0.4);
}

.pdp-info__value {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-dark);
}

.pdp-info__heading {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 24px;
}

.pdp-info__text {
  color: rgba(29, 29, 31, 0.65);
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 20px;
}

/* ==========================================================================
   PDP — Gallery
   ========================================================================== */
.pdp-gallery {
  padding: 0 0 100px;
  background: var(--bg-light);
}

.pdp-gallery__full {
  margin-bottom: 24px;
  border-radius: 20px;
  overflow: hidden;
}

.pdp-gallery__full img {
  width: 100%;
  height: auto;
  display: block;
}

.pdp-gallery__placeholder {
  width: 100%;
  min-height: 400px;
  background: linear-gradient(135deg, #e2e2e2, #c8c8c8);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  font-size: 0.9rem;
  border-radius: 20px;
}

.pdp-gallery__placeholder--full {
  min-height: 500px;
}

.pdp-gallery__duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}

.pdp-gallery__trio {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 24px;
}

.pdp-gallery__item {
  border-radius: 20px;
  overflow: hidden;
}

.pdp-gallery__item img {
  width: 100%;
  height: auto;
  display: block;
}

/* ==========================================================================
   PDP — Results / Stats
   ========================================================================== */
.pdp-results {
  padding: 100px 0;
  background: var(--green-darker);
  text-align: center;
}

.pdp-results__title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 60px;
}

.pdp-results__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}

.pdp-results__stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.pdp-results__number {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 700;
  color: #fff;
  line-height: 1;
}

.pdp-results__label {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.45);
}

/* ==========================================================================
   PDP — Next / Prev Navigation
   ========================================================================== */
.pdp-nav {
  padding: 80px 0;
  background: var(--bg-light);
}

.pdp-nav__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.pdp-nav__item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 40px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(29, 29, 31, 0.08);
  border-radius: 20px;
  text-decoration: none;
  transition: all 0.5s var(--ease-out-expo);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
}

.pdp-nav__item:hover {
  background: rgba(4, 65, 28, 0.06);
  border-color: rgba(4, 65, 28, 0.15);
  transform: translateY(-4px);
}

.pdp-nav__item--next {
  text-align: right;
}

.pdp-nav__direction {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(29, 29, 31, 0.4);
}

.pdp-nav__project-name {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text-dark);
}


/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1024px) {
  .servicios__grid { grid-template-columns: repeat(2, 1fr); }
  .testimonio-card { flex: 0 0 320px; }
  .portfolio__grid { grid-template-columns: 1fr 1fr; }
  .portfolio-card--large { grid-row: span 1; }
  .portfolio-card--large .portfolio-card__img-wrap { aspect-ratio: 16 / 10; }
  .hero__visual { width: 320px; height: 320px; }

  /* Proyectos page */
  .proyectos-grid { grid-template-columns: repeat(2, 1fr); }
  .proyecto-card--large { grid-column: span 1; }

  /* PDP */
  .pdp-info__grid { grid-template-columns: 1fr; gap: 48px; }
  .pdp-results__grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .pdp-gallery__trio { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  /* Disable custom cursor on touch devices */
  body { cursor: auto; }
  a, button { cursor: auto; }
  .cursor { display: none; }

  /* Ocultar desktop logo en mobile */
  .desktop-logo { display: none; }

  /* Mobile header — logo fijo arriba */
  .mobile-header {
    display: flex;
    justify-content: center;
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    z-index: 5;
  }
  .mobile-header__logo img {
    height: 28px;
    width: auto;
  }

  /* Navbar — mobile bottom bar (app-style) */
  .navbar {
    position: fixed;
    right: auto;
    left: 12px;
    right: 12px;
    bottom: 12px;
    top: auto;
    transform: none;
    flex-direction: row;
    justify-content: center;
    gap: 6px;
    padding: 10px 14px;
    border-radius: 28px;
    width: auto;
    max-width: 100%;
    z-index: 1000;
    margin-bottom: env(safe-area-inset-bottom);
  }
  .navbar__item {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
  }
  .navbar__icon { width: 20px; height: 20px; }
  .navbar__label {
    display: none;
  }
  .navbar__item {
    flex-direction: column;
    gap: 1px;
    border-radius: 12px;
  }
  .navbar__item:hover .navbar__label {
    transform: none;
  }
  /* CTA en mobile: mismo estilo que desktop */
  .navbar__item--cta {
    margin-top: 0;
  }
  /* Ocultar separador en mobile */
  .navbar__separator { display: none; }
  /* Mostrar botón "más" */
  .navbar__more-btn {
    display: flex;
    width: 44px;
    height: 44px;
  }
  /* Extras: popup flotante arriba del botón */
  .navbar__extras {
    display: flex;
    flex-direction: row;
    gap: 4px;
    position: absolute;
    bottom: calc(100% + 10px);
    right: 0;
    padding: 8px;
    border-radius: 20px;
    background: rgba(10, 10, 12, 0.92);
    -webkit-backdrop-filter: blur(24px) saturate(1.6);
    backdrop-filter: blur(24px) saturate(1.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    opacity: 0;
    transform: translateY(8px) scale(0.9);
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s var(--ease-out-expo);
  }
  .navbar__extras.open {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
  }
  .navbar__extras .navbar__item {
    width: 40px;
    height: 40px;
  }
  .navbar__extras .navbar__icon {
    width: 18px;
    height: 18px;
  }
  /* Ocultar toggle — ya no necesario */
  .navbar__toggle { display: none; }

  /* Espacio para bottom bar */
  body { padding-bottom: 80px; }

  .hero { padding: 100px 0 60px; min-height: auto; }
  .hero__container { flex-direction: column; }
  .hero__visual { width: 250px; height: 250px; margin-top: 40px; }

  .sobre__layout { grid-template-columns: 1fr; gap: 48px; }
  .sobre__bg-fade {
    background: linear-gradient(
      to bottom,
      var(--bg-light) 0%,
      rgba(245, 245, 247, 0.85) 40%,
      rgba(245, 245, 247, 0.5) 100%
    );
  }

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

  .portfolio__grid { grid-template-columns: 1fr; }
  .portfolio__row { grid-template-columns: 1fr; }

  .testimonio-card { flex: 0 0 280px; min-height: 200px; }

  .marquee__track span { font-size: 0.8rem; }

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

  /* Proyectos page */
  .proyectos-grid { grid-template-columns: 1fr; }
  .proyecto-card--large { grid-column: span 1; }
  .proyecto-card__placeholder,
  .proyecto-card--large .proyecto-card__placeholder { min-height: 260px; }

  /* PDP */
  .pdp-hero { min-height: 55vh; }
  .pdp-hero__placeholder { min-height: 55vh; }
  .pdp-gallery__duo { grid-template-columns: 1fr; }
  .pdp-gallery__trio { grid-template-columns: 1fr; }
  .pdp-nav__grid { grid-template-columns: 1fr; }
  .pdp-nav__item--next { text-align: left; }
  .pdp-results__grid { grid-template-columns: repeat(2, 1fr); }

  /* Page hero */
  .page-hero { padding: 140px 0 72px; }
}
