/* ============================
   SEAPODSEO HOME — GLOBAL STYLES
   ============================ */

:root {
  /* Colors */
  --color-primary: #081a2f;
  --color-primary-light: #0878c9;
  --color-accent: #0878c9;
  --color-background: #F8FAFC;
  --color-foreground: #0F172A;
  --color-card: #FFFFFF;
  --color-muted: #E8ECF1;
  --color-muted-fg: #64748B;
  --color-border: #E2E8F0;
  --color-cta-hover: #055c9c;
  --color-text: #0F172A;
  --color-text-light: #64748B;

  /* Spacing */
  --spacing-xs: 4px;
  --spacing-sm: 8px;
  --spacing-md: 16px;
  --spacing-lg: 24px;
  --spacing-xl: 32px;
  --spacing-2xl: 48px;

  /* Typography */
  --font-primary: 'Poppins', sans-serif;
  --font-secondary: 'Open Sans', sans-serif;
  --line-height-tight: 1.2;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.75;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-normal: 300ms ease;
  --transition-slow: 500ms ease;

  /* Z-index */
  --z-base: 1;
  --z-dropdown: 100;
  --z-sticky: 500;
  --z-modal: 1000;
}

/* ==================== Reset ==================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-secondary);
  font-size: 16px;
  line-height: var(--line-height-normal);
  color: var(--color-text);
  background-color: #FFFFFF;
  overflow-x: hidden;
  
}

/* ==================== Typography ==================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-primary);
  font-weight: 600;
  line-height: var(--line-height-tight);
  margin-bottom: var(--spacing-md);
}

h1 { font-size: 48px; }
h2 { font-size: 36px; }
h3 { font-size: 24px; }
h4 { font-size: 20px; }
h5 { font-size: 18px; }
h6 { font-size: 16px; }

p {
  margin-bottom: var(--spacing-md);
  line-height: var(--line-height-relaxed);
}

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-cta-hover);
}

/* ==================== Container ==================== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

/* ==================== Sections ==================== */
.section {
  padding: var(--spacing-2xl) 0;
}

.section-white {
  background-color: #FFFFFF;
}

.section-light {
  background-color: var(--color-background);
}

.section-cta {
  background: linear-gradient(135deg, var(--color-primary) 0%, #0d2845 100%);
  color: #FFFFFF;
}

.section-cta h2,
.section-cta p {
  color: #FFFFFF;
}

/* ==================== NAVBAR ==================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: transparent;
  backdrop-filter: none;
  z-index: var(--z-sticky);
  box-shadow: none;
  transition: all var(--transition-slow);
}

.navbar.scrolled {
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-md);
}

.navbar-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--spacing-md) var(--spacing-md);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.navbar-logo a {
  font-family: var(--font-primary);
  font-size: 24px;
  font-weight: 700;
  color: #FFFFFF;
  transition: color var(--transition-slow);
}

.navbar-logo a:hover {
  color: rgba(255, 255, 255, 0.8);
}

.navbar.scrolled .navbar-logo a {
  color: var(--color-primary);
}

.navbar.scrolled .navbar-logo a:hover {
  color: var(--color-accent);
}

.navbar-menu {
  display: flex;
  gap: var(--spacing-xl);
  align-items: center;
}

.nav-link {
  font-size: 16px;
  color: #FFFFFF;
  font-weight: 500;
  transition: color var(--transition-slow);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.nav-link:hover {
  color: rgba(255, 255, 255, 0.7);
}

.navbar.scrolled .nav-link {
  color: var(--color-text);
  text-shadow: none;
}

.navbar.scrolled .nav-link:hover {
  color: var(--color-accent);
}

.nav-cta {
  background-color: transparent;
  color: #FFFFFF;
  padding: var(--spacing-sm) var(--spacing-lg);
  border-radius: 8px;
  font-weight: 600;
  border: 2px solid #FFFFFF;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  transition: all var(--transition-slow);
}

.nav-cta:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: #FFFFFF;
}

.navbar.scrolled .nav-cta {
  background-color: var(--color-accent);
  color: #FFFFFF;
  border: 2px solid var(--color-accent);
  text-shadow: none;
}

.navbar.scrolled .nav-cta:hover {
  background-color: var(--color-cta-hover);
  border-color: var(--color-cta-hover);
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 6px;
}

.hamburger span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--color-text);
  transition: all var(--transition-fast);
  border-radius: 2px;
}

/* ==================== HERO ==================== */
.hero-scroll {
  height: 700vh;
  position: relative;
  background: linear-gradient(180deg, var(--color-primary) 0%, #0d2845 100%);
}

.hero-sticky {
  position: sticky;
  top: 0;
  width: 100%;
  height: 100vh;
  background: linear-gradient(180deg, var(--color-primary) 0%, #0d2845 100%);
  overflow: hidden !important;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 70px;
}

.hero-sticky::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(to bottom, var(--color-primary) 0%, transparent 100%);
  z-index: 1;
  pointer-events: none;
}

#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.hero-vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 80% at 50% 50%, transparent 20%, rgba(8, 26, 47, 0.85) 100%),
    linear-gradient(to bottom, rgba(8, 26, 47, 0.75) 0%, transparent 15%, transparent 60%, rgba(8, 26, 47, 0.95) 100%);
  pointer-events: none;
  z-index: 1;
}

.hero-text {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: end;
  justify-items: center;
  gap: var(--spacing-xl);
  color: #FFFFFF;
  z-index: 2;
  pointer-events: auto;
  padding: var(--spacing-2xl);
}

.hero-eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-accent);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.6s ease 0.1s, transform 0.6s ease 0.1s;
  margin-bottom: var(--spacing-md);
  text-shadow: none;
}

.hero-eyebrow.vis {
  opacity: 1;
  transform: translateY(0);
}

.hero-h1 {
  font-size: 64px;
  font-weight: 700;
  line-height: 1.2;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
  margin-bottom: var(--spacing-lg);
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.95), 0 2px 8px rgba(0, 0, 0, 0.7);
  letter-spacing: -0.5px;
}

.hero-h1.vis {
  opacity: 1;
  transform: translateY(0);
}

.hero-sub {
  opacity: 0;
  transition: opacity 0.9s ease 0.25s;
  max-width: 600px;
  margin: 0 auto;
}

.hero-sub.vis {
  opacity: 1;
}

.hero-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: auto;
  pointer-events: auto;
}

.hero-col-left {
  align-items: flex-end;
  text-align: left;
  width: 100%;
}

.hero-col-center {
  align-items: center;
  justify-content: center;
  pointer-events: auto;
}

.hero-col-right {
  align-items: flex-start;
  text-align: right;
  background: rgba(8, 26, 47, 0.4);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: var(--spacing-lg);
  width: 100%;
}

.hero-col-left h1,
.hero-col-right p {
  margin-bottom: 0;
}

.hero-col-right p {
  font-size: 16px;
  line-height: 1.6;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
  font-weight: 500;
  margin-bottom: var(--spacing-md);
}

.hero-col-right p:last-child {
  margin-bottom: 0;
}

.btn-hero {
  font-size: 18px;
  padding: var(--spacing-md) var(--spacing-xl);
  white-space: nowrap;
  min-width: 280px;
  text-align: center;
}

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

/* Loading screen */
#loading {
  position: absolute;
  inset: 0;
  background-color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  opacity: 1;
  transition: opacity 0.6s ease 0.3s;
}

#loading.out {
  opacity: 0;
  pointer-events: none;
}

.loading-content {
  text-align: center;
  color: #FFFFFF;
}

.loading-brand {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: var(--spacing-lg);
}

.loading-bar {
  width: 200px;
  height: 3px;
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: var(--spacing-md);
}

.loading-fill {
  height: 100%;
  background-color: var(--color-accent);
  width: 0%;
  transition: width 0.1s linear;
}

#loadPct {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
}

/* Scroll hint */
.scroll-hint {
  position: absolute;
  bottom: 60px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-sm);
  color: #FFFFFF;
  z-index: 3;
  transition: opacity 0.4s ease;
}

.scroll-hint.gone {
  opacity: 0;
  pointer-events: none;
}

.scroll-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.scroll-hint-bar {
  width: 1px;
  height: 52px;
  background: linear-gradient(to bottom, transparent, var(--color-accent));
  animation: pulse-bar 1.8s ease-in-out infinite;
}

@keyframes pulse-bar {
  0%, 100% { opacity: 0.25; transform: scaleY(0.5); transform-origin: top; }
  50% { opacity: 1; transform: scaleY(1); transform-origin: top; }
}

/* Progress line */
.progress-line {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  background-color: var(--color-accent);
  width: 0%;
  will-change: width;
  z-index: 4;
}

/* ==================== Buttons ==================== */
.btn {
  display: inline-block;
  padding: var(--spacing-sm) var(--spacing-lg);
  font-size: 16px;
  font-weight: 600;
  border-radius: 8px;
  text-align: center;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
  font-family: var(--font-secondary);
}

.btn-primary {
  background-color: var(--color-accent);
  color: #FFFFFF;
  border-color: var(--color-accent);
  box-shadow: 0 4px 12px rgba(8, 120, 201, 0.4);
  transition: all var(--transition-fast);
}

.btn-primary:hover {
  background-color: var(--color-cta-hover);
  border-color: var(--color-cta-hover);
  color: #FFFFFF;
  box-shadow: 0 6px 16px rgba(8, 120, 201, 0.6);
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: transparent;
  color: var(--color-accent);
  border-color: var(--color-accent);
}

.btn-secondary:hover {
  background-color: var(--color-accent);
  color: #FFFFFF;
}

/* ==================== Cards Grid ==================== */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-xl);
  margin-top: var(--spacing-xl);
}

.card {
  background-color: var(--color-card);
  padding: var(--spacing-xl);
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border);
  transition: all var(--transition-normal);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.card h3 {
  color: var(--color-primary);
  margin-bottom: var(--spacing-md);
}

.card p {
  color: var(--color-text-light);
  font-size: 15px;
}

/* ==================== Section Title ==================== */
.section-title {
  font-size: 42px;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: var(--spacing-xl);
  text-align: center;
}

/* ==================== Content 2 Column ==================== */
.content-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-2xl);
  align-items: center;
  margin-top: var(--spacing-xl);
}

.content-text {
  font-size: 16px;
  line-height: 1.75;
  color: var(--color-text-light);
}

.content-text p {
  margin-bottom: var(--spacing-md);
}

.content-visual svg,
.content-visual img {
  width: 100%;
  height: auto;
  max-width: 900px;
}

/* ==================== Benefit List ==================== */
.benefit-list {
  list-style: none;
  margin: var(--spacing-xl) 0;
  padding-left: 0;
}

.benefit-list li {
  padding-left: var(--spacing-lg);
  margin-bottom: var(--spacing-md);
  position: relative;
  color: var(--color-text-light);
}

.benefit-list li:before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--color-accent);
  font-weight: bold;
  font-size: 20px;
}

.highlight {
  font-size: 18px;
  color: var(--color-primary);
}

/* ==================== CTA Block ==================== */
.cta-block {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.cta-block h2 {
  font-size: 42px;
  margin-bottom: var(--spacing-lg);
}

.cta-block p {
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: var(--spacing-lg);
}

/* ==================== Gallery Semicircular ==================== */
.gallery-semicircular {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-xl);
  margin-top: var(--spacing-2xl);
}

.gallery-item {
  min-height: 300px;
}

.service-card,
.industry-card {
  background-color: var(--color-card);
  padding: var(--spacing-xl);
  border-radius: 12px;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-md);
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-normal);
}

.service-card:hover,
.industry-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-accent);
}

.service-card h3,
.industry-card h3 {
  color: var(--color-primary);
  margin-bottom: var(--spacing-md);
  font-size: 20px;
}

.service-card p,
.industry-card p {
  flex-grow: 1;
  color: var(--color-text-light);
  margin-bottom: var(--spacing-md);
  font-size: 15px;
}

.link-arrow {
  color: var(--color-accent);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  transition: all var(--transition-fast);
}

.link-arrow:hover {
  gap: 10px;
}

/* ==================== 3D Scene (Arizona Gallery) ==================== */

/* Wrapper de 2 columnas: info izq | anillo der */
.scene-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 0;
  margin-top: var(--spacing-2xl);
  align-items: center;
  min-height: 500px;
  overflow: hidden;
}

/* Columna izquierda: panel de info */
.scene-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-right: var(--spacing-xl);
  min-height: 500px;
}

.center {
  width: 100%;
  text-align: left;
  pointer-events: none;
}

.center-default,
.center-project {
  transition: opacity 0.45s ease;
}

.center-default {
  opacity: 1;
}

.center-project {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
}

.center.show-project .center-default {
  opacity: 0;
}

.center.show-project .center-project {
  opacity: 1;
}

.center-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--spacing-sm);
}

.center-title {
  font-size: 28px;
  color: var(--color-primary);
  margin-bottom: 0;
  line-height: 1.2;
}

.center-title em {
  font-style: normal;
  color: var(--color-accent);
}

/* Panel de proyecto (click en card) */
.center-project-img {
  width: 100%;
  max-width: 240px;
  height: 150px;
  object-fit: cover;
  border-radius: 10px;
  display: block;
  margin-bottom: var(--spacing-md);
  box-shadow: var(--shadow-lg);
  animation: fadeInUp 0.35s ease;
}

.preview-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: var(--spacing-sm);
  font-family: var(--font-primary);
}

.preview-cat {
  font-size: 14px;
  color: var(--color-text-light);
  font-weight: 400;
  line-height: 1.55;
  margin: 0;
}

/* Columna derecha: el anillo 3D */
.scene {
  position: relative;
  width: 100%;
  height: 500px;
  overflow: visible;
  perspective: 1600px;
}

.gallery {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  transform-style: preserve-3d;
  transform: translate(-50%, -50%);
  will-change: transform;
}

.item {
  position: absolute;
  top: 0;
  left: 0;
  width: 140px;
  height: 160px;
  transform-style: preserve-3d;
}

.item-card {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  border: 2px solid rgba(8, 120, 201, 0.3);
  border-radius: 12px;
  overflow: hidden;
  background-color: var(--color-card);
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  transition: box-shadow 0.4s ease;
  cursor: pointer;
}

.item-card.is-active {
  box-shadow: 0 6px 16px -10px rgba(0, 0, 0, 0.35);
  border-color: var(--color-accent);
}

/* Cards de solo imagen */
.item-card-img-only {
  padding: 0;
  overflow: hidden;
}

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

/* Posicion relativa en scene-info para animación absoluta del center-project */
.scene-info {
  position: relative;
}

/* ==================== Accordion ==================== */
.accordion {
  max-width: 800px;
  margin: var(--spacing-2xl) auto;
}

.accordion-item {
  margin-bottom: var(--spacing-md);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  overflow: hidden;
}

.accordion-header {
  width: 100%;
  padding: var(--spacing-lg);
  background-color: var(--color-card);
  border: none;
  text-align: left;
  font-size: 16px;
  font-weight: 600;
  color: var(--color-primary);
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.accordion-header:hover {
  background-color: var(--color-muted);
}

.accordion-header::after {
  content: "+";
  font-size: 24px;
  color: var(--color-accent);
  transition: transform var(--transition-normal);
}

.accordion-item.active .accordion-header::after {
  transform: rotate(45deg);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-normal);
  background-color: var(--color-muted);
  padding: 0 var(--spacing-lg);
}

.accordion-item.active .accordion-content {
  max-height: 500px;
  padding: var(--spacing-lg);
}

.accordion-content p {
  color: var(--color-text-light);
  margin-bottom: var(--spacing-md);
  font-size: 15px;
}

/* ==================== Timeline ==================== */
.timeline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-xl);
  margin-top: var(--spacing-2xl);
}

.timeline-item {
  position: relative;
  padding-left: 64px;
  padding-top: 4px;
}

.timeline-number {
  position: absolute;
  left: 0;
  top: 0;
  width: 44px;
  height: 44px;
  background-color: var(--color-accent);
  color: #FFFFFF;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
}

.timeline-item h3 {
  color: var(--color-primary);
  margin-bottom: var(--spacing-md);
}

.timeline-item p {
  color: var(--color-text-light);
  font-size: 15px;
}

/* ==================== Footer ==================== */
.footer {
  background-color: var(--color-primary);
  color: #FFFFFF;
  padding: var(--spacing-2xl) 0 var(--spacing-lg);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--spacing-xl);
  margin-bottom: var(--spacing-2xl);
}

.footer-col h4 {
  color: #FFFFFF;
  margin-bottom: var(--spacing-md);
  font-size: 16px;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: var(--spacing-sm);
}

.footer-col a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  transition: color var(--transition-fast);
}

.footer-col a:hover {
  color: #FFFFFF;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--spacing-lg);
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
}

/* ==================== Responsive ==================== */
@media (max-width: 1024px) {
  h1 { font-size: 42px; }
  h2 { font-size: 32px; }
  h3 { font-size: 22px; }

  .section-title {
    font-size: 36px;
  }

  .hero-h1 {
    font-size: 42px;
  }

  .hero-text {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: var(--spacing-lg);
  }

  .hero-col-left {
    text-align: center;
    align-items: center;
    width: 90%;
    position: absolute;
    top: 70%;
  }
  .hero-col-right {
    display:none
  }

  .content-2col {
    grid-template-columns: 1fr;
  }

  .navbar-menu {
    gap: var(--spacing-lg);
  }

  /* Locations: reducir columna izq en tablet */
  .scene-layout {
    grid-template-columns: 220px 1fr;
  }
}

@media (max-width: 768px) {
  .navbar-menu {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .hero-sticky {
    height: 100vh;
  }

  .hero-text {
    grid-template-columns: 1fr;
    justify-items: stretch;
  }

  .hero-col {
    width: 100%;
  }

  .hero-col-left,
  .hero-col-right {
    text-align: center;
    align-items: center;
  }

  .hero-col-right {
    text-align: center;
  }

  .hero-h1 {
    font-size: 36px;
  }

  .hero-col-right p {
    font-size: 15px;
  }

  .btn-hero {
    min-width: 200px;
    font-size: 16px;
  }

  .section {
    padding: var(--spacing-xl) 0;
  }

  .section-title {
    font-size: 28px;
  }

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

  .gallery-semicircular {
    grid-template-columns: 1fr;
  }

  /* Locations mobile: columna única, info arriba | anillo abajo */
  .scene-layout {
    grid-template-columns: 1fr;
    min-height: auto;
    gap: var(--spacing-lg);
  }

  .scene-info {
    min-height: auto;
    padding-right: 0;
    padding-bottom: var(--spacing-md);
  }

  .center {
    text-align: center;
  }

  .center-project-img {
    max-width: 200px;
    height: 130px;
    margin: 0 auto var(--spacing-md);
  }

  .scene {
    height: 280px;
  }

  .item {
    width: 90px;
    height: 100px;
  }

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

  .cta-block h2 {
    font-size: 28px;
  }

  .timeline-item {
    padding-left: 60px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 var(--spacing-sm);
  }

  h1 { font-size: 28px; }
  h2 { font-size: 22px; }

  .section-title {
    font-size: 22px;
  }

  .hero-h1 {
    font-size: 28px;
  }

  .navbar-container {
    padding: var(--spacing-sm);
  }

  .btn {
    padding: var(--spacing-sm) var(--spacing-md);
    font-size: 14px;
  }

  .section {
    padding: var(--spacing-lg) 0;
  }

  .cards-grid {
    gap: var(--spacing-lg);
  }

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

/* ==================== Animations ==================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease forwards;
}

/* ==================== Industry Cards with Image ==================== */
.industry-card-img {
  width: 100%;
  height: 180px;
  overflow: hidden;
  border-radius: 8px;
  margin-bottom: var(--spacing-md);
}

.industry-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--transition-slow);
}

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

/* ==================== Trust Cards with Image ==================== */
.card-with-img {
  padding: 0;
  overflow: hidden;
}

.card-img {
  width: 100%;
  height: 180px;
  overflow: hidden;
}

.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--transition-slow);
}

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

.card-with-img h3,
.card-with-img p {
  padding: 0 var(--spacing-xl);
}

.card-with-img h3 {
  padding-top: var(--spacing-xl);
}

.card-with-img p:last-child {
  padding-bottom: var(--spacing-xl);
}

/* ==================== SECTION 4: Bullets Carousel 3D ==================== */
#seo-growth {
  padding-top: 70px;
  background: #081a2f;
  color: #e2e8f0;
}

#seo-growth .section-title {
  color: #e2e8f0;
}

#seo-growth p {
  color: rgba(226, 232, 240, 0.8);
}

.bullets-carousel-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 40px;
  perspective: 1200px;
}

.bullets-carousel-scene {
  flex: 1;
  overflow: hidden;
  position: relative;
}

.bullets-carousel-track {
  display: flex;
  gap: 24px;
  transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
  transform-style: preserve-3d;
  will-change: transform;
}

.bullet-card {
  flex: 0 0 260px;
  height: 320px;
  background: #0d2137;
  border-radius: 16px;
  border: 1px solid rgba(100, 200, 255, 0.15);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1),
              box-shadow 0.5s ease,
              opacity 0.5s ease;
  transform-style: preserve-3d;
  cursor: pointer;
}

.bullet-card.is-active {
  transform: scale(1.05) translateZ(30px);
  box-shadow: 0 0 0 2px rgba(8, 120, 201, 0.8),
              0 20px 60px rgba(8, 120, 201, 0.3);
}

.bullet-card.is-side-left {
  transform: scale(0.92) rotateY(8deg) translateZ(-20px);
  opacity: 0.7;
}

.bullet-card.is-side-right {
  transform: scale(0.92) rotateY(-8deg) translateZ(-20px);
  opacity: 0.7;
}

.bullet-card.is-far {
  opacity: 0.4;
  transform: scale(0.85) translateZ(-40px);
}

.bullet-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  flex-shrink: 0;
}

.bullet-card-text {
  padding: 16px;
  font-family: var(--font-secondary);
  font-size: 15px;
  color: #e2e8f0;
  line-height: 1.5;
  flex: 1;
  display: flex;
  align-items: center;
}

.bullets-carousel-arrow {
  background: rgba(8, 120, 201, 0.2);
  border: 1px solid rgba(8, 120, 201, 0.4);
  color: #4fc3f7;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.bullets-carousel-arrow:hover {
  background: rgba(8, 120, 201, 0.5);
  transform: scale(1.1);
}

.bullets-carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
}

.bullets-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: background 0.3s ease, transform 0.3s ease;
  border: none;
  padding: 0;
}

.bullets-dot.active {
  background: #0878c9;
  transform: scale(1.4);
}

@media (max-width: 768px) {
  .bullets-carousel-wrapper {
    gap: 8px;
  }
  .bullet-card {
    flex: 0 0 220px;
    height: 280px;
  }
  .bullet-card img {
    height: 180px;
  }
  .bullets-carousel-arrow {
    width: 36px;
    height: 36px;
    font-size: 15px;
  }
}

@media (max-width: 480px) {
  .bullet-card {
    flex: 0 0 180px;
    height: 250px;
  }
  .bullet-card img {
    height: 155px;
  }
  .bullet-card-text {
    font-size: 13px;
    padding: 12px;
  }
}

/* ==================== SECTION 6: Galería V4 (Preview + Carrusel 3D) ==================== */
.gallery-v4-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 40px;
  align-items: center;
}

/* --- Preview --- */
.gv4-preview-section {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 800px;
}

.gv4-preview-container {
  width: 100%;
  max-width: 500px;
  height: 500px;
  position: relative;
  background: #ffffff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(8, 120, 201, 0.15),
    0 30px 80px rgba(0, 0, 0, 0.18),
    0 0 100px rgba(8, 120, 201, 0.06);
  transform-style: preserve-3d;
  transition: transform 0.15s ease-out, box-shadow 0.15s ease-out;
  will-change: transform;
}

.gv4-preview-glare {
  position: absolute;
  inset: 0;
  border-radius: 20px;
  background: radial-gradient(circle at 50% 50%, rgba(255,255,255,0.2) 0%, transparent 60%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 5;
}

.gv4-preview-container:hover .gv4-preview-glare {
  opacity: 1;
}

#gv4PreviewImage {
  width: 100%;
  height: 78%;
  object-fit: cover;
  display: block;
  animation: gv4FadeIn 0.5s ease;
}

@keyframes gv4FadeIn {
  from { opacity: 0; transform: scale(0.96); }
  to   { opacity: 1; transform: scale(1); }
}

.gv4-preview-info {
  width: 100%;
  height: 22%;
  padding: 16px 20px;
  background: #ffffff;
  border-top: 1px solid rgba(8, 120, 201, 0.12);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

#gv4PreviewTitle {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 4px;
  font-family: var(--font-primary);
}

#gv4PreviewDesc {
  font-size: 13px;
  color: var(--color-accent);
  font-weight: 400;
  margin: 0;
  line-height: 1.4;
}

/* --- Carousel --- */
.gv4-carousel-section {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
}

.gv4-carousel-scene {
  width: 100%;
  height: 560px;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
  perspective: 1000px;
  perspective-origin: 50% 50%;
}

.gv4-tilt-wrapper {
  position: relative;
  transform-style: preserve-3d;
  will-change: transform;
  transition: transform 0.08s linear;
}

.gv4-carousel-container {
  position: relative;
  width: 250px;
  height: 400px;
  transform-style: preserve-3d;
}

.gv4-carousel-item {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 150px;
  height: 150px;
  transform: translate(-50%, -50%);
  transform-style: preserve-3d;
  cursor: pointer;
}

.gv4-carousel-item-inner {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 14px;
  overflow: hidden;
  background: #f0f4f8;
  transition: box-shadow 0.3s ease, filter 0.3s ease;
  backface-visibility: hidden;
  will-change: transform;
}

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

.gv4-carousel-item-number {
  position: absolute;
  top: 6px;
  right: 6px;
  background: rgba(8, 26, 47, 0.75);
  color: white;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 10px;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 10;
}

.gv4-carousel-item-shadow {
  position: absolute;
  bottom: -20px;
  left: 10%;
  width: 80%;
  height: 20px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 50%;
  filter: blur(8px);
  pointer-events: none;
  transform: scaleX(1);
  transition: opacity 0.3s ease, transform 0.3s ease;
  opacity: 0;
}

.gv4-depth-lines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: 14px;
  background: linear-gradient(
    135deg,
    rgba(255,255,255,0.08) 0%,
    transparent 50%,
    rgba(0,0,0,0.06) 100%
  );
}

.gv4-carousel-item:hover .gv4-carousel-item-inner {
  box-shadow:
    0 0 0 2px rgba(8, 120, 201, 0.7),
    0 16px 48px rgba(8, 120, 201, 0.2);
  filter: brightness(1.1);
}

.gv4-carousel-item:hover .gv4-carousel-item-number {
  opacity: 1;
}

.gv4-carousel-item:hover .gv4-carousel-item-shadow {
  opacity: 1;
  transform: scaleX(0.9);
}

.gv4-carousel-item.active .gv4-carousel-item-inner {
  box-shadow:
    0 0 0 2px rgba(8, 120, 201, 0.95),
    0 0 40px rgba(8, 120, 201, 0.3),
    0 20px 60px rgba(8, 120, 201, 0.15);
  filter: brightness(1.15);
}

.gv4-carousel-item.active .gv4-carousel-item-shadow {
  opacity: 1;
}

.gv4-carousel-info {
  text-align: center;
  color: var(--color-text-light);
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}

.gv4-drag-hint {
  font-size: 13px;
  opacity: 0.7;
  font-weight: 500;
  color: var(--color-accent);
  margin: 0;
}

.gv4-carousel-counter {
  font-size: 15px;
  font-weight: 600;
  opacity: 0.85;
}

#gv4CurrentIndex {
  color: var(--color-accent);
  font-weight: 700;
  font-size: 17px;
}

@media (max-width: 1024px) {
  .gallery-v4-wrapper {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .gv4-preview-container {
    max-width: 100%;
    height: 380px;
  }
  .gv4-carousel-scene {
    height: 440px;
  }
  .gv4-carousel-container {
    position: relative;
    left: 20%;
    margin-left: -125px;
  }
  .gv4-carousel-item {
    width: 120px;
    height: 120px;
  }
}

@media (max-width: 768px) {
  .gv4-preview-container {
    height: 300px;
  }
  #gv4PreviewImage {
    height: 75%;
  }
  .gv4-carousel-scene {
    height: 380px;
  }
  .gv4-carousel-item {
    width: 100px;
    height: 100px;
  }
}

@media (max-width: 480px) {
  .gv4-preview-container {
    height: 250px;
  }
  #gv4PreviewTitle {
    font-size: 15px;
  }
  #gv4PreviewDesc {
    font-size: 12px;
  }
  .gv4-carousel-scene {
    height: 320px;
  }
  .gv4-carousel-item {
    width: 85px;
    height: 85px;
  }
}
