/* ===== TSW Landing Page - Premium Dark Theme ===== */
/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Montserrat:wght@700;800;900&family=Outfit:wght@300;400;500;600;700;800;900&display=swap');

/* ===== CSS Custom Properties ===== */
:root {
  --bg-primary: #121F2B;
  --bg-secondary: #0D1820;
  --bg-card: rgba(18, 31, 43, 0.85);
  --gold: #BFAE7E;
  --gold-light: #D4C89A;
  --gold-dark: #9E8F63;
  --teal: #00BFB3;
  --teal-light: #33CFC5;
  --teal-dark: #009E94;
  --white: #FDFDFD;
  --grey: #4A4A4A;
  --grey-light: #6A6A6A;

  --font-primary: 'Outfit', sans-serif;
  --font-secondary: 'Inter', sans-serif;

  --shadow-gold: 0 0 30px rgba(191, 174, 126, 0.15);
  --shadow-teal: 0 0 30px rgba(0, 191, 179, 0.15);
  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.3);
  --shadow-elevated: 0 20px 60px rgba(0, 0, 0, 0.4);

  --transition-smooth: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition-bounce: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

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

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

body {
  font-family: var(--font-secondary);
  background: var(--bg-primary);
  color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

ul, ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-primary);
  line-height: 1.2;
}

/* ===== Utility Classes ===== */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section-padding {
  padding: 6rem 0;
}

/* ===== Subtle Background Grain Texture ===== */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}

main {
  position: relative;
  z-index: 1;
}


/* ===== Navigation ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1rem 2rem;
  transition: var(--transition-smooth);
  background: transparent;
}

.navbar.scrolled {
  background: rgba(12, 20, 28, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(191, 174, 126, 0.1);
  padding: 0.6rem 2rem;
}

.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-brand-icon {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-primary);
  font-weight: 900;
  font-size: 1.1rem;
  color: var(--bg-primary);
  box-shadow: var(--shadow-gold);
}

.nav-brand-text {
  font-family: var(--font-primary);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
}

.nav-brand-text span {
  color: var(--gold);
}

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

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(253, 253, 253, 0.7);
  transition: var(--transition-smooth);
  position: relative;
  letter-spacing: 0.5px;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--teal);
  transition: var(--transition-smooth);
}

.nav-links a:hover {
  color: var(--teal);
}

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

.nav-cta {
  padding: 0.5rem 1.5rem;
  background: var(--teal);
  color: var(--white) !important;
  border-radius: 25px;
  font-weight: 600 !important;
  font-size: 0.813rem !important;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: var(--transition-smooth) !important;
  box-shadow: 0 4px 15px rgba(0, 191, 179, 0.3);
}

.nav-cta::after {
  display: none !important;
}

.nav-cta:hover {
  background: var(--teal-light) !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(0, 191, 179, 0.4);
}

/* Mobile hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 5px;
  z-index: 1001;
}

.nav-hamburger span {
  display: block;
  width: 28px;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
  transition: var(--transition-smooth);
}

/* ===== HERO SECTION ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 8rem 0 4rem;
  position: relative;
  overflow: hidden;
}

/* Hero background video */
.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
}

.hero-video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(18, 31, 43, 0.75);
  z-index: 0;
  pointer-events: none;
}

/* Animated circuit lines background */
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(0, 191, 179, 0.05) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 30%, rgba(191, 174, 126, 0.05) 0%, transparent 60%);
  pointer-events: none;
  z-index: 1;
}

/* Grid pattern overlay */
.hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    linear-gradient(rgba(191, 174, 126, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(191, 174, 126, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 1;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-text {
  animation: fadeInUp 1s ease forwards;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.2rem;
  border: 1px solid rgba(191, 174, 126, 0.3);
  border-radius: 50px;
  font-size: 0.75rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5rem;
  backdrop-filter: blur(10px);
  background: rgba(191, 174, 126, 0.05);
}

.hero-badge-dot {
  width: 6px;
  height: 6px;
  background: var(--teal);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 900;
  color: var(--gold);
  line-height: 1.1;
  margin-bottom: 1.5rem;
  letter-spacing: -1px;
}

.hero-title span {
  display: block;
  color: var(--white);
  font-size: 2.5rem;
  font-weight: 600;
  margin-top: 0.5rem;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: rgba(253, 253, 253, 0.7);
  line-height: 1.7;
  margin-bottom: 2.5rem;
  max-width: 480px;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 2.2rem;
  border-radius: 50px;
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  transition: var(--transition-smooth);
  cursor: pointer;
  border: none;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--teal);
  color: var(--white);
  box-shadow: 0 4px 20px rgba(0, 191, 179, 0.3);
}

.btn-primary:hover {
  background: var(--teal-light);
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0, 191, 179, 0.4);
}

.btn-secondary {
  background: transparent;
  color: var(--gold);
  border: 2px solid rgba(191, 174, 126, 0.4);
}

.btn-secondary:hover {
  border-color: var(--gold);
  background: rgba(191, 174, 126, 0.1);
  transform: translateY(-3px);
}

.btn-gold {
  background: var(--gold);
  color: var(--white);
  box-shadow: 0 4px 20px rgba(191, 174, 126, 0.3);
}

.btn-gold:hover {
  background: var(--gold-light);
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(191, 174, 126, 0.4);
}

/* Shimmer effect on button */
.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
  transition: left 0.5s ease;
}

.btn-primary:hover::before {
  left: 100%;
}

.hero-image {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  animation: fadeInRight 1s ease forwards;
}

.hero-logo-container {
  position: relative;
  width: 100%;
  max-width: 500px;
}

.hero-logo-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(0, 191, 179, 0.15) 0%, rgba(191, 174, 126, 0.08) 50%, transparent 70%);
  border-radius: 50%;
  animation: glowPulse 4s ease-in-out infinite;
}

.hero-logo-img {
  position: relative;
  z-index: 2;
  width: 100%;
  border-radius: 20px;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.5));
  transition: var(--transition-smooth);
}

.hero-logo-img:hover {
  transform: scale(1.03);
  filter: drop-shadow(0 25px 50px rgba(0, 0, 0, 0.6));
}

/* Circuit trace decorations around hero image */
.circuit-line {
  position: absolute;
  z-index: 1;
}

.circuit-line-1 {
  top: -20px;
  right: -30px;
  width: 100px;
  height: 2px;
  background: linear-gradient(90deg, var(--teal), transparent);
}

.circuit-line-1::before {
  content: '';
  position: absolute;
  right: 0;
  top: -4px;
  width: 10px;
  height: 10px;
  border: 2px solid var(--teal);
  border-radius: 50%;
  background: var(--bg-primary);
}

.circuit-line-2 {
  bottom: -20px;
  left: -30px;
  width: 80px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold));
}

.circuit-line-2::before {
  content: '';
  position: absolute;
  left: 0;
  top: -3px;
  width: 8px;
  height: 8px;
  background: var(--gold);
  border-radius: 2px;
  transform: rotate(45deg);
}

.circuit-line-3 {
  top: 50%;
  right: -40px;
  width: 2px;
  height: 60px;
  background: linear-gradient(180deg, var(--gold), transparent);
}

/* ===== SCROLLING LOGO BAR ===== */
.logo-bar {
  background: var(--bg-secondary);
  border-top: 1px solid rgba(191, 174, 126, 0.1);
  border-bottom: 1px solid rgba(191, 174, 126, 0.1);
  padding: 1.2rem 0;
  overflow: hidden;
  position: relative;
}

.logo-bar-track {
  display: flex;
  animation: scrollLeft 30s linear infinite;
  width: max-content;
}

.logo-bar-item {
  font-family: var(--font-primary);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--gold);
  white-space: nowrap;
  padding: 0 2.5rem;
  opacity: 0.6;
}

.logo-bar-item .dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--teal);
  border-radius: 50%;
  margin: 0 1.5rem;
  vertical-align: middle;
}

/* ===== TIMELINE / PROJECTS SECTION ===== */
.timeline-section {
  position: relative;
  padding: 6rem 0;
  background:
    linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 50%, var(--bg-primary) 100%);
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  border: 1px solid rgba(0, 191, 179, 0.3);
  border-radius: 50px;
  font-size: 0.7rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 1rem;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.section-subtitle {
  font-size: 1.05rem;
  color: rgba(253, 253, 253, 0.6);
  max-width: 600px;
  margin: 0 auto;
}

/* Timeline vertical line */
.timeline {
  position: relative;
  padding: 2rem 0;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 100%;
  background: linear-gradient(180deg, var(--gold-dark), var(--teal), var(--gold-dark));
  opacity: 0.4;
}

.timeline-item {
  display: grid;
  /* El calc(50% - 30px) fuerza a que ambas columnas laterales midan exactamente lo mismo, asegurando que los puntos y la línea queden 100% alineados. */
  grid-template-columns: calc(50% - 30px) 60px calc(50% - 30px);
  gap: 0;
  align-items: center;
  margin-bottom: 4rem;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.timeline-item.visible {
  opacity: 1;
  transform: translateY(0);
}

.timeline-item:nth-child(odd) .timeline-content {
  grid-column: 1;
  grid-row: 1;
  text-align: right;
  padding-right: 2rem;
}

.timeline-item:nth-child(odd) .timeline-image {
  grid-column: 3;
  grid-row: 1;
  padding-left: 2rem;
}

.timeline-item:nth-child(even) .timeline-content {
  grid-column: 3;
  grid-row: 1;
  text-align: left;
  padding-left: 2rem;
}

.timeline-item:nth-child(even) .timeline-image {
  grid-column: 1;
  grid-row: 1;
  padding-right: 2rem;
  display: flex;
  justify-content: flex-end;
}

.timeline-dot {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.timeline-dot-inner {
  width: 18px;
  height: 18px;
  background: var(--teal);
  border-radius: 50%;
  position: relative;
  box-shadow: 0 0 20px rgba(0, 191, 179, 0.4);
}

.timeline-dot-inner::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 30px;
  height: 30px;
  border: 2px solid rgba(0, 191, 179, 0.3);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

.timeline-content h3 {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--teal);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 0.75rem;
}

.timeline-content p {
  font-size: 0.95rem;
  color: rgba(253, 253, 253, 0.7);
  line-height: 1.7;
}

.timeline-content .project-tech {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.75rem;
  flex-wrap: wrap;
}

.timeline-item:nth-child(odd) .project-tech {
  justify-content: flex-end;
}

.project-tech span {
  padding: 0.25rem 0.75rem;
  font-size: 0.7rem;
  border: 1px solid rgba(191, 174, 126, 0.3);
  border-radius: 20px;
  color: var(--gold);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.timeline-image img {
  max-width: 280px;
  border-radius: 16px;
  box-shadow: var(--shadow-card);
  transition: var(--transition-smooth);
  border: 1px solid rgba(191, 174, 126, 0.1);
}

.timeline-image img:hover {
  transform: scale(1.03);
  box-shadow: var(--shadow-elevated);
  border-color: rgba(0, 191, 179, 0.3);
}

/* ===== PORTFOLIO GALLERY ===== */
/* Code Snippets Background */
.bg-code-snippets {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.code-snippet {
  position: absolute;
  color: var(--teal);
  opacity: 0.15;
  font-size: 2.5rem;
  white-space: nowrap;
  user-select: none;
  animation: floatCode 15s infinite alternate ease-in-out;
  display: inline-flex;
}

.code-snippet svg {
  width: 1em;
  height: 1em;
}

.cs-1 { top: 8%; left: 8%; font-size: 3.5rem; animation-duration: 18s; }
.cs-2 { top: 12%; left: 48%; font-size: 4rem; animation-duration: 22s; }
.cs-3 { top: 10%; right: 8%; font-size: 3rem; animation-duration: 15s; }
.cs-4 { top: 28%; left: 20%; font-size: 3.8rem; animation-duration: 20s; }
.cs-5 { top: 32%; left: 60%; font-size: 3.2rem; animation-duration: 19s; }
.cs-6 { top: 30%; right: 12%; font-size: 4.5rem; animation-duration: 25s; }
.cs-7 { top: 48%; left: 8%; font-size: 4.2rem; animation-duration: 17s; }
.cs-8 { top: 52%; left: 45%; font-size: 3.5rem; animation-duration: 24s; }
.cs-9 { top: 50%; right: 18%; font-size: 3.8rem; animation-duration: 21s; }
.cs-10 { top: 72%; left: 22%; font-size: 3.4rem; animation-duration: 16s; }
.cs-11 { top: 68%; left: 60%; font-size: 4.5rem; animation-duration: 23s; }
.cs-12 { top: 70%; right: 8%; font-size: 3.6rem; animation-duration: 18s; }
.cs-13 { top: 88%; left: 12%; font-size: 3.1rem; animation-duration: 20s; }
.cs-14 { top: 92%; left: 48%; font-size: 4.2rem; animation-duration: 26s; }
.cs-15 { top: 90%; right: 15%; font-size: 3.5rem; animation-duration: 19s; }

@keyframes floatCode {
  0% { transform: translateY(0) translateX(0); }
  100% { transform: translateY(-30px) translateX(15px); }
}

.portfolio-gallery {
  position: relative;
  overflow: hidden;
}

.portfolio-gallery .section-header,
.portfolio-gallery .gallery-grid {
  position: relative;
  z-index: 1;
}

.gallery-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}

.gallery-item {
  flex: 0 1 320px;
  width: 100%;
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(191, 174, 126, 0.15);
  transition: var(--transition-smooth);
}

.gallery-item img {
  width: 100%;
  height: 220px;
  object-fit: contain;
  background-color: var(--bg-secondary);
  transition: transform 0.6s ease;
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(12, 20, 28, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition-smooth);
  backdrop-filter: blur(4px);
}

.gallery-overlay span {
  padding: 0.75rem 1.5rem;
  background: var(--teal);
  color: var(--white);
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  border-radius: 30px;
  transform: translateY(20px);
  transition: var(--transition-smooth);
  box-shadow: var(--shadow-teal);
}

.gallery-item:hover {
  transform: translateY(-8px);
  border-color: rgba(0, 191, 179, 0.4);
  box-shadow: var(--shadow-elevated);
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-item:hover .gallery-overlay span {
  transform: translateY(0);
}

/* ===== PROJECT MODAL ===== */
.project-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(8, 14, 20, 0.9);
  z-index: 9999;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  backdrop-filter: blur(8px);
  padding: 1rem;
}

.project-modal.active {
  display: flex;
  opacity: 1;
}

.project-modal-content {
  background: var(--bg-secondary);
  border: 1px solid rgba(191, 174, 126, 0.2);
  border-radius: 20px;
  width: 100%;
  max-width: 900px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: var(--shadow-elevated);
  transform: scale(0.95) translateY(20px);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.project-modal.active .project-modal-content {
  transform: scale(1) translateY(0);
}

.project-modal-close {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  font-size: 2rem;
  color: rgba(253, 253, 253, 0.6);
  cursor: pointer;
  transition: var(--transition-smooth);
  z-index: 10;
  line-height: 1;
}

.project-modal-close:hover {
  color: var(--teal);
  transform: rotate(90deg);
}

.project-modal-body {
  display: grid;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .project-modal-body {
    grid-template-columns: 1.4fr 1fr;
    min-height: 450px;
  }
}

.project-modal-carousel {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
  border-right: 1px solid rgba(191, 174, 126, 0.1);
}

.carousel-track {
  display: flex;
  height: 100%;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.carousel-track img {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background-color: transparent;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(12, 20, 28, 0.7);
  color: var(--white);
  border: 1px solid rgba(191, 174, 126, 0.3);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  z-index: 5;
  transition: var(--transition-smooth);
}

.carousel-btn:hover {
  background: var(--teal);
  border-color: var(--teal);
}

.carousel-prev {
  left: 10px;
}

.carousel-next {
  right: 10px;
}

.carousel-indicators {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 5;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(253, 253, 253, 0.3);
  cursor: pointer;
  transition: var(--transition-smooth);
  border: 1px solid rgba(191, 174, 126, 0.2);
}

.carousel-dot.active {
  background: var(--teal);
  transform: scale(1.2);
  border-color: var(--teal);
}

@media (max-width: 767px) {
  .project-modal-carousel {
    height: 300px;
    border-right: none;
    border-bottom: 1px solid rgba(191, 174, 126, 0.1);
  }
}

.project-modal-info {
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.project-modal-info h3 {
  font-size: 1.5rem;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.project-modal-info p {
  color: rgba(253, 253, 253, 0.8);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.project-modal-btn {
  align-self: flex-start;
}

/* ===== NOSOTROS / ABOUT SECTION ===== */
.about-section {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 50%, var(--bg-primary) 100%);
}

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

.about-card {
  background: rgba(18, 31, 43, 0.9);
  border: 1px solid rgba(191, 174, 126, 0.15);
  border-radius: 20px;
  padding: 2.5rem 2rem;
  /* Removed backdrop-filter to prevent Chrome GPU block rendering bug */
  position: relative;
  overflow: hidden;
  transition: var(--transition-smooth);
}

.about-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--gold), var(--teal));
  border-radius: 20px 20px 0 0;
  opacity: 0;
  transition: var(--transition-smooth);
}

.about-card:hover {
  transform: translateY(-6px);
  border-color: rgba(191, 174, 126, 0.3);
  box-shadow: var(--shadow-elevated);
}

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

.about-card-icon {
  width: 56px;
  height: 56px;
  background: rgba(191, 174, 126, 0.1);
  border: 1px solid rgba(191, 174, 126, 0.25);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: var(--gold);
  transition: var(--transition-smooth);
}

.about-card:hover .about-card-icon {
  background: rgba(191, 174, 126, 0.2);
  transform: scale(1.05);
}

.about-card-icon--teal {
  background: rgba(0, 191, 179, 0.1);
  border-color: rgba(0, 191, 179, 0.25);
  color: var(--teal);
}

.about-card:hover .about-card-icon--teal {
  background: rgba(0, 191, 179, 0.2);
}

.about-card-icon--mixed {
  background: linear-gradient(135deg, rgba(191, 174, 126, 0.1), rgba(0, 191, 179, 0.1));
  border-color: rgba(191, 174, 126, 0.2);
  color: var(--gold);
}

.about-card:hover .about-card-icon--mixed {
  background: linear-gradient(135deg, rgba(191, 174, 126, 0.2), rgba(0, 191, 179, 0.2));
}

.about-card h3 {
  font-family: var(--font-primary);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 1rem;
}

.about-card p {
  font-size: 0.95rem;
  color: rgba(253, 253, 253, 0.75);
  line-height: 1.8;
}

.about-values-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.about-values-list li {
  font-size: 0.95rem;
  color: rgba(253, 253, 253, 0.7);
  line-height: 1.6;
  padding-left: 1rem;
  position: relative;
}

.about-values-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 5px;
  height: 5px;
  background: var(--teal);
  border-radius: 50%;
}

.about-values-list li span {
  font-weight: 700;
  color: var(--teal);
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  padding: 2.5rem 0 0;
  border-top: 1px solid rgba(191, 174, 126, 0.15);
}

.about-stat {
  text-align: center;
}

.about-stat-number {
  font-family: var(--font-primary);
  font-size: 2rem;
  font-weight: 900;
  color: var(--teal);
  display: block;
}

.about-stat-label {
  font-size: 0.75rem;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 0.25rem;
}

/* ===== CTA SECTION ===== */
.cta-section {
  background: var(--teal);
  padding: 4rem 0;
  position: relative;
  overflow: hidden;
  min-height: 340px;
  display: flex;
  align-items: center;
}

.cta-bg-img {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  min-height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
  z-index: 0;
  image-rendering: auto;
}

.cta-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.65);
  z-index: 0;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(191, 174, 126, 0.15) 0%, transparent 70%);
  border-radius: 50%;
}

.cta-section::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(0, 0, 0, 0.1) 0%, transparent 70%);
  border-radius: 50%;
}

.cta-inner {
  text-align: center;
  position: relative;
  z-index: 2;
}

.cta-inner h2 {
  font-size: 3rem;
  font-weight: 900;
  color: var(--white);
  margin-bottom: 1rem;
  line-height: 1.1;
}

.cta-inner p {
  font-size: 1.2rem;
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  color: #ffdf00;
  margin-bottom: 2.5rem;
  max-width: 550px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

/* ===== FOOTER SECTION ===== */
.footer {
  background: var(--bg-secondary);
  padding: 5rem 0 0;
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-dark), var(--teal-dark), transparent);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

/* FAQ Column */
.footer-faq h3 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 2rem;
}

.faq-item {
  border-bottom: 1px solid rgba(191, 174, 126, 0.1);
  overflow: hidden;
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 0;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.faq-question:hover {
  color: var(--teal);
}

.faq-question span {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--white);
  transition: var(--transition-smooth);
}

.faq-question:hover span {
  color: var(--teal);
}

.faq-icon {
  width: 28px;
  height: 28px;
  border: 1px solid rgba(191, 174, 126, 0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--gold);
  transition: var(--transition-smooth);
  flex-shrink: 0;
}

.faq-item.active .faq-icon {
  background: var(--teal);
  border-color: var(--teal);
  color: var(--white);
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq-answer p {
  padding: 0 0 1.2rem 0;
  font-size: 0.9rem;
  color: rgba(253, 253, 253, 0.6);
  line-height: 1.7;
}

.faq-item.active .faq-answer {
  max-height: 200px;
}

/* Contact Column */
.footer-contact h3 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 2rem;
}

/* Contact Form */
.contact-form {
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: linear-gradient(145deg, rgba(0, 191, 179, 0.08), rgba(191, 174, 126, 0.05));
  padding: 2rem;
  border-radius: 16px;
  border: 1px solid rgba(0, 191, 179, 0.2);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2), inset 0 0 20px rgba(0, 191, 179, 0.05);
  backdrop-filter: blur(10px);
}

.form-group {
  width: 100%;
}

.form-input, .form-select {
  width: 100%;
  padding: 0.9rem 1.2rem;
  background: rgba(18, 31, 43, 0.5);
  border: 1px solid rgba(191, 174, 126, 0.2);
  border-radius: 8px;
  color: var(--white);
  font-family: var(--font-secondary);
  font-size: 0.95rem;
  transition: var(--transition-smooth);
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23FDFDFD' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1.2rem center;
  cursor: pointer;
}

.form-select option {
  background: var(--bg-primary);
  color: var(--white);
}

.form-input::placeholder {
  color: rgba(253, 253, 253, 0.4);
}

.form-input:focus, .form-select:focus {
  outline: none;
  border-color: var(--teal);
  background: rgba(18, 31, 43, 0.8);
  box-shadow: 0 0 15px rgba(0, 191, 179, 0.2);
}

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

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

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

.contact-info-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 1rem;
  background: rgba(18, 31, 43, 0.5);
  border: 1px solid rgba(191, 174, 126, 0.08);
  border-radius: 12px;
  transition: var(--transition-smooth);
}

.contact-info-item:hover {
  border-color: rgba(0, 191, 179, 0.3);
  background: rgba(0, 191, 179, 0.05);
}

.contact-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(191, 174, 126, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-icon svg {
  width: 20px;
  height: 20px;
  fill: var(--gold);
}

.contact-info-item .contact-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--gold);
  font-weight: 600;
}

.contact-info-item .contact-value {
  font-size: 0.9rem;
  color: var(--white);
}

/* Footer Bottom */
.footer-bottom {
  margin-top: 4rem;
  padding: 2rem 0;
  border-top: 1px solid rgba(191, 174, 126, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.footer-logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-primary);
  font-weight: 900;
  font-size: 0.9rem;
  color: var(--bg-primary);
}

.footer-logo-text {
  font-family: var(--font-primary);
  font-weight: 600;
  color: var(--gold-dark);
  font-size: 0.9rem;
}

.footer-copyright {
  font-size: 0.8rem;
  color: var(--gold-dark);
  letter-spacing: 1px;
}

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

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    opacity: 0.5;
    transform: translate(-50%, -50%) scale(1.5);
  }
}

@keyframes glowPulse {
  0%, 100% {
    opacity: 0.6;
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
  }
}

@keyframes scrollLeft {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* ===== SCROLL REVEAL BASE ===== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

/* ===== RESPONSIVE ===== */

/* Hide mobile preview on smaller screens */
@media (max-width: 1400px) {
  .mobile-preview {
    display: none;
  }
}

@media (max-width: 1024px) {
  .hero-title {
    font-size: 2.5rem;
  }
  .hero-title span {
    font-size: 1.8rem;
  }
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }
  .hero-text {
    order: 1;
  }
  .hero-image {
    order: 0;
  }
  .hero-subtitle {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }
  .hero-buttons {
    justify-content: center;
  }
  .hero-logo-container {
    max-width: 350px;
    margin: 0 auto;
  }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    text-align: left !important;
  }
  .timeline-item:nth-child(odd) .timeline-content,
  .timeline-item:nth-child(even) .timeline-content {
    grid-column: 1;
    text-align: left;
    padding: 0;
  }
  .timeline-item:nth-child(odd) .timeline-image,
  .timeline-item:nth-child(even) .timeline-image {
    grid-column: 1;
    grid-row: auto;
    padding: 0;
  }
  .timeline-dot {
    display: none;
  }
  .timeline::before {
    display: none;
  }
  .timeline-item:nth-child(odd) .project-tech {
    justify-content: flex-start;
  }

  .about-cards-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .cta-inner h2 {
    font-size: 2rem;
  }

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

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: rgba(12, 20, 28, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 5rem 2rem 2rem;
    gap: 1.5rem;
    display: flex;
    transition: right 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border-left: 1px solid rgba(191, 174, 126, 0.15);
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.5);
    z-index: 999;
  }

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

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

  .nav-cta {
    text-align: center;
    margin-top: 1.5rem;
    padding: 0.8rem 1.6rem !important;
    font-size: 0.95rem !important;
    display: inline-block;
    box-shadow: 0 4px 15px rgba(0, 191, 179, 0.4);
  }

  .nav-hamburger {
    display: flex;
  }

  .nav-hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .nav-hamburger.active span:nth-child(2) {
    opacity: 0;
  }

  .nav-hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }
}

body.nav-open {
  overflow: hidden;
}

@media (max-width: 768px) {
  .hero {
    padding: 6rem 0 3rem;
  }
  .hero-title {
    font-size: 2rem;
  }
  .hero-title span {
    font-size: 1.4rem;
  }
  .section-title {
    font-size: 1.8rem;
  }
  .cta-inner h2 {
    font-size: 1.6rem;
  }
  .about-card {
    padding: 2rem 1.5rem;
  }
  .about-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }
  .about-stat-number {
    font-size: 1.5rem;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  .container {
    padding: 0 1.25rem;
  }

  /* Responsiveness para Grillas */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .gallery-item {
    flex: 1 1 100%;
  }

  /* Reponsiveness para el Timeline (Cronograma) */
  .timeline::before {
    left: 20px;
    transform: none;
  }
  
  .timeline-item {
    grid-template-columns: 40px 1fr;
    gap: 1rem;
    margin-bottom: 2.5rem;
  }
  
  .timeline-dot {
    grid-column: 1 !important;
    justify-content: flex-start !important;
  }
  
  .timeline-dot-inner {
    margin-left: 2px;
  }

  .timeline-item:nth-child(odd) .timeline-content,
  .timeline-item:nth-child(even) .timeline-content {
    grid-column: 2 !important;
    grid-row: 1 !important;
    text-align: left !important;
    padding: 0 !important;
  }

  .timeline-item:nth-child(odd) .timeline-image,
  .timeline-item:nth-child(even) .timeline-image {
    grid-column: 2 !important;
    grid-row: 2 !important;
    padding: 1rem 0 0 0 !important;
    justify-content: flex-start !important;
  }
  
  .timeline-item:nth-child(odd) .project-tech,
  .timeline-item:nth-child(even) .project-tech {
    justify-content: flex-start !important;
  }

  /* Formulario de Contacto responsive */
  .contact-form {
    padding: 1.5rem;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 1.7rem;
  }
  .hero-title span {
    font-size: 1.2rem;
  }
  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }
  .btn {
    width: 100%;
    justify-content: center;
  }
  .about-stats {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* ===== FLOATING WHATSAPP BUTTON ===== */
.floating-whatsapp-container {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.wa-btn-floating {
  background: #25D366;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  animation: pulseWa 2s infinite;
}

@keyframes pulseWa {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
  70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

.wa-btn-floating:hover {
  transform: scale(1.1);
  animation: none;
}

.wa-menu {
  position: absolute;
  bottom: 75px;
  right: 0;
  background: rgba(18, 31, 43, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(37, 211, 102, 0.3);
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  width: 280px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.wa-menu.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.wa-header {
  background: #25D366;
  color: white;
  padding: 1rem;
  font-weight: 700;
  font-size: 0.95rem;
  text-align: center;
}

.wa-item {
  padding: 1rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--white);
  font-size: 0.9rem;
  border-bottom: 1px solid rgba(191, 174, 126, 0.1);
  transition: var(--transition-smooth);
}

.wa-item:last-child {
  border-bottom: none;
}

.wa-item:hover {
  background: rgba(0, 191, 179, 0.1);
  color: #25D366;
}

@media (max-width: 768px) {
  .floating-whatsapp-container {
    bottom: 20px;
    right: 20px;
  }
}
