/* ============================================================
   KING TOMATO MARKETING — main.css
   Design Tokens → Reset → Base → Components → Sections
   ============================================================ */

/* ── Google Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Cormorant:ital,wght@1,300;1,400;1,600;1,700&family=Bebas+Neue&family=Inter:wght@300;400;500;600&display=swap');

/* ─────────────────────────────────────────
   1. DESIGN TOKENS
───────────────────────────────────────── */
:root {
  /* Colors */
  --cream:        #e4dfd4;
  --cream-light:  #f5f1eb;
  --dark:         #0b0b0b;
  --dark-2:       #111111;
  --green:        #164c4a;
  --green-hover:  #1d6360;
  --gold:         #C9A44E;
  --text-dark:    #1a1a1a;
  --text-light:   #e4dfd4;
  --text-muted:   #6b6b6b;
  --border-dark:  #2e2e2e;
  --border-light: #c8c3b8;

  /* Typography */
  --font-display: 'Cormorant', 'Georgia', serif;
  --font-body:    'Bebas Neue', 'Impact', sans-serif;
  --font-ui:      'Inter', system-ui, sans-serif;

  /* Spacing */
  --gutter: clamp(1.5rem, 4vw, 4rem);
  --section-pad: clamp(4rem, 8vh, 8rem);

  /* Transitions */
  --ease-smooth: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-out-expo: cubic-bezier(0.19, 1, 0.22, 1);
  --ease-in-expo: cubic-bezier(0.95, 0.05, 0.795, 0.035);

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 32px;
  --radius-xl: 50px;
  --radius-full: 9999px;
}

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

html {
  scroll-behavior: auto;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: var(--cream);
  color: var(--text-dark);
  font-family: var(--font-body);
  
  overflow-x: clip; /* Previene scroll horizontal sin romper position: sticky en movil */
}

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

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

ul {
  list-style: none;
}

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

em, i[data-style="cormorant"] {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 700;
}

/* ─────────────────────────────────────────
   3. CUSTOM CURSOR
───────────────────────────────────────── */
.custom-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 64px;
  height: 64px;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s var(--ease-smooth);
  opacity: 0;
}

body.cursor-ready, body.cursor-ready * {
  
}

body.cursor-ready a, body.cursor-ready button, body.cursor-ready input, body.cursor-ready select, body.cursor-ready textarea, body.cursor-ready [role="button"] {
  
}

body.cursor-ready .custom-cursor {
  opacity: 1;
}

.custom-cursor .cursor-inner {
  width: 100%;
  height: 100%;
  background-image: url('../../Recursos/Logo%20Verde.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  transition: all 0.3s var(--ease-smooth);
}

.custom-cursor.cursor-hover .cursor-inner {
  transform: scale(1.4);
}

/* ─────────────────────────────────────────
   4. SPLASH SCREEN
───────────────────────────────────────── */
.splash-screen {
  position: fixed;
  inset: 0;
  background: var(--dark-2);
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.splash-logo-wrap {
  position: relative;
  z-index: 1;
}

.splash-logo {
  width: clamp(160px, 25vw, 320px);
  opacity: 0;
  transform: scale(0.85);
  animation: splashLogoIn 1s var(--ease-out-expo) 0.3s forwards;
}

.splash-curtain {
  position: absolute;
  inset: 0;
  background: var(--dark-2);
  transform: translateY(0);
}

/* ─────────────────────────────────────────
   5. NAVBAR
───────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 800;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem var(--gutter);
  background: #ffffff;
  transition: transform 0.5s var(--ease-smooth);
}

.navbar.nav-hidden {
  transform: translateY(-110%);
}

body.sidebar-open .navbar {
  transform: translateY(0) !important;
}

.nav-logo-link {
  display: flex;
  align-items: center;
}

.nav-logo-img {
  height: 40px;
  width: auto;
  object-fit: contain;
}

.nav-links {
  display: flex;
  gap: 4rem; /* More space to match image 2 */
  align-items: center;
  flex: 1;
  justify-content: center; /* Center the links */
}

.nav-link {
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text-dark);
  position: relative;
  transition: color 0.3s;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--green);
  transition: width 0.4s var(--ease-smooth);
}

.nav-link:hover::after {
  width: 100%;
}

.hamburger {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 4px;
  z-index: 1;
}

.ham-line {
  display: block;
  width: 28px;
  height: 2px;
  background: var(--text-dark);
  transition: all 0.4s var(--ease-smooth);
  transform-origin: center;
}

.hamburger.is-open .ham-line:first-child {
  transform: translateY(4px) rotate(45deg);
}

.hamburger.is-open .ham-line:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

/* ─────────────────────────────────────────
   6. SIDEBAR & PAGE WRAPPER
───────────────────────────────────────── */
body {
  background: var(--dark-2); /* For sidebar reveal */
}

body.sidebar-open {
  overflow: hidden;
  touch-action: none;
}

.page-wrapper {
  background: #ffffff;
  min-height: 100vh;
  position: relative;
  z-index: 10;
  transition: transform 0.6s cubic-bezier(0.76, 0, 0.24, 1);
  box-shadow: 0 0 0 rgba(0,0,0,0);
}

.viewport-mask {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  border-radius: 0;
  box-shadow: 0 0 0 100vmax #000;
  pointer-events: none;
  z-index: 15;
  transition: top 0.6s cubic-bezier(0.76, 0, 0.24, 1),
              bottom 0.6s cubic-bezier(0.76, 0, 0.24, 1),
              right 0.6s cubic-bezier(0.76, 0, 0.24, 1),
              border-radius 0.6s cubic-bezier(0.76, 0, 0.24, 1);
}

body.sidebar-open .viewport-mask {
  top: 5vh;
  bottom: 5vh;
  right: 400px;
  border-radius: 20px;
}

body.sidebar-open .page-wrapper {
  transform: translateX(-400px);
  pointer-events: none;
}

.sidebar {
  position: fixed;
  top: 0;
  right: 0;
  width: 400px;
  height: 100vh;
  background: #000;
  z-index: 20; /* Ensure sidebar and close button sit above the page and mask */
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.6s cubic-bezier(0.76, 0, 0.24, 1);
}

body.sidebar-open .sidebar {
  transform: translateX(0);
}

.sidebar-inner {
  padding: 1.5rem 2rem 1.5rem 2rem;
  display: flex;
  flex-direction: column;
  height: 100%;
  align-items: center;
}

.sidebar-close {
  position: absolute;
  top: 50%;
  left: -30px; /* Overlap exactly onto the white page */
  transform: translateY(-50%);
  width: 60px;
  height: 60px;
  background: #222;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  z-index: 20;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s, background 0.3s;
}

body.sidebar-open .sidebar-close {
  opacity: 1;
  pointer-events: all;
}

body.sidebar-open .sidebar-close:hover {
  background: #444;
  transform: translateY(-50%) scale(1.05);
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 1rem;
  margin-bottom: 2rem; /* Reduced to fit Privacy Policy */
  align-items: center;
}

.sidebar-link {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 2.2rem;
  color: #fff;
  text-decoration: none;
  position: relative;
  display: inline-block;
  align-self: center;
  padding-bottom: 0.2rem;
  text-transform: capitalize;
}

.sidebar-link::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(255,255,255,0.2);
}

.sidebar-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  width: 0;
  background: #fff;
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes textBlink {
  0% { opacity: 1; }
  50% { opacity: 0.3; }
  100% { opacity: 1; }
}

.sidebar-link:hover {
  animation: textBlink 0.4s ease-in-out forwards;
}

.sidebar-link:hover::after,
.sidebar-link.active::after {
  width: 100%;
}

.sidebar-bottom {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: center;
  padding-bottom: 1rem;
}

.sidebar-talk-btn {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  background: linear-gradient(270deg, #164c4a, #9e36b8, #1c4050, #164c4a);
  background-size: 300% 300%;
  animation: technoGradient 4s ease infinite;
  padding: 0.8rem 1.5rem 0.8rem 0.8rem;
  border-radius: 9999px;
  color: #fff;
  text-decoration: none;
  transition: transform 0.3s;
}

@keyframes technoGradient {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.sidebar-talk-btn:hover {
  transform: scale(1.02);
}

.talk-img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--cream);
}

.talk-text {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.talk-title {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1.1rem;
}

.talk-status {
  font-family: var(--font-ui);
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.status-dot {
  width: 8px;
  height: 8px;
  background: #4ade80;
  border-radius: 50%;
  display: inline-block;
}

.sidebar-social {
  display: flex;
  gap: 1rem;
}

.sidebar-social a {
  width: 44px;
  height: 44px;
  background: #1a1a1a;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: background 0.3s;
}
.social-btn {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: #222;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.2rem;
  text-decoration: none;
  transition: background 0.3s, transform 0.3s;
}

.social-btn:hover {
  background: #444;
  transform: scale(1.05);
}

.sidebar-legal-link {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  position: relative;
  padding-bottom: 0.2rem;
  display: inline-block;
}

.sidebar-legal-link::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(255,255,255,0.2);
}

.sidebar-legal-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  width: 0;
  background: #fff;
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar-legal-link:hover {
  color: #fff;
  animation: textBlink 0.4s ease-in-out forwards;
}

.sidebar-legal-link:hover::after {
  width: 100%;
}

/* ─────────────────────────────────────────
   7. HERO SECTION — Pill Capsule Reveal
───────────────────────────────────────── */
.hero-outer {
  position: relative;
  background: #ffffff;
}

.hero-inner {
  position: relative;
  height: 100vh;
  overflow: hidden;
  /* NO flex centering — hero-track-wrapper handles that */
}

/* Vertically centers the track without flex on hero-inner
   so the GSAP pin works cleanly */
.hero-track-wrapper {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  padding-top: 35px; /* compensate for half of navbar height */
  /* Removed overflow: hidden so descenders of 'g' aren't clipped */
}

/* The moving row: thinKING + pill + bigger in one flex line */
.hero-track {
  display: flex;
  align-items: center;
  gap: 2vw;
  padding-left: 3vw;    /* small breathing room from left edge */
  white-space: nowrap;
  will-change: transform;
}

/* Large serif display words */
.hero-word {
  font-family: 'Inter Tight', sans-serif;
  font-style: normal;
  font-weight: 500;
  font-size: 15vw;
  line-height: 15vw;
  color: var(--text-dark);
  user-select: none;
  flex-shrink: 0;
}

.hero-word-1 em {
  font-style: normal;
  color: var(--green);
}

/* "bigger" starts faded, GSAP brightens it as pill contracts */
.hero-word-2 {
  opacity: 0.15;
}

/* ── PILL: starts wide (capsule), shrinks to circle on scroll ── */
/*
  --ph defines the fixed height shared between pill and inner circle.
  pill starts WIDE (28vw), GSAP animates width → --ph (becomes a circle).
  The green circle sits flush-right via justify-content: flex-end.
  When pill width = height, the left edge meets the circle = full circle.
*/
.hero-pill {
  --ph: clamp(72px, 9.5vw, 140px);
  height: var(--ph);
  width: clamp(220px, 28vw, 440px);     /* initial capsule width */
  background: #ffffff;                   /* white so green tomato pops */
  border: 2px solid #b8b3a8;            /* visible against cream bg */
  border-radius: 9999px;                /* always pill / circle shape */
  display: flex;
  align-items: center;
  justify-content: flex-end;            /* tomato anchored to RIGHT */
  padding: 4px;
  flex-shrink: 0;
  overflow: hidden;                     /* clips the left empty space as it shrinks */
  will-change: width;
}

/* Green circle that holds the spinning tomato logo */
.hero-tomato-circle {
  position: relative;
  height: 100%;
  aspect-ratio: 1;
  background: transparent;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;                       /* never squished as pill shrinks */
}

/* Tomato logo inside the green circle — Spins constantly, plus extra rotation from scroll in JS */
.hero-tomato-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  z-index: 2;
  animation: spinConstant 4s linear infinite;
}

@keyframes spinConstant {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Tagline in the lower-right corner */
.hero-tagline {
  font-family: var(--font-body);
  font-size: clamp(0.75rem, 1.1vw, 1.1rem);
  letter-spacing: 0.14em;
  color: var(--text-muted);
  position: absolute;
  bottom: 3rem;
  right: var(--gutter);
  text-align: right;
  text-transform: uppercase;
  line-height: 1.7;
  opacity: 0;           /* fades in after splash via GSAP */
}



/* ─────────────────────────────────────────
   8. MISSION SECTION
───────────────────────────────────────── */
.mission-outer {
  position: relative;
  background: #ffffff;
  overflow: hidden;
}

.mission-inner {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.mission-collage {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 4px;
  opacity: 0;
  pointer-events: none;
}

.collage-cell {
  overflow: hidden;
}

.collage-cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease-smooth);
}

.mission-box {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Background element that shrinks via clip-path */
.mission-box-bg {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #ffffff;
  z-index: -1;
  clip-path: inset(0% round 0px); /* Starts full screen */
  will-change: clip-path;
}

.mission-text {
  font-family: 'Inter Tight', sans-serif;
  font-weight: 500;
  font-size: clamp(1.5rem, 3.2vw, 3.2rem); /* Reduced from 4.5vw to avoid huge text on desktop */
  line-height: 1.2;
  text-align: center;
  color: var(--text-dark);
  width: 76vw; /* strictly fits inside the 80vw white box to prevent overflow */
  max-width: 1200px;
  margin: 0 auto;
}

.mission-line {
  display: block;
}

.word-mask {
  display: inline-block;
  overflow: hidden;
  vertical-align: middle; /* Centers inner elements like small text and buttons perfectly inline */
}

.word-inner {
  display: inline-block;
  transform: translateY(0); /* Removido el transform inicial, se animarán las letras dentro */
}

/* Clases para animación letra por letra en Misión */
.mission-char-wrap {
  display: inline-block;
  overflow: hidden;
}

.mission-char-wrap span {
  display: inline-block;
  transform: translateY(100%);
  opacity: 0;
}

.mission-inline-wrap {
  display: inline-flex;
  vertical-align: middle;
  width: 0;
  overflow: hidden;
  opacity: 0;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

.mission-inline-content {
  padding: 0 1vw;
  display: inline-block;
  vertical-align: middle;
}

.mission-small-text {
  font-family: var(--font-body);
  font-size: clamp(0.75rem, 1vw, 1.2rem);
  line-height: 1.2;
  color: var(--text-muted);
  text-align: left;
  display: inline-block;
  vertical-align: middle;
}

.mission-contact-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #0000ff; /* Bright blue as requested in image */
  background: #0000ff;
  color: #fff;
  font-family: var(--font-body);
  font-size: clamp(0.9rem, 1.2vw, 1.1rem);
  padding: 0.8em 2em;
  border-radius: 9999px;
  text-transform: uppercase;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s var(--ease-smooth);
  vertical-align: middle; /* Align perfectly with text */
}

.mission-contact-btn:hover {
  background: var(--green);
  transform: scale(1.05);
  color: #ffffff;
}

/* ─────────────────────────────────────────
   9. SERVICES SECTION
───────────────────────────────────────── */

.services-section {
  position: relative;
  background: var(--dark);
  padding-top: var(--section-pad);
}

.services-curtain {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: 9999;
  transform: translateY(100%);
  overflow: hidden;
  will-change: transform, width, height, border-radius, opacity;
  pointer-events: none;
}

.services-curtain-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.services-header {
  padding: 2rem var(--gutter) 1rem; /* Shifted padding from bottom to top so height stays identical */
  border-bottom: 1px solid var(--border-dark);
  position: relative;
  text-align: center;
}

.services-label {
  position: absolute;
  left: var(--gutter);
  top: 2rem; /* Matches the new padding-top of the header */
  font-family: var(--font-body);
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  color: var(--text-muted);
  text-transform: uppercase;
}

.services-headline {
  font-family: 'Inter Tight', sans-serif;
  font-weight: 500;
  font-size: clamp(2rem, 4vw, 4.5rem);
  color: var(--text-light);
  line-height: 1.1;
  margin: 0 auto;
  max-width: 800px;
}

.services-headline em {
  color: var(--gold);
}

.services-stack {
  position: relative;
  padding-top: 2rem; 
  padding-bottom: 2vh; 
}

.service-card {
  position: sticky; /* Regresamos a sticky nativo (super fluido) */
  height: auto;
  background: var(--dark);
  border-top: 1px solid var(--border-dark);
  overflow: hidden;
  padding: 2.5rem var(--gutter);
  box-shadow: 0 -20px 40px rgba(0,0,0,0.4);
  margin-bottom: 50vh; /* Espacio de scroll entre cada tarjeta */
}

/* Removido el margin-bottom: 0 del last-child para que la tarjeta 5 también tenga espacio de scroll y pueda 'pegarse' */

.service-card:nth-child(1) { z-index: 1; background: var(--dark); top: 15vh; }
.service-card:nth-child(2) { z-index: 2; background: #1a1a1a; top: 18vh; }
.service-card:nth-child(3) { z-index: 3; background: #1c1c1c; top: 21vh; }
.service-card:nth-child(4) { z-index: 4; background: #1e1e1e; top: 24vh; }
.service-card:nth-child(5) { z-index: 5; background: #202020; top: 27vh; margin-bottom: 50vh; }

.service-card-inner {
  display: flex;
  align-items: center;
  gap: 2rem; /* Reduced gap since we add specific margin to bubble */
  max-width: 1500px;
  margin: 0 auto;
  width: 100%;
}

@media (max-width: 1100px) {
  .service-card-inner {
    flex-wrap: wrap;
    gap: 1.5rem;
  }
}

.service-bubble {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #000;
  background: #fff;
  border-radius: 10px;
  width: 48px;
  height: 32px; /* Reducido para que no se vea gordito */
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-right: 2rem; /* Increased gap between bubble and image */
}

.service-img-wrap {
  width: 100%;
  max-width: 400px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 16px;
  flex-shrink: 0;
}

.service-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease-smooth);
}

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

.service-info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex: 1;
}

.service-title {
  font-family: 'Inter Tight', sans-serif;
  font-weight: 500;
  font-size: clamp(2rem, 3vw, 3.5rem);
  color: var(--text-light);
  line-height: 1;
}

.service-desc {
  font-family: var(--font-body);
  font-size: 1.05rem;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  max-width: 420px;
  line-height: 1.5;
}

.service-tags-container {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  flex-shrink: 0;
}

.tags-label {
  font-family: var(--font-body);
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  color: var(--text-light);
  text-transform: uppercase;
  margin-bottom: 0.2rem;
}

.pills-row {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.6rem;
  overflow-x: auto;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.pills-row::-webkit-scrollbar {
  display: none;
}

.service-tag {
  font-family: var(--font-body);
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  border: 1px solid var(--border-dark);
  padding: 0.5rem 1.2rem;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  white-space: nowrap;
  transition: all 0.3s;
}

.service-card:hover .service-tag {
  color: var(--gold);
  border-color: var(--gold);
}

/* ─────────────────────────────────────────
   9.5 DESCUBRE TRANSITION
───────────────────────────────────────── */
.discover-section {
  position: relative;
  z-index: 10; /* Mayor z-index que los service-cards para sobreponerse */
  margin-top: -50vh; /* Compensa el margin-bottom del bloque 5 */
  background: var(--dark);
  padding: 4rem var(--gutter) 4rem; /* Reducido el padding superior para que entre más rápido */
}

.discover-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  border-bottom: 1px solid var(--border-dark);
  padding-bottom: 1rem;
}

.discover-title {
  font-family: 'Inter Tight', sans-serif;
  font-weight: 700;
  font-size: clamp(3rem, 6vw, 6rem);
  color: var(--text-light);
  line-height: 1;
  margin: 0;
}

.discover-subtitle {
  font-family: 'Inter Tight', sans-serif;
  font-weight: 700;
  font-size: clamp(1rem, 1.5vw, 1.5rem);
  color: var(--text-light);
  margin-bottom: 0.5rem;
}

/* ─────────────────────────────────────────
   10. PORTFOLIO SECTION
───────────────────────────────────────── */
.portfolio-section {
  background: var(--dark);
  padding: 0 var(--gutter) var(--section-pad);
}

.portfolio-wrapper {
  background: #1a1a1a; /* Dark gray box */
  border-radius: 40px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem; /* Espaciado reducido drásticamente entre proyectos */
}

.pricing-column {
  display: flex;
  flex-direction: column;
  gap: 1.5rem; /* Separación entre las 3 cajas verticalmente */
  position: relative;
}
.portfolio-project {
  position: relative;
  width: 100%;
  height: 120vh; /* Aún más alto para que abarque más de la pantalla completa */
  border-radius: 24px;
  overflow: hidden;
}

.project-bg-wrap {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  overflow: hidden;
  border-radius: 24px;
}

.project-bg-img {
  position: absolute;
  top: -100%; /* Inicia compensando la mitad de la altura extra */
  left: 0;
  width: 100%;
  height: 300%; /* Altura colosal para permitir un movimiento de parallax brutal */
  object-fit: cover;
  filter: brightness(0.35); /* Sin blur para que se note el movimiento de los detalles */
  will-change: transform;
}

.project-center-box {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: clamp(280px, 35vw, 500px); /* Tamaño reducido según petición (35% aprox) */
  background: #ffffff;
  border-radius: 20px;
  padding: 1rem 0.4rem 0.4rem 0.4rem; /* Top normal, pero bordes laterales e inferior aún más chicos */
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.project-frame-header {
  display: flex;
  justify-content: space-between; /* Mantiene las líneas estiradas */
  align-items: center;
  margin-bottom: 1rem;
  gap: 0.5rem;
  padding: 0 1rem;
  position: relative;
}

.project-tag, .project-category, .project-date {
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem; /* Disminuye tamaño de letra */
  font-weight: 300; /* Estilo light */
  text-transform: uppercase; /* Allcaps */
  color: #1a1a1a;
  white-space: nowrap;
}

.project-tag {
  text-align: left;
  z-index: 2;
  background: #ffffff;
  padding-right: 0.5rem;
}

.project-date {
  text-align: right;
  z-index: 2;
  background: #ffffff;
  padding-left: 0.5rem;
}

.project-category {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  background: #ffffff;
  padding: 0 0.5rem;
  z-index: 2;
}

.project-line {
  flex-grow: 1;
  border-bottom: 1px dashed #d0d0d0;
  margin: 0;
  opacity: 0.6;
  z-index: 1;
}

.project-name {
  font-family: 'Inter Tight', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  color: #000;
  text-transform: uppercase;
}

.project-date {
  font-family: 'Inter Tight', sans-serif;
  font-weight: 500;
  font-size: 0.85rem;
  color: #666;
}

.project-inner-img-wrap {
  width: 100%;
  aspect-ratio: 16/9; /* Volvemos a un formato más aplastado/horizontal para reducir la altura */
  border-radius: 16px; /* Borde interno redondeado a juego con el exterior */
  overflow: hidden;
}

.project-inner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Custom Cursor X-RAY para Portafolio */
.portfolio-cursor {
  position: fixed;
  top: 0; left: 0;
  width: 50px; height: 50px;
  background: #d4ccbd; /* Color beige/dorado para el mix-blend-mode */
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.5);
  transition: opacity 0.3s ease, transform 0.3s ease;
  mix-blend-mode: difference; /* Efecto rayos X invirtiendo colores debajo */
}

.portfolio-cursor.active {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.portfolio-cursor svg {
  width: 20px;
  height: 20px;
  color: #000;
}

/* ─────────────────────────────────────────
   11. CINEMATIC SECTION
───────────────────────────────────────── */
.cinematic-section {
  position: relative;
  background: var(--dark);
  overflow: hidden; /* Restaurado para acotar el grid de 106vw al área de la sección */
  padding: 0;
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: -2px; /* Fix sub-pixel white line gap on scroll */
  z-index: 10;
}

.cinematic-hero-wrap {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 92vw;
  height: 85vh;
  border-radius: 60px 60px 0 0; /* Curva grande en la parte superior = efecto doblez/maleabilidad */
  overflow: hidden;
  z-index: 5;
  will-change: width, height, border-radius, transform;
}

.cinematic-hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.cinematic-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.5);
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  z-index: 10;
  opacity: 0;
  pointer-events: auto;
  cursor: pointer;
  transition: background 0.3s ease;
}

.cinematic-play-btn:hover {
  background: rgba(255, 255, 255, 0.3);
}

.cinematic-play-btn svg {
  width: 24px;
  height: 24px;
  margin-left: 4px;
}

.cinematic-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.3);
  pointer-events: none;
}

.showreel-text {
  display: flex;
  flex-direction: row;
  white-space: nowrap;
  font-family: 'Inter Tight', sans-serif;
  font-weight: 500;
  font-size: clamp(3rem, 8vw, 8rem);
  color: #fff;
  line-height: 1;
}

.char-wrap {
  overflow: hidden;
}

.char-wrap span {
  display: inline-block;
  transform: translateY(100%);
  opacity: 0;
}

.copy-sym {
  font-size: 0.5em;
  vertical-align: super;
}

/* Grid: 4 columnas, 3 filas. Las 2 columnas centrales + fila central = espacio para el hero */
.cinematic-grid {
  position: absolute;
  top: -3%;
  left: -3%;
  width: 106%;
  height: 106%;
  display: grid;
  grid-template-columns: 1fr 1.3fr 1.3fr 1fr;
  grid-template-rows: 1fr 1.5fr 1fr;
  gap: 6px;
  padding: 0;
  opacity: 1;   /* Visible desde el inicio — los items individuales se controlan por JS */
  z-index: 1;
}

.cin-grid-item {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 12px;
  overflow: hidden;   /* Mantener para que el video tenga bordes redondeados */
  will-change: transform, opacity;  /* Optimizar GPU para el zoom-out */
}

.cin-grid-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

/* ─────────────────────────────────────────
   12. DATA SECTION
───────────────────────────────────────── */
.data-section {
  background: #ffffff;
  padding: clamp(5rem, 10vh, 9rem) var(--gutter) clamp(6rem, 12vh, 10rem);
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ── Header ── */
.data-header {
  text-align: center;
  max-width: 820px;
  margin-bottom: clamp(3.5rem, 6vh, 5rem);
}

.data-label {
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 1.2rem;
}

.data-title {
  font-family: 'Inter Tight', sans-serif;
  font-weight: 500;
  font-size: clamp(2.4rem, 4.5vw, 5rem);
  line-height: 1.12;
  color: var(--text-dark);
  margin-bottom: 1.6rem;
}

.data-title-brand {
  color: var(--green);
}

.data-subtitle {
  font-family: var(--font-body);
  font-size: clamp(0.85rem, 1vw, 1rem);
  letter-spacing: 0.06em;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 640px;
  margin: 0 auto;
}

/* ── Cards Grid ── */
.data-cards-grid {
  display: flex;
  flex-direction: row;
  gap: 1.2rem;
  justify-content: center;
  align-items: stretch;
  width: 100%;
  max-width: 1200px;
}

/* ── Card clip wrapper — acts like .char-wrap in Showreel ──
   overflow:hidden clips the card as it slides up from below. */
.data-card-clip {
  flex: 1;
  min-width: 0;
  max-width: 280px;
  height: 340px;
  overflow: hidden; /* clips the sliding card */
  border-radius: var(--radius-md);
}

/* ── Each Card ── */
.data-card {
  width: 100%;
  height: 100%;
  perspective: 1200px;
  
  /* starts BELOW the clip — JS slides it up like Showreel chars */
  transform: translateY(105%);
}

.data-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.75s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Flip on hover (desktop) or class (mobile) */
@media (hover: hover) and (pointer: fine) {
  .data-card:hover .data-card-inner {
    transform: rotateY(180deg);
  }
}
.data-card.flipped .data-card-inner {
  transform: rotateY(180deg);
}

/* ── Front face ── */
.data-card-front,
.data-card-back {
  position: absolute;
  inset: 0;
  border-radius: var(--radius-md);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.data-card-front {
  background: #f9f9f9; /* Super light gray, almost white */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.6rem 1.6rem 1.8rem;
  transform: rotateY(0deg);
  border: 1px solid rgba(0,0,0,0.06);
}

.data-card-top {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;
}

.data-card-title {
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: var(--text-muted);
  text-transform: uppercase;
}

.data-card-dots {
  display: flex;
  gap: 5px;
  align-items: center;
}

.data-card-dots .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--border-light);
  display: block;
  flex-shrink: 0;
}

.data-card-dots .dot.filled {
  background: var(--text-dark);
}

.data-card-bottom {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.data-card-metric {
  font-family: 'Inter Tight', sans-serif;
  font-weight: 700;
  font-size: clamp(2.8rem, 5vw, 5.5rem);
  color: var(--text-dark);
  line-height: 1;
  letter-spacing: -0.03em;
}

.data-card-desc {
  font-family: var(--font-body);
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ── Back face ── */
.data-card-back {
  background: #111111; /* Deep black */
  transform: rotateY(180deg);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.8rem;
  border-radius: var(--radius-md);
}

.data-card-back p {
  font-family: 'Inter Tight', sans-serif;
  font-weight: 400;
  font-size: clamp(1rem, 1.4vw, 1.3rem);
  color: #ffffff;
  line-height: 1.55;
  text-align: center;
  letter-spacing: -0.01em;
}

/* ─────────────────────────────────────────
   13. PARTNERS SECTION
───────────────────────────────────────── */
.partners-section {
  background: #111111;
  padding: clamp(5rem, 10vh, 9rem) var(--gutter);
  border-top: 1px solid rgba(255,255,255,0.05);
}

.partners-label {
  font-family: var(--font-body);
  font-size: 0.8rem;
  letter-spacing: 0.25em;
  color: #888888;
  text-align: center;
  text-transform: uppercase;
  margin-bottom: 4rem;
}

.partners-grid-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem; /* Increased gap for separation */
  max-width: 1050px; /* Reduced width to squish columns */
  margin: 0 auto;
}

@media (max-width: 1024px) {
  .partners-grid-container {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .partners-grid-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

.partner-box {
  width: 100%;
  height: 105px; /* Reduced height for squatter pill look */
  perspective: 1200px;
}

.partner-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.8s cubic-bezier(0.4, 0.0, 0.2, 1);
}

.partner-face {
  position: absolute;
  inset: 0;
  background: #1c1c1c; /* Dark grey pill */
  border-radius: 20px;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem; /* Slightly reduced padding to allow larger logos */
  border: 1px solid rgba(255, 255, 255, 0.03);
}

.partner-back {
  transform: rotateX(180deg);
}

.partner-logo {
  max-width: 85%;
  max-height: 75%;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.partner-box:hover .partner-logo {
  opacity: 1;
}

/* ─────────────────────────────────────────
   14. TESTIMONIALS SECTION
───────────────────────────────────────── */
.testimonials-outer {
  background: var(--cream-light);
  padding: var(--section-pad) var(--gutter);
  overflow: hidden;
}

.testimonials-section {
  background: #ffffff; /* White background */
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.testi-title-clip {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90vw;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}

.testi-heading {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(6rem, 20vw, 22rem);
  font-weight: 400;
  color: #111111; /* Black text */
  display: flex;
  line-height: 0.8;
  padding: 0.08em 0; /* Añadido para evitar que el overflow: hidden corte las curvas de las letras */
  text-transform: uppercase;
  letter-spacing: -1px;
  position: relative;
  z-index: 0;
}

.testi-char {
  display: inline-block;
  transform: translateY(-110%);
}

.testi-stack {
  position: relative;
  width: 32vw;
  height: 80vh;
  min-width: 320px;
  max-width: 600px;
  max-height: 800px;
  z-index: 10;
  opacity: 0; /* Hidden before title drops in */
  transform: translateY(30px);
}

.testi-scroll-more {
  position: absolute;
  bottom: 4vh;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  color: #888888;
  opacity: 0; /* Hidden before title drops in */
  transform: translateY(10px);
  z-index: 10;
}

.testi-card {
  position: absolute;
  inset: 0;
  background: #111111; /* Dark grey to contrast with black bg */
  border-radius: 20px;
  color: #ffffff;
  padding: 2.5rem 1.5rem; /* Increased internal width by reducing side padding */
  display: flex;
  flex-direction: column;
  transform-style: preserve-3d;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  opacity: 1; /* Fully visible inside the stack */
  transform: none; /* Already in place inside the stack */
  border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Stacking order so 1 is on top */
#tc-1 { z-index: 4; }
#tc-2 { z-index: 3; }
#tc-3 { z-index: 2; }
#tc-4 { z-index: 1; }

.tc-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  width: 100%;
  flex-grow: 1; /* FORZA a este contenedor a tomar todo el espacio libre vertical, empujando lo de abajo al fondo */
}

.tc-company-logo {
  height: 32px;
  object-fit: contain;
  /* Logo white to be visible on black card */
  filter: brightness(0) invert(1);
}

.tc-dots {
  display: flex;
  gap: 6px;
}

.tc-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
}

.tc-dot.active {
  background: #ffffff;
}

.tc-quote {
  font-family: 'Inter', sans-serif !important;
  font-style: normal !important;
  font-size: clamp(1.2rem, 1.5vw, 1.4rem) !important;
  line-height: 1.4;
  font-weight: 500 !important;
  margin: 0 0 1rem 0 !important; /* Slight tweak to the bottom margin to look good with larger text */
  color: #ffffff !important;
}

.tc-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.tc-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
}

.tc-name {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  margin: 0;
  color: #ffffff;
}

.tc-role {
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
}

.tc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.tc-brand-icon {
  height: 36px;
  width: auto;
  object-fit: contain;
  opacity: 0.7;
}

.tc-pagination {
  font-family: var(--font-body);
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  color: var(--text-muted);
}

.tc-quote {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.2rem, 2vw, 1.8rem);
  color: var(--text-dark);
  line-height: 1.5;
  flex: 1;
}

.tc-author {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: auto;
}

.tc-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
}

.tc-author-info {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.tc-author-name {
  font-family: var(--font-body);
  font-size: 1rem;
  letter-spacing: 0.1em;
  color: var(--text-dark);
}

.tc-author-role {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Testimonials Navigation */
.testi-nav {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 3rem;
}

.testi-nav-btn {
  width: 48px;
  height: 48px;
  border: 1px solid var(--border-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-ui);
  font-size: 1rem;
  color: var(--text-dark);
  transition: all 0.3s;
  
}

.testi-nav-btn:hover,
.testi-nav-btn.is-active {
  background: var(--green);
  border-color: var(--green);
  color: var(--cream);
}

/* ─────────────────────────────────────────
   15. TEAM SECTION
───────────────────────────────────────── */
.team-section {
  position: relative;
  background: #ffffff; /* Continues the white bg from testimonials */
  min-height: 200vh; /* Long section to allow scroll space */
  overflow: hidden;
  padding-bottom: 10vh;
}

.team-intro {
  text-align: center;
  padding: var(--section-pad) var(--gutter);
  padding-top: 15vh; /* Push down to give breathing room */
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  position: relative;
  z-index: 5;
}

.team-label {
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  color: #111111;
  text-transform: uppercase;
}

.team-subtitle {
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: clamp(1.5rem, 3.5vw, 2.5rem);
  color: #111111;
  line-height: 1.1;
}

.team-desc {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  color: #555555;
  max-width: 700px;
  line-height: 1.4;
  letter-spacing: 0.05em;
}

/* SUB-ZONA 2: Photos area */
.team-photos-area {
  position: relative;
  width: 100%;
  min-height: 150vh; /* Increased significantly to allow images to fall deep into the text */
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 1vh; /* Reduced to 1vh gap as requested */
  padding-bottom: 35vh;
}

/* Giant Background Text */
.team-bg-text {
  position: absolute;
  top: 41%; /* Increased by 6% as requested by the user */
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: var(--font-body); /* Bebas Neue */
  font-weight: 700; /* Bold */
  font-size: clamp(6rem, 18vw, 22rem);
  line-height: 0.85;
  z-index: 0; /* Lowest layer */
  pointer-events: none;
}

.team-bg-line {
  display: block;
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  width: 100%;
}

.team-bg-line.line-1 {
  color: rgba(130, 130, 130, 1);
  background-image: none;
}
.team-bg-line.line-2 {
  color: rgba(130, 130, 130, 0.4);
  background-image: none;
}
.team-bg-line.line-3 {
  color: rgba(130, 130, 130, 0.15);
  background-image: none;
}

/* Spinner Wrapper */
.team-spinner-wrapper {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 1rem;
  margin-bottom: 0; /* Changed from 2rem to remove gap */
  z-index: 20; /* Ensures it stays on top of negative margin area */
}

/* Spinner */
.team-spinner {
  position: relative;
  width: 140px;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.spinner-logo {
  width: 50px;
  height: 50px;
  object-fit: contain;
  position: absolute;
  z-index: 2;
  animation: spin 15s linear infinite; /* Logo spins too */
}

.spinner-text {
  width: 100%;
  height: 100%;
  animation: spin 15s linear infinite;
}

.spinner-text text {
  font-family: var(--font-ui);
  font-size: 14.5px;
  font-weight: 600;
  fill: #111111;
  text-transform: uppercase;
}

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

/* Photo Stack */
.team-stack {
  position: absolute;
  top: 50%; /* Centers directly over the spinner inside the wrapper */
  left: 50%;
  transform: translate(-50%, -50%);
  width: 16vw;
  height: 22vw;
  min-width: 180px;
  min-height: 250px;
  max-width: 260px;
  max-height: 360px;
  z-index: 20; /* High enough to overlay everything below */
}

.team-photo {
  position: absolute;
  inset: 0;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0,0,0,0.15);
  /* The transforms will be controlled by GSAP, but we set initial state */
  transform-origin: center center;
}

.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ─────────────────────────────────────────
   16. PRICING SECTION
───────────────────────────────────────── */
.pricing-section {
  background: #fff;
  padding: 6rem var(--gutter) 4rem;
  min-height: 155vh;
}

/* --- HEADER: Label + Rotating Titles + Subtitle --- */
.pricing-header {
  text-align: center;
  margin-bottom: 4rem;
}

.pricing-label {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: 0.05em;
  color: #999;
  display: block;
  margin-bottom: 1.5rem;
}

.pricing-titles-container {
  position: relative;
  height: clamp(4rem, 8vw, 7rem);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  overflow: hidden;
}

.pricing-rotating-title {
  position: absolute;
  display: flex;
  flex-direction: row;
  white-space: nowrap;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: clamp(3rem, 7vw, 6rem);
  color: #111;
  line-height: 1;
  margin: 0;
}

/* All non-active titles: chars start hidden below */
.pricing-rotating-title:not(.active) .p-char-wrap span {
  transform: translateY(100%);
  opacity: 0;
}

.p-char-wrap {
  overflow: hidden;
  display: inline-block;
  padding-bottom: 0.15em;
  margin-bottom: -0.15em;
}

.p-char-wrap span {
  display: inline-block;
  transition: none;
}

.pricing-subtitle {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 1.1rem;
  color: #666;
  letter-spacing: 0.02em;
}

/* --- GRAY CONTAINER (holds all 3 columns) --- */
.pricing-container {
  background: #f0f0f0;
  background-image: repeating-radial-gradient(
    circle at 50% -200%,
    transparent,
    transparent 40px,
    rgba(0,0,0,0.03) 40px,
    rgba(0,0,0,0.03) 42px
  );
  border-radius: 24px;
  padding: 2.5rem 4rem 3.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
  position: relative;
}



/* --- PLAN BOXES (white cards) --- */
.plan-box {
  background: #fff;
  border-radius: 16px;
  padding: 2rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}

.plan-box:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(0,0,0,0.08), 0 2px 6px rgba(0,0,0,0.03);
}

/* --- Box 1: Plan Info --- */
.plan-info-box {
  position: relative;
}
.plan-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.plan-logo-name {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.plan-logo {
  width: 32px;
  height: 32px;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(22, 76, 74, 0.35));
}

.plan-name {
  font-family: 'Bebas Neue', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.15em;
  color: #111;
  text-transform: uppercase;
}

.plan-badge {
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  background: #e8e8e8;
  color: #555;
  padding: 0.35rem 0.9rem;
  border-radius: 8px;
  text-transform: capitalize;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.05);
}

.plan-badge-pro {
  background: #164c4a;
  color: #e4dfd4;
  box-shadow: 0 2px 6px rgba(22,76,74,0.25), 0 1px 2px rgba(0,0,0,0.08);
}

.plan-desde {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 0.9rem;
  color: #b3b3b3;
  margin-bottom: -0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.plan-price {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: clamp(2.5rem, 4vw, 4rem);
  color: #111;
  line-height: 1;
  margin-bottom: 0.3rem;
}

.plan-currency {
  font-size: 0.4em;
  font-weight: 600;
  color: #999;
  margin-left: 0.2em;
  vertical-align: super;
}

.plan-per {
  font-family: 'Bebas Neue', sans-serif;
  font-weight: 300;
  font-size: 0.85rem;
  color: #aaa;
  letter-spacing: 0.05em;
  display: block;
  margin-top: 0.3rem;
}

.plan-desc {
  font-family: 'Bebas Neue', sans-serif;
  font-weight: 300;
  font-size: 0.95rem;
  color: #999;
  line-height: 1.6;
  margin-top: 1rem;
  min-height: 4.8rem;
}

/* --- Box 2: CTA Button --- */
.plan-cta-box {
  padding: 0;
}

.plan-cta-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 1.2rem 2rem;
  border-radius: 16px;
  background: #fff;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  font-style: normal;
  color: #111;
  letter-spacing: 0.05em;
  text-decoration: none;
  transition: background 0.3s ease, color 0.3s ease;
  overflow: hidden;
}

.plan-cta-btn:hover {
  background: #f5f5f5;
}

.cta-char-wrap {
  overflow: hidden;
  display: inline-block;
}

.cta-char-wrap span {
  display: inline-block;
}

/* --- Box 3: Features/Includes --- */
.plan-features-title {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  color: #333;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
}

.plan-features-list {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.plan-features-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-family: 'Bebas Neue', sans-serif;
  font-weight: 400;
  font-size: 0.95rem;
  color: #888;
  line-height: 1.4;
}

.check-bubble {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  min-width: 20px;
  border-radius: 50%;
  background: #164c4a;
  flex-shrink: 0;
  margin-top: 1px;
}

.check-bubble i {
  color: #fff;
  font-size: 0.55rem;
}

/* --- Q&A Column --- */
.pricing-faq-column {
  gap: 1rem;
  margin-top: 0 !important;
}

.faq-item-box {
  width: 100%;
  box-sizing: border-box;
  background: #fff;
  border-radius: 16px;
  padding: 2rem 1.8rem 1.5rem 1.8rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}

.faq-item-box:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 36px rgba(0,0,0,0.08), 0 2px 6px rgba(0,0,0,0.03);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0;
  border: none;
  background: none;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: #222;
  text-align: left;
  
  transition: color 0.3s;
}

.faq-question-text {
  transition: transform 0.3s ease;
}

.faq-item-box:hover .faq-question-text {
  transform: translateX(4px);
}

.faq-icon {
  font-family: 'Inter', sans-serif;
  font-style: normal;
  font-weight: 300;
  font-size: 1.3rem;
  color: #999;
  transition: transform 0.4s cubic-bezier(.4,0,.2,1), color 0.3s;
  flex-shrink: 0;
}

.faq-item-box:hover .faq-icon {
  transform: translateX(-4px);
  color: #164c4a;
}

/* --- FAQ Footer --- */
.faq-footer {
  position: relative;
  margin-top: auto; /* Push to bottom of the flex column if needed */
  padding-top: 1.5rem;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-family: 'Bebas Neue', sans-serif;
  z-index: 10;
}
.faq-footer-left {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 1.2rem;
  color: #a0a0a0;
  letter-spacing: 0.05em;
  white-space: nowrap;
}
.faq-rhombus {
  color: #164c4a;
  font-size: 1rem;
}
.faq-footer-right {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 1.2rem;
  color: #111;
  letter-spacing: 0.05em;
  text-decoration: none;
  border-bottom: 2px solid #111;
  padding-bottom: 1px;
  transition: opacity 0.3s ease;
}
.faq-footer-right:hover {
  opacity: 0.7;
}
.faq-footer-right i {
  font-size: 1rem;
}

.faq-question[aria-expanded="true"] .faq-icon {
  transform: rotate(45deg);
  color: #164c4a;
}

.faq-answer {
  font-family: 'Bebas Neue', sans-serif;
  font-weight: 400;
  font-size: 0.95rem;
  color: #aaa;
  line-height: 1.7;
  overflow: hidden;
  max-height: 0;
  padding-top: 0;
  transition: max-height 0.5s cubic-bezier(.4,0,.2,1), padding-top 0.3s;
}

.faq-answer:not([hidden]) {
  max-height: 300px;
  padding-top: 1rem;
}

/* --- LASER EFFECTS --- */
@property --laser-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

@keyframes laserSpinAngle {
  0% { --laser-angle: 0deg; }
  100% { --laser-angle: 360deg; }
}

@keyframes laserSpinBox {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

.laser-box {
  position: relative;
  z-index: 1;
}
.laser-box::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: conic-gradient(from var(--laser-angle), transparent 70%, #d3d3d3 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: laserSpinAngle 4s linear infinite;
  z-index: -1;
  pointer-events: none;
}

.laser-btn {
  position: relative;
  overflow: hidden;
  z-index: 1;
  background: transparent !important;
}
.laser-btn::before {
  content: "";
  position: absolute;
  top: 50%; left: 50%; width: 200%; height: 200%;
  background: conic-gradient(from 0deg, transparent 70%, #d3d3d3 100%);
  animation: laserSpinBox 3s linear infinite;
  z-index: -2;
}
.laser-btn::after {
  content: "";
  position: absolute;
  inset: 1px;
  background: #fff;
  border-radius: 15px;
  z-index: -1;
  transition: background 0.3s ease;
}
.laser-btn:hover::after {
  background: #f5f5f5;
}
/* ─────────────────────────────────────────
   17. CONTACT SECTION
───────────────────────────────────────── */
.contact-section {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.contact-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.contact-bg-img {
  width: 100%;
  height: 120%;
  object-fit: cover;
  will-change: transform;
}

.contact-bg-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

.contact-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  width: 100%;
  padding: 4rem var(--gutter);
  max-width: 1400px;
  margin: 0 auto;
}

/* --- Contact Left Column --- */
.contact-left {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.contact-label {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 0.95rem;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  margin-bottom: 2rem;
}

.contact-title {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: clamp(3rem, 5vw, 6rem);
  color: #fff;
  line-height: 1;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
}

.contact-subtitle {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.5;
  max-width: 420px;
  margin-bottom: 2.5rem;
}

.contact-logo {
  width: 55px;
  opacity: 0.5;
  margin-bottom: 1.5rem;
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.15));
}

.contact-quote {
  font-family: 'Bebas Neue', sans-serif;
  font-weight: 300;
  font-style: italic;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.7;
  max-width: 380px;
  letter-spacing: 0.03em;
}

/* --- Contact Right Column (Form Card) --- */
.contact-form-card {
  background: rgba(20, 20, 20, 0.3);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-radius: 16px;
  padding: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.4);
  max-width: 480px;
  width: 100%;
  margin-left: auto;
}

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

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

.form-label {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: #fff;
  text-transform: uppercase;
}

.form-name-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-input {
  width: 100%;
  box-sizing: border-box;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 0.8rem 1rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  color: #fff;
  outline: none;
  transition: all 0.3s ease;
}

.form-input:focus {
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.05);
}

.form-input::placeholder {
  color: rgba(255, 255, 255, 0.35);
  font-size: 0.9rem;
}

.form-textarea {
  resize: vertical;
  min-height: 100px;
}

.form-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  gap: 0.75rem;
  background: #fff;
  color: #111;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  padding: 1.1rem 2.5rem;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  text-transform: uppercase;
  transition: all 0.4s ease;
  margin-top: 0.5rem;
}

.form-submit:hover {
  background: #e8e8e8;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 255, 255, 0.15);
}

.form-submit i {
  transition: transform 0.3s;
}

.form-submit:hover i {
  transform: translateX(4px);
}

/* ─────────────────────────────────────────
   18. FOOTER
───────────────────────────────────────── */
#footer-veil-wrapper {
  position: fixed;
  top: -1vh;
  left: 0;
  width: 100%;
  height: 0;
  z-index: 999;
  overflow: hidden;
}

.footer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 102vh;
  background: #0a0a0a;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  color: #fff;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  padding: 10vh 5vh 0 5vh;
  position: relative;
  z-index: 2; /* Sobre el marquee */
}

.footer-left {
  display: flex;
  flex-direction: column;
  gap: 10vh;
}

.footer-socials {
  display: flex;
  gap: 1rem;
}

.footer-social {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1rem;
  transition: all 0.3s;
}

.footer-social:hover {
  background: #d2b48c; /* Café pastel */
  border-color: #d2b48c;
  color: #0a0a0a;
}

.footer-copy {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-copy p {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-mini-logo {
  height: 20px;
  width: auto;
}

.footer-right {
  display: flex;
  gap: 5vh;
}

.footer-links-col {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-links-title {
  font-family: 'Bebas Neue', sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
  color: #fff;
}

.footer-link {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.2rem;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.3s;
}

.footer-link:hover {
  color: #d2b48c;
}

.footer-marquee-container {
  position: absolute;
  top: 40vh;
  height: 60vh;
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  z-index: 1;
}

.footer-marquee {
  display: flex;
  align-items: center;
  gap: 2rem;
  white-space: nowrap;
  animation: marquee-scroll 25s linear infinite;
}

.marquee-text {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 60vh;
  color: rgba(255, 255, 255, 0.05);
  line-height: 1;
}

.marquee-logo {
  height: 40vh;
  opacity: 0.05;
}

@keyframes marquee-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); } /* requires repeating elements to loop smoothly */
}

/* --- Footer Light Variant --- */
.footer-light {
  background: #ffffff !important;
  color: #0a0a0a !important;
}
.footer-light .footer-links-title {
  color: #0a0a0a !important;
}
.footer-light .footer-link {
  color: rgba(10, 10, 10, 0.7) !important;
}
.footer-light .footer-link:hover {
  color: #d2b48c !important;
}
.footer-light .footer-social {
  border-color: rgba(10, 10, 10, 0.2) !important;
  color: #0a0a0a !important;
}
.footer-light .footer-social:hover {
  background: #0a0a0a !important;
  border-color: #0a0a0a !important;
  color: #ffffff !important;
}
.footer-light .marquee-text {
  color: rgba(10, 10, 10, 0.05) !important;
}
.footer-light .marquee-logo {
  filter: invert(1) !important;
  opacity: 0.05 !important;
}
.footer-light .footer-mini-logo {
  filter: invert(1) !important;
}

/* ─────────────────────────────────────────
   X. BOTTOM FLOATING NAVBAR
───────────────────────────────────────── */
.bottom-nav {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 2rem;
  gap: 2rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  z-index: 99999;
  border: 1px solid rgba(0,0,0,0.05);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease-smooth), transform 0.4s var(--ease-smooth);
}

.bottom-nav.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.bottom-nav-link {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-dark);
  text-decoration: none;
  letter-spacing: 0.05em;
  transition: color 0.3s;
}

.bottom-nav-link:hover {
  color: var(--green);
}

.bottom-nav-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.5rem;
}

.bottom-nav-logo img {
  height: 28px;
  width: auto;
  object-fit: contain;
}

/* Fix GSAP pin spacer background flash on mobile, scoped only to cinematic section to avoid turning hero background black */
.pin-spacer:has(.cinematic-section) {
  background-color: var(--dark) !important;
}
