/* ═══════════════════════════════════════════════════════
   NMHSolution — Estilos principales
   ═══════════════════════════════════════════════════════ */

/* --- Variables --- */
:root {
  --primary: #C68642;
  --primary-light: #D4956A;
  --primary-dark: #8B5E2A;
  --bg: #0E0E0E;
  --bg-surface: #1A1A1A;
  --bg-card: #252525;
  --text: #F0EAE0;
  --text-secondary: #A89880;
  --border: #333333;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, sans-serif;
}

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

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

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

#globalCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font-family: inherit; font-size: inherit; }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ═══════════ NAVBAR ═══════════ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0 24px;
  transition: background 0.3s, border-color 0.3s, padding 0.3s;
  border-bottom: 1px solid transparent;
}

.navbar.scrolled {
  background: rgba(14, 14, 14, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom-color: rgba(198, 134, 66, 0.2);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--text);
}

/* Logo oculto en top, aparece al scrollear */
.navbar .nav-logo {
  opacity: 0;
  transform: translateX(-10px);
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s;
}

.navbar.scrolled .nav-logo {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

.logo-accent {
  color: var(--primary);
  font-weight: 700;
}

.logo-thin {
  font-weight: 400;
  opacity: 0.85;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 40px;
}

.nav-links li {
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.6s ease;
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--text-secondary);
  transition: color 0.3s, font-size 0.6s, letter-spacing 0.6s, opacity 0.6s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--primary);
  transition: width 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
}

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

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

.nav-hamburger span {
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: transform 0.3s, opacity 0.3s;
}

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

/* Mobile menu */
.mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.mobile-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 300px;
  height: 100%;
  background: rgba(18, 18, 20, 0.97);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  z-index: 999;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 0 36px;
  border-left: 1px solid rgba(198, 134, 66, 0.15);
  display: flex;
  flex-direction: column;
}

.mobile-menu.active {
  transform: translateX(0);
}

/* Header con logo y botón cerrar */
.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
  min-height: 72px;
}

.mobile-menu-header .nav-logo {
  opacity: 1;
  transform: none;
  pointer-events: auto;
  font-size: 1.3rem;
}

.mobile-close {
  width: 36px;
  height: 36px;
  background: none;
  border: 1px solid rgba(198, 134, 66, 0.2);
  border-radius: 50%;
  cursor: pointer;
  position: relative;
  transition: border-color 0.3s, background 0.3s;
}

.mobile-close:hover {
  border-color: var(--primary);
  background: rgba(198, 134, 66, 0.08);
}

.mobile-close span {
  position: absolute;
  width: 16px;
  height: 1.5px;
  background: var(--text-secondary);
  top: 50%;
  left: 50%;
  transition: background 0.3s;
}

.mobile-close span:first-child {
  transform: translate(-50%, -50%) rotate(45deg);
}

.mobile-close span:last-child {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.mobile-close:hover span {
  background: var(--primary);
}

/* Línea divisoria camel */
.mobile-menu-divider {
  height: 1px;
  background: linear-gradient(90deg, var(--primary) 0%, rgba(198, 134, 66, 0.1) 100%);
  width: 100%;
}

/* Lista de links */
.mobile-menu ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 24px 0;
  flex: 1;
}

.mobile-menu li {
  opacity: 0;
  transform: translateX(20px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.mobile-menu.active li {
  opacity: 1;
  transform: translateX(0);
}

.mobile-menu.active li:nth-child(1) { transition-delay: 0.1s; }
.mobile-menu.active li:nth-child(2) { transition-delay: 0.18s; }
.mobile-menu.active li:nth-child(3) { transition-delay: 0.26s; }
.mobile-menu.active li:nth-child(4) { transition-delay: 0.34s; }

.mobile-menu a {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text);
  padding: 18px 0;
  border-bottom: 1px solid rgba(51, 51, 51, 0.4);
  transition: color 0.3s, padding-left 0.3s;
}

.mobile-menu li:last-child a {
  border-bottom: none;
}

.mobile-menu a:hover,
.mobile-menu a:active {
  color: var(--primary);
  padding-left: 8px;
}

/* Numeración camel */
.mobile-link-num {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--primary);
  opacity: 0.5;
  letter-spacing: 0;
  min-width: 20px;
}

/* Footer del menú */
.mobile-menu-footer {
  padding-bottom: 40px;
}

.mobile-footer-slogan {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-style: italic;
  color: var(--text-secondary);
  opacity: 0.45;
  text-align: center;
  padding-top: 20px;
  letter-spacing: 0.5px;
}

/* ═══════════ FLOATING NAV LINKS (hero state) ═══════════ */
@media (min-width: 769px) {
  /* Cuando estamos en el hero — links flotan dispersos */
  .navbar:not(.scrolled) .nav-links {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 100vh;
    justify-content: center;
    align-items: center;
    gap: 0;
    pointer-events: none;
    z-index: 10;
  }

  .navbar:not(.scrolled) .nav-links li {
    position: absolute;
    pointer-events: auto;
  }

  .navbar:not(.scrolled) .nav-links a {
    font-size: 18px;
    letter-spacing: 2px;
    opacity: 0.45;
    color: var(--text-secondary);
  }

  .navbar:not(.scrolled) .nav-links a:hover {
    opacity: 1;
    color: var(--primary);
  }

  /* Posiciones dispersas + floating */
  .navbar:not(.scrolled) .nav-links li:nth-child(1) {
    top: 22%;
    left: 15%;
    animation: floatA 7s ease-in-out infinite;
  }

  .navbar:not(.scrolled) .nav-links li:nth-child(2) {
    top: 18%;
    right: 16%;
    animation: floatB 8s ease-in-out infinite;
  }

  .navbar:not(.scrolled) .nav-links li:nth-child(3) {
    bottom: 26%;
    left: 17%;
    animation: floatC 9s ease-in-out infinite;
  }

  .navbar:not(.scrolled) .nav-links li:nth-child(4) {
    bottom: 22%;
    right: 14%;
    animation: floatD 7.5s ease-in-out infinite;
  }
}

@keyframes floatA {
  0%, 100% { transform: translate(0, 0); }
  25%      { transform: translate(6px, -10px); }
  50%      { transform: translate(-4px, 5px); }
  75%      { transform: translate(8px, 3px); }
}

@keyframes floatB {
  0%, 100% { transform: translate(0, 0); }
  25%      { transform: translate(-8px, 7px); }
  50%      { transform: translate(5px, -8px); }
  75%      { transform: translate(-3px, -4px); }
}

@keyframes floatC {
  0%, 100% { transform: translate(0, 0); }
  25%      { transform: translate(7px, 6px); }
  50%      { transform: translate(-6px, -10px); }
  75%      { transform: translate(4px, -3px); }
}

@keyframes floatD {
  0%, 100% { transform: translate(0, 0); }
  25%      { transform: translate(-5px, -8px); }
  50%      { transform: translate(9px, 4px); }
  75%      { transform: translate(-7px, 6px); }
}

/* ═══════════ HERO ═══════════ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}


.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 24px;
  max-width: 800px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 16px;
}

.hero-title .logo-accent {
  font-size: 0.85em;
}

.hero-slogan {
  font-family: var(--font-body);
  font-size: clamp(0.875rem, 2vw, 1.125rem);
  font-weight: 600;
  letter-spacing: 0.4em;
  color: var(--primary);
  margin-bottom: 24px;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-weight: 300;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 48px;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.3s;
  border: none;
}

.btn-primary {
  background: var(--primary);
  color: #0E0E0E;
}

.btn-primary:hover {
  background: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(198, 134, 66, 0.25);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
}

/* Scroll indicator */
.hero-scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--primary), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.5); }
  50% { opacity: 1; transform: scaleY(1); }
}

/* ═══════════ SECCIONES ═══════════ */
.section {
  padding: 120px 0;
}

.section-alt {
  background: var(--bg-surface);
}

.section-header {
  text-align: center;
  margin-bottom: 72px;
}

.section-label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.05rem;
  font-weight: 300;
  color: var(--text-secondary);
  max-width: 520px;
  margin: 0 auto;
}

/* ═══════════ PROPUESTA DE VALOR ═══════════ */
.value-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.value-card {
  text-align: center;
  padding: 48px 32px;
}

.value-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 28px;
  color: var(--primary);
}

.value-card h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.value-card p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ═══════════ SERVICIOS ═══════════ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}

.service-card:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(198, 134, 66, 0.08);
}

.service-icon {
  width: 44px;
  height: 44px;
  color: var(--primary);
  margin-bottom: 20px;
}

.service-card h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.service-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.65;
  flex: 1;
}

.service-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--primary);
  background: rgba(198, 134, 66, 0.1);
  padding: 4px 12px;
  border-radius: 20px;
  margin-top: 16px;
  align-self: flex-start;
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-top: 16px;
  transition: color 0.3s, gap 0.3s;
}

.service-link svg {
  width: 16px;
  height: 16px;
}

.service-link:hover {
  color: var(--primary);
  gap: 10px;
}

/* ═══════════ PORTFOLIO / TRABAJOS ═══════════ */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.portfolio-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}

.portfolio-card:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(198, 134, 66, 0.1);
}

.portfolio-preview {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
}

.portfolio-preview iframe {
  width: 300%;
  height: 300%;
  border: none;
  pointer-events: none;
  transform: scale(0.3334);
  transform-origin: top left;
}

.portfolio-overlay {
  position: absolute;
  inset: 0;
  background: rgba(14, 14, 14, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
}

.portfolio-card:hover .portfolio-overlay {
  opacity: 1;
}

.portfolio-overlay-btn {
  padding: 10px 24px;
  background: var(--primary);
  color: #0E0E0E;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 6px;
  letter-spacing: 0.3px;
}

/* Placeholder para proyectos sin link */
.portfolio-preview-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: default;
}

.portfolio-placeholder-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: var(--text-secondary);
  opacity: 0.4;
}

.portfolio-placeholder-content span {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.portfolio-info {
  padding: 24px;
}

.portfolio-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--primary);
  background: rgba(198, 134, 66, 0.1);
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 10px;
}

.portfolio-info h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.portfolio-info p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 4px;
}

.portfolio-info .service-link {
  margin-top: 12px;
}

/* ═══════════ POR QUÉ ELEGIRNOS ═══════════ */
.section-why {
  padding: 140px 0;
}

.why-quote {
  text-align: center;
  margin-bottom: 80px;
}

.why-quote-text {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 700;
  line-height: 1.35;
  max-width: 700px;
  margin: 0 auto;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.why-item {
  padding: 32px 24px;
  border-top: 2px solid var(--border);
  transition: border-color 0.3s;
}

.why-item:hover {
  border-top-color: var(--primary);
}

.why-number {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: 1px;
  display: block;
  margin-bottom: 16px;
}

.why-item h4 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.why-item p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}


/* ═══════════ PROCESO / TIMELINE ═══════════ */
.timeline {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.timeline-line {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 0;
  bottom: 56px;
  width: 1px;
  background: var(--border);
}

.timeline-step {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 0 48px 0;
  cursor: pointer;
}

.timeline-step:last-child {
  padding-bottom: 0;
}

.step-number {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary);
  background: var(--bg);
  position: relative;
  z-index: 1;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.timeline-step:hover .step-number {
  transform: scale(1.1);
  box-shadow: 0 0 20px rgba(198, 134, 66, 0.25);
}

.step-content {
  text-align: center;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.5s ease, opacity 0.4s ease, margin 0.5s ease;
  margin-top: 0;
  max-width: 420px;
}

.timeline-step:hover .step-content {
  max-height: 120px;
  opacity: 1;
  margin-top: 16px;
}

.step-content h4 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.step-content p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ═══════════ CONTACT TRIGGER (nodo timeline) ═══════════ */
.contact-trigger {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  margin-bottom: 0;
  cursor: pointer;
}

/* Contenedor desplegable para el formulario */
.contact-expandable {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.6s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.5s ease, margin 0.5s ease;
  margin-top: 0;
  width: 100%;
}

.contact-trigger:hover ~ .contact-expandable,
.contact-expandable:hover,
.contact-expandable.expanded {
  max-height: 1200px;
  opacity: 1;
  margin-top: 48px;
}

.contact-line {
  position: absolute;
  top: -80px;
  left: 50%;
  transform: translateX(-50%);
  height: 80px;
  width: 1px;
  background: var(--border);
  bottom: auto;
}

.contact-node {
  width: 56px;
  height: 56px;
  color: var(--primary);
  margin-bottom: 20px;
}

.contact-trigger-label {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 700;
  margin-bottom: 8px;
}

.contact-trigger-sub {
  font-size: 0.95rem;
  color: var(--text-secondary);
  text-align: center;
}

/* ═══════════ CONTACTO ═══════════ */
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 64px;
  align-items: start;
}

.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group-full {
  grid-column: 1 / -1;
}

.contact-form label {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 16px;
  color: var(--text);
  transition: border-color 0.3s, box-shadow 0.3s;
  outline: none;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(168, 152, 128, 0.5);
}

.contact-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 12 12'%3E%3Cpath fill='%23A89880' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
  cursor: pointer;
}

.contact-form select option {
  background: var(--bg-card);
  color: var(--text);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(198, 134, 66, 0.1);
}

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

.btn-submit {
  grid-column: 1 / -1;
  justify-self: start;
  margin-top: 8px;
}

/* Contact info */
.contact-info h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin-bottom: 28px;
}

.contact-channels {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-channel {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--text-secondary);
  transition: color 0.3s;
}

.contact-channel:hover {
  color: var(--primary);
}

.contact-channel svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.contact-channel span {
  font-size: 0.95rem;
}

.contact-badge {
  margin-top: 40px;
  padding: 20px 24px;
  border: 1px solid var(--border);
  border-radius: 10px;
  text-align: center;
}

.contact-badge p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 500;
}

/* ═══════════ FOOTER ═══════════ */
.footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 48px 0 32px;
  position: relative;
  z-index: 1;
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
}

.footer-brand .nav-logo {
  font-size: 1.25rem;
}

.footer-slogan {
  font-size: 0.8rem;
  color: var(--text-secondary);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-top: 4px;
}

.footer-nav {
  display: flex;
  gap: 32px;
}

.footer-nav a {
  font-size: 0.85rem;
  color: var(--text-secondary);
  transition: color 0.3s;
}

.footer-nav a:hover {
  color: var(--primary);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  text-align: center;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: var(--text-secondary);
  opacity: 0.6;
}

/* ═══════════ ANIMACIONES ═══════════ */

/* Fade-up en hero (CSS puro) */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 0.8s ease forwards;
}

.delay-1 { animation-delay: 0.15s; }
.delay-2 { animation-delay: 0.3s; }
.delay-3 { animation-delay: 0.45s; }
.delay-4 { animation-delay: 0.7s; }

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

/* Reveal on scroll (JS activa .visible) */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* ═══════════ RESPONSIVE ═══════════ */
@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }

  .section {
    padding: 80px 0;
  }

  .section-why {
    padding: 100px 0;
  }

  .value-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .value-card {
    padding: 32px 24px;
  }

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

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

  /* Timeline siempre abierta en mobile */
  .step-content {
    max-height: 120px;
    opacity: 1;
    margin-top: 16px;
  }

  /* Contacto siempre abierto en mobile */
  .contact-expandable {
    max-height: 2000px;
    opacity: 1;
    margin-top: 48px;
  }

  .why-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .contact-form {
    grid-template-columns: 1fr;
  }

  .footer-content {
    flex-direction: column;
    gap: 24px;
    text-align: center;
  }
}

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

  .hero-slogan {
    letter-spacing: 0.2em;
  }

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

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