/* ==========================================================================
   Tomato King — Nosotros (About Us) Page
   CSS Stylesheet
   ========================================================================== */

:root {
  --bg-black: #0a0a0a;
  --bg-process: #111111;
  --white: #ffffff;
  --gray-light: #f0f0f0;
  --gray-mid: #888888;
  --gray-dark: #333333;
  --accent-orange: #e67e22;
  --text-muted: #6b6b6b;
}

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

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

body {
  background: var(--bg-black);
  color: var(--white);
  font-family: 'Inter', system-ui, sans-serif;
  overflow-x: hidden;
}

a {
  color: var(--white);
  text-decoration: none;
}

/* ==========================================================================
   TOP NAVBAR
   ========================================================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: auto;
  padding: 1.2rem clamp(1.5rem, 4vw, 4rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 800;
  background: rgba(10, 10, 10, 0.9);
  backdrop-filter: blur(12px);
  transition: transform 0.4s ease;
}

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

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

.nav-logo-img {
  height: 44px;
  object-fit: contain;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 3rem;
}

.nav-link {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  transition: color 0.3s;
}

.nav-link:hover, .nav-link.active {
  color: var(--white);
}

.hamburger {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px;
  z-index: 801;
}

.ham-line {
  display: block;
  width: 28px;
  height: 2px;
  background: var(--white);
  transition: all 0.4s;
}

/* ==========================================================================
   SIDEBAR & VIEWPORT MASK
   ========================================================================== */
.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), opacity 0.4s ease;
  opacity: 0;
  pointer-events: none;
}

body.sidebar-open .sidebar {
  transform: translateX(0);
  opacity: 1;
  pointer-events: all;
}

.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%;
}

/* ─────────────────────────────────────────
/* ==========================================================================
   BOTTOM FLOATING NAVBAR
   ========================================================================== */
.bottom-nav {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 0.75rem 2rem;
  background: rgba(15, 15, 15, 0.95);
  backdrop-filter: blur(16px);
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  z-index: 99999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.bottom-nav.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.bottom-nav-link {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  transition: color 0.3s;
}

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

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

.bottom-nav-logo img {
  height: 28px;
}

/* ==========================================================================
   PAGE WRAPPER
   ========================================================================== */
.page-wrapper {
  position: relative;
  z-index: 10;
  transition: transform 0.6s cubic-bezier(0.76, 0, 0.24, 1),
              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);
}

/* ==========================================================================
   SECTION 1 — HERO
   ========================================================================== */
.nosotros-hero {
  position: relative;
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--bg-black);
}

.hero-reels-left, .hero-reels-right {
  position: absolute;
  top: 0;
  width: 25%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.hero-reels-left {
  left: -2%;
  transform: perspective(1000px) rotateY(-25deg) rotateX(10deg);
  transform-origin: right center;
}

.hero-reels-right {
  right: -2%;
  transform: perspective(1000px) rotateY(25deg) rotateX(10deg);
  transform-origin: left center;
}

.reel-card {
  position: absolute;
  width: 85%;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
}

.reel-card img, .reel-card video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* LEFT REELS positioning */
.hero-reels-left .reel-card:nth-child(1) { top: -10vh; left: 5%; height: 42vh; z-index: 1; }
.hero-reels-left .reel-card:nth-child(2) { top: 28vh; left: 15%; height: 38vh; z-index: 2; }
.hero-reels-left .reel-card:nth-child(3) { top: 62vh; left: 5%; height: 45vh; z-index: 3; }

/* RIGHT REELS positioning (mirrored) */
.hero-reels-right .reel-card:nth-child(1) { top: -10vh; right: 5%; height: 42vh; z-index: 1; }
.hero-reels-right .reel-card:nth-child(2) { top: 28vh; right: 15%; height: 38vh; z-index: 2; }
.hero-reels-right .reel-card:nth-child(3) { top: 62vh; right: 5%; height: 45vh; z-index: 3; }

/* Fade overlays for Top Reels (1 and 4) */
.hero-reels-left .reel-card:nth-child(1)::after,
.hero-reels-right .reel-card:nth-child(1)::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(to bottom, rgba(10, 10, 10, 1) 0%, rgba(10, 10, 10, 0.9) 20%, rgba(10, 10, 10, 0) 70%);
  pointer-events: none;
  z-index: 10;
}

/* Fade overlays for Bottom Reels (3 and 6) */
.hero-reels-left .reel-card:nth-child(3)::after,
.hero-reels-right .reel-card:nth-child(3)::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(to top, rgba(10, 10, 10, 1) 0%, rgba(10, 10, 10, 0.9) 20%, rgba(10, 10, 10, 0) 70%);
  pointer-events: none;
  z-index: 10;
}

.hero-center {
  position: relative;
  z-index: 5;
  text-align: center;
  max-width: 60%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  height: 100%;
  padding-top: 0;
}

.hero-brand-name {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: clamp(3rem, 7vw, 7.5rem);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 0.85;
  color: var(--white);
  background: linear-gradient(180deg, #ffffff 0%, #666666 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-top: 12vh;
}

.hero-tagline {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: clamp(0.85rem, 1.1vw, 1rem);
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.6;
  max-width: 500px;
}

/* ==========================================================================
   SECTION 2 — SOCIAL ICONS + MOUSE INDICATOR
   ========================================================================== */

.mouse-scroll-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 2vh;
}

.social-icons-row {
  display: flex;
  gap: 1.25rem;
}

.social-icon-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  transition: all 0.3s;
  cursor: pointer;
}

.social-icon-circle:hover {
  border-color: var(--white);
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

.mouse-indicator {
  width: 28px;
  height: 44px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 14px;
  position: relative;
  display: flex;
  justify-content: center;
}

.mouse-dot {
  width: 4px;
  height: 8px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 2px;
  position: absolute;
  top: 8px;
  animation: mouseScroll 2s ease-in-out infinite;
}

@keyframes mouseScroll {
  0% { opacity: 1; transform: translateY(0); }
  50% { opacity: 0.3; transform: translateY(16px); }
  100% { opacity: 0; transform: translateY(24px); }
}

.scroll-text {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
  margin-top: 0.5rem;
}

/* ==========================================================================
   SECTION 3 — SLOGAN MARQUEE
   ========================================================================== */
.slogan-section {
  position: relative;
  overflow: hidden;
  padding: 2rem 0;
}

.slogan-track {
  display: flex;
  align-items: center;
  gap: 0;
  white-space: nowrap;
  will-change: transform;
}

.slogan-word {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: clamp(5rem, 12vw, 12rem);
  text-transform: uppercase;
  padding: 0 1rem;
}

.slogan-word.gray {
  color: rgba(255, 255, 255, 0.2);
}

.slogan-word.white {
  color: rgba(255, 255, 255, 0.9);
}

.slogan-star {
  font-size: clamp(3rem, 6vw, 6rem);
  color: rgba(255, 255, 255, 0.5);
  padding: 0 2rem;
}

/* ==========================================================================
   SECTION 4 — NUESTRO VIAJE
   ========================================================================== */
.story-section {
  padding: clamp(2rem, 4vh, 4rem) clamp(2rem, 6vw, 8rem);
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.story-eyebrow {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gray-mid);
  margin-bottom: 1.5rem;
  text-align: center;
}

.story-main-text {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: clamp(1.8rem, 3.5vw, 3.2rem);
  line-height: 1.35;
  color: var(--white);
  margin-bottom: 1.5rem;
  text-align: center;
}

.story-main-text .faded {
  color: rgba(255, 255, 255, 0.35);
}

.story-sub-text {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: clamp(0.85rem, 1.1vw, 1rem);
  line-height: 1.8;
  color: var(--gray-mid);
  max-width: 650px;
  margin: 0 auto;
  text-align: center;
}

.story-sub-text .star-icon {
  color: rgba(255, 255, 255, 0.5);
  margin-right: 0.5rem;
}

/* ==========================================================================
   SECTION 5 — SPINNER
   ========================================================================== */
.spinner-section {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem 0;
}

.spinner-wrap {
  position: relative;
  width: 160px;
  height: 160px;
  animation: spinRotate 12s linear infinite;
}

.spinner-logo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 50px;
  height: 50px;
  object-fit: contain;
}

.spinner-text-svg {
  width: 100%;
  height: 100%;
}

.spinner-text-svg text {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 12px;
  fill: rgba(255, 255, 255, 0.7);
  letter-spacing: 3px;
  text-transform: uppercase;
}

@keyframes spinRotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* ==========================================================================
   SECTION 6 — VALUES
   ========================================================================== */
.values-section {
  padding: 6rem 0;
}

.values-container {
  width: 95%;
  max-width: 1400px;
  margin: 0 auto;
  background: var(--gray-light);
  border-radius: 32px;
  padding: clamp(3rem, 6vw, 5rem);
  padding-bottom: 6rem;
  color: #1a1a1a;
  overflow: hidden;
}

.values-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 4rem;
  gap: 4rem;
  flex-wrap: wrap;
}

.values-title {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: clamp(4rem, 8vw, 6.5rem);
  text-transform: uppercase;
  color: #1a1a1a;
  line-height: 1;
}

.values-description {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 0.95rem;
  line-height: 1.7;
  color: #555;
  max-width: 350px;
}

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

.value-card {
  background: var(--white);
  border-radius: 20px;
  padding: clamp(2rem, 3vw, 3rem);
  position: relative;
  overflow: hidden;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.value-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='800' height='800'%3E%3Cg stroke='rgba(0,0,0,0.04)' stroke-width='1.5' fill='none'%3E%3Cellipse cx='400' cy='400' rx='350' ry='80' transform='rotate(0 400 400)'/%3E%3Cellipse cx='400' cy='400' rx='350' ry='80' transform='rotate(10 400 400)'/%3E%3Cellipse cx='400' cy='400' rx='350' ry='80' transform='rotate(20 400 400)'/%3E%3Cellipse cx='400' cy='400' rx='350' ry='80' transform='rotate(30 400 400)'/%3E%3Cellipse cx='400' cy='400' rx='350' ry='80' transform='rotate(40 400 400)'/%3E%3Cellipse cx='400' cy='400' rx='350' ry='80' transform='rotate(50 400 400)'/%3E%3Cellipse cx='400' cy='400' rx='350' ry='80' transform='rotate(60 400 400)'/%3E%3Cellipse cx='400' cy='400' rx='350' ry='80' transform='rotate(70 400 400)'/%3E%3Cellipse cx='400' cy='400' rx='350' ry='80' transform='rotate(80 400 400)'/%3E%3Cellipse cx='400' cy='400' rx='350' ry='80' transform='rotate(90 400 400)'/%3E%3Cellipse cx='400' cy='400' rx='350' ry='80' transform='rotate(100 400 400)'/%3E%3Cellipse cx='400' cy='400' rx='350' ry='80' transform='rotate(110 400 400)'/%3E%3Cellipse cx='400' cy='400' rx='350' ry='80' transform='rotate(120 400 400)'/%3E%3Cellipse cx='400' cy='400' rx='350' ry='80' transform='rotate(130 400 400)'/%3E%3Cellipse cx='400' cy='400' rx='350' ry='80' transform='rotate(140 400 400)'/%3E%3Cellipse cx='400' cy='400' rx='350' ry='80' transform='rotate(150 400 400)'/%3E%3Cellipse cx='400' cy='400' rx='350' ry='80' transform='rotate(160 400 400)'/%3E%3Cellipse cx='400' cy='400' rx='350' ry='80' transform='rotate(170 400 400)'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 200%;
  background-position: center right;
  pointer-events: none;
  z-index: 0;
}

.value-number {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: clamp(3rem, 5vw, 4.5rem);
  color: rgba(0, 0, 0, 0.06);
  position: absolute;
  top: 1rem;
  left: 1.5rem;
  z-index: 2;
}

.value-content {
  position: relative;
  z-index: 2;
}

.value-name {
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  text-transform: uppercase;
  color: #1a1a1a;
  margin-bottom: 1rem;
}

.value-divider {
  width: 100%;
  height: 1px;
  border-top: 1px dashed rgba(0, 0, 0, 0.15);
  margin-bottom: 1rem;
}

.value-desc {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 0.9rem;
  line-height: 1.7;
  color: #555;
}

/* ==========================================================================
   SECTION 7 — EL PROCESO
   ========================================================================== */
.process-section {
  background: transparent;
  border-radius: 0;
  padding: 0;
  overflow: visible;
}

.process-video-header {
  position: relative;
  margin-left: calc(-1 * clamp(3rem, 6vw, 5rem) + 1rem);
  margin-right: calc(-1 * clamp(3rem, 6vw, 5rem) + 1rem);
  margin-top: 4rem;
  margin-bottom: 0;
  height: 110vh;
  border-radius: 20px;
  overflow: hidden;
}

.process-video-header video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.process-video-fade {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 18vh;
  background: linear-gradient(to bottom, transparent, var(--gray-light));
  pointer-events: none;
}

.process-content {
  /* Pull out of container padding to have exactly 1rem gap from edges */
  margin-left: calc(-1 * clamp(3rem, 6vw, 5rem) + 1rem);
  margin-right: calc(-1 * clamp(3rem, 6vw, 5rem) + 1rem);
  padding: 4rem 0 2rem;
}

.process-title {
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: clamp(4rem, 8vw, 7rem);
  color: #1a1a1a;
  text-align: right;
  margin-top: -8rem;
  margin-bottom: 2rem;
  position: relative;
  z-index: 10;
  text-shadow: 0 4px 14px rgba(0, 0, 0, 0.15), 0 1px 3px rgba(0, 0, 0, 0.2);
}

.process-intro {
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 3rem;
  margin-bottom: 0;
  flex-wrap: wrap;
}

.process-intro-text {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: clamp(0.9rem, 1.1vw, 1rem);
  line-height: 1.8;
  color: #555;
  max-width: 500px;
}

.process-intro-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.process-intro-logo {
  height: 40px;
  opacity: 0.9;
  filter: invert(1);
}

.process-cta-btn {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0.75rem 1.5rem;
  background: #1a1a1a;
  color: var(--white);
  border-radius: 999px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s;
  text-decoration: none;
}

.process-cta-btn:hover {
  background: #333;
  transform: scale(1.03);
}

/* ==========================================================================
   PROCESS STEPS LIST
   ========================================================================== */
.process-layout {
  display: flex;
  gap: 5vw;
  align-items: center;
  padding-top: 0;
}

.process-image-wrap {
  flex: 0 0 42%;
  position: relative;
  height: 80vh;
  border-radius: 20px;
  overflow: hidden;
}

.process-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.6s ease;
  border-radius: 20px;
}

.process-image.active {
  opacity: 1;
}

.process-steps-wrap {
  flex: 1;
  position: relative;
  padding-right: 3rem; /* Keep text away from the nav track */
}

.process-step {
  position: relative;
  padding: 2.5rem 3rem 2.5rem 0; /* Add 3rem padding right */
  margin-right: -3rem; /* Extend border to the right track */
  cursor: pointer;
  /* Full-width divider connecting left content to right nav track */
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  transition: all 0.3s;
}

.process-step:first-child {
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.process-step .step-number {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 0.8rem;
  color: rgba(0, 0, 0, 0.3);
  margin-bottom: 0.5rem;
  display: block;
  transition: color 0.3s;
}

.process-step .step-name {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: clamp(1.3rem, 2vw, 1.8rem);
  color: rgba(0, 0, 0, 0.4);
  transition: color 0.3s;
}

.process-step:hover .step-number, .process-step.active .step-number {
  color: rgba(0, 0, 0, 0.6);
}

.process-step:hover .step-name, .process-step.active .step-name {
  color: #1a1a1a;
}

/* Mobile-only accordion panel — hidden on desktop */
.step-img-panel {
  display: none;
}

.process-nav-bar {
  position: absolute;
  right: 0;
  top: 0;
  width: 4px;
  height: 0;
  background: var(--accent-orange);
  border-radius: 2px;
  transition: all 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.process-nav-track {
  position: absolute;
  right: 0;
  top: 0;
  width: 4px;
  height: 100%;
  background: rgba(0, 0, 0, 0.08);
  border-radius: 2px;
}

/* ==========================================================================
   LASER EFFECT (Values)
   ========================================================================== */
@property --laser-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

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

.laser-box {
  position: relative;
  z-index: 1;
}
.laser-box::after {
  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;
}

/* ==========================================================================
   SECTION — NUESTRO EQUIPO (nosotros page)
   ========================================================================== */
.nosotros-team-section {
  position: relative;
  min-height: 100vh;
  background: var(--dark);
  padding: 8rem 0;
  overflow: hidden;
}

.nosotros-team-content {
  position: relative;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Collage container — positioned to fill the whole section */
.nosotros-team-collage {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* Individual photo cards */
.collage-photo {
  position: absolute;
  top: 50%;
  left: 50%;
  width: clamp(180px, 18vw, 280px);
  aspect-ratio: 3 / 4;
  border-radius: 16px;
  overflow: hidden;
  transform: translate(-50%, -50%) rotate(0deg) scale(0.6);
  opacity: 0;
  transition: box-shadow 0.3s ease;
  pointer-events: auto;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

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

.collage-name {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  width: 90%;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: clamp(0.85rem, 1.2vw, 1.1rem);
  color: var(--white);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
  pointer-events: none;
}

.collage-photo:hover {
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.6);
}

/* Center text block — always on top of photos */
.nosotros-team-center {
  position: relative;
  z-index: 5;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  pointer-events: none;
}

/* Badge pill */
.nosotros-team-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 0.5rem 1.5rem;
  backdrop-filter: blur(6px);
}

.badge-plus {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--accent-orange);
}

.badge-text {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.8rem;
  color: var(--white);
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* Main headline */
.nosotros-team-headline {
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: clamp(1.2rem, 2vw, 1.8rem);
  max-width: 500px;
  line-height: 1.2;
  color: var(--white);
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

/* Spinning logo */
.nosotros-team-logo-spinner {
  margin-top: 1rem;
  width: 60px;
  height: 60px;
  animation: spinRotate 12s linear infinite;
}

.team-spin-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* ==========================================================================
   SECTION — CTA CONTACTO CON CARRUSEL EN ARCO
   ========================================================================== */
.cta-arc-section {
  position: relative;
  min-height: 130vh; /* Reducido a 130vh para probar la visualización */
  background: var(--bg-black);
  overflow: hidden;
  display: flex;
  align-items: flex-end; /* Baja el texto central considerablemente */
  justify-content: center;
  padding-bottom: 13vh;
}

/* Carrusel container — fills the entire section */
.arc-carousel {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* Individual arc items */
.arc-item {
  position: absolute;
  top: 0;
  left: 0;
  width: clamp(65px, 7.5vw, 120px); /* Ancho ajustado según tu imagen de referencia (casi cuadradas, ligeramente rectangulares) */
  height: clamp(68px, 8vw, 135px); /* Alto intacto */
  border-radius: 20px; /* Bordes muy redondeados */
  overflow: hidden;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.5);
  will-change: transform;
  backface-visibility: hidden;
  top: 0;
  left: 0;
}

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

.cta-arc-content {
  position: absolute;
  top: 75%; /* Movido hacia abajo drásticamente */
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 10;
  width: 100%;
  pointer-events: none;
}

/* Fades (ahora solo inferior para la entrada/salida) */
.arc-fade {
  position: absolute;
  z-index: 2;
  pointer-events: none;
}
.arc-fade-bottom {
  bottom: 0;
  left: 0;
  width: 100%;
  height: 25vh; /* Oculta solo cuando las imágenes caen al borde inferior */
  background: linear-gradient(to top, var(--bg-black) 0%, transparent 100%);
}

/* Center text block */
.cta-arc-center {
  position: relative;
  z-index: 5;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
  padding: 0 2rem;
  max-width: 700px;
}

/* "EMPIEZA AHORA" label */
.cta-arc-label {
  font-family: 'Bebas Neue', cursive;
  font-size: clamp(0.7rem, 0.9vw, 0.85rem);
  letter-spacing: 4px;
  color: var(--gray-mid);
}

/* Main headline en una sola línea */
.cta-arc-headline {
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: clamp(2.4rem, 4.8vw, 4.8rem);
  line-height: 1.1;
  color: var(--white);
  white-space: nowrap;
  /* Profundidad visual: capas de sombra que simulan un efecto 3D */
  text-shadow:
    0 1px 0 rgba(255,255,255,0.15),
    0 2px 4px rgba(0,0,0,0.6),
    0 6px 16px rgba(0,0,0,0.5),
    0 16px 40px rgba(0,0,0,0.35);
  letter-spacing: -0.02em;
}

.cta-highlight {
  color: rgba(255, 255, 255, 0.35);
  text-shadow:
    0 1px 0 rgba(255,255,255,0.08),
    0 4px 12px rgba(0,0,0,0.4);
}

/* Descriptive paragraph */
.cta-arc-desc {
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  font-size: clamp(0.65rem, 0.8vw, 0.78rem);
  line-height: 1.6;
  color: var(--gray-mid);
  max-width: 300px;
}

/* CTA Button */
.cta-arc-btn {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--white);
  border-radius: 999px;
  background: linear-gradient(145deg, #2a2a2a, #1a1a1a);
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  text-decoration: none;
  margin-top: 0.5rem;
  position: relative;
  overflow: hidden;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.cta-arc-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.cta-arc-btn:active {
  transform: translateY(1px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.cta-arc-btn span {
  display: block;
  position: relative;
  padding: 0.85rem 2.5rem;
  transition: transform 0.4s cubic-bezier(0.76, 0, 0.24, 1);
}

.cta-arc-btn span::after {
  content: attr(data-text);
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 100%;
  padding: 0.85rem 2.5rem;
  box-sizing: border-box;
  text-align: center;
  color: var(--white);
}

.cta-arc-btn:hover span {
  transform: translateY(-100%);
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */
@media (max-width: 992px) {
  .hero-reels-left, .hero-reels-right {
    opacity: 0.3;
  }
  .hero-center {
    max-width: 90%;
  }
  .process-layout {
    flex-direction: column;
    gap: 4rem;
  }
  .process-image-wrap {
    width: 100%;
    height: 40vh;
  }
  .process-steps-wrap {
    padding-right: 2rem;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  .values-grid {
    grid-template-columns: 1fr;
  }
  .values-header {
    gap: 2rem;
  }
  .story-section {
    padding: 4rem 2rem;
  }
  .collage-photo {
    width: clamp(120px, 35vw, 180px) !important;
  }
  .collage-content {
    padding: 0 1rem;
  }
  .process-intro {
    gap: 2rem;
  }
  
  /* Hero */
  .hero-brand-name {
    font-size: clamp(2.5rem, 10vw, 4rem);
    margin-top: 5vh;
  }
  
  /* Story */
  .story-main-text {
    font-size: clamp(1.4rem, 5vw, 2rem);
  }

  /* Process */
  .process-title {
    font-size: clamp(2.5rem, 8vw, 4rem);
    margin-top: -4rem;
  }
  
  .process-step {
    padding-right: 1rem;
    margin-right: -1rem;
  }

  /* ── Mobile: hide the desktop image column, use in-step accordion ── */
  .process-image-wrap {
    display: none !important;
  }

  .process-layout {
    flex-direction: column;
  }

  /* step-img-panel: collapsed by default */
  .step-img-panel {
    display: block; /* re-enable on mobile */
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.45s cubic-bezier(0.4, 0, 0.2, 1),
                opacity    0.35s ease,
                margin-top 0.35s ease;
    opacity: 0;
    margin-top: 0;
    border-radius: 14px;
  }

  .step-img-panel img {
    width: 100%;
    display: block;
    border-radius: 14px;
    object-fit: cover;
    aspect-ratio: 4 / 3;
  }

  /* When step is expanded (class added by JS) */
  .process-step.mobile-open .step-img-panel {
    max-height: 320px;
    opacity: 1;
    margin-top: 1rem;
  }

  /* Show a chevron indicator on mobile steps */
  .process-step .step-name::after {
    content: ' ›';
    display: inline-block;
    transition: transform 0.3s ease;
    font-weight: 300;
    opacity: 0.5;
  }

  .process-step.mobile-open .step-name::after {
    transform: rotate(90deg);
  }

  /* Team */
  .nosotros-team-headline {
    font-size: clamp(1rem, 5vw, 1.5rem);
  }
  
  .collage-photo {
    width: clamp(120px, 30vw, 180px);
  }

  /* Footer */
  .footer-top {
    flex-direction: column;
    gap: 3rem;
    padding: 5vh 2rem;
  }
  
  .footer-right {
    flex-direction: column;
    gap: 2rem;
  }
  /* Bottom Floating Navbar — compact mobile sizing (same as index.html),
     keeping nosotros dark color scheme */
  .bottom-nav {
    padding: 0.5rem 1rem !important;
    gap: 0.8rem !important;
    width: auto !important;
    max-width: 95vw !important;
    justify-content: center !important;
    bottom: 1rem !important;
    /* Keep the dark background color from nosotros */
    background: rgba(15, 15, 15, 0.95) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
  }

  .bottom-nav-link {
    font-size: 0.6rem !important;
    letter-spacing: 0.05em !important;
  }

  .bottom-nav-logo img {
    height: 20px !important;
  }

  /* ── Arc Carousel — Mobile overrides ── */
  .cta-arc-section {
    min-height: 80vh;
    padding-bottom: 12vh;
    margin-top: -5vh;
  }

  /* Smaller cards so they fit within the tighter horseshoe arc */
  .arc-item {
    width: clamp(45px, 12vw, 70px) !important;
    height: clamp(55px, 14vw, 85px) !important;
    border-radius: 12px !important;
  }

  /* Headline: make it smaller so it fits nicely inside the horseshoe */
  .cta-arc-headline {
    white-space: nowrap !important;
    font-size: clamp(1.2rem, 5.5vw, 1.8rem) !important;
    letter-spacing: -0.01em;
  }

  .cta-arc-center {
    padding: 0 1.5rem;
    max-width: 100%;
  }
}

/* ==========================================================================
   FOOTER — copiado de main.css, adaptado para posición estática (sin velo)
   ========================================================================== */
.footer {
  position: relative;
  width: 100%;
  min-height: 100vh;
  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;
}

.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;
  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%); }
}

/* ========================================================
   OVERRIDE SIDEBAR FOR MOBILE TO MATCH PORTAFOLIO MENU
   ======================================================== */
@media (max-width: 768px) {
  .sidebar {
    width: 100%;
    max-width: 100%;
    height: 100vh;
    height: 100dvh;
    transform: translateY(-100%);
    background: #0b0b0b;
    transition: transform 0.6s cubic-bezier(0.76, 0, 0.24, 1), opacity 0.4s ease, visibility 0.4s;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }

  body.sidebar-open .sidebar {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: all;
  }

  .sidebar-inner {
    padding-top: 5rem;
    justify-content: center;
  }

  .sidebar-close {
    top: 1.5rem;
    right: 1.5rem;
    left: auto;
    transform: none !important;
    width: 44px;
    height: 44px;
    font-size: 1.5rem;
    background: transparent;
  }

  body.sidebar-open .sidebar-close:hover {
    transform: scale(1.05) !important;
    background: rgba(255,255,255,0.1);
  }

  .sidebar-nav {
    gap: 1.5rem;
    margin-top: 1rem;
    margin-bottom: 2rem;
  }

  .sidebar-link {
    font-family: 'Bebas Neue', cursive;
    font-size: 2.2rem; /* Reduced from 3.5rem to match portafolio more closely */
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1px;
  }
  
  .sidebar-link::after {
    display: none; /* Usually Bebas Neue menus hide the underline effect or adapt it */
  }

  .sidebar-talk-btn {
    background: #113635; /* Teal color matching portafolio screenshot */
    background-image: none;
    animation: none;
    border-radius: 9999px;
    padding: 0.8rem 1.5rem 0.8rem 0.8rem;
    display: inline-flex;
    align-items: center;
    gap: 1rem;
  }

  .sidebar-talk-btn .talk-img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #fff;
  }

  .sidebar-talk-btn .talk-title {
    font-family: 'Bebas Neue', cursive;
    font-size: 1.4rem;
    text-transform: uppercase;
    letter-spacing: 1px;
  }
}
