/* ============================================================
   RL ARQUITECTOS — LANDING PAGE STYLES
   Dark Architectural Premium Interface
   ============================================================ */

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

:root {
  /* Colors */
  --black:       #080b0f;
  --black-deep:  #050709;
  --grey-900:    #0d1117;
  --grey-800:    #161b22;
  --grey-700:    #21262d;
  --grey-600:    #30363d;
  --grey-500:    #484f58;
  --grey-400:    #6e7681;
  --grey-300:    #8b949e;
  --grey-200:    #b1bac4;
  --grey-100:    #dde3ea;
  --white:       #f0f6fc;
  --rl-green:    #7fdb18;
  --rl-green-dim:#5fa810;
  --rl-green-glow: rgba(127,219,24,0.12);
  --rl-green-glow-strong: rgba(127,219,24,0.2);

  /* Typography */
  --font-title:  'Plus Jakarta Sans', sans-serif;
  --font-body:   'Inter', sans-serif;

  /* Spacing */
  --section-v: clamp(40px, 5vw, 80px);
  --section-v-sm: clamp(30px, 4vw, 60px);

  /* Animation */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-inout: cubic-bezier(0.4, 0, 0.2, 1);

  /* Border radius */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background: var(--black);
  color: var(--grey-200);
  font-family: var(--font-body);
  line-height: 1.7;
  overflow-x: clip; /* clip instead of hidden: avoids BFC that breaks 100vw gallery technique */
  -webkit-font-smoothing: antialiased;
}

body.modal-open {
  overflow: hidden !important;
}

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

/* ── ARCHITECTURAL BACKGROUND ── */
.arch-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

#arch-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.arch-gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 15% 10%, rgba(127,219,24,0.06) 0%, transparent 70%),
    radial-gradient(ellipse 40% 60% at 85% 80%, rgba(127,219,24,0.04) 0%, transparent 60%);
  pointer-events: none;
}

/* ── CONTAINER ── */
.container {
  max-width: 1536px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 40px);
}

/* ── SECTIONS ── */
.section {
  position: relative;
  z-index: 1;
  padding: var(--section-v) 0;
}

/* ── NAVBAR ── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 22px 0;
  transition: background 0.4s var(--ease-inout),
              backdrop-filter 0.4s var(--ease-inout),
              border-bottom 0.4s var(--ease-inout),
              padding 0.3s var(--ease-inout);
  border-bottom: 1px solid transparent;
}

.navbar.scrolled {
  background: rgba(8,11,15,0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom-color: rgba(127,219,24,0.15);
  padding: 14px 0;
}

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

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-rl {
  font-family: var(--font-title);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--rl-green);
  letter-spacing: -0.02em;
}

.logo-sep {
  width: 1px;
  height: 18px;
  background: var(--grey-600);
}

.logo-text {
  font-family: var(--font-title);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--grey-200);
  letter-spacing: 0.05em;
}

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--grey-300);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: color 0.25s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--rl-green);
  transition: width 0.3s var(--ease-out-expo);
}

.nav-links a:hover { color: var(--white); }
.nav-links a:hover::after { width: 100%; }

.nav-cta {
  background: var(--rl-green) !important;
  color: var(--black) !important;
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  transition: transform 0.25s, box-shadow 0.25s, background 0.25s !important;
}

.nav-cta::after { display: none !important; }
.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(127,219,24,0.35) !important;
  background: #8fe81e !important;
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--grey-200);
  transition: transform 0.3s var(--ease-inout), opacity 0.3s;
  transform-origin: center;
}

/* ── BUTTONS ── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--rl-green);
  color: var(--black-deep);
  font-family: var(--font-title);
  font-size: 1rem;
  font-weight: 700;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.25s var(--ease-out-expo),
              box-shadow 0.25s var(--ease-out-expo),
              background 0.25s;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(127,219,24,0.4);
  background: #8fe81e;
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  color: var(--white);
  font-family: var(--font-title);
  font-size: 1rem;
  font-weight: 600;
  padding: 13px 27px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: border-color 0.25s, color 0.25s, background 0.25s, transform 0.25s;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.btn-secondary:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-2px);
}

.btn-secondary:active {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(0);
}

.btn-outline-rl {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: transparent;
  color: var(--rl-green);
  font-family: var(--font-title);
  font-size: 1rem;
  font-weight: 700;
  padding: 14px 30px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  border: 1px solid var(--rl-green);
  cursor: pointer;
  transition: all 0.3s var(--ease-out-expo);
  letter-spacing: 0.01em;
}

.btn-outline-rl:hover {
  background: rgba(127, 219, 24, 0.05);
  box-shadow: 0 0 20px rgba(127, 219, 24, 0.15);
  transform: translateY(-2px);
}

.btn-outline-rl:active {
  transform: translateY(0);
}


.btn-lg {
  font-size: 1.1rem;
  padding: 18px 36px;
}

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

/* ── SECTION LABELS ── */
.section-label {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--rl-green);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.section-label::before {
  content: '';
  display: block;
  width: 24px;
  height: 1px;
  background: var(--rl-green);
}

.section-label.light { color: var(--rl-green); }

.section-header {
  max-width: 780px;
  margin-bottom: 4rem;
}

.section-title {
  font-family: var(--font-title);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
  letter-spacing: -0.025em;
  margin-bottom: 1.25rem;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--grey-300);
  line-height: 1.75;
  max-width: 680px;
}

.title-accent {
  color: var(--rl-green);
}

.accent-text {
  color: var(--rl-green);
  font-weight: 600;
}

.body-text {
  font-size: 1rem;
  color: var(--grey-300);
  line-height: 1.8;
  margin-bottom: 1.25rem;
}

.section-cta {
  text-align: center;
  margin-top: 3rem;
}

/* ── IMG PLACEHOLDERS ── */
.img-placeholder {
  background: var(--grey-800);
  border: 1px dashed var(--grey-600);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: transform 0.4s var(--ease-out-expo);
}

.img-placeholder-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  color: var(--grey-500);
  text-align: center;
  padding: 2rem;
  font-size: 0.85rem;
}

/* ── REAL IMAGE CONTAINERS ── */
.project-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s var(--ease-out-expo);
}

/* Hero image wrapper */
.hero-img-real {
  width: 100%;
  aspect-ratio: 3 / 4;
  max-height: 580px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--grey-700);
  transition: transform 0.4s var(--ease-out-expo);
}

.hero-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Authority image wrapper */
.authority-img-real {
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--grey-700);
  transition: transform 0.5s var(--ease-out-expo);
}

.authority-img-real:hover { transform: scale(1.02); }

.authority-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* About image wrapper */
.about-img-real {
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--grey-700);
  position: sticky;
  top: 100px;
  transition: transform 0.5s var(--ease-out-expo);
}

.about-img-real:hover { transform: scale(1.02); }

.about-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Project cards — direct img child */
.project-img-wrapper > img.project-photo {
  position: absolute;
  inset: 0;
  border-radius: 0;
  object-fit: cover;
}

/* ── HERO VERTICAL LAYOUT (EDITORIAL) ── */
.hero-section {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: calc(var(--section-v) + 60px);
  padding-bottom: var(--section-v);
  overflow: hidden; /* Prevent horizontal scroll from Swiper if needed */
}

/* Let the container take edge-to-edge for the gallery but keep max-width for text */
.hero-vertical-layout {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  width: 100%;
}

/* LEVEL 1: TEXT BLOCK */
.hero-header-block {
  text-align: left;
  max-width: 1200px;
}

.hero-title {
  font-family: var(--font-title);
  font-size: clamp(2.2rem, 4.5vw, 3.8rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
}

.hero-body {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  color: var(--grey-300);
  line-height: 1.75;
  margin-bottom: 2rem;
  max-width: 650px;
}

/* LEVEL 2: SWIPER GALLERY */
.hero-gallery-wrapper {
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  position: relative;
  padding: 3rem 0; /* Vertical breathing room */
  /* Body overflow-x:clip handles horizontal clipping */
}

.hero-swiper {
  width: 100%;
  padding-bottom: 0;
  overflow: visible;     /* Let side slides bleed out past container edge */
}

.swiper-slide {
  width: 55%; /* Base width for all slides */
  max-width: 860px;
  transition: transform 0.6s var(--ease-out-expo), opacity 0.6s var(--ease-out-expo);
  opacity: 0.35;
  transform: scale(0.65); /* User requested 65% scale for side images */
}

/* Center slide */
.swiper-slide-active {
  opacity: 1;
  transform: scale(1);
  z-index: 10;
}

/* Always show the immediate neighbours (fix 2) */
.swiper-slide-prev,
.swiper-slide-next {
  opacity: 0.45;
  transform: scale(0.65); /* Keeps 65% proportion */
}

/* Green border + glow on active center slide (fix 7) */
.swiper-slide-active .slide-inner {
  outline: 2px solid var(--rl-green);
  box-shadow: 0 0 0 2px var(--rl-green), 0 20px 60px rgba(127,219,24,0.18), 0 20px 50px rgba(0,0,0,0.5);
}

/* Slide inner handles aspect ratio */
.slide-inner {
  width: 100%;
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

.slide-flip-card {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Flip interact only on active slide */
@media (hover: hover) and (pointer: fine) {
  .swiper-slide-active:hover .slide-flip-card {
    transform: rotateY(180deg);
  }
}
.swiper-slide-active .slide-flip-card.is-flipped {
  transform: rotateY(180deg);
}

.slide-flip-front,
.slide-flip-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--grey-900);
}

.slide-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.8s var(--ease-out-expo);
}

.swiper-slide-active:hover .slide-photo {
  transform: scale(1.05);
}

.slide-overlay-mask {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(8,11,15,0.8) 0%, transparent 60%);
  pointer-events: none;
}

.slide-label {
  position: absolute;
  bottom: 24px;
  left: 32px;
  font-family: var(--font-title);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.05em;
  z-index: 2;
  text-transform: uppercase;
}

/* ── STATIC BADGE OVERLAY (fix 6) — shows on center active slide only ── */
.slide-badge-overlay {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(8,11,15,0.72);
  border: 1px solid rgba(127,219,24,0.35);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 10px;
  padding: 6px 10px;
  /* Hidden on non-active slides */
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

@media (max-width: 600px) {
  .slide-badge-overlay {
    top: 4px;
    left: 4px;
    padding: 6px 10px;
    transform: scale(0.72);
    transform-origin: top left;
  }
}

/* Only show badge on the active (center) slide */
.swiper-slide-active .slide-badge-overlay {
  opacity: 1;
}

.slide-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--rl-green);
  box-shadow: 0 0 8px rgba(127,219,24,0.7);
  flex-shrink: 0;
}

.slide-badge-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.slide-badge-text strong {
  color: var(--rl-green);
  font-family: var(--font-title);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.slide-badge-text span {
  color: var(--grey-300);
  font-size: 0.65rem;
  font-weight: 500;
  line-height: 1.3;
}

/* Flip Back Content */
.slide-flip-back {
  position: relative;
  background: var(--grey-800);
  border: 1px solid var(--grey-700);
  transform: rotateY(180deg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  text-align: center;
}

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

.flip-back-content {
  max-width: 500px;
}

.flip-back-body {
  font-size: clamp(0.9rem, 1.4vw, 1.05rem);
  color: #E3E3E3;
  line-height: 1.75;
  margin-bottom: 1rem;
}

.flip-back-body--secondary {
  font-size: clamp(0.82rem, 1.2vw, 0.95rem);
  color: #B7B8BA;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.flip-back-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--rl-green);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: color 0.3s;
  border-top: 1px solid var(--grey-700);
  padding-top: 1rem;
  margin-top: 0.5rem;
}

.flip-back-cta:hover {
  color: var(--white);
}

@media (max-width: 600px) {
  .swiper-slide {
    width: 96%; 
  }
  .slide-inner {
    padding-bottom: 56.25%; 
  }
  .slide-flip-back {
    padding: 0;
    justify-content: flex-start;
    overflow: hidden; /* No scroll at parent level */
  }
  .flip-back-content {
    overflow-y: auto;
    overflow-x: hidden;
    height: 100%;
    width: 100%;
    max-width: none;
    padding: 8rem 0.5rem 2rem 0.5rem; /* Huge padding top to avoid badge */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
  }
  .flip-back-body {
    font-size: 0.68rem;
    line-height: 1.25;
    margin-bottom: 0.3rem;
    margin-top: 0;
  }
  .flip-back-body--secondary {
    font-size: 0.58rem;
    line-height: 1.25;
    margin-bottom: 0.3rem;
  }
  .flip-back-cta {
    padding-top: 0.3rem;
    margin-top: 0;
    font-size: 0.65rem;
  }
  .slide-flip-back::after {
    content: "Deslice \2193";
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    text-align: center;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--white);
    z-index: 100;
    pointer-events: none;
    animation: pulse-swipe 1.5s infinite alternate ease-in-out;
    background: linear-gradient(to top, var(--grey-800) 40%, transparent);
    padding-top: 20px;
    padding-bottom: 5px;
  }
}

@keyframes pulse-swipe {
  0% { opacity: 0.9; }
  100% { opacity: 0.3; }
}

/* ── HERO NAVIGATION BUTTONS (flanking arrows) ── */
.hero-gallery-nav {
  display: none; /* Old class no longer used */
}

.hero-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  background: rgba(8,11,15,0.85);
  border: 1px solid rgba(127,219,24,0.4);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.25s, border-color 0.25s, transform 0.2s;
  color: var(--white);
  z-index: 20;
}

.hero-nav-btn:hover {
  background: rgba(127,219,24,0.15);
  border-color: var(--rl-green);
  transform: scale(1.1);
}

#hero-prev {
  left: calc(50% - min(27.5%, 430px) - 24px - 1.5rem);
}
#hero-next {
  right: calc(50% - min(27.5%, 430px) - 24px - 1.5rem);
}

@media (max-width: 767px) {
  #hero-prev, #hero-next {
    display: none !important; /* Strictly no arrows as per instruction */
  }
}

/* ── HERO SWIPE HINT (VISUAL ONLY) ── */
.hero-swipe-hint {
  display: none;
  position: absolute;
  bottom: -40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  pointer-events: none;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.swipe-hint-bar {
  width: 80px;
  height: 4px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  position: relative;
  overflow: hidden;
}

.swipe-hint-dot {
  position: absolute;
  top: 0;
  left: -30px;
  width: 30px;
  height: 100%;
  background: var(--rl-green);
  border-radius: 10px;
  animation: swipe-slide 2.5s infinite ease-in-out;
  box-shadow: 0 0 15px rgba(127, 219, 24, 0.6);
}

@keyframes swipe-slide {
  0% { left: -30px; opacity: 0; }
  20% { opacity: 1; }
  80% { opacity: 1; }
  100% { left: 80px; opacity: 0; }
}

.hero-cta-layout {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-cta-group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
}

.hero-benefits {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--grey-300);
}

.benefit-check {
  color: var(--rl-green);
  margin-right: 0.5rem;
}

/* Breakpoints */
@media (max-width: 768px) {
  .hero-vertical-layout {
    gap: 2rem;
  }
  
  .hero-gallery-wrapper {
    padding: 1rem 0;
  }

  .swiper-slide {
    width: 80%; /* More visible on mobile but still not full-width */
  }

  .swiper-slide-prev,
  .swiper-slide-next {
    opacity: 0.4;
    transform: scale(0.8);
  }

  /* Navigation arrows below gallery on mobile */
  .swiper-button-prev.hero-nav-btn {
    left: calc(50% - 56px);
  }
  .swiper-button-next.hero-nav-btn {
    right: calc(50% - 56px);
  }

  .slide-badge-overlay {
    padding: 8px 12px;
  }
  .slide-label {
    font-size: 1rem;
    left: 20px;
    bottom: 20px;
  }

  .slide-flip-back {
    padding: 1.5rem;
  }

  .flip-back-body {
    font-size: 0.9rem;
    margin-bottom: 1rem;
  }

  /* Tap to flip instead of hover on mobile controlled via JS or basic hover */
}


/* ── IDENTIFICATION SECTION ── */
.identification-section {
  background: linear-gradient(180deg, transparent 0%, rgba(13,17,23,0.6) 50%, transparent 100%);
}

.id-questions-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin-bottom: 3rem;
}

.id-question-card {
  background: var(--grey-800);
  border: 1px solid var(--grey-700);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: transform 0.35s var(--ease-out-expo),
              box-shadow 0.35s var(--ease-out-expo),
              border-color 0.3s;
}

.id-question-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.4);
  border-color: rgba(127,219,24,0.3);
}

.question-icon {
  color: var(--rl-green);
  opacity: 0.8;
}

.id-question-card p {
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--grey-100);
  line-height: 1.5;
}

.id-closing {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  max-width: 760px;
}

.id-closing-line {
  flex-shrink: 0;
  width: 3px;
  height: 60px;
  background: linear-gradient(to bottom, var(--rl-green), transparent);
  border-radius: 2px;
}

.id-closing-text {
  font-size: 1.05rem;
  color: var(--grey-300);
  line-height: 1.7;
}

/* ── AUTHORITY SECTION ── */
.authority-section {
  background: rgba(13,17,23,0.3);
}

.authority-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}

.authority-visual {
  position: relative;
}

.authority-img-placeholder {
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.5s var(--ease-out-expo);
}

.authority-img-placeholder:hover {
  transform: scale(1.02);
}

.authority-stat-card {
  position: absolute;
  bottom: 24px;
  right: -24px;
  background: rgba(8,11,15,0.9);
  border: 1px solid var(--grey-700);
  border-left: 3px solid var(--rl-green);
  backdrop-filter: blur(10px);
  padding: 16px 20px;
  border-radius: var(--radius-md);
  min-width: 140px;
}

.stat-number {
  display: block;
  font-family: var(--font-title);
  font-size: 2rem;
  font-weight: 800;
  color: var(--rl-green);
  line-height: 1;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 0.75rem;
  color: var(--grey-400);
  line-height: 1.4;
}

.authority-role {
  font-size: 1.15rem;
  color: var(--rl-green);
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 2rem;
  margin-top: -0.5rem;
  opacity: 1;
  line-height: 1.3;
}

.authority-quote {
  border-left: 2px solid var(--rl-green);
  padding: 1.2rem 0 1.2rem 2rem;
  margin: 3rem 0;
  font-style: italic;
  color: var(--white);
  font-weight: 500;
  line-height: 1.7;
  font-size: 1.2rem;
}

.authority-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.authority-system-tag {
  margin-top: 1.5rem;
}

.system-label {
  display: inline-block;
  background: rgba(127,219,24,0.1);
  border: 1px solid rgba(127,219,24,0.3);
  color: var(--rl-green);
  font-family: var(--font-title);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
}

/* ── SYSTEM SECTION (RESPALDO RL) ── */
.system-section {
  position: relative;
  overflow: visible; /* No cortar la sección */
  padding-bottom: 8rem;
}

/* Contenedor principal de dos columnas */
.system-two-col {
  display: grid !important;
  grid-template-columns: 38% 62% !important; /* Incremento del ~10% en el tamaño de las cards */
  gap: clamp(40px, 5vw, 60px) !important;
  align-items: start !important;
  width: 100% !important;
}

.system-col-left .section-subtitle {
  margin-bottom: 2rem;
  max-width: 100%;
}

.system-col-left .section-subtitle:last-of-type {
  margin-bottom: 1.25rem;
}

/* COLUMNA IZQUIERDA — sticky */
.system-col-left {
  position: sticky;
  top: 120px;
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 0;
  min-width: 0; /* Evitar desbordamiento en grid */
}

.system-col-left .section-label {
  margin-bottom: 1.25rem;
}

.system-col-left .section-title {
  margin-bottom: 0;
}

.system-col-left .system-intro {
  margin-top: 2rem;
  gap: 1.5rem;
}

.system-col-left .section-cta {
  margin-top: 2.5rem;
  justify-content: flex-start; /* CTA alineado a la izquierda */
}

.system-insight-inline {
  margin-top: 1.25rem;
  padding: 1.5rem 0 1.5rem 1.25rem;
  border-left: 2px solid rgba(127, 219, 24, 0.25);
}

.system-insight-inline .insight-text {
  font-size: 1rem;
  line-height: 1.65;
  max-width: 100%;
  text-align: left;
  letter-spacing: 0;
}

.system-insight-inline .insight-hero-line {
  font-size: 1.05rem;
  font-weight: 600;
  display: block;
  margin-bottom: 0.5rem;
  color: var(--grey-100);
}

.system-insight-inline .insight-text strong {
  display: inline;
  font-size: inherit;
  margin-top: 0.25rem;
  letter-spacing: 0;
  text-transform: none;
}

/* COLUMNA DERECHA — columna de cards verticales + línea de proceso */
.system-col-right {
  position: relative;
  min-width: 0; /* CLAVE: evita que el grid se desborde */
}

/* Línea de conexión eliminada para el layout de grid */
.system-col-right::before {
  display: none;
}

/* Process diagram: Grid de 2 columnas - FORZADO */
/* HEADER CENTRADO */
.system-header-centered {
  text-align: center;
  max-width: 900px;
  margin: 0 auto 4rem auto;
}

.system-title-nowrap {
  white-space: nowrap;
}

@media (max-width: 1024px) {
  .system-title-nowrap {
    white-space: normal;
  }
}

/* GRID 2×3 - HORIZONTAL */
.process-diagram-grid6 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-bottom: 4rem;
}

.process-diagram-grid6 .process-card {
  aspect-ratio: 3 / 2;
  perspective: 1200px;
  -webkit-perspective: 1200px;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

@media (max-width: 1100px) {
  .process-diagram-grid6 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .process-diagram-grid6 {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* FOOTER Y CTA CENTRADOS */
.system-footer-block {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 3rem auto;
}

.system-footer-text {
  text-align: center !important;
  font-size: 1.2rem !important;
}

.system-cta-centered {
  display: flex !important;
  justify-content: center !important;
  margin-top: 2rem !important;
}

/* Eliminar nodos del layout vertical anterior */
.process-card::before {
  display: none !important;
}


/* El inner ocupa el espacio completo de la card */
.process-card .process-card-inner {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.process-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.65s var(--ease-out-expo), -webkit-transform 0.65s var(--ease-out-expo);
  transform-style: preserve-3d;
  -webkit-transform-style: preserve-3d;
}

.process-card.is-flipped .process-card-inner,
.process-card-inner.flipped {
  transform: rotateY(180deg);
  -webkit-transform: rotateY(180deg);
}

/* Restore hover behavior exclusively for desktop */
@media (hover: hover) and (pointer: fine) {
  .process-card:hover .process-card-inner {
    transform: rotateY(180deg);
    -webkit-transform: rotateY(180deg);
  }
}

.process-card-front,
.process-card-back {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 4px; /* Bordes más rectos/técnicos */
  padding: 0; /* Imagen a sangre */
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(127,219,24,0.15);
  background: var(--grey-800);
  overflow: hidden;
}

.process-card-front {
  background: linear-gradient(145deg, var(--grey-800) 0%, rgba(13,17,23,0.95) 100%);
}

/* Flip card image layout */
.flip-card-img-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.flip-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Cambiado a cover para sensación editorial/real */
  object-position: center;
  display: block;
  transition: transform 0.8s var(--ease-out-expo);
}

.flip-card-img.pos-top { object-position: top; }
.flip-card-img.pos-bottom { object-position: bottom; }
.flip-card-img.pos-left { object-position: left; }
.flip-card-img.pos-right { object-position: right; }

.flip-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.75) 0%, /* Intensidad reducida */
    rgba(0, 0, 0, 0.1) 60%,
    transparent 100%
  );
}

.flip-card-front-content {
  position: absolute;
  inset: 0; /* Cubre toda la card */
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end; /* Título y hint en la parte inferior */
  padding: 1.25rem 1.25rem 1.25rem 1.25rem;
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.82) 0%,
    rgba(0,0,0,0.3) 50%,
    transparent 100%
  );
}

.process-card-front:hover {
  border-color: rgba(127,219,24,0.2);
}

.process-card-back {
  transform: rotateY(180deg);
  background: linear-gradient(145deg, rgba(127,219,24,0.08) 0%, var(--grey-800) 100%);
  border-color: rgba(127,219,24,0.25);
  justify-content: flex-start;
  gap: 0.75rem;
}

.process-card:hover .process-card-front,
.process-card:focus .process-card-front {
  box-shadow: 0 20px 50px rgba(0,0,0,0.5), 0 0 30px rgba(127,219,24,0.07);
}

.process-number {
  font-family: var(--font-title);
  font-size: 1.85rem;
  font-weight: 900;
  color: var(--rl-green);
  opacity: 0.55;
  line-height: 1;
  position: absolute;
  top: 0.8rem;
  left: 0.8rem;
  z-index: 3;
  pointer-events: none;
  letter-spacing: -0.03em;
  text-shadow: 0 2px 8px rgba(0,0,0,0.8);
}

.process-card-back {
  transform: rotateY(180deg);
  background: linear-gradient(145deg, rgba(127,219,24,0.12) 0%, var(--grey-850) 100%);
  border-color: rgba(127,219,24,0.3);
  justify-content: center;
  padding: 1.5rem 2rem;
  text-align: left;
}

.process-number.back {
  font-size: 1.15rem;
  color: var(--rl-green);
  opacity: 0.4;
  font-weight: 800;
  position: absolute;
  top: auto !important;
  left: auto !important;
  bottom: 0.8rem;
  right: 0.8rem;
  margin: 0;
}

.process-icon {
  color: var(--rl-green);
  margin-bottom: 0.75rem;
}

.process-title {
  font-family: var(--font-title);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.img-zoom-30 {
  transform: scale(1.3);
  transform-origin: center;
  object-fit: cover !important;
}

.card-flip-hint {
  font-size: 0.65rem;
  color: var(--rl-green);
  opacity: 0.8;
  margin-top: 0.5rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.process-card:hover .card-flip-hint {
  color: var(--rl-green);
}

.process-card-back p {
  font-size: 0.85rem;
  color: var(--grey-300);
  line-height: 1.65;
}

.system-insight {
  margin-top: 6rem;
  text-align: center;
  padding: 5rem 2rem;
  background: rgba(127, 219, 24, 0.02);
  border-top: 1px solid rgba(127, 219, 24, 0.1);
  border-bottom: 1px solid rgba(127, 219, 24, 0.1);
  position: relative;
  overflow: hidden;
}

.insight-text {
  font-size: 1.6rem;
  font-weight: 500;
  color: var(--white);
  line-height: 1.4;
  letter-spacing: -0.02em;
  max-width: 850px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.insight-text strong {
  color: var(--rl-green);
  font-weight: 800;
  display: block;
  margin-top: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 1.1rem;
}

.insight-hero-line {
  font-size: 1.85rem; /* Tamaño aumentado */
  font-weight: 600;
  display: block;
  margin-bottom: 1.25rem;
  color: var(--white);
}

/* CTA Refinements */
.section-cta {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
}

.cta-breathing {
  font-size: 1.25rem !important; /* +25% aprox de tamaño general */
  padding: 1.5rem 3rem !important;
  position: relative;
  z-index: 10;
  animation: cta-breathing 2.8s ease-in-out infinite;
  transition: all 0.4s var(--ease-out-expo) !important;
  box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

.cta-breathing:hover {
  transform: scale(1.05) translateY(-5px) !important;
  filter: brightness(1.1);
  box-shadow: 0 20px 60px rgba(127, 219, 24, 0.25);
}

@keyframes cta-breathing {
  0%, 100% { 
    transform: scale(1); 
    box-shadow: 0 10px 40px rgba(0,0,0,0.3), 0 0 0 rgba(127,219,24,0); 
  }
  50% { 
    transform: scale(1.03); 
    box-shadow: 0 20px 50px rgba(0,0,0,0.4), 0 0 25px rgba(127,219,24,0.15); 
  }
}

.system-insight {
  margin-top: 6rem;
  text-align: center;
  padding: 5rem 2rem;
  background: rgba(127, 219, 24, 0.02);
  border-top: 1px solid rgba(127, 219, 24, 0.1);
  border-bottom: 1px solid rgba(127, 219, 24, 0.1);
  position: relative;
  overflow: hidden;
}

.insight-text {
  font-size: 1.6rem;
  font-weight: 500;
  color: var(--white);
  line-height: 1.4;
  letter-spacing: -0.02em;
  max-width: 850px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.insight-text strong {
  color: var(--rl-green);
  font-weight: 800;
  display: block;
  margin-top: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 1.1rem;
}


/* ── ABOUT SECTION ── */
.about-section {
  background: rgba(13,17,23,0.3);
}

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

.about-img-placeholder {
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-lg);
  position: sticky;
  top: 100px;
  transition: transform 0.5s var(--ease-out-expo);
}

.about-img-placeholder:hover {
  transform: scale(1.02);
}

.about-name {
  font-family: var(--font-title);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.25rem;
}

.about-role {
  font-size: 0.85rem;
  color: var(--rl-green);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 1.75rem;
}

.about-body p {
  font-size: 1rem;
  color: var(--grey-300);
  line-height: 1.8;
  margin-bottom: 1.25rem;
}

.about-quote {
  border-left: 2px solid var(--rl-green);
  padding: 1rem 0 1rem 1.5rem;
  margin: 1.5rem 0;
  font-style: italic;
  color: var(--grey-100);
  line-height: 1.7;
}

/* ── PROJECTS SECTION ── */
.projects-section {
  background: linear-gradient(180deg, transparent 0%, rgba(13,17,23,0.5) 50%, transparent 100%);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.project-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 3 / 4;
  background: var(--grey-800);
}

.project-img-wrapper {
  position: absolute;
  inset: 0;
}

.project-img {
  width: 100%;
  height: 100%;
  border-radius: 0;
  border: none;
  transition: transform 0.5s var(--ease-out-expo);
}

.project-card:hover .project-img {
  transform: scale(1.05);
}

.project-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem 1rem 1rem;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, transparent 100%);
  transform: translateY(4px);
  opacity: 0.9;
  transition: transform 0.35s var(--ease-out-expo), opacity 0.35s;
}

.project-card:hover .project-overlay {
  transform: translateY(0);
  opacity: 1;
}

.project-name {
  font-family: var(--font-title);
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.2rem;
}

.project-type {
  font-size: 0.72rem;
  color: var(--rl-green);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.projects-closing {
  text-align: center;
  color: var(--grey-400);
  font-size: 0.95rem;
  font-style: italic;
}

/* ── TESTIMONIALS SECTION ── */
.testimonials-section {
  background: rgba(13,17,23,0.3);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.testimonial-card {
  background: var(--grey-800);
  border: 1px solid var(--grey-700);
  border-radius: var(--radius-md);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: transform 0.35s var(--ease-out-expo),
              box-shadow 0.35s, border-color 0.3s;
  position: relative;
  overflow: hidden;
}

.testimonial-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(to right, var(--rl-green), transparent);
  opacity: 0;
  transition: opacity 0.35s;
}

.testimonial-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.4);
  border-color: rgba(127,219,24,0.2);
}

.testimonial-card:hover::before { opacity: 1; }

.testimonial-quote-mark {
  font-family: var(--font-title);
  font-size: 4rem;
  color: var(--rl-green);
  opacity: 0.3;
  line-height: 1;
  margin-bottom: -1rem;
}

.testimonial-text {
  font-size: 0.95rem;
  color: var(--grey-300);
  line-height: 1.75;
  flex: 1;
}

.testimonial-footer {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding-top: 1rem;
  border-top: 1px solid var(--grey-700);
}

.testimonial-stars {
  color: var(--rl-green);
  font-size: 0.85rem;
  letter-spacing: 2px;
}

.testimonial-author {
  font-size: 0.8rem;
  color: var(--grey-500);
  font-style: italic;
}

/* ── SERVICES SECTION ── */
.services-section {
  background: linear-gradient(180deg, transparent 0%, rgba(13,17,23,0.5) 50%, transparent 100%);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.service-card {
  background: var(--grey-800);
  border: 1px solid var(--grey-700);
  border-radius: var(--radius-md);
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.35s var(--ease-out-expo),
              box-shadow 0.35s, border-color 0.3s;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.4);
  border-color: rgba(127,219,24,0.25);
}

.service-icon {
  color: var(--rl-green);
}

.service-title {
  font-family: var(--font-title);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.3;
}

.service-desc {
  font-size: 0.9rem;
  color: var(--grey-400);
  line-height: 1.7;
  flex: 1;
}

.service-accent-line {
  width: 32px;
  height: 2px;
  background: var(--rl-green);
  border-radius: 2px;
  opacity: 0;
  transition: opacity 0.3s, width 0.4s var(--ease-out-expo);
}

.service-card:hover .service-accent-line {
  opacity: 1;
  width: 60px;
}

/* ── OFFER SECTION ── */
.offer-section {
  background: rgba(127,219,24,0.02);
}

.offer-block {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(40px, 5vw, 70px);
  background: var(--grey-800);
  border: 1px solid var(--grey-700);
  border-radius: var(--radius-lg);
  padding: clamp(40px, 6vw, 60px);
  align-items: stretch;
  position: relative;
  overflow: hidden;
}

.offer-block::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(to right, var(--rl-green), var(--rl-green-dim), transparent);
}

.offer-title {
  font-family: var(--font-title);
  font-size: clamp(1.5rem, 2.5vw, 2.2rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
  letter-spacing: -0.025em;
  margin-bottom: 1.25rem;
}

.offer-body {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.75;
  margin-bottom: 1.5rem;
}

.offer-items {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.offer-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: var(--grey-200);
}

.offer-check {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  border-radius: 50%;
  background: rgba(127,219,24,0.15);
  border: 1px solid rgba(127,219,24,0.3);
  color: var(--rl-green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
}

.offer-guide-card {
  background: linear-gradient(
    180deg,
    rgba(14, 29, 21, 1) 0%,
    rgba(5, 12, 8, 1) 100%
  );
  border: 1px solid rgba(127,219,24,0.45);
  border-radius: var(--radius-md);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  position: relative;
  box-shadow: 0 0 50px rgba(127,219,24,0.12), inset 0 1px 0 rgba(127,219,24,0.1);
  color: #ffffff;
  min-height: 100%;
}

.guide-icon { color: var(--rl-green); }

.guide-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--grey-500);
}

.guide-title {
  font-family: var(--font-title);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--white);
}

.guide-desc {
  font-size: 0.88rem;
  color: #ffffff;
  line-height: 1.7;
}

.guide-badge {
  display: inline-block;
  background: var(--rl-green);
  color: var(--black);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 100px;
  margin-top: 0.5rem;
  box-shadow: 0 0 12px rgba(127,219,24,0.35);
}

.cta-benefit-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: fit-content;
  margin: 24px auto 0 auto;
  gap: 4px;
  color: #ffffff;
  font-size: 0.88rem;
  font-weight: 500;
  line-height: 1.65;
  text-align: left;
  letter-spacing: 0.01em;
}

/* ── TESTIMONIALS SECTION ── */
.testimonials-section {
  background: var(--grey-900);
}
.testimonials-section .section-label {
  color: #7FDB18;
}
.testimonials-section .section-title {
  white-space: nowrap;
  color: #ffffff;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.testimonial-card {
  position: relative;
  overflow: hidden;
  background-color: rgba(0,0,0,0.4);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  background-size: cover;
  background-position: center;
  filter: saturate(0.9) brightness(0.7);
  border-radius: var(--radius-lg);
  padding: 3rem 2.5rem;
  border: 1px solid rgba(255,255,255,0.05);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.testimonial-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to bottom, rgba(0,0,0,1), rgba(0,0,0,1));
  transition: background 0.3s ease;
}

.testimonial-card-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.testimonial-card--arbolada {
  background-image: url('IMAGENES PARA LANDING PAGE/CASA-ARBOLADA.webp');
  background-size: cover;
  background-position: center;
}

.testimonial-card--f21 {
  background-image: url('IMAGENES PARA LANDING PAGE/CASA-F21.webp');
  background-size: cover;
  background-position: center;
}

.testimonial-card--v21 {
  background-image: url('IMAGENES PARA LANDING PAGE/CASA-V16.webp');
  background-size: cover;
  background-position: center;
}

.testimonial-quote-mark {
  background: linear-gradient(135deg, var(--rl-green) 0%, #a2f847 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-family: var(--font-title);
  font-size: 6rem;
  font-weight: 800;
  line-height: 0.5;
  margin-bottom: 2rem;
  opacity: 0.8;
}

.testimonial-quote-main {
  font-family: var(--font-title);
  font-size: clamp(1.1rem, 1.5vw, 1.3rem);
  font-weight: 600;
  color: #ffffff;
  line-height: 1.4;
  margin-bottom: 1rem;
  text-shadow: 0 2px 12px rgba(0,0,0,0.6);
}

.testimonial-quote-sub {
  font-size: 14px;
  color: rgba(255,255,255,0.85);
  line-height: 1.6;
  margin-bottom: 2.5rem;
  flex: 1;
}

.testimonial-footer {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-top: auto;
}

.testimonial-stars {
  font-size: 22px;
  letter-spacing: 6px;
  color: #7FDB18;
  text-shadow: 0 0 10px rgba(127,219,24,0.5);
  margin-bottom: 0.25rem;
}

.testimonial-author {
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.testimonial-card:hover {
  transform: translateY(-5px);
  border-color: rgba(127,219,24,0.3);
}

.testimonial-card:hover::before {
  background: linear-gradient(to bottom, rgba(0,0,0,0.6), rgba(0,0,0,0.75));
}

.testimonials-closing {
  text-align: center;
  margin-top: 3rem;
}

.testimonial-footer-text {
  font-size: 18px;
  color: #ffffff;
  text-align: center;
  margin-top: 40px;
  font-weight: 500;
}

.testimonial-cta {
  margin-top: 40px;
  text-align: center;
}

.cta-respaldo {
  white-space: nowrap;
}

/* ── NEXT SECTION (QUÉ PASA DESPUÉS) ── */
/* ── BLOQUE INTEGRADO PROCESO + CONTACTO ── */
.contact-proceso-section {
  background: linear-gradient(180deg, transparent 0%, rgba(127,219,24,0.03) 50%, transparent 100%);
}

.contact-proceso-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

/* CARD DEL PROCESO (COLUMNA IZQUIERDA) */
.proceso-card {
  background: linear-gradient(180deg, rgba(10, 22, 14, 0.97) 0%, rgba(4, 10, 6, 1) 100%);
  border: 1px solid rgba(127,219,24,0.3);
  border-radius: var(--radius-lg);
  padding: clamp(32px, 5vw, 52px);
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,0.45), 0 0 0 1px rgba(127,219,24,0.08);
}

.proceso-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--rl-green), rgba(127,219,24,0.3));
}

.proceso-card-title {
  font-family: var(--font-title);
  font-size: clamp(1.25rem, 2vw, 1.6rem);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.75rem;
  margin-top: 0.5rem;
  line-height: 1.35;
}

.proceso-intro {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.85);
  margin-bottom: 2rem;
  font-weight: 500;
}

/* Adaptar timeline dentro del card */
.proceso-card .timeline {
  max-width: 100%;
  margin: 0;
}

.proceso-card .timeline-content p {
  color: rgba(255,255,255,0.65);
}

.timeline {
  max-width: 700px;
  margin: 0 auto;
  position: relative;
}

.timeline-track {
  position: absolute;
  left: 24px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, var(--rl-green), rgba(127,219,24,0.1));
  transform-origin: top;
}

.timeline-item {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  margin-bottom: 2.5rem;
  padding-left: 0;
}

.timeline-item:last-child { margin-bottom: 0; }

.timeline-node {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: 50%;
  background: #08120b; /* Color sólido oscuro para ocultar la línea de fondo */
  border: 2px solid var(--rl-green);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  transition: background 0.3s, box-shadow 0.3s;
}

.timeline-item:hover .timeline-node {
  background: var(--rl-green);
  box-shadow: 0 0 20px rgba(127,219,24,0.35);
}

.timeline-node span {
  font-family: var(--font-title);
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--rl-green);
  transition: opacity 0.3s;
}

.timeline-item:hover .timeline-node span {
  opacity: 0;
}

.timeline-content {
  flex: 1;
  padding-top: 10px;
}

.timeline-title {
  font-family: var(--font-title);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.5rem;
}

.timeline-content p {
  font-size: 0.95rem;
  color: var(--grey-400);
  line-height: 1.7;
}

/* COLUMNA FORMULARIO */
.form-col {
  display: flex;
  flex-direction: column;
}

.form-col .form-wrapper {
  margin: 0;
  max-width: 100%;
}

/* ── FORM SECTION (legacy) ── */
.form-section {
  background: linear-gradient(180deg, transparent 0%, rgba(127,219,24,0.03) 50%, transparent 100%);
}

.form-wrapper {
  max-width: 600px;
  margin: 0 auto;
  background: var(--grey-800);
  border: 1px solid var(--grey-700);
  border-radius: var(--radius-lg);
  padding: clamp(40px, 6vw, 60px);
  position: relative;
  overflow: hidden;
}

.form-wrapper::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--rl-green);
}

.form-header {
  margin-bottom: 2.5rem;
}

.form-title {
  font-family: var(--font-title);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.5rem;
}

.form-subtitle {
  font-size: 1rem;
  color: var(--rl-green);
  margin-bottom: 1rem;
  font-weight: 500;
}

.form-body {
  font-size: 0.9rem;
  color: var(--grey-400);
  line-height: 1.7;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--grey-200);
  letter-spacing: 0.03em;
}

.form-input {
  background: rgba(13,17,23,0.6);
  border: 1px solid var(--grey-600);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color 0.25s, box-shadow 0.25s;
  outline: none;
  width: 100%;
}

.form-input::placeholder { color: var(--grey-500); }

.form-input:focus {
  border-color: var(--rl-green);
  box-shadow: 0 0 0 3px rgba(127,219,24,0.12);
}

.form-input.error {
  border-color: #e05252;
}

.radio-group {
  display: flex;
  gap: 1rem;
}

.radio-option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}

.radio-option input[type="radio"] {
  display: none;
}

.radio-custom {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--grey-600);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.25s;
  flex-shrink: 0;
}

.radio-custom::after {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--rl-green);
  opacity: 0;
  transition: opacity 0.2s;
}

.radio-option input[type="radio"]:checked + .radio-custom {
  border-color: var(--rl-green);
}

.radio-option input[type="radio"]:checked + .radio-custom::after {
  opacity: 1;
}

.radio-label {
  font-size: 0.9rem;
  color: var(--grey-200);
}

.field-error {
  font-size: 0.78rem;
  color: #e05252;
  min-height: 1rem;
  transition: opacity 0.2s;
}

.form-trust-line {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  color: var(--grey-500);
  text-align: center;
  justify-content: center;
  margin-top: 0.25rem;
}

/* ── FORM BUTTON UPGRADE ── */
#submit-btn {
  padding: 1.25rem 2.5rem;
  font-size: 1.15rem;
  letter-spacing: 0.05em;
  animation: btnPulseGlow 2.5s infinite;
  margin-top: 1rem;
}

@keyframes btnPulseGlow {
  0%   { box-shadow: 0 0 0 0 rgba(127,219,24,0.5); }
  70%  { box-shadow: 0 0 0 15px rgba(127,219,24,0); }
  100% { box-shadow: 0 0 0 0 rgba(127,219,24,0); }
}

/* ── MODAL ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5,7,9,0.88);
  backdrop-filter: blur(12px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  animation: fadeIn 0.35s var(--ease-out-expo);
}

.modal-overlay[hidden] {
  display: none;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-box {
  background: var(--grey-800);
  border: 1px solid var(--grey-700);
  border-top: 3px solid var(--rl-green);
  border-radius: var(--radius-lg);
  padding: clamp(32px, 5vw, 56px);
  max-width: 500px;
  width: 100%;
  text-align: center;
  animation: slideUp 0.4s var(--ease-out-expo);
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.modal-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(127,219,24,0.1);
  border: 2px solid rgba(127,219,24,0.3);
  color: var(--rl-green);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.modal-title {
  font-family: var(--font-title);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 1rem;
}

.modal-body {
  font-size: 0.95rem;
  color: var(--grey-400);
  line-height: 1.75;
  margin-bottom: 2rem;
}

/* ── FOOTER ── */
.site-footer {
  border-top: 1px solid var(--grey-700);
  padding: 3rem 0;
  background: var(--grey-900);
  position: relative;
  z-index: 1;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  text-align: center;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-tagline {
  font-size: 0.85rem;
  color: var(--grey-500);
}

.footer-copy {
  font-size: 0.78rem;
  color: var(--grey-600);
}

/* ── SPINNER ── */
.spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(8,11,15,0.3);
  border-top-color: var(--black);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

.hidden { display: none !important; }

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ── REVEAL ANIMATIONS ── */
.reveal-up {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.7s var(--ease-out-expo),
    transform 0.7s var(--ease-out-expo);
  transition-delay: var(--delay, 0ms);
}

.reveal-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-30px);
  transition:
    opacity 0.7s var(--ease-out-expo),
    transform 0.7s var(--ease-out-expo);
  transition-delay: var(--delay, 0ms);
}

.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(30px);
  transition:
    opacity 0.7s var(--ease-out-expo),
    transform 0.7s var(--ease-out-expo);
  transition-delay: var(--delay, 0ms);
}

.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* ── RESPONSIVE ── */
@media (max-width: 1100px) {
  .process-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .projects-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    order: -1;
  }

  .hero-img-placeholder {
    aspect-ratio: 16/9;
    max-height: 340px;
  }

  .hero-badge-float {
    left: 0;
    bottom: -14px;
  }

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

  .authority-stat-card {
    right: 16px;
    bottom: 16px;
  }

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

  .about-img-placeholder {
    position: static;
    aspect-ratio: 16/9;
  }

  .offer-block {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 0; right: -100%;
    width: min(320px, 80vw);
    height: 100vh;
    background: rgba(8,11,15,0.96);
    backdrop-filter: blur(20px);
    border-left: 1px solid var(--grey-700);
    flex-direction: column;
    align-items: flex-start;
    padding: 100px 2rem 2rem;
    gap: 1.5rem;
    transition: right 0.4s var(--ease-out-expo);
    z-index: 99;
  }

  .nav-links.open {
    right: 0;
  }

  .nav-links a {
    font-size: 1rem;
  }

  .nav-hamburger {
    display: flex;
    z-index: 101;
  }

  .nav-hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-hamburger.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
  .nav-hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .id-questions-grid {
    grid-template-columns: 1fr;
  }

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

  .process-card {
    height: 260px;
  }

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

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

  .contact-proceso-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .system-insight {
    flex-direction: column;
    gap: 1rem;
  }

  .insight-line {
    width: 80px;
    height: 1px;
  }

  .insight-text {
    white-space: normal;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .process-grid {
    grid-template-columns: 1fr;
  }

  .process-card {
    height: 280px; /* Mantener altura suficiente para el flip */
  }

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

  .hero-cta-group { align-items: stretch; }
  .btn-primary { justify-content: center; }
}

/* ================================================================
   DESIGN OVERHAUL — ARCHITECTURAL IDENTITY UPGRADE
   ================================================================ */

/* ── CONTAINER UPGRADE ── */
.container {
  max-width: 1280px;
}

/* ── NAV ACCENT LINKS ── */
.nav-accent {
  color: var(--rl-green) !important;
  font-weight: 600 !important;
}

.nav-accent::after {
  background: var(--rl-green) !important;
}

.nav-links a {
  position: relative;
  overflow: hidden;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--rl-green);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease-out-expo);
}

.nav-links a:hover::after,
.nav-accent:hover::after {
  transform: scaleX(1) !important;
  width: 100% !important;
}

/* Override the old width-based underline */
.nav-links a:hover { color: var(--white); }

/* ── BETTER BUTTON GLOW ── */
.btn-primary {
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(255,255,255,0.15) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

.btn-primary:hover::before {
  opacity: 1;
}

.btn-primary:hover {
  box-shadow: 0 8px 40px rgba(127,219,24,0.5), 0 0 0 1px rgba(127,219,24,0.2);
}

/* ── HERO MICRO ANIMATION ── */
.hero-img-real {
  will-change: transform;
  transition: transform 0.5s var(--ease-out-expo);
}

.hero-img-real:hover {
  transform: scale(1.02) translateY(0) !important;
}

/* ── TYPOGRAPHY COLOR HIERARCHY UPGRADE ── */
:root {
  --text-title:     #ffffff;
  --text-subtitle:  #e3e3e3;
  --text-body:      #b7b8ba;
  --text-secondary: #6e6f6d;
}

.section-title    { color: var(--text-title); }
.section-subtitle { color: var(--text-subtitle); line-height: 1.7; }
.body-text        { color: var(--text-body); line-height: 1.7; }

.hero-subtitle { color: var(--text-subtitle); }
.hero-body     { color: var(--text-body); font-size: 1rem; line-height: 1.7; }

.authority-quote { color: var(--text-subtitle); }
.about-quote     { color: var(--text-subtitle); }

/* Section label tick line */
.section-label::before { background: var(--rl-green); }

/* ── PROCESS DIAGRAM (RESPALDO RL) ── */
.process-diagram {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  margin-bottom: 4rem;
}

/* Connecting horizontal line */
.process-connector {
  position: absolute;
  top: 38px; /* aligns with center of number badge */
  left: calc(10% + 20px);
  right: calc(10% + 20px);
  height: 1px;
  background: linear-gradient(
    to right,
    var(--rl-green) 0%,
    rgba(127,219,24,0.6) 50%,
    rgba(127,219,24,0.15) 100%
  );
  z-index: 0;
}

.process-step {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 1rem 2.5rem;
  cursor: default;
}

.step-number-badge {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--grey-900);
  border: 2px solid var(--rl-green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-title);
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--rl-green);
  letter-spacing: 0.05em;
  margin-bottom: 1.25rem;
  flex-shrink: 0;
  transition: background 0.3s, box-shadow 0.3s;
  position: relative;
  z-index: 2;
}

.process-step:hover .step-number-badge {
  background: var(--rl-green);
  color: var(--black);
  box-shadow: 0 0 20px rgba(127,219,24,0.4);
}

.step-icon {
  color: var(--rl-green);
  margin-bottom: 1rem;
  opacity: 0.7;
  transition: opacity 0.3s;
}

.process-step:hover .step-icon { opacity: 1; }

.step-title {
  font-family: var(--font-title);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-title);
  line-height: 1.3;
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
}

.step-desc {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 180px;
  margin: 0 auto;
  transition: color 0.3s;
}

.process-step:hover .step-desc {
  color: var(--text-body);
}

/* Step card background on hover */
.process-step::before {
  content: '';
  position: absolute;
  inset: -8px -4px;
  border-radius: var(--radius-md);
  background: rgba(127,219,24,0.03);
  border: 1px solid transparent;
  transition: background 0.35s, border-color 0.35s;
  pointer-events: none;
}

.process-step:hover::before {
  background: rgba(127,219,24,0.06);
  border-color: rgba(127,219,24,0.12);
}

/* ── ARCHITECTURAL DECORATION — FLOOR PLAN FRAGMENT ── */
.system-section {
  position: relative;
  overflow: hidden;
}

.system-section::before {
  content: '';
  position: absolute;
  top: 0;
  right: -60px;
  width: 480px;
  height: 480px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='480' height='480' viewBox='0 0 480 480'%3E%3Crect x='60' y='60' width='360' height='260' fill='none' stroke='%237fdb18' stroke-width='0.8' opacity='0.5'/%3E%3Crect x='60' y='60' width='180' height='120' fill='none' stroke='%237fdb18' stroke-width='0.5' opacity='0.4'/%3E%3Crect x='240' y='60' width='180' height='120' fill='none' stroke='%237fdb18' stroke-width='0.5' opacity='0.4'/%3E%3Crect x='60' y='180' width='120' height='140' fill='none' stroke='%237fdb18' stroke-width='0.5' opacity='0.4'/%3E%3Crect x='180' y='180' width='240' height='140' fill='none' stroke='%237fdb18' stroke-width='0.5' opacity='0.4'/%3E%3Cline x1='150' y1='60' x2='150' y2='320' stroke='%237fdb18' stroke-width='0.4' opacity='0.3'/%3E%3Cline x1='60' y1='180' x2='420' y2='180' stroke='%237fdb18' stroke-width='0.4' opacity='0.3'/%3E%3Ccircle cx='60' cy='60' r='3' fill='none' stroke='%237fdb18' stroke-width='0.6' opacity='0.5'/%3E%3Ccircle cx='420' cy='60' r='3' fill='none' stroke='%237fdb18' stroke-width='0.6' opacity='0.5'/%3E%3Ccircle cx='420' cy='320' r='3' fill='none' stroke='%237fdb18' stroke-width='0.6' opacity='0.5'/%3E%3Ccircle cx='60' cy='320' r='3' fill='none' stroke='%237fdb18' stroke-width='0.6' opacity='0.5'/%3E%3Cline x1='420' y1='370' x2='480' y2='370' stroke='%237fdb18' stroke-width='0.4' opacity='0.25'/%3E%3Cline x1='430' y1='360' x2='430' y2='480' stroke='%237fdb18' stroke-width='0.4' opacity='0.25'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  opacity: 0.045;
  pointer-events: none;
  z-index: 0;
}

/* ── ARCHITECTURAL DECORATION — SERVICES SECTION ── */
.services-section {
  position: relative;
  overflow: hidden;
}

.services-section::after {
  content: '';
  position: absolute;
  bottom: -30px;
  left: -40px;
  width: 380px;
  height: 380px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='380' height='380' viewBox='0 0 380 380'%3E%3Crect x='40' y='40' width='300' height='300' fill='none' stroke='%237fdb18' stroke-width='0.7' opacity='0.5'/%3E%3Crect x='40' y='40' width='300' height='300' fill='none' stroke='%237fdb18' stroke-width='0.3' stroke-dasharray='4 8' opacity='0.3'/%3E%3Cline x1='190' y1='40' x2='190' y2='340' stroke='%237fdb18' stroke-width='0.4' opacity='0.3'/%3E%3Cline x1='40' y1='190' x2='340' y2='190' stroke='%237fdb18' stroke-width='0.4' opacity='0.3'/%3E%3Ccircle cx='190' cy='190' r='30' fill='none' stroke='%237fdb18' stroke-width='0.5' opacity='0.2'/%3E%3Ccircle cx='190' cy='190' r='4' fill='%237fdb18' opacity='0.3'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  opacity: 0.04;
  pointer-events: none;
  z-index: 0;
}

/* ── ENHANCED CARD HOVER MICROINTERACTIONS ── */
.id-question-card {
  transition: transform 0.35s var(--ease-out-expo),
              box-shadow 0.35s var(--ease-out-expo),
              border-color 0.3s;
}

.id-question-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.5), 0 0 0 1px rgba(127,219,24,0.15);
  border-color: rgba(127,219,24,0.3);
}

.service-card {
  transition: transform 0.35s var(--ease-out-expo),
              box-shadow 0.35s var(--ease-out-expo),
              border-color 0.3s;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.5), 0 0 0 1px rgba(127,219,24,0.15);
  border-color: rgba(127,219,24,0.3);
}

.testimonial-card {
  transition: transform 0.35s var(--ease-out-expo),
              box-shadow 0.35s var(--ease-out-expo),
              border-color 0.3s;
}

.testimonial-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
  border-color: rgba(127,219,24,0.2);
}

/* ── PROJECT CARD HOVER UPGRADE ── */
.project-card:hover .project-photo {
  transform: scale(1.05);
}

.project-card {
  transition: transform 0.35s var(--ease-out-expo),
              box-shadow 0.35s var(--ease-out-expo);
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.6);
}

/* ── PHOTO HOVER EFFECTS ── */
.authority-img-real:hover .authority-photo,
.about-img-real:hover .about-photo {
  transform: scale(1.03);
}

.authority-photo,
.about-photo {
  transition: transform 0.6s var(--ease-out-expo);
}

/* ── MOBILE NAV — 6 LINK HAMBURGER UPGRADE ── */
@media (max-width: 900px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: min(340px, 85vw);
    height: 100vh;
    background: rgba(8,11,15,0.97);
    backdrop-filter: blur(20px);
    border-left: 1px solid var(--grey-700);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
    padding: 2rem 2.5rem;
    transition: right 0.4s var(--ease-out-expo);
    z-index: 99;
  }

  .nav-links.open { right: 0; }

  .nav-links li {
    width: 100%;
    border-bottom: 1px solid rgba(255,255,255,0.05);
  }

  .nav-links li:last-child { border-bottom: none; }

  .nav-links a {
    display: block;
    padding: 1.1rem 0;
    font-size: 1.05rem;
    color: var(--grey-200);
  }

  .nav-accent {
    color: var(--rl-green) !important;
  }

  .nav-cta {
    background: transparent !important;
    color: var(--rl-green) !important;
    padding: 1.1rem 0 !important;
    border-radius: 0 !important;
    font-size: 1.05rem !important;
    border: none !important;
    box-shadow: none !important;
  }

  .nav-hamburger { display: flex; }
}

/* ── PROCESS DIAGRAM — TABLET RESPONSIVE ── */
@media (max-width: 900px) {
  .process-diagram {
    grid-template-columns: repeat(3, 1fr);
    row-gap: 2rem;
  }

  .process-connector {
    display: none;
  }
}

@media (max-width: 600px) {
  .process-diagram {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 400px) {
  .process-diagram {
    grid-template-columns: 1fr;
  }
}

/* ── SECTION BACKGROUND RHYTHM ── */
.identification-section {
  background: linear-gradient(180deg, transparent 0%, rgba(13,17,23,0.5) 50%, transparent 100%);
}

.system-section {
  background: rgba(13,17,23,0.25);
}

.about-section {
  background: linear-gradient(180deg, transparent 0%, rgba(13,17,23,0.35) 50%, transparent 100%);
}

/* ── FORM FOCUS GREEN GLOW ── */
.form-input:focus,
.form-input:focus-visible {
  border-color: var(--rl-green);
  box-shadow: 0 0 0 3px rgba(127,219,24,0.12), 0 4px 16px rgba(0,0,0,0.2);
  outline: none;
}

/* ── SMOOTH SCROLL REVEAL UPGRADE ── */
.reveal-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease-out-expo),
              transform 0.7s var(--ease-out-expo);
  transition-delay: var(--delay, 0ms);
}

.reveal-up.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ── SECTION LABEL UPGRADE ── */
.section-label {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
}

/* ── TIMELINE UPGRADE ── */
.timeline-node {
  background: transparent;
  border: 2px solid var(--rl-green);
  color: var(--rl-green);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-title);
  font-size: 0.78rem;
  font-weight: 800;
  flex-shrink: 0;
  box-shadow: 0 0 16px rgba(127,219,24,0.1);
  transition: all 0.35s var(--ease-out-expo);
  z-index: 2;
  position: relative;
}

.timeline-node span {
  transition: opacity 0.3s ease;
}

.timeline-item:hover .timeline-node,
.timeline-node:hover {
  background: var(--rl-green);
  border-color: var(--rl-green);
  box-shadow: 0 0 28px rgba(127,219,24,0.5);
  transform: scale(1.1);
}

.timeline-item:hover .timeline-node span,
.timeline-node:hover span {
  opacity: 0;
}

.timeline-title {
  color: var(--text-title);
  margin-bottom: 0.4rem;
}

.timeline-content p {
  color: var(--text-body);
  font-size: 0.9rem;
  line-height: 1.7;
}

/* ── INSIGHT TEXT UPGRADE ── */
.insight-text {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text-subtitle);
  letter-spacing: -0.01em;
}

.insight-text em {
  color: var(--rl-green);
  font-style: normal;
  font-weight: 700;
}

/* ── FOOTER UPGRADE ── */
.site-footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--grey-800);
  padding: 3rem 0;
  background: rgba(5,7,9,0.8);
}

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

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-tagline {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.footer-copy {
  font-size: 0.78rem;
  color: var(--text-secondary);
  opacity: 0.7;
}

/* ================================================================
   HERO FLIP CARD & LOGO - NEW INTERACTION LAYER
   ================================================================ */

/* ── NAV LOGO IMAGE ── */
.nav-logo-img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
}

.nav-logo {
  gap: 0.55rem;
}

/* ── HERO BENEFITS — two green checkmark lines ── */
.hero-benefits {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-top: 0.5rem;
}

.hero-benefits li {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.92rem;
  color: var(--text-body);
  font-weight: 500;
  line-height: 1.4;
}

.benefit-check {
  color: var(--rl-green);
  font-size: 1rem;
  font-weight: 700;
  flex-shrink: 0;
  line-height: 1;
}


/* ============================================================
   IDENTIFICATION SECTION — REDISEÑO EMOCIONAL
   ============================================================ */

.identification-section {
  background: linear-gradient(180deg,
    rgba(5,7,9,0) 0%,
    rgba(8,11,15,0.7) 30%,
    rgba(8,11,15,0.7) 70%,
    rgba(5,7,9,0) 100%
  );
}

/* ── Header ── */
.id-header {
  max-width: 1200px;
  margin-bottom: 1.5rem;
}

.id-headline {
  font-family: var(--font-title);
  font-size: clamp(1.8rem, 4vw, 2.7rem);
  font-weight: 700;
  color: var(--grey-200);
  line-height: 1.3;
  letter-spacing: -0.025em;
  margin-top: 1rem;
}

.id-headline-strong {
  color: var(--white);
  font-weight: 900;
  display: block;
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  line-height: 1.25;
  letter-spacing: -0.04em;
  margin-top: 0.5rem;
  white-space: nowrap;
}

@media (max-width: 768px) {
  .id-headline-strong {
    white-space: normal;
  }
}

/* ── Subtexto ── */
.id-subtext {
  font-size: 1.1rem;
  color: var(--grey-400);
  font-style: italic;
  margin-bottom: 3rem;
  font-family: var(--font-body);
  letter-spacing: 0.01em;
}

/* ── Cards Grid Vertical ── */
.id-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-bottom: 4rem;
}

.id-v-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--grey-900);
  border: 1px solid var(--grey-700);
  display: flex;
  flex-direction: column;
  transition: transform 0.4s var(--ease-out-expo),
              border-color 0.35s,
              box-shadow 0.4s;
  cursor: default;
}

.id-v-card:hover {
  transform: translateY(-8px);
  border-color: rgba(127,219,24,0.5);
  box-shadow: 0 26px 65px rgba(0,0,0,0.7), 0 0 0 1px rgba(127,219,24,0.45);
}

/* Image area — aspect 4:5 */
.id-v-card-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  flex-shrink: 0;
  margin-bottom: 0.5rem; /* space between img and content */
}

.id-v-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform 0.6s var(--ease-out-expo);
  filter: saturate(0.6) brightness(0.85);
}

.id-v-card:hover .id-v-card-img {
  transform: scale(1.03); /* subtle */
}

/* Dark overlay para coherencia visual */
.id-v-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(8,11,15,0.2) 0%,
    rgba(8,11,15,0.7) 100%
  );
  pointer-events: none;
}

/* Card body — texto de la pregunta */
.id-v-card-body {
  padding: 1rem 1.25rem 1.75rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
}

.id-card-kicker {
  font-size: 0.72rem;
  color: var(--rl-green);
  letter-spacing: 0.15em;
  font-weight: 800;
  text-transform: uppercase;
  display: block;
  margin-top: 0.5rem;
  margin-bottom: 1.25rem;
  font-family: var(--font-title);
  position: relative;
  padding-top: 0.75rem;
}

.id-card-kicker::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 24px;
  height: 1px;
  background: rgba(127,219,24,0.4);
}

.id-v-card-question {
  font-family: var(--font-title);
  font-size: clamp(0.92rem, 1.2vw, 1.05rem);
  font-weight: 600;
  color: var(--white);
  line-height: 1.5;
  letter-spacing: -0.01em;
}



/* ── Bloque de cierre emocional ── */
.id-emotional-close {
  max-width: 780px;
  margin: 0 auto 3rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.id-emotional-lv1 {
  font-family: var(--font-title);
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  color: var(--grey-300);
  line-height: 1.7;
  font-weight: 400;
}

.id-emotional-lv2 {
  font-family: var(--font-title);
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  color: var(--grey-100);
  line-height: 1.5;
  font-weight: 600;
  margin-top: 0.5rem;
}

.id-emotional-lv3 {
  font-family: var(--font-title);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: var(--white);
  line-height: 1.15;
  font-weight: 900;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  margin-top: 2rem;
  margin-bottom: 1rem;
  text-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

/* ── Bloque puente hacia RESPALDO RL ── */
.id-bridge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  padding: 3rem 0 2rem;
  position: relative;
}

.id-transition-hint {
  font-family: var(--font-title);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--grey-400);
  opacity: 0.35;
  margin-top: -1.5rem;
  margin-bottom: -0.5rem;
}

.id-bridge-line {
  width: 2px;
  height: 200px;
  background: linear-gradient(to bottom, transparent, var(--rl-green) 50%, transparent);
  opacity: 0.8;
  transform-origin: top;
  margin-top: -0.5rem;
  animation: bg-pulse-line 4s ease-in-out infinite;
}

@keyframes bg-pulse-line {
  0%, 100% { opacity: 0.4; transform: scaleY(0.85); }
  50% { opacity: 1; transform: scaleY(1); }
}

.id-bridge-text {
  font-family: var(--font-title);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  font-weight: 500;
  color: var(--grey-300);
  text-align: center;
  line-height: 1.65;
  max-width: 650px;
}

.id-bridge-strong {
  display: block;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--white);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-top: 0.75rem;
  line-height: 1.3;
}

.id-bridge-brand {
  color: var(--rl-green);
  font-weight: 900;
  letter-spacing: 0.02em;
}

.id-bridge-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--rl-green);
  font-family: var(--font-title);
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.04em;
  border: 1px solid rgba(127,219,24,0.3);
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  transition: background 0.25s, border-color 0.25s, color 0.25s, transform 0.25s, box-shadow 0.25s;
}

.id-bridge-cta:hover {
  background: rgba(127,219,24,0.1);
  border-color: var(--rl-green);
  transform: translateX(4px);
  box-shadow: 0 6px 24px rgba(127,219,24,0.18);
}

/* Floating animation isolated to the bridge */
.bounce-subtle {
  animation: floating-subtle 4s ease-in-out infinite;
}

@keyframes floating-subtle {
  0% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
  100% { transform: translateY(0); }
}

@keyframes bridge-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(127,219,24,0); }
  50%       { box-shadow: 0 0 0 8px rgba(127,219,24,0.08); }
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .id-cards-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
}

@media (max-width: 600px) {
  .id-cards-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
  }

  .id-v-card-body {
    padding: 1rem 0.9rem 1.25rem;
  }

  .id-v-card-question {
    font-size: 0.82rem;
  }

  .id-emotional-close {
    text-align: left;
  }

  .authority-actions {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }


  .id-bridge {
    align-items: flex-start;
  }

  .id-bridge-text {
    text-align: left;
  }

  .id-bridge-cta {
    align-self: flex-start;
  }
}

/* ── GLOBAL MODAL REINFORCEMENT ── */
.open {
  display: flex !important;
  opacity: 1 !important;
  visibility: visible !important;
}

/* ── BIO MODAL ── */
.bio-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(8, 11, 15, 0.95);
  backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s var(--ease-out-expo), visibility 0.4s;
}

.bio-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.bio-modal-container {
  background: var(--grey-900);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-md);
  width: 100%;
  max-width: 650px;
  max-height: 90vh;
  position: relative;
  display: flex;
  flex-direction: column;
  transform: scale(0.95);
  transition: transform 0.4s var(--ease-out-expo);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
  overflow: hidden;
}

.bio-modal-overlay.active .bio-modal-container {
  transform: scale(1);
}

.bio-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(8, 11, 15, 0.5);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--white);
  font-size: 1.5rem;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  transition: background 0.2s, color 0.2s;
}

.bio-modal-close:hover {
  background: var(--rl-green);
  color: var(--black-deep);
  border-color: var(--rl-green);
}

.bio-modal-scroll {
  overflow-y: auto;
  padding: 0;
}

.bio-modal-img {
  width: 100%;
  height: auto;
  max-height: 480px;
  object-fit: cover;
  object-position: center 25%;
  display: block;
}

.bio-modal-content {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.bio-modal-content p {
  color: var(--grey-300);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.75;
}

.bio-modal-content p.bio-modal-highlight {
  font-family: var(--font-title);
  font-size: clamp(1.25rem, 3vw, 1.5rem);
  color: var(--white);
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: -0.01em;
  margin: 2rem 0;
  border-left: 2px solid var(--rl-green);
  padding-left: 1.5rem;
}

.bio-modal-content p.bio-modal-bold-white {
  color: var(--white);
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1.15rem;
  margin-top: 1rem;
}

.bio-modal-content p.bio-modal-conviction {
  font-weight: 600;
  color: var(--grey-100);
  font-size: 1.05rem;
  font-family: var(--font-body);
}

.bio-modal-content p.bio-modal-commitment {
  font-weight: 500;
  color: var(--grey-200);
  font-family: var(--font-body);
}

.bio-modal-content div.bio-modal-manifesto {
  font-family: var(--font-title);
  font-size: clamp(1.2rem, 3vw, 1.4rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.5;
  letter-spacing: -0.01em;
  margin: 3.5rem auto 1.5rem;
  max-width: 90%;
  text-align: center;
}

@media (max-width: 600px) {
  .bio-modal-content {
    padding: 1.5rem;
    gap: 1.25rem;
  }
}

/* ── GM MODAL — ARCHITECTURAL EDITION ── */
.gm-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: stretch;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
  overflow: hidden;
}

.gm-modal.active {
  opacity: 1;
  visibility: visible;
}

/* ── OVERLAY ── */
.gm-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(8, 11, 15, 0.45) !important; /* Truly transparent/translucent */
  backdrop-filter: blur(14px) !important;
  -webkit-backdrop-filter: blur(14px) !important;
}

/* ── CONTAINER ── */
.gm-modal__container {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  z-index: 2;
}

/* ── TOP BAR ── */
.gm-modal__topbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 20px 32px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  flex-shrink: 0;
}

/* ── CLOSE BUTTON ── */
.gm-modal__close {
  background: none;
  border: 1px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.6);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
  transition: border-color 0.2s, color 0.2s;
  position: absolute;
  top: 20px;
  right: 32px;
}

.gm-modal__close:hover {
  border-color: #7FDB18;
  color: #7FDB18;
}

/* ── MAIN IMAGE AREA ── */
.gm-modal__main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 80px;
  min-height: 0;
  overflow: hidden;
}

.gm-modal__viewer {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 0;
}

.gm-modal__img-wrapper {
  position: relative;
  flex: 1;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
}

.gm-modal__img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.gm-modal__img.loaded {
  opacity: 1;
}

/* ── NAVIGATION ARROWS (Estilo Hero) ── */
.gm-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  background: rgba(8,11,15,0.85);
  border: 1px solid rgba(127,219,24,0.4);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.25s, border-color 0.25s, transform 0.2s;
  color: var(--white);
  z-index: 20;
}

.gm-nav-btn:hover {
  background: rgba(127,219,24,0.15);
  border-color: var(--rl-green);
  transform: scale(1.1);
}

.gm-modal__nav--prev { left: 24px; }
.gm-modal__nav--next { right: 24px; }

@media (max-width: 767px) {
  .gm-nav-btn {
    width: 36px;
    height: 36px;
  }
}

/* ── INFO BLOCK (INFERIOR) ── */
.gm-modal__caption {
  width: 100%;
  flex-shrink: 0;
  padding: 0 80px 28px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

/* Green accent line above caption */
.gm-modal__caption::before {
  content: '';
  position: absolute;
  left: 80px;
  right: 80px;
  height: 1px;
  background: linear-gradient(90deg, #7FDB18 0%, rgba(127,219,24,0.15) 60%, transparent 100%);
  transform: translateY(-28px);
}

.gm-modal__caption-left {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.gm-modal__title {
  font-family: var(--font-title, 'Inter', sans-serif);
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  font-weight: 400;
  margin: 0;
}

.gm-modal__desc {
  font-family: var(--font-title, 'Inter', sans-serif);
  font-size: clamp(1rem, 1.8vw, 1.25rem);
  font-weight: 500;
  color: #ffffff;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0;
}

.gm-modal__counter {
  font-family: var(--font-body, 'Inter', sans-serif);
  font-size: 0.7rem;
  color: #7FDB18;
  letter-spacing: 0.2em;
  font-weight: 400;
  white-space: nowrap;
  align-self: flex-end;
  padding-bottom: 2px;
}

/* ── LOADER ── */
.gm-modal__loader {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 28px;
  height: 28px;
  border: 1px solid rgba(255,255,255,0.08);
  border-top-color: #7FDB18;
  border-radius: 50%;
  animation: gm-spin 0.7s linear infinite;
  animation: gmLoader 0.7s linear infinite;
  display: none;
}

.gm-modal__loader.active { display: block; }

@keyframes gmLoader {
  0% { transform: translate(-50%, -50%) rotate(0deg); }
  100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* ── SUBTITLE Y CTA CARD ── */
.section-subtitle {
  max-width: 600px;
  color: rgba(255,255,255,0.7);
  font-size: 14px;
  line-height: 1.6;
  margin-top: 12px;
}

.project-card--cta {
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid rgba(125, 255, 0, 0.2);
  background-color: #0a0a0a;
}

.project-card--cta:hover {
  border: 1px solid rgba(125, 255, 0, 0.6);
}

.project-card--cta .project-img-wrapper {
  background: #000;
}

.project-card--cta .project-overlay {
  background: none;
}

.project-card--cta:hover .project-overlay {
  background: rgba(125, 255, 0, 0.05);
}

.project-card--cta .mb-cta {
  margin-bottom: 2rem;
}

.project-cta-text {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--rl-green);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid transparent;
  transition: border-bottom-color 0.3s;
  padding-bottom: 2px;
}

.project-card--cta:hover .project-cta-text {
  border-bottom-color: var(--rl-green);
}
/* ── MOBILE ── */
/* ── GLOBAL REINFORCEMENT ── */
body {
  overflow-x: hidden;
}

/* ================================================================
   OPTI-MOBILE v4: COMPREHENSIVE MOBILE FIXES (≤ 768px)
   Fix areas: hero arrows, CTA, flip cards, modal, testimonials,
   agenda section, scroll, nav-servicios removal
   Rule: NO desktop styles modified. All ≤768px only.
   ================================================================ */
@media (max-width: 768px) {

  /* ── 8. CONSISTENCY: NO HORIZONTAL SCROLL ── */
  html, body {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
    -webkit-overflow-scrolling: touch;
  }

  /* ── GPU / PERFORMANCE ── */
  .process-card,
  .process-card-inner,
  .nav-links,
  .id-v-card,
  .project-card,
  .gm-modal,
  .authority-img-real,
  .timeline-node {
    transform: translateZ(0);
    will-change: transform;
  }

  /* ─────────────────────────────────────────────
     FIX 3: NAVIGATION — remove Servicios spacing,
     ensure clean hamburger menu
  ───────────────────────────────────────────── */
  .nav-hamburger {
    display: flex !important;
    position: fixed !important;
    top: 18px;
    right: 16px;
    z-index: 10001 !important;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    background: transparent;
    border: none;
    padding: 4px;
  }

  .nav-hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--rl-green);
    transition: all 0.3s ease;
  }

  .nav-hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-hamburger.active span:nth-child(2) { opacity: 0; }
  .nav-hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .nav-links {
    position: fixed !important;
    top: 0 !important;
    right: -100% !important;
    width: 80vw !important;
    height: 100vh !important;
    background: rgba(8,11,15,0.98) !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: center !important;
    gap: 0 !important;
    padding: 80px 2rem 2rem !important;
    transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
    z-index: 10000 !important;
    border-left: 1px solid var(--grey-700) !important;
  }

  .nav-links.open {
    right: 0 !important;
  }

  .nav-links li {
    width: 100%;
    border-bottom: 1px solid rgba(255,255,255,0.06);
  }

  .nav-links li:last-child { border-bottom: none; }

  .nav-links a {
    display: block;
    padding: 1rem 0;
    font-size: 1.05rem;
  }

  .nav-cta {
    background: transparent !important;
    color: var(--rl-green) !important;
    padding: 1rem 0 !important;
    border: none !important;
    border-radius: 0 !important;
    font-size: 1.05rem !important;
    box-shadow: none !important;
  }

  /* ─────────────────────────────────────────────
     FIX 1: HERO — Navigation arrows repositioned
     inside gallery, flanking the slide, never
     overlapping the CTA below.
  ───────────────────────────────────────────── */
  .hero-gallery-wrapper {
    padding: 1.5rem 0 3rem !important; /* Bottom padding clears arrow space */
    position: relative;
  }

  /* Override the absolute top-50% positioning for mobile.
     Arrows are positioned at vertical center of the slide. */
  .hero-nav-btn {
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 40px !important;
    height: 40px !important;
    z-index: 30 !important;
    /* Ensure tap area is large enough */
    padding: 0 !important;
    touch-action: manipulation;
    pointer-events: all !important;
    /* Slight transparent bg so touch target is clear */
    background: rgba(8,11,15,0.8) !important;
  }

  /* Arrows hidden on mobile to prioritize swipe */
  .hero-nav-btn {
    display: none !important;
  }

  /* The slide width on mobile is 80%, centered, so there is space on flanks */
  .swiper-slide {
    width: 84% !important;
  }

  /* Lock swiper height */
  #hero-swiper {
    overflow: visible !important;
  }

  .slide-inner {
    padding-bottom: 60% !important; /* taller aspect ratio for mobile  */
  }

  /* ─────────────────────────────────────────────
     FIX 2: HERO CTA — Same animation as form CTA
  ───────────────────────────────────────────── */
  #hero-cta {
    animation: btnPulseGlow 2.5s infinite !important;
    width: 100% !important;
    justify-content: center !important;
    text-align: center;
  }

  .hero-cta-group {
    align-items: stretch !important;
    width: 100%;
  }

  /* ─────────────────────────────────────────────
     FIX 4: FLIP CARDS ("CÓMO FUNCIONA REALMENTE")
     - Sufficient height for content
     - Correct 3D flip showing both faces
     - Readable back content
  ───────────────────────────────────────────── */
  .process-diagram-grid6 {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  /* Enough height to show back content fully */
  .process-diagram-grid6 .process-card {
    aspect-ratio: unset !important;
    min-height: 260px !important;
    height: auto !important;
    perspective: 1200px !important;
    position: relative !important;
  }

  .process-card-inner {
    position: absolute !important;
    inset: 0 !important;
    transform-style: preserve-3d !important;
    transition: transform 0.65s cubic-bezier(0.4, 0, 0.2, 1) !important;
  }

  .process-card-front,
  .process-card-back {
    position: absolute !important;
    inset: 0 !important;
    backface-visibility: hidden !important;
    -webkit-backface-visibility: hidden !important;
    overflow: hidden !important;
  }

  .process-card-front {
    transform: rotateY(0deg) !important;
  }

  .process-card-back {
    transform: rotateY(180deg) !important;
    padding: 1.25rem !important;
    justify-content: center !important;
    gap: 0.5rem !important;
  }

  /* Flip on touch/click. JS handles toggling .is-flipped */
  .process-card.is-flipped .process-card-inner,
  .process-card:focus .process-card-inner {
    transform: rotateY(180deg) !important;
  }

  /* Disable CSS :hover flip on touch devices */
  @media (hover: none) {
    .process-card:hover .process-card-inner {
      transform: rotateY(0deg) !important;
    }
  }

  /* Back content font sizes */
  .process-card-back .process-title {
    font-size: 0.9rem !important;
    margin-bottom: 0.5rem !important;
  }

  .process-card-back p {
    font-size: 0.82rem !important;
    line-height: 1.6 !important;
    color: var(--grey-200) !important;
  }

  .process-card-back .process-number.back {
    font-size: 1rem !important;
  }

  /* Touch hint text on front cards */
  .card-flip-hint {
    opacity: 1 !important;
    font-size: 0.6rem !important;
    color: var(--rl-green) !important;
  }

  /* ─────────────────────────────────────────────
     FIX 5: MODAL DE PROYECTOS
     - Images fill viewport width
     - Translucent depth background
     - No blocking experience
  ───────────────────────────────────────────────────── */
  /* Centrado exclusivo de linea verde (Fix 2) */
  .id-bridge-line {
    align-self: center !important;
  }

  /* HERO VISIBILITY */
  .hero-nav-btn { display: none !important; }
  
  /* FORM CTA TEXT FIX */
  #submit-btn {
    padding-left: 12px !important;
    padding-right: 12px !important;
    min-height: 56px !important;
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
  
  #btn-text {
    white-space: nowrap !important;
    font-size: clamp(0.7rem, 3.8vw, 0.95rem) !important;
    display: inline-block !important;
    overflow: visible !important;
    line-height: 1 !important;
  }

  /* CARD FLUIDITY PREP */
  .process-card-inner {
    will-change: transform;
  }

  .hero-swipe-hint {
    display: block !important;
  }

  .gm-modal {
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  .gm-modal__overlay {
    background: rgba(8, 11, 15, 0.55) !important;
    backdrop-filter: blur(14px) !important;
    -webkit-backdrop-filter: blur(14px) !important;
  }

  .gm-modal__container {
    height: 100% !important;
    max-height: 100% !important;
    border-radius: 0 !important;
    width: 100% !important;
  }

  .gm-modal__main {
    padding: 0 !important; /* Full width for image */
    flex-direction: column;
    align-items: stretch;
  }

  .gm-modal__viewer {
    width: 100% !important;
    align-items: stretch;
  }

  .gm-modal__img-wrapper {
    width: 100% !important;
    flex: 1;
    min-height: 0;
  }

  /* Full width image occupying entire viewport */
  .gm-modal__img {
    width: 100vw !important;
    max-width: 100vw !important;
    max-height: 70vh !important;
    border-radius: 0 !important;
    object-fit: contain !important;
    height: auto !important;
  }

  .gm-modal__caption {
    padding: 0 12px 20px !important;
  }

  .gm-modal__caption::before {
    left: 12px !important;
    right: 12px !important;
  }

  /* Nav arrows inside modal — accessible tap size */
  .gm-nav-btn {
    width: 40px !important;
    height: 40px !important;
    background: rgba(8,11,15,0.85) !important;
    border: 1px solid rgba(127,219,24,0.4) !important;
  }

  .gm-modal__nav--prev { left: 10px !important; position: absolute !important; }
  .gm-modal__nav--next { right: 10px !important; position: absolute !important; }

  /* Close button visible and tappable */
  .gm-modal__close {
    top: 12px !important;
    right: 12px !important;
    width: 44px !important;
    height: 44px !important;
    background: rgba(255,255,255,0.12) !important;
    border: 1px solid rgba(255,255,255,0.2) !important;
    z-index: 10001 !important;
  }

  /* ─────────────────────────────────────────────
     FIX 6: "EXPERIENCIAS CONSTRUIDAS" SECTION
     - Title wraps properly (no white-space:nowrap)
     - CTA fits within viewport
  ───────────────────────────────────────────── */
  .testimonials-section .section-title {
    white-space: normal !important;
    font-size: clamp(1.3rem, 5vw, 1.8rem) !important;
    line-height: 1.3 !important;
  }

  .testimonials-grid {
    grid-template-columns: 1fr !important;
    gap: 1.25rem !important;
  }

  .cta-respaldo {
    white-space: normal !important;
    text-align: center !important;
    hyphens: auto;
  }

  /* ─────────────────────────────────────────────
     FIX 7: "AGENDA HOY / CONTACT-PROCESO" SECTION
     - Full single column stacking
     - Content visible, no truncation
  ───────────────────────────────────────────── */
  .contact-proceso-grid {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }

  .proceso-card {
    padding: 1.5rem !important;
  }

  .proceso-card-title {
    font-size: 1.25rem !important;
    line-height: 1.35 !important;
  }

  /* Timeline: compact for mobile */
  .timeline-item {
    gap: 1rem !important;
    margin-bottom: 1.5rem !important;
  }

  .timeline-content {
    padding-top: 6px !important;
  }

  .timeline-node {
    width: 38px !important;
    height: 38px !important;
    flex-shrink: 0 !important;
  }

  .form-wrapper {
    padding: 1.5rem !important;
  }

  /* ─────────────────────────────────────────────
     FIX 8: GENERAL — CTA BUTTONS SIZE & OVERFLOW
     - .cta-breathing buttons must not overflow
     - Offer section layout
  ───────────────────────────────────────────── */

  /* Fix cta-breathing on mobile — full width and centered */
  .cta-breathing {
    font-size: clamp(0.9rem, 4vw, 1.05rem) !important;
    padding: 1.1rem 1.5rem !important;
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    white-space: normal !important;
    word-break: break-word !important;
    hyphens: auto;
    order: 1 !important;
  }

  /* Fix touch lag on buttons */
  .btn-primary, .cta-breathing, .hero-cta, .nav-cta, .flip-back-cta {
    touch-action: manipulation !important;
    transition: transform 0.1s ease-out, background-color 0.15s ease-out !important;
  }

  /* Section CTAs center and contain */
  .section-cta {
    padding: 0 1rem !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    width: 100% !important;
    order: 2 !important; /* After offer-block */
    margin-top: 1.5rem !important;
  }

  .cta-benefit-text {
    width: 100% !important;
    text-align: center !important;
    align-items: center !important;
    margin: 1.5rem 0 0 0 !important;
    order: 2 !important; /* After button */
  }

  .system-cta-centered {
    padding: 0 1rem !important;
  }

  /* Offer block */
  .offer-section .container {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0 !important;
  }

  .offer-block {
    grid-template-columns: 1fr !important;
    padding: 1.5rem !important;
    gap: 1.5rem !important;
    order: 1 !important; /* First item */
    margin-bottom: 0 !important;
  }

  .offer-title {
    font-size: 1.3rem !important;
    line-height: 1.3 !important;
  }

  /* System section header */
  .system-title-nowrap {
    white-space: normal !important;
  }

  .system-footer-text {
    font-size: 1rem !important;
  }

  /* authority section compact */
  .authority-grid {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }

  .authority-stat-card {
    right: 10px !important;
    bottom: 10px !important;
    min-width: 110px !important;
  }

  .authority-quote {
    font-size: 1rem !important;
    padding: 0.75rem 0 0.75rem 1.25rem !important;
    margin: 1.5rem 0 !important;
  }

  /* ── MODAL SCROLL LOCK ── */
  body.modal-open {
    overflow: hidden !important;
    height: 100vh !important;
    touch-action: none !important;
  }

  /* Bio modal mobile */
  .bio-modal-overlay {
    padding: 0 !important;
  }
  .bio-modal-container {
    max-width: 100% !important;
    max-height: 100% !important;
    border-radius: 0 !important;
    height: 100vh !important;
  }
  .bio-modal-close {
    top: 12px !important;
    right: 12px !important;
    z-index: 10001 !important;
  }

  /* Typography baseline */
  .hero-title {
    font-size: clamp(1.8rem, 7vw, 2.5rem) !important;
    line-height: 1.15 !important;
  }

  .section-title {
    font-size: clamp(1.25rem, 5vw, 1.9rem) !important;
  }

  /* Projects grid on mobile */
  .projects-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.75rem !important;
  }

  /* Identification cards */
  .id-cards-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.75rem !important;
  }
}

/* Smaller phones — single column projects */
@media (max-width: 400px) {
  .projects-grid {
    grid-template-columns: 1fr !important;
  }
  #hero-prev { left: 2px !important; }
  #hero-next { right: 2px !important; }
  .hero-nav-btn {
    width: 32px !important;
    height: 32px !important;
  }
}


/* Old OPTI-MOBILE block removed — superseded by OPTI-MOBILE v4 above */

/* =============================================================
   FINAL SECTIONS FIX v2 (≤ 768px)
   Root causes: form-wrapper overflow:hidden clips content;
   proceso-card overflow clips children; section padding too large.
   ============================================================= */
@media (max-width: 768px) {

  /* ── FORM SECTION: PREVENT CONTENT CLIPPING ── */
  .contact-proceso-section,
  .contact-proceso-section .container {
    height: auto !important;
    min-height: unset !important;
    overflow: visible !important;
  }

  .contact-proceso-grid {
    height: auto !important;
    overflow: visible !important;
  }

  /* form-col must grow to fit content */
  .form-col {
    height: auto !important;
    overflow: visible !important;
    min-height: unset !important;
  }

  /* form-wrapper: replacing overflow:hidden with visible
     so inner content is never clipped on small screens */
  .form-wrapper {
    height: auto !important;
    overflow: visible !important;
    min-height: unset !important;
    /* The top green bar ::before still shows since position:absolute is fine */
    position: relative !important;
  }

  /* form itself must not scroll internally */
  .contact-form {
    overflow: visible !important;
    height: auto !important;
  }

  /* proceso-card: same treatment — content must not be clipped */
  .proceso-card {
    height: auto !important;
    overflow: visible !important;
    min-height: unset !important;
  }

  .proceso-card .timeline {
    overflow: visible !important;
  }

  /* Reduce section padding to prevent excessive whitespace on mobile */
  .contact-proceso-section.section {
    padding-top: clamp(3rem, 8vw, 5rem) !important;
    padding-bottom: clamp(3rem, 8vw, 5rem) !important;
  }

  /* ── PROCESS CARD HEIGHT FIX ──
     With position:absolute inner, parent must have an explicit
     height (not auto) to create the 3D flip space.
     min-height alone doesn't work when back content is taller.
     Solution: give cards a fixed height in px; back uses overflow:auto.
  */
  .process-diagram-grid6 .process-card {
    height: 280px !important;
    min-height: unset !important;
    overflow: hidden !important; /* 3D flip requires this */
  }

  .process-card-back {
    overflow-y: auto !important; /* Allow scroll on back if text overflows */
  }
}

/* =============================================================
   ANDROID / MOBILE DEFINITIVE FIX — v5 (≤ 768px)
   Final layout isolation to prevent Galaxy A54 and other rigid
   Android WebViews from terminating document scroll prematurely.
   ============================================================= */
@media (max-width: 768px) {

  /* 1. BODY/HTML: Absolute freedom. No BFC, no clip, no hidden. */
  html, body {
    height: auto !important;
    min-height: 100% !important;
    max-height: none !important;
    overflow: visible !important;
    overflow-x: visible !important;
    overflow-y: visible !important;
    will-change: auto !important;
    position: static !important;
  }

  /* 2. Contain horizontal scroll caused by Hero Gallery */
  .hero-gallery-wrapper {
    overflow-x: hidden !important;
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }

  /* 3. MACRO-CONTAINERS: Destroy all Flex/Grid height constraints */
  .contact-proceso-section,
  .contact-proceso-section > .container {
    display: block !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: visible !important;
    position: static !important;
  }

  /* Massive dynamic bottom padding on section ensures scroll ALWAYS passes the form */
  .contact-proceso-section {
    padding-bottom: 250px !important;
    margin-bottom: 80px !important;
  }

  /* 4. FORM AND PROCESS WRAPPERS: flow-root strictly contains margins */
  .contact-proceso-section .contact-proceso-grid,
  .contact-proceso-section .form-col,
  .contact-proceso-section .form-wrapper,
  .contact-proceso-section .contact-form,
  .contact-proceso-section .proceso-card {
    display: flow-root !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: visible !important;
    will-change: auto !important;
  }

  .contact-proceso-section .form-wrapper {
    position: relative !important; /* Keep top border */
    padding-bottom: 6rem !important; /* Extreme breathing room for Android bars */
    margin-bottom: 4rem !important;
  }
  
  .contact-proceso-section .proceso-card {
    margin-bottom: 3rem !important;
  }

  /* 5. FORM ELEMENTS: Pure block stack */
  .contact-proceso-section .form-field,
  .contact-proceso-section .form-header {
    display: block !important;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
  }

  /* Enforce native element flow */
  .contact-proceso-section #submit-btn,
  .contact-proceso-section .btn-full {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    position: static !important; /* Strip relative so it pushes container physically */
    margin-bottom: 4rem !important; /* Force physical push against bottom boundary */
    transform: none !important;
  }

  /* 6. IMMUNIZE AGAINST LATE INTERSECTION OBSERVERS */
  .contact-proceso-section .reveal-up,
  .contact-proceso-section .stagger-child {
    opacity: 1 !important;
    transform: none !important;
    visibility: visible !important;
    will-change: auto !important;
    transition: none !important; /* Disable transition delays breaking height calcs */
  }
}

/* Android phones (≤ 412px — Pixel, Galaxy S series) */
@media (max-width: 412px) {
  .contact-proceso-section .form-wrapper,
  .contact-proceso-section .proceso-card {
    padding: 1.25rem !important;
  }
  .contact-proceso-section .timeline-item {
    gap: 0.75rem !important;
    margin-bottom: 1.25rem !important;
  }
  .contact-proceso-section .timeline-node {
    width: 34px !important;
    height: 34px !important;
  }
  .contact-proceso-section .timeline-title {
    font-size: 0.85rem !important;
  }
  .contact-proceso-section .timeline-content p {
    font-size: 0.82rem !important;
    line-height: 1.5 !important;
  }
}
