﻿/* ============================================================
   PICOAGA — styles.css  v2
   ============================================================ */

/* ── Variables ─────────────────────────────────────────── */
:root {
  --ink:        #111622;
  --ink2:       #1a2235;
  --orange:     #FF6A00;
  --orange-d:   #E65C00;
  --orange-glow: rgba(255,106,0,0.14);
  --orange-glow2: rgba(255,106,0,0.22);
  --white:      #ffffff;
  --snow:       #f7f8fc;
  --gray:       #94A3B8;
  --gray-d:     #4a5568;
  --border:     rgba(255,255,255,0.07);
  --border-dark: rgba(17,22,34,0.1);
  --border-o:   rgba(255,106,0,0.28);
  --font-d:     'Space Grotesk', sans-serif;
  --font-b:     'Inter', sans-serif;
  --r:          14px;
}

/* ── Reset ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-b);
  background: var(--white);
  color: var(--ink);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
::-webkit-scrollbar { width: 3px; }
::-webkit-scrollbar-track { background: var(--ink); }
::-webkit-scrollbar-thumb { background: var(--orange); border-radius: 2px; }

.container { max-width: 1260px; margin: 0 auto; padding: 0 1.5rem; }

/* ============================================================
   NAV — LIQUID GLASS (restored original feel)
   ============================================================ */
#nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  padding: 1.25rem 1.5rem;
  transition: padding 0.4s;
}
#nav.scrolled { padding: 0.75rem 1.5rem; }

.nav-pill {
  max-width: 1260px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: 14px;
  padding: 0.55rem 1rem 0.55rem 1.2rem;
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
  position: relative;
  overflow: hidden;
}
.nav-pill::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(180deg,
    rgba(255,255,255,0.18) 0%,
    rgba(255,255,255,0.04) 50%,
    rgba(255,255,255,0.12) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.nav-logo img {
  height: 54px;
  width: auto;
  mix-blend-mode: screen;
  object-fit: contain;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255,255,255,0.75);
}
.nav-links a { transition: color 0.2s; }
.nav-links a:hover { color: var(--white); }
.nav-cta {
  background: var(--orange) !important;
  color: var(--white) !important;
  padding: 0.5rem 1.3rem !important;
  border-radius: 9px;
  font-weight: 700 !important;
  font-size: 0.82rem !important;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  white-space: nowrap;
}
.nav-cta:hover {
  background: var(--orange-d) !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(255,106,0,0.35);
}
#nav-mobile-btn { display: none; color: rgba(255,255,255,0.85); padding: 4px; }

/* mobile menu */
#mobile-menu {
  display: none;
  position: fixed; inset: 0;
  z-index: 199;
  background: rgba(8,10,16,0.97);
  backdrop-filter: blur(24px);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
}
#mobile-menu.open { display: flex; }
#mobile-menu a {
  font-family: var(--font-d);
  font-size: 2rem; font-weight: 700;
  color: var(--white);
  transition: color 0.2s;
}
#mobile-menu a:hover { color: var(--orange); }
.m-close {
  position: absolute; top: 1.5rem; right: 1.5rem;
  color: var(--gray); font-size: 1.4rem; cursor: pointer;
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 8px; transition: background 0.2s;
}
.m-close:hover { background: rgba(255,255,255,0.07); }

/* ============================================================
   HERO — full-screen video, original bottom-aligned layout
   ============================================================ */
#hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #000;
}

#hero-video {
  position: absolute;
  inset: 0; width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 1;
}

.hero-watermark {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: clamp(280px, 35vw, 480px);
  height: clamp(280px, 35vw, 480px);
  object-fit: contain;
  z-index: 1;
  opacity: 0.62;
  pointer-events: none;
  mix-blend-mode: luminosity;
}

/* Content wrapper — pushes everything to the bottom */
.hero-inner {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 6rem 3rem 3.5rem 3rem;
}

/* 2-column grid: left (text) + right (tag card) */
.hero-grid {
  display: grid;
  grid-template-columns: 3fr 1fr;
  gap: 3rem;
  align-items: flex-end;
  width: 100%;
}

.hero-left {
  text-align: left;
  align-self: flex-end;
}

/* Headline */
.hero-h1 {
  font-family: var(--font-d);
  font-size: clamp(2rem, 3.5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--white);
  margin-bottom: 1.25rem;
  text-align: left;
}
.hero-h1 .block {
  display: block;
  white-space: normal;
}
.hero-h1 .char {
  display: inline-block;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 500ms ease, transform 500ms ease;
}
.hero-h1 .char.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Sub-heading and buttons use fade-in */
.hero-sub {
  font-size: 1rem;
  color: var(--gray);
  max-width: 30rem;
  margin-bottom: 1.5rem;
  line-height: 1.625;
  text-align: left;
}

.hero-btns {
  display: flex; gap: 1rem; flex-wrap: wrap;
  justify-content: flex-start;
}

/* Fade-in utility (data-delay driven by JS) */
.fade-in {
  opacity: 0;
  transition: opacity 1s ease;
}
.fade-in.visible { opacity: 1; }

/* Right column — tag card aligned to bottom-right */
.hero-right {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
}

/* Liquid glass card */
.liquid-glass {
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 12px;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 1px 1px rgba(255,255,255,0.1);
}
.liquid-glass::before {
  content: '';
  position: absolute; inset: 0;
  border-radius: inherit; padding: 1.4px;
  background: linear-gradient(180deg,
    rgba(255,255,255,0.3) 0%, rgba(255,255,255,0.1) 20%,
    rgba(255,255,255,0)   40%, rgba(255,255,255,0)   60%,
    rgba(255,255,255,0.1) 80%, rgba(255,255,255,0.3) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.hero-tag {
  padding: 0.75rem 1.5rem;
  border: 1px solid rgba(255,255,255,0.2);
}
.tag-text {
  font-size: clamp(1.125rem, 2vw, 1.5rem);
  font-weight: 300;
  color: var(--white);
  white-space: nowrap;
  letter-spacing: -0.01em;
}
.tag-accent { color: var(--orange); }

/* Mobile: stack columns */
@media (max-width: 768px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-right { justify-content: flex-start; margin-top: 2rem; }
}

/* ============================================================
   BUTTONS (global)
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  border-radius: 9px; font-weight: 700; font-size: 0.9rem;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s, border-color 0.2s;
  white-space: nowrap; cursor: pointer;
}
.btn:hover { transform: translateY(-2px); }

.btn--solid {
  background: var(--orange); color: var(--white);
}
.btn--solid:hover {
  background: var(--orange-d);
  box-shadow: 0 8px 28px rgba(255,106,0,0.38);
}

.btn--ghost {
  border: 1px solid rgba(255,255,255,0.25);
  color: var(--white);
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(8px);
}
.btn--ghost:hover {
  border-color: var(--orange);
  background: rgba(255,106,0,0.1);
}

.btn--ghost-dark {
  border: 1px solid rgba(17,22,34,0.25);
  color: var(--ink);
  background: transparent;
}
.btn--ghost-dark:hover {
  border-color: var(--orange);
  color: var(--orange);
}

/* ============================================================
   SECTION LABELS (shared)
   ============================================================ */
.s-tag {
  display: inline-block;
  font-size: 0.68rem; font-weight: 800;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--orange); margin-bottom: 1rem;
}
.s-title {
  font-family: var(--font-d);
  font-size: clamp(1.9rem, 3.5vw, 3rem);
  font-weight: 700; letter-spacing: -0.025em;
  line-height: 1.15; margin-bottom: 1rem;
}
.s-title em { font-style: normal; color: var(--orange); }
.s-desc { font-size: 1rem; line-height: 1.75; max-width: 500px; }
.s-desc--dark { color: var(--gray); }
.s-desc--light { color: var(--gray-d); }

/* ============================================================
   STATS — WHITE section
   ============================================================ */
#stats {
  background: var(--snow);
  padding: 5rem 0;
  position: relative;
}
/* Angled top edge */
#stats::before {
  content: '';
  position: absolute;
  top: -28px; left: 0; right: 0; height: 56px;
  background: var(--snow);
  clip-path: polygon(0 100%, 100% 0, 100% 100%);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.stat-item {
  text-align: center; padding: 1.5rem 2rem;
  position: relative;
}
.stat-item + .stat-item::before {
  content: ''; position: absolute;
  left: 0; top: 20%; bottom: 20%;
  width: 1px; background: var(--border-dark);
}
.stat-num {
  font-family: var(--font-d);
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 700; line-height: 1; color: var(--orange);
  margin-bottom: 0.5rem;
  display: flex; align-items: baseline;
  justify-content: center; gap: 2px;
}
.stat-suf { font-size: 0.55em; }
.stat-label {
  font-size: 0.78rem; color: var(--gray-d);
  font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ============================================================
   DIVISIONES — DARK section — BENTO GRID
   ============================================================ */
#divisiones {
  background: var(--ink);
  padding: 8rem 0 7rem;
  position: relative;
  overflow: hidden;
}
/* Angled top */
#divisiones::before {
  content: '';
  position: absolute;
  top: -28px; left: 0; right: 0; height: 56px;
  background: var(--ink);
  clip-path: polygon(0 100%, 100% 0, 100% 100%);
  background: var(--snow) !important;
}
/* Blueprint grid BG */
#divisiones::after {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(80,120,200,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(80,120,200,0.04) 1px, transparent 1px);
  background-size: 52px 52px;
  pointer-events: none;
}

.div-header { margin-bottom: 3.5rem; position: relative; z-index: 2; }

/* Bento grid */
.bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1rem;
  position: relative; z-index: 2;
}

/* Card base */
.bc {
  border-radius: var(--r);
  overflow: hidden;
  position: relative;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.07);
  cursor: pointer;
  transition: border-color 0.4s, transform 0.4s, box-shadow 0.4s;
  min-height: 460px;
}
.bc:hover {
  border-color: rgba(255,106,0,0.35);
  transform: translateY(-6px);
  box-shadow: 0 24px 60px rgba(0,0,0,0.55), 0 0 50px rgba(255,106,0,0.07);
}

/* Layout */
.bc:nth-child(1) { grid-column: span 7; }
.bc:nth-child(2) { grid-column: span 5; }
.bc:nth-child(3) { grid-column: span 12; min-height: 260px; }

/* Image — inset negativo para cubrir el rango del parallax sin exponer el fondo */
.bc-img {
  position: absolute;
  inset: -22% 0;
  width: 100%;
  object-fit: cover;
  opacity: 0.68;
  transition: opacity 0.6s;
  will-change: transform;
}
.bc:hover .bc-img { opacity: 0.88; }

/* Gradient */
.bc-grad {
  position: absolute; inset: 0;
  background: linear-gradient(to top,
    rgba(10,13,20,0.92) 0%,
    rgba(10,13,20,0.55) 28%,
    rgba(10,13,20,0)    58%
  );
}

/* Top accent line */
.bc::before {
  content: ''; position: absolute;
  top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(to right, var(--orange), transparent);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.5s ease; z-index: 5;
}
.bc:hover::before { transform: scaleX(1); }

/* Corner diamond accent */
.bc-corner {
  position: absolute; top: 1.2rem; right: 1.2rem;
  width: 32px; height: 32px; z-index: 4;
  opacity: 0.25;
  transition: opacity 0.3s;
}
.bc:hover .bc-corner { opacity: 0.65; }

/* Content */
.bc-body {
  position: relative; z-index: 4;
  height: 100%; display: flex;
  flex-direction: column; justify-content: flex-end;
  padding: 2rem;
}
.bc-num {
  font-size: 0.66rem; font-weight: 800;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--orange); margin-bottom: 0.65rem;
}
.bc-title {
  font-family: var(--font-d);
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
  font-weight: 700; line-height: 1.2;
  color: var(--white); margin-bottom: 0.7rem;
}
.bc-desc {
  font-size: 0.875rem; color: var(--gray);
  line-height: 1.65; margin-bottom: 1.1rem;
  max-width: 380px;
}
.bc-chips {
  display: flex; flex-wrap: wrap; gap: 0.4rem;
  margin-bottom: 1.4rem;
}
.chip {
  font-size: 0.68rem; font-weight: 600;
  padding: 0.22rem 0.75rem; border-radius: 100px;
  border: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.55);
  background: rgba(255,255,255,0.04);
  text-transform: uppercase; letter-spacing: 0.05em;
}
.bc-cta {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.83rem; font-weight: 700; color: var(--orange);
  opacity: 0; transform: translateX(-8px);
  transition: opacity 0.3s, transform 0.3s;
}
.bc:hover .bc-cta { opacity: 1; transform: translateX(0); }

/* Card 3 horizontal */
.bc:nth-child(3) .bc-body {
  flex-direction: row; align-items: center; gap: 3rem;
}
.bc3-left { flex: 1; }
.bc3-right {
  flex-shrink: 0;
  display: flex; align-items: center; align-self: center;
}
.bc:nth-child(3) .bc-cta { opacity: 1; transform: none; }

/* ============================================================
   SERVICIOS — WHITE section
   ============================================================ */
#servicios {
  background: var(--white);
  padding: 8rem 0 7rem;
  position: relative;
}
#servicios::before {
  content: '';
  position: absolute;
  top: -28px; left: 0; right: 0; height: 56px;
  background: var(--white);
  clip-path: polygon(0 100%, 100% 0, 100% 100%);
  background: var(--snow) !important;
}

.srv-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.srv-card {
  padding: 2.25rem;
  border: 1px solid rgba(17,22,34,0.1);
  border-radius: var(--r);
  background: var(--white);
  position: relative; overflow: hidden;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
  box-shadow: 0 2px 12px rgba(17,22,34,0.05);
}
.srv-card:hover {
  border-color: rgba(255,106,0,0.3);
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(17,22,34,0.1), 0 0 0 1px rgba(255,106,0,0.2);
}
.srv-card::after {
  content: ''; position: absolute;
  top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(to right, var(--orange), var(--orange-d));
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.45s ease;
}
.srv-card:hover::after { transform: scaleX(1); }

.srv-icon {
  width: 46px; height: 46px; border-radius: 11px;
  background: rgba(255,106,0,0.1);
  border: 1px solid rgba(255,106,0,0.2);
  display: flex; align-items: center; justify-content: center;
  color: var(--orange); margin-bottom: 1.4rem;
}
.srv-card h3 {
  font-family: var(--font-d);
  font-size: 1.1rem; font-weight: 700;
  margin-bottom: 1.25rem; color: var(--ink);
  letter-spacing: -0.01em;
}
.srv-list { list-style: none; display: flex; flex-direction: column; gap: 0.7rem; }
.srv-list li {
  display: flex; align-items: flex-start; gap: 0.65rem;
  font-size: 0.875rem; color: var(--gray-d); line-height: 1.5;
}
.srv-list li svg { flex-shrink: 0; margin-top: 2px; color: var(--orange); }

/* ============================================================
   POR QUÉ — DARK section
   ============================================================ */
#porque {
  background: var(--snow);
  padding: 8rem 0 7rem;
  position: relative; overflow: hidden;
}
#porque::before {
  content: '';
  position: absolute;
  top: -28px; left: 0; right: 0; height: 56px;
  background: var(--snow);
  clip-path: polygon(0 100%, 100% 0, 100% 100%);
}
/* Hex pattern */
#porque::after {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,106,0,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,106,0,0.025) 1px, transparent 1px);
  background-size: 70px 70px;
  pointer-events: none;
}

.porque-wrap {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 5rem; align-items: center;
  position: relative; z-index: 2;
}
.porque-left .s-desc { margin-bottom: 2.5rem; }

.pq-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem;
}
.pq-card {
  padding: 1.6rem;
  border: 1px solid rgba(17,22,34,0.1);
  border-radius: 12px;
  background: var(--white);
  display: flex; gap: 1rem;
  transition: border-color 0.3s, transform 0.3s, background 0.3s;
}
.pq-card:hover {
  border-color: var(--border-o);
  background: rgba(255,106,0,0.06);
  transform: translateY(-2px);
}
.pq-icon {
  flex-shrink: 0;
  width: 40px; height: 40px; border-radius: 10px;
  background: rgba(255,106,0,0.12);
  border: 1px solid rgba(255,106,0,0.25);
  display: flex; align-items: center; justify-content: center;
  color: var(--orange);
}
.pq-card h4 {
  font-family: var(--font-d);
  font-size: 0.95rem; font-weight: 700;
  margin-bottom: 0.3rem; color: var(--ink);
  letter-spacing: -0.01em;
}
.pq-card p { font-size: 0.82rem; color: var(--gray-d); line-height: 1.6; }

/* ============================================================
   CTA — ORANGE section (bold)
   ============================================================ */
#cta {
  background: var(--orange);
  padding: 8rem 0;
  position: relative; overflow: hidden;
}
#cta::before {
  content: '';
  position: absolute;
  top: -28px; left: 0; right: 0; height: 56px;
  background: var(--orange);
  clip-path: polygon(0 100%, 100% 0, 100% 100%);
  background: var(--snow) !important;
}
/* Geometric decorations inside orange CTA */
.cta-geo {
  position: absolute; pointer-events: none;
  opacity: 0.1;
}
.cta-geo--l {
  left: -80px; top: 50%;
  transform: translateY(-50%);
  width: 420px; height: 420px;
}
.cta-geo--r {
  right: -80px; top: 50%;
  transform: translateY(-50%);
  width: 380px; height: 380px;
}

.cta-inner {
  position: relative; z-index: 2;
  text-align: center; max-width: 680px; margin: 0 auto;
}
.cta-inner .s-tag { color: rgba(255,255,255,0.7); }
.cta-h2 {
  font-family: var(--font-d);
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  font-weight: 700; letter-spacing: -0.03em;
  line-height: 1.1; margin-bottom: 1.25rem;
  color: var(--white);
}
.cta-p {
  font-size: 1.05rem; color: rgba(255,255,255,0.82);
  line-height: 1.75; margin-bottom: 2.75rem;
}
.cta-btns {
  display: flex; gap: 1rem;
  justify-content: center; flex-wrap: wrap;
}
.btn--cta-solid {
  background: var(--white); color: var(--orange);
}
.btn--cta-solid:hover {
  background: rgba(255,255,255,0.9);
  box-shadow: 0 8px 28px rgba(0,0,0,0.2);
}
.btn--cta-outline {
  border: 2px solid rgba(255,255,255,0.5);
  color: var(--white);
  background: rgba(255,255,255,0.06);
}
.btn--cta-outline:hover {
  border-color: var(--white);
  background: rgba(255,255,255,0.12);
}

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  background: #08090e;
  border-top: 1px solid rgba(255,255,255,0.05);
  padding: 4rem 0 2rem;
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 3rem; margin-bottom: 3rem;
}
.foot-brand img {
  height: 54px; mix-blend-mode: screen; margin-bottom: 1rem;
}
.foot-brand p { font-size: 0.85rem; color: var(--gray); line-height: 1.7; max-width: 270px; }
footer h5 {
  font-size: 0.7rem; font-weight: 800;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(255,255,255,0.5); margin-bottom: 1.25rem;
}
footer ul { list-style: none; display: flex; flex-direction: column; gap: 0.8rem; }
footer ul li a {
  font-size: 0.875rem; color: var(--gray);
  transition: color 0.2s; display: flex; align-items: center; gap: 0.4rem;
}
footer ul li a:hover { color: var(--orange); }
.foot-bottom {
  border-top: 1px solid rgba(255,255,255,0.05);
  padding-top: 1.5rem;
  display: flex; justify-content: space-between;
  align-items: center; font-size: 0.78rem;
  color: rgba(255,255,255,0.2);
}

/* ============================================================
   FLOATING WhatsApp FAB
   ============================================================ */
#wa-fab {
  position: fixed; bottom: 2rem; right: 2rem;
  z-index: 150; width: 56px; height: 56px;
  border-radius: 50%; background: #25D366; color: white;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 22px rgba(37,211,102,0.5);
  opacity: 0; transform: scale(0.8) translateY(12px);
  transition: opacity 0.4s, transform 0.4s, box-shadow 0.3s;
  pointer-events: none;
}
#wa-fab.show { opacity: 1; transform: scale(1) translateY(0); pointer-events: auto; }
#wa-fab:hover { transform: scale(1.1); box-shadow: 0 6px 30px rgba(37,211,102,0.6); }

/* ============================================================
   PROCESO — CSS 3D circular carousel, auto-rotation
   Geometry: N=3 cards, angleStep = 360/3 = 120deg
   Card i: rotateY(i × 120°) translateZ(R)
   Auto-spin: CSS animation linear infinite (no scroll needed)
   skill: overflow:hidden on 3D ancestors flattens preserve-3d — removed.
   ============================================================ */
#proceso {
  background: var(--snow);
  position: relative;
  /* overflow MUST be visible — any hidden value flattens CSS 3D */
}
.proceso-pin {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 5rem 0 4rem;
}
.proceso-header {
  text-align: center;
  margin-bottom: 3.5rem;
}
.proceso-header .s-desc { margin: 0 auto; text-align: center; }

/*
 * STAGE: perspective container. Camera at 1100px distance.
 * overflow: visible — required so 3D children render outside bounds.
 * Cards at rotateY(±90°) translateZ(R) sit at X = ±R from center.
 * Math: at R=300px, side card X offset = R = 300px → stays within viewport.
 */
.proceso-stage {
  --R: clamp(180px, 22vw, 320px);
  perspective: 1100px;
  perspective-origin: 50% 45%;
  height: clamp(420px, 56vh, 540px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}

/*
 * SCENE: zero-size pivot — all cards orbit around this point.
 * transform-style: preserve-3d propagates perspective to children.
 * CSS animation: rotateY(0) → rotateY(-360deg) in 16s, linear, infinite.
 * "For infinite rotations: linear is appropriate." — skill.md
 */
.proceso-scene {
  position: relative;
  transform-style: preserve-3d;
  animation: pc-spin 16s linear infinite;
}
@keyframes pc-spin {
  from { transform: rotateY(0deg); }
  to   { transform: rotateY(-360deg); }
}

/*
 * Opacidad sincronizada con la posición de cada card.
 * Delays corregidos para que el pico opacity=1 coincida con el frente.
 * La cara trasera (180°) queda en opacity 0.08 — casi invisible.
 */
@keyframes pc-depth {
  0%     { opacity: 1;    scale: 1; }
  16.67% { opacity: 0.35; scale: 0.90; }  /* 60°  — saliendo  */
  25%    { opacity: 0.14; scale: 0.86; }  /* 90°  — lateral   */
  50%    { opacity: 0.08; scale: 0.80; }  /* 180° — fondo     */
  75%    { opacity: 0.14; scale: 0.86; }  /* 270° — lateral   */
  83.33% { opacity: 0.35; scale: 0.90; }  /* 300° — entrando  */
  100%   { opacity: 1;    scale: 1; }
}

.pc {
  position: absolute;
  width: clamp(210px, 24vw, 300px);
  height: clamp(350px, 46vh, 440px);
  left: calc(clamp(210px, 24vw, 300px) * -0.5);
  top:  calc(clamp(350px, 46vh, 440px) * -0.5);
  background: var(--white);
  border-radius: 16px;
  border: 1px solid rgba(17,22,34,0.07);
  box-shadow: 0 24px 60px rgba(0,0,0,0.12);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  animation: pc-depth 16s linear infinite;
}

/*
 * Delays calculados para que cada card tenga opacity=1 exactamente
 * cuando está al frente (0° respecto a cámara).
 * Fórmula: delay = -(T - t_frente) donde t_frente = card_angle/360 * T
 * Card 1 (0°):   t=0s    → delay = 0s
 * Card 2 (120°): t=5.33s → delay = -(16-5.33) = -10.67s
 * Card 3 (240°): t=10.67s → delay = -(16-10.67) = -5.33s
 */
.pc:nth-child(1) { transform: rotateY(  0deg) translateZ(var(--R)); animation-delay:      0s; }
.pc:nth-child(2) { transform: rotateY(120deg) translateZ(var(--R)); animation-delay: -10.67s; }
.pc:nth-child(3) { transform: rotateY(240deg) translateZ(var(--R)); animation-delay:  -5.33s; }

/* Placeholder image area */
.pc-img {
  flex: 1;
  background: linear-gradient(135deg, #edf0f7 0%, #dce2ee 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.pc-img-real {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}
.pc-img::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(17,22,34,0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17,22,34,0.055) 1px, transparent 1px);
  background-size: 18px 18px;
}
.pc-img-ph {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; align-items: center; gap: 0.45rem;
  color: var(--gray-d);
}
.pc-img-ph svg { opacity: 0.35; }
.pc-img-ph span {
  font-size: 0.56rem; letter-spacing: 0.14em;
  text-transform: uppercase; opacity: 0.4;
}

.pc-body {
  padding: 1.2rem;
  flex-shrink: 0;
}
.pc-num {
  display: block;
  font-size: 0.6rem; font-weight: 800;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--orange); margin-bottom: 0.35rem;
}
.pc-title {
  font-family: var(--font-d);
  font-size: 1rem; font-weight: 700;
  color: var(--ink); line-height: 1.2;
  margin-bottom: 0.45rem;
}
.pc-desc {
  font-size: 0.76rem; color: var(--gray-d); line-height: 1.6;
}

/* Step indicator dots */
.proceso-dots {
  display: flex; justify-content: center;
  gap: 0.55rem; margin-top: 3rem;
}
.pd-dot {
  height: 3px; width: 22px;
  border-radius: 2px;
  background: rgba(17,22,34,0.15);
  transition: background 0.35s ease, width 0.35s ease;
}
.pd-dot.active {
  background: var(--orange); width: 38px;
}

/* ============================================================
   PROYECTOS — auto-carousel (sin ScrollTrigger, sin pin)
   ============================================================ */
#proyectos {
  background: var(--ink);
  overflow: hidden;
}
.proy-pin {
  display: flex;
  flex-direction: column;
  padding-bottom: 1rem;
}
.proy-header {
  padding: 4.5rem 0 2.5rem;
  flex-shrink: 0;
}
.proy-header-row {
  margin-top: 0.75rem;
}

.proy-track-wrap {
  overflow: hidden;
  position: relative;
  padding: 1.5rem 0 0;
}

.proy-track {
  display: flex;
  gap: 1.75rem;
  will-change: transform;
}

.proy-card {
  flex-shrink: 0;
  width: clamp(260px, 58vw, 760px);
  background: var(--ink2);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.05);
  display: flex;
  flex-direction: column;
}

/* Indicadores del carrusel */
.proy-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  padding: 2.5rem 0 3.5rem;
}
.proy-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  cursor: pointer;
  transition: background 0.3s ease, width 0.3s ease, border-radius 0.3s ease;
  flex-shrink: 0;
}
.proy-dot.active {
  background: var(--orange);
  width: 26px;
  border-radius: 4px;
}

/* Project image — z-index stack explícito:
   1 = imagen real, 2 = grid overlay, 3 = gradiente ::after, 4 = número esquina */
.proy-img-real {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}
.proy-img {
  height: clamp(160px, 34vh, 360px);
  background: var(--ink);
  position: relative;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.proy-img-grid {
  position: absolute; inset: 0;
  z-index: 2;
  background-image:
    linear-gradient(rgba(255,106,0,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,106,0,0.045) 1px, transparent 1px);
  background-size: 32px 32px;
}
.proy-img::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0; height: 55%;
  z-index: 3;
  background: linear-gradient(to top, rgba(10,13,20,0.88) 0%, transparent 100%);
}
.proy-img-label {
  position: relative; z-index: 2;
  font-size: 0.6rem; letter-spacing: 0.2em;
  text-transform: uppercase; color: rgba(255,255,255,0.18);
}
.proy-img-corner {
  position: absolute; bottom: 1.1rem; left: 1.4rem; z-index: 4;
  font-family: var(--font-d); font-size: 3.5rem; font-weight: 800;
  color: rgba(255,255,255,0.06); line-height: 1; letter-spacing: -0.04em;
  pointer-events: none;
}

/* Card info */
.proy-info {
  padding: 1.6rem 2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.proy-num {
  display: block;
  font-size: 0.6rem; font-weight: 700;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--orange); margin-bottom: 0.6rem;
}
.proy-title {
  font-family: var(--font-d);
  font-size: clamp(1.3rem, 2.5vw, 1.85rem);
  font-weight: 700; color: var(--white);
  line-height: 1.15; margin-bottom: 0.4rem;
}
.proy-cat {
  font-size: 0.82rem; color: var(--gray); margin-bottom: 1.4rem;
}

/* ============================================================
   WATERMARK — secciones blancas (stats, proceso, servicios)
   ============================================================ */
#stats::after,
#proceso::after,
#servicios::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: clamp(360px, 45vw, 580px);
  height: clamp(360px, 45vw, 580px);
  background: url('assets/logo/picoagacopleto.png') center / contain no-repeat;
  opacity: 0.14;
  pointer-events: none;
  z-index: 0;
  mix-blend-mode: multiply;
}

/* El contenido debe quedar encima del watermark */
#stats .container,
#proceso .proceso-pin,
#servicios .container {
  position: relative;
  z-index: 1;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
  .bc:nth-child(1), .bc:nth-child(2) { grid-column: span 12; min-height: 380px; }
  .bc:nth-child(3) { grid-column: span 12; min-height: 200px; }
  .bc:nth-child(3) .bc-body { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .bc3-right { align-self: flex-start; }
  .porque-wrap { grid-template-columns: 1fr; gap: 3rem; }
}
@media (max-width: 768px) {
  .proceso-stage { height: 370px; }
  .proy-card { width: clamp(240px, 80vw, 500px); }
}

@media (max-width: 900px) {
  .srv-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(2)::before,
  .stat-item:nth-child(4)::before { display: none; }
  .foot-grid { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  #nav-mobile-btn { display: block; }
  .hero-btns { flex-direction: column; align-items: flex-start; }
  .hero-btns .btn { justify-content: center; }
  .cta-btns { flex-direction: column; align-items: center; }
  .pq-grid { grid-template-columns: 1fr; }
  .foot-bottom { flex-direction: column; gap: 0.75rem; text-align: center; }
  .scroll-hint { display: none; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .bc { min-height: 300px; }
}
