/* ══════════════════════════════════════════════
   PUMANQUE SpA — Design System & Styles
   Professional Construction & Engineering Site
   ══════════════════════════════════════════════ */

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

:root {
  /* Brand Colors */
  --navy-900: #060E1A;
  --navy-800: #0B1929;
  --navy-700: #0D2B4E;
  --navy-600: #153D6B;
  --blue-500: #1A4F8A;
  --blue-400: #2B6CB0;
  --sky-300: #4A90D9;
  --sky-200: #7AB3EA;
  --sky-100: #E8F2FB;

  --gold-600: #9A6D1F;
  --gold-500: #C8933A;
  --gold-400: #D4A84F;
  --gold-300: #E8B85A;
  --gold-200: #F0D090;
  --gold-100: #FFF8E8;

  --white: #FFFFFF;
  --off-white: #F7F9FC;
  --gray-50: #F4F6FA;
  --gray-100: #EEF2F7;
  --gray-200: #DEE5EF;
  --gray-300: #BCC8D8;
  --gray-400: #95A5BD;
  --gray-500: #6B7F96;
  --gray-600: #4A5D74;
  --gray-700: #3A4D62;
  --gray-800: #2A3A4E;
  --text: #1A2B3C;

  /* Typography */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Spacing */
  --section-pad: clamp(4rem, 8vw, 8rem);
  --container-max: 1240px;

  /* Transitions */
  --ease-out: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

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

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

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

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 2rem;
}

/* ═══════════════════════════════════════
   NAVBAR
   ═══════════════════════════════════════ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 2rem;
  background: rgba(6, 14, 26, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: all 0.4s var(--ease-out);
}

.navbar.scrolled {
  padding: 0.2rem 1rem;
  background: rgba(6, 14, 26, 0.96);
  box-shadow: 0 8px 40px rgba(0,0,0,0.4);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.nav-logo svg,
.nav-logo img {
  width: 96px;
  height: 96px;
  transition: transform 0.3s var(--ease-spring);
}

.nav-brand:hover .nav-logo svg,
.nav-brand:hover .nav-logo img {
  transform: scale(1.08);
}

.nav-name {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.06em;
  display: block;
  line-height: 1.1;
}

.nav-tagline {
  font-size: 0.6rem;
  font-weight: 400;
  color: var(--gold-300);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  display: block;
}

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

.nav-link {
  color: rgba(255,255,255,0.7);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  transition: color 0.25s;
  position: relative;
}

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

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

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

.nav-cta {
  background: var(--gold-500) !important;
  color: var(--white) !important;
  padding: 0.55rem 1.6rem !important;
  border-radius: 6px;
  font-weight: 600 !important;
  transition: all 0.25s !important;
  box-shadow: 0 2px 12px rgba(200,147,58,0.3);
}

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

.nav-cta:hover {
  background: var(--gold-400) !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(200,147,58,0.4) !important;
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 1001;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: all 0.3s;
  border-radius: 2px;
}

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

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

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

/* ═══════════════════════════════════════
   PARALLAX BACKGROUNDS
   ═══════════════════════════════════════ */
.parallax-bg {
  position: absolute;
  inset: -20%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  will-change: transform;
  z-index: 0;
}

/* ═══════════════════════════════════════
   HERO SECTION
   ═══════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--navy-900);
}

.hero-video-bg {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  z-index: 0;
  transform: translate(-50%, -50%);
  object-fit: cover;
  pointer-events: none;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(6,14,26,0.88) 0%,
    rgba(13,43,78,0.75) 40%,
    rgba(6,14,26,0.82) 100%
  );
  z-index: 1;
}

.hero-particles {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.hero-particle {
  position: absolute;
  width: 3px;
  height: 3px;
  background: rgba(200,147,58,0.4);
  border-radius: 50%;
  animation: floatParticle var(--duration, 8s) var(--delay, 0s) infinite ease-in-out;
}

@keyframes floatParticle {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0; }
  10% { opacity: 1; }
  50% { transform: translate(var(--tx, 50px), var(--ty, -80px)) scale(1.5); opacity: 0.6; }
  90% { opacity: 0; }
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 820px;
  padding: 8rem 2rem 9rem;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(200,147,58,0.12);
  border: 1px solid rgba(200,147,58,0.3);
  color: var(--gold-300);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.5rem 1.3rem;
  border-radius: 100px;
  margin-bottom: 2rem;
}

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

@keyframes pulse-dot {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(200,147,58,0.5); }
  50% { opacity: 0.5; box-shadow: 0 0 0 6px rgba(200,147,58,0); }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6vw, 4.5rem);
  font-weight: 900;
  line-height: 1.06;
  color: var(--white);
  margin-bottom: 0;
}

.hero-title em {
  font-style: normal;
  background: linear-gradient(135deg, var(--gold-400), var(--gold-200));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-line {
  width: 70px;
  height: 3px;
  background: linear-gradient(90deg, var(--gold-500), var(--gold-300));
  margin: 1.8rem auto;
  border-radius: 3px;
}

.hero-subtitle {
  font-size: 1.08rem;
  font-weight: 300;
  color: rgba(255,255,255,0.7);
  line-height: 1.85;
  max-width: 600px;
  margin: 0 auto;
}

.hero-subtitle strong {
  color: rgba(255,255,255,0.95);
  font-weight: 600;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 2.5rem;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.stat-number {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--gold-300);
  line-height: 1;
  display: block;
}

.stat-number::before {
  content: '+';
  font-size: 0.7em;
}

.stat-label {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.45);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: 0.4rem;
  display: block;
}

.stat-divider {
  width: 1px;
  background: rgba(255,255,255,0.12);
  align-self: stretch;
}

/* Hero Scroll Indicator */
.hero-scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  animation: fadeInUp 0.8s 1.2s both;
}

.hero-scroll-indicator span {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
}

.scroll-arrow {
  width: 20px;
  height: 30px;
  border: 2px solid rgba(255,255,255,0.25);
  border-radius: 10px;
  position: relative;
}

.scroll-arrow::before {
  content: '';
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 6px;
  background: var(--gold-400);
  border-radius: 3px;
  animation: scrollBounce 1.5s infinite;
}

@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: 1; }
  50% { transform: translateX(-50%) translateY(8px); opacity: 0.3; }
}

/* ═══════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: all 0.3s var(--ease-out);
  cursor: pointer;
  border: none;
  text-decoration: none;
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold-500), var(--gold-400));
  color: var(--white);
  box-shadow: 0 4px 20px rgba(200,147,58,0.35);
}

.btn-gold:hover {
  background: linear-gradient(135deg, var(--gold-400), var(--gold-300));
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(200,147,58,0.5);
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.3);
}

.btn-ghost:hover {
  border-color: var(--white);
  background: rgba(255,255,255,0.08);
  transform: translateY(-3px);
}

.btn-dark {
  background: var(--navy-700);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(13,43,78,0.3);
}

.btn-dark:hover {
  background: var(--navy-600);
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(13,43,78,0.4);
}

.btn-lg {
  padding: 1rem 2.5rem;
  font-size: 1rem;
}

/* Estilo para el botón/enlace social */
.social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: #a1a1aa; /* Gris neutro */
  transition: color 0.3s ease, transform 0.3s ease;
  text-decoration: none;
}

.social-icon {
transition: transform 0.3s ease;
}

/* Efecto Hover elegante (estilo Pumanque en tono dorado) */
.social-link:hover {
  color: #0a66c2; /* Azul corporativo de LinkedIn (o puedes usar tu dorado var(--gold-400)) */
}

.social-link:hover .social-icon {
  transform: translateY(-2px);
}

/* ═══════════════════════════════════════
   SECTIONS
   ═══════════════════════════════════════ */
.section {
  padding: var(--section-pad) 0;
  position: relative;
}

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

.section-dark {
  background: var(--navy-800);
  overflow: hidden;
}

.section-dark::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.015) 1px, transparent 1px);
  background-size: 80px 80px;
  pointer-events: none;
}

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

.section-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-500);
  margin-bottom: 0.8rem;
}

.section-tag.gold {
  color: var(--gold-300);
}

.section-heading {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  color: var(--navy-700);
  line-height: 1.2;
  margin-bottom: 0.6rem;
}

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

.section-heading em {
  font-style: italic;
  color: var(--gold-500);
}

.section-desc {
  font-size: 0.95rem;
  color: var(--gray-500);
  max-width: 540px;
  margin: 0.5rem auto 0;
  line-height: 1.7;
}

.section-desc.light {
  color: rgba(255,255,255,0.5);
}

.section-cta {
  text-align: center;
  margin-top: 3rem;
}

/* ═══════════════════════════════════════
   SPLIT LAYOUT (Intro Section)
   ═══════════════════════════════════════ */
.split-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.split-text p {
  font-size: 0.95rem;
  line-height: 1.85;
  color: var(--gray-600);
  margin-bottom: 1rem;
}

.split-text p strong {
  color: var(--navy-700);
}

.split-text .section-heading {
  margin-bottom: 1.5rem;
}

/* Quote Box */
.quote-box {
  background: var(--navy-700);
  border-radius: 14px;
  padding: 2rem 2.2rem;
  margin: 1.8rem 0 2rem;
  position: relative;
  overflow: hidden;
}

.quote-box::before {
  content: '"';
  position: absolute;
  top: -10px;
  left: 16px;
  font-family: var(--font-display);
  font-size: 6rem;
  color: rgba(200,147,58,0.15);
  line-height: 1;
}

.quote-text {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-style: italic;
  color: rgba(255,255,255,0.88) !important;
  line-height: 1.75;
  position: relative;
  z-index: 1;
}

.quote-author {
  display: block;
  margin-top: 1rem;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-style: normal;
  color: var(--gold-300);
  font-weight: 600;
  letter-spacing: 0.05em;
}

/* Image Stack */
.image-stack {
  position: relative;
}

.image-stack-item {
  width: 100%;
  aspect-ratio: 4/5;
  border-radius: 18px;
  background-size: cover;
  background-position: center;
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}

.image-stack-badge {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background: var(--gold-500);
  border-radius: 16px;
  padding: 1.4rem 1.8rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  box-shadow: 0 8px 30px rgba(200,147,58,0.4);
}

.badge-number {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--white);
  line-height: 1;
}

.badge-text {
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
  line-height: 1.3;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ═══════════════════════════════════════
   PARALLAX DIVIDERS
   ═══════════════════════════════════════ */
.parallax-divider {
  position: relative;
  height: 55vh;
  min-height: 350px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.parallax-tall {
  height: 65vh;
  min-height: 420px;
}

.parallax-cta {
  height: auto;
  min-height: 60vh;
  padding: 6rem 2rem;
}

.parallax-divider-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(6,14,26,0.8) 0%,
    rgba(13,43,78,0.7) 50%,
    rgba(6,14,26,0.85) 100%
  );
  z-index: 1;
}

.overlay-strong {
  background: linear-gradient(
    135deg,
    rgba(6,14,26,0.9) 0%,
    rgba(13,43,78,0.82) 50%,
    rgba(6,14,26,0.92) 100%
  );
}

.parallax-divider-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 700px;
  padding: 0 2rem;
}

.divider-tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-300);
  margin-bottom: 1rem;
}

.parallax-divider-content h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.15;
}

.parallax-divider-content h2 em {
  font-style: italic;
  color: var(--gold-300);
}

.cta-subtitle {
  font-size: 1rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.8;
  margin-top: 1.5rem;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 2.5rem;
  flex-wrap: wrap;
}

.cta-contact-row {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin-top: 2.5rem;
  flex-wrap: wrap;
}

.cta-contact-item {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: rgba(255,255,255,0.55);
  font-size: 0.88rem;
}

.cta-contact-item svg {
  color: var(--gold-400);
  flex-shrink: 0;
}

/* ═══════════════════════════════════════
   VMP CARDS (Vision, Mision, Proposito)
   ═══════════════════════════════════════ */
.vmp-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  position: relative;
  z-index: 1;
}

.vmp-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 18px;
  padding: 2.5rem 2rem;
  position: relative;
  overflow: hidden;
  transition: all 0.4s var(--ease-out);
}

.vmp-card::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold-500), var(--gold-300));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease-out);
}

.vmp-card:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(200,147,58,0.35);
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.2);
}

.vmp-card:hover::before {
  transform: scaleX(1);
}

.vmp-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: rgba(200,147,58,0.12);
  border: 1px solid rgba(200,147,58,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-400);
  margin-bottom: 1.5rem;
  transition: all 0.3s;
}

.vmp-card:hover .vmp-icon {
  background: rgba(200,147,58,0.2);
  transform: scale(1.05);
}

.vmp-card h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.8rem;
}

.vmp-card p {
  font-size: 0.9rem;
  line-height: 1.8;
  color: rgba(255,255,255,0.6);
}

/* ═══════════════════════════════════════
   ESPECIALIDADES CARDS
   ═══════════════════════════════════════ */
.esp-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.3rem;
}

.esp-card {
  background: var(--white);
  border: 1.5px solid var(--gray-100);
  border-radius: 14px;
  padding: 1.8rem 2rem;
  display: flex;
  gap: 1.3rem;
  align-items: flex-start;
  transition: all 0.35s var(--ease-out);
  position: relative;
  overflow: hidden;
}

.esp-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(to bottom, var(--gold-500), var(--gold-300));
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.35s var(--ease-out);
}

.esp-card:hover {
  border-color: rgba(200,147,58,0.3);
  box-shadow: 0 12px 40px rgba(0,0,0,0.08);
  transform: translateX(6px);
}

.esp-card:hover::before {
  transform: scaleY(1);
}

.esp-icon-wrap {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  background: var(--sky-100);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue-400);
  transition: all 0.3s;
}

.esp-card:hover .esp-icon-wrap {
  background: rgba(200,147,58,0.1);
  color: var(--gold-500);
}

.esp-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy-700);
  margin-bottom: 0.4rem;
}

.esp-detail {
  font-size: 0.85rem;
  color: var(--gray-500);
  line-height: 1.65;
}

.esp-metric {
  display: inline-block;
  margin-top: 0.6rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--gold-500);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ═══════════════════════════════════════
   GALLERY / PROJECTS
   ═══════════════════════════════════════ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}

.gallery-item {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4/3;
}

.gallery-wide {
  grid-column: span 2;
}

.gallery-vid {
position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.6s var(--ease-out);
}

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

.gallery-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.6s var(--ease-out);
}

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

.gallery-slideshow {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.gallery-slideshow .slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1);
  /* Transición fluida de opacidad (disolución) y leve escalado */
  transition: opacity 1.2s var(--ease-out), transform 6s var(--ease-out);
}

.gallery-slideshow .slide.active {
  opacity: 1;
  transform: scale(1.06); /* Efecto de zoom sutil e industrial */
}

/* Capa oscura sutil para asegurar legibilidad del texto en cualquier foto */
.gallery-slideshow::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(6,14,26,0.85) 0%, rgba(6,14,26,0.1) 60%);
  z-index: 1;
}

.gallery-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2rem 1.5rem 1.5rem;
  background: linear-gradient(to top, rgba(6,14,26,0.9) 0%, transparent 100%);
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.4s var(--ease-out);
}

.gallery-item:hover .gallery-info {
  transform: translateY(0);
  opacity: 1;
}

.gallery-cat {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold-300);
  margin-bottom: 0.4rem;
  display: block;
}

.gallery-info h4 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.3rem;
}

.gallery-info p {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.5;
}

/* ═══════════════════════════════════════
   CLIENTS MARQUEE
   ═══════════════════════════════════════ */
.clients-marquee {
  overflow: hidden;
  position: relative;
  z-index: 1;
  padding: 1rem 0;
  -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
  mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
}

.clients-track {
  display: flex;
  gap: 1rem;
  animation: marquee 40s linear infinite;
  width: max-content;
}

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

.client-chip {
  flex-shrink: 0;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 100px;
  padding: 0.7rem 1.8rem;
  color: rgba(255,255,255,0.75);
  font-size: 0.85rem;
  font-weight: 500;
  white-space: nowrap;
  transition: all 0.3s;
}

.client-chip:hover {
  background: rgba(200,147,58,0.12);
  border-color: rgba(200,147,58,0.4);
  color: var(--gold-300);
  transform: translateY(-3px);
}

/* ═══════════════════════════════════════
   TEAM CARDS (for nosotros.html)
   ═══════════════════════════════════════ */
.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.team-card {
  background: var(--white);
  border-radius: 20px;
  padding: 2.5rem;
  border: 1px solid var(--gray-100);
  position: relative;
  overflow: hidden;
  transition: all 0.4s var(--ease-out);
}

.team-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--navy-700), var(--blue-400));
}

.team-card:hover {
  box-shadow: 0 20px 60px rgba(0,0,0,0.1);
  transform: translateY(-6px);
}

.team-avatar {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy-700), var(--blue-400));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 1.2rem;
}

.team-avatar.gold {
  background: linear-gradient(135deg, var(--gold-500), var(--gold-600));
}

.team-name {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--navy-700);
  margin-bottom: 0.3rem;
}

.team-role {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-500);
  margin-bottom: 1.2rem;
}

.team-bio {
  font-size: 0.88rem;
  color: var(--gray-500);
  line-height: 1.8;
}

.team-bio strong {
  color: var(--navy-700);
}

.team-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.team-tag {
  background: var(--sky-100);
  color: var(--blue-400);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.3rem 0.8rem;
  border-radius: 100px;
}

/* ═══════════════════════════════════════
   TIMELINE (for nosotros.html)
   ═══════════════════════════════════════ */
.timeline {
  position: relative;
  padding-left: 2.5rem;
  max-width: 700px;
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(to bottom, var(--gold-500), var(--blue-400), var(--gold-500));
}

.timeline-item {
  position: relative;
  margin-bottom: 2.2rem;
  padding-left: 1.5rem;
}

.timeline-dot {
  position: absolute;
  left: -3.15rem;
  top: 5px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--gold-500);
  border: 3px solid var(--off-white);
  box-shadow: 0 0 0 2px var(--gold-500);
}

.timeline-year {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--gold-500);
  margin-bottom: 0.3rem;
}

.timeline-text {
  font-size: 0.9rem;
  color: var(--gray-600);
  line-height: 1.65;
}

.timeline-text strong {
  color: var(--navy-700);
}

/* ═══════════════════════════════════════
   CONTACT FORM (for contacto.html)
   ═══════════════════════════════════════ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

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

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

.form-group label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--gray-600);
  letter-spacing: 0.04em;
}

.form-group input,
.form-group textarea,
.form-group select {
  padding: 0.8rem 1rem;
  border: 1.5px solid var(--gray-200);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text);
  background: var(--white);
  transition: all 0.25s;
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--gold-400);
  box-shadow: 0 0 0 3px rgba(200,147,58,0.12);
}

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

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

.contact-info-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.contact-info-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--navy-700);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-400);
  flex-shrink: 0;
}

.contact-info-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray-400);
  margin-bottom: 0.2rem;
}

.contact-info-value {
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy-700);
}

.contact-info-value a {
  transition: color 0.2s;
}

.contact-info-value a:hover {
  color: var(--gold-500);
}

/* ═══════════════════════════════════════
   PAGE HERO (subpages)
   ═══════════════════════════════════════ */
.page-hero {
  position: relative;
  min-height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--navy-900);
}

.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(6,14,26,0.88) 0%,
    rgba(13,43,78,0.75) 50%,
    rgba(6,14,26,0.85) 100%
  );
  z-index: 1;
}

.page-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 8rem 2rem 4rem;
}

.page-hero-content h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 900;
  color: var(--white);
  margin-bottom: 0.8rem;
}

.page-hero-content h1 em {
  font-style: normal;
  background: linear-gradient(135deg, var(--gold-400), var(--gold-200));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.page-hero-content p {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.6);
  max-width: 550px;
  margin: 0 auto;
  line-height: 1.8;
}

.breadcrumb {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.4);
}

.breadcrumb a {
  color: var(--gold-300);
  transition: color 0.2s;
}

.breadcrumb a:hover {
  color: var(--gold-200);
}

/* ═══════════════════════════════════════
   ESPECIALIDADES PAGE — Full Cards
   ═══════════════════════════════════════ */
.esp-full-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-radius: 20px;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--gray-100);
  margin-bottom: 2rem;
  transition: all 0.4s var(--ease-out);
}

.esp-full-card:nth-child(even) {
  direction: rtl;
}

.esp-full-card:nth-child(even) > * {
  direction: ltr;
}

.esp-full-card:hover {
  box-shadow: 0 20px 60px rgba(0,0,0,0.1);
  transform: translateY(-4px);
}

.esp-full-img {
  background-size: cover;
  background-position: center;
  min-height: 350px;
}

.esp-full-content {
  padding: 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.esp-full-content h3 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--navy-700);
  margin-bottom: 0.6rem;
}

.esp-full-content p {
  font-size: 0.92rem;
  color: var(--gray-500);
  line-height: 1.8;
  margin-bottom: 1rem;
}

.esp-full-metric {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--gold-500);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding-top: 1rem;
  border-top: 1px solid var(--gray-100);
}

/* ═══════════════════════════════════════
   PROJECTS PAGE — Full Gallery
   ═══════════════════════════════════════ */
.projects-filter {
  display: flex;
  justify-content: center;
  gap: 0.8rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 0.5rem 1.3rem;
  border: 1.5px solid var(--gray-200);
  border-radius: 100px;
  background: transparent;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--gray-500);
  cursor: pointer;
  transition: all 0.25s;
}

.filter-btn:hover,
.filter-btn.active {
  border-color: var(--gold-500);
  background: var(--gold-100);
  color: var(--gold-600);
}

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

.project-card {
  border-radius: 16px;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--gray-100);
  transition: all 0.35s var(--ease-out);
}

.project-card:hover {
  box-shadow: 0 16px 48px rgba(0,0,0,0.1);
  transform: translateY(-6px);
}

.project-card-img {
  aspect-ratio: 16/10;
  background-size: cover;
  background-position: center;
  transition: transform 0.5s var(--ease-out);
  overflow: hidden;
}

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

.project-card-body {
  padding: 1.5rem;
}

.project-card-cat {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold-500);
  margin-bottom: 0.4rem;
}

.project-card-body h4 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy-700);
  margin-bottom: 0.3rem;
}

.project-card-body p {
  font-size: 0.82rem;
  color: var(--gray-500);
  line-height: 1.6;
}

/* ═══════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════ */
.site-footer {
  background: var(--navy-900);
  padding: 4rem 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.footer-logo-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 1.2rem;
}

.footer-name {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--white);
}

.footer-desc {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.4);
  line-height: 1.7;
  max-width: 300px;
}

.footer-links-col h5 {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-400);
  margin-bottom: 1.2rem;
}

.footer-links-col a {
  display: block;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.45);
  margin-bottom: 0.7rem;
  transition: color 0.2s;
}

.footer-links-col a:hover {
  color: var(--gold-300);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 0;
}

.footer-bottom p {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.25);
}

.footer-credits {
  font-size: 0.72rem;
}

/* ═══════════════════════════════════════
   ANIMATIONS / REVEAL
   ═══════════════════════════════════════ */
.animate-in {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s var(--delay, 0s) var(--ease-out) forwards;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal-up,
.reveal-left,
.reveal-right {
  opacity: 0;
  transition: all 0.8s var(--ease-out);
  transition-delay: var(--delay, 0s);
}

.reveal-up {
  transform: translateY(40px);
}

.reveal-left {
  transform: translateX(-40px);
}

.reveal-right {
  transform: translateX(40px);
}

.reveal-up.visible,
.reveal-left.visible,
.reveal-right.visible {
  opacity: 1;
  transform: translate(0, 0);
}

/* ═══════════════════════════════════════
   RESPONSIVE DESIGN
   ═══════════════════════════════════════ */
@media (max-width: 1024px) {
  .split-layout {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

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

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

  .gallery-wide {
    grid-column: span 1;
  }

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

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

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

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

@media (max-width: 768px) {
  .navbar {
    padding: 0.9rem 1.5rem;
  }

  .navbar.scrolled {
    padding: 0.6rem 1.5rem;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--navy-900);
    flex-direction: column;
    padding: 5rem 2rem 2rem;
    gap: 1.5rem;
    transition: right 0.4s var(--ease-out);
    box-shadow: -10px 0 40px rgba(0,0,0,0.4);
  }

  .nav-menu.active {
    right: 0;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-cta {
    width: 100%;
    text-align: center;
    justify-content: center;
  }

  .hero-content {
    padding: 7rem 1.5rem 4rem;
  }

  .hero-stats {
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
  }

  .stat-divider {
    width: 40px;
    height: 1px;
  }

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

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

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .cta-contact-row {
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
  }

  .parallax-divider {
    height: 40vh;
    min-height: 280px;
  }

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

  .footer-bottom {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }

  .esp-full-card {
    grid-template-columns: 1fr;
  }

  .esp-full-card:nth-child(even) {
    direction: ltr;
  }

  .esp-full-img {
    min-height: 250px;
  }

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

  .image-stack-badge {
    bottom: -15px;
    right: 10px;
    padding: 1rem 1.3rem;
  }

  .badge-number {
    font-size: 1.6rem;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2.2rem;
  }

  .stat-number {
    font-size: 1.8rem;
  }

  .section-heading {
    font-size: 1.6rem;
  }
}

/* ═══════════════════════════════════════
   PRINT STYLES
   ═══════════════════════════════════════ */
@media print {
  .navbar,
  .hero-scroll-indicator,
  .parallax-divider,
  .nav-toggle {
    display: none !important;
  }

  .hero {
    min-height: auto;
    padding: 2rem;
  }

  .section {
    padding: 2rem 0;
  }
}

