/* ==========================================================================
   Punto Sur Ingeniería — Landing 2026
   Sistema de diseño: navy / oro / crema + tipografía técnica
   ========================================================================== */

* { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}

html { scroll-padding-top: 96px; }

body {
  font-family: 'Inter', sans-serif;
}
.font-display { font-family: 'Space Grotesk', sans-serif; }
.font-mono { font-family: 'IBM Plex Mono', monospace; }

/* ---------------- Skip link ---------------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 1rem;
  background: #D4A24C;
  color: #0A1428;
  padding: 0.75rem 1.25rem;
  border-radius: 0.5rem;
  z-index: 100;
  font-weight: 600;
}
.skip-link:focus { left: 1rem; }

/* ---------------- Header ---------------- */
#site-header { background: transparent; }
#site-header.scrolled {
  background: rgba(10, 20, 40, 0.92);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 rgba(212, 162, 76, 0.15);
}
.nav-link {
  color: #FAF6EA;
  opacity: 0.8;
  position: relative;
  transition: opacity 0.25s ease, color 0.25s ease;
}
.nav-link::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 1px;
  background: #D4A24C;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.nav-link:hover { opacity: 1; color: #E8C57E; }
.nav-link:hover::after { transform: scaleX(1); }
.nav-link-mobile { color: #FAF6EA; opacity: 0.85; }
.nav-link-mobile:hover { color: #E8C57E; }

/* ---------------- Buttons ---------------- */
.btn-gold, .btn-outline, .btn-gold-lg, .btn-gold-sm {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.btn-gold {
  background: #D4A24C;
  color: #0A1428;
  padding: 0.9rem 1.6rem;
  border-radius: 0.6rem;
  font-size: 0.95rem;
}
.btn-gold:hover { background: #E8C57E; transform: translateY(-2px); box-shadow: 0 12px 24px -8px rgba(212,162,76,0.5); }

.btn-gold-lg {
  background: #D4A24C;
  color: #0A1428;
  padding: 1.1rem 2.2rem;
  border-radius: 0.7rem;
  font-size: 1.02rem;
}
.btn-gold-lg:hover { background: #E8C57E; transform: translateY(-2px); box-shadow: 0 16px 32px -10px rgba(212,162,76,0.55); }

.btn-gold-sm {
  background: #D4A24C;
  color: #0A1428;
  padding: 0.55rem 1.1rem;
  border-radius: 0.5rem;
  font-size: 0.85rem;
  font-family: 'IBM Plex Mono', monospace;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.btn-gold-sm:hover { background: #E8C57E; }

.btn-outline {
  border: 1px solid rgba(250, 246, 234, 0.35);
  color: #FAF6EA;
  padding: 0.9rem 1.6rem;
  border-radius: 0.6rem;
  font-size: 0.95rem;
}
.btn-outline:hover { border-color: #D4A24C; color: #E8C57E; background: rgba(212,162,76,0.08); }

/* ---------------- Blueprint texture (signature element) ---------------- */
.blueprint-grid {
  background-image:
    linear-gradient(rgba(212, 162, 76, 0.35) 1px, transparent 1px),
    linear-gradient(90deg, rgba(212, 162, 76, 0.35) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

.corner-tag {
  border: 1px solid rgba(212, 162, 76, 0.3);
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
}

.blueprint-card {
  position: relative;
  background: rgba(250, 246, 234, 0.04);
  border: 1px solid rgba(212, 162, 76, 0.2);
  border-radius: 0.75rem;
  padding: 2.25rem;
}
.corner {
  position: absolute;
  width: 18px;
  height: 18px;
  border-color: #D4A24C;
}
.corner-tl { top: -1px; left: -1px; border-top: 2px solid; border-left: 2px solid; border-top-left-radius: 0.5rem; }
.corner-br { bottom: -1px; right: -1px; border-bottom: 2px solid; border-right: 2px solid; border-bottom-right-radius: 0.5rem; }

/* ---------------- Feature cards ---------------- */
.feature-card {
  background: #FFFFFF;
  border: 1px solid rgba(15, 29, 61, 0.08);
  border-radius: 0.9rem;
  padding: 2rem 1.75rem;
  box-shadow: 0 1px 2px rgba(15,29,61,0.04);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 40px -20px rgba(15,29,61,0.25);
  border-color: rgba(212,162,76,0.4);
}
.feature-icon {
  width: 3rem; height: 3rem;
  display: flex; align-items: center; justify-content: center;
  border-radius: 0.65rem;
  background: rgba(212, 162, 76, 0.12);
  color: #D4A24C;
  margin-bottom: 1.25rem;
}
.feature-icon svg { width: 1.5rem; height: 1.5rem; }
.feature-title { font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: 1.15rem; color: #0F1D3D; margin-bottom: 0.6rem; }
.feature-desc { color: #8B93A6; font-size: 0.92rem; line-height: 1.6; }

/* ---------------- Service cards ---------------- */
.service-card {
  background: #FFFFFF;
  border: 1px solid rgba(15,29,61,0.08);
  border-radius: 1rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.service-card:hover { transform: translateY(-6px); box-shadow: 0 28px 48px -24px rgba(15,29,61,0.3); }
.service-img-wrap { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.service-img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.service-card:hover .service-img { transform: scale(1.06); }
.spec-tag {
  position: absolute; top: 1rem; left: 1rem;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.7rem; letter-spacing: 0.1em;
  background: rgba(10,20,40,0.75);
  color: #E8C57E;
  padding: 0.3rem 0.6rem;
  border-radius: 0.3rem;
  backdrop-filter: blur(4px);
}
.service-body { padding: 1.75rem; display: flex; flex-direction: column; flex: 1; }
.service-icon {
  width: 2.75rem; height: 2.75rem;
  display: flex; align-items: center; justify-content: center;
  border-radius: 0.6rem;
  background: rgba(15, 29, 61, 0.06);
  color: #0F1D3D;
  margin-bottom: 1rem;
}
.service-icon svg { width: 1.4rem; height: 1.4rem; }
.service-title { font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: 1.15rem; color: #0F1D3D; margin-bottom: 0.75rem; line-height: 1.3; }
.service-desc { color: #8B93A6; font-size: 0.9rem; line-height: 1.65; flex: 1; margin-bottom: 1.5rem; }
.service-cta {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-weight: 600; font-size: 0.9rem;
  color: #0F1D3D;
  border-bottom: 1px solid transparent;
  align-self: flex-start;
  transition: color 0.25s ease, gap 0.25s ease;
}
.service-cta:hover { color: #D4A24C; gap: 0.75rem; }

/* ---------------- Proceso ---------------- */
.process-step { position: relative; padding-top: 1.5rem; }
.process-num {
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 3.25rem; height: 3.25rem;
  border-radius: 999px;
  background: #0A1428;
  border: 1px solid rgba(212,162,76,0.5);
  color: #E8C57E;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
  position: relative;
  z-index: 1;
}
.process-title { font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: 1.2rem; color: #FAF6EA; margin-bottom: 0.6rem; }
.process-desc { color: #8B93A6; font-size: 0.92rem; line-height: 1.6; max-width: 22rem; }

/* ---------------- Beneficios ---------------- */
.benefit-card {
  background: #F1ECDD;
  border-radius: 0.85rem;
  padding: 1.75rem;
  border-left: 3px solid #D4A24C;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.benefit-card:hover { transform: translateY(-4px); box-shadow: 0 16px 28px -18px rgba(15,29,61,0.25); }
.benefit-title { font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: 1.05rem; color: #0F1D3D; margin-bottom: 0.5rem; }
.benefit-desc { color: #667085; font-size: 0.9rem; line-height: 1.6; }

/* ---------------- Video manifiesto ---------------- */
.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 1rem;
  overflow: hidden;
  cursor: pointer;
  border: 1px solid rgba(212,162,76,0.25);
}
.video-frame iframe { width: 100%; height: 100%; border: 0; }
.play-btn {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(10,20,40,0.35);
  transition: background 0.3s ease;
}
.play-btn svg {
  width: 4.5rem; height: 4.5rem;
  color: #0A1428;
  background: #D4A24C;
  border-radius: 999px;
  padding: 1.1rem;
  box-shadow: 0 16px 32px -12px rgba(0,0,0,0.5);
  transition: transform 0.3s ease;
}
.video-frame:hover .play-btn { background: rgba(10,20,40,0.15); }
.video-frame:hover .play-btn svg { transform: scale(1.08); }

/* ---------------- Galería ---------------- */
.gallery-item { border-radius: 0.85rem; overflow: hidden; min-height: 220px; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.6s ease; }
.gallery-item:hover img { transform: scale(1.08); }

/* ---------------- Formulario ---------------- */
.form-label { display: block; font-family: 'IBM Plex Mono', monospace; font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; color: #667085; margin-bottom: 0.5rem; }
.form-input {
  width: 100%;
  background: #FFFFFF;
  border: 1px solid rgba(15,29,61,0.15);
  border-radius: 0.6rem;
  padding: 0.85rem 1rem;
  color: #232B3D;
  font-size: 0.95rem;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.form-input:focus {
  outline: none;
  border-color: #D4A24C;
  box-shadow: 0 0 0 3px rgba(212,162,76,0.18);
}

/* ---------------- Contact cards ---------------- */
.contact-card {
  display: flex; align-items: center; gap: 1rem;
  background: #FFFFFF;
  border: 1px solid rgba(15,29,61,0.08);
  border-radius: 0.75rem;
  padding: 1.1rem 1.25rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.contact-card:hover { transform: translateX(4px); box-shadow: 0 12px 24px -16px rgba(15,29,61,0.25); border-color: rgba(212,162,76,0.35); }
.contact-icon {
  flex-shrink: 0;
  width: 2.5rem; height: 2.5rem;
  display: flex; align-items: center; justify-content: center;
  border-radius: 0.6rem;
  background: rgba(212,162,76,0.12);
  color: #0F1D3D;
}
.contact-icon svg { width: 1.25rem; height: 1.25rem; }
.contact-label { display: block; font-family: 'IBM Plex Mono', monospace; font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; color: #8B93A6; }
.contact-value { display: block; font-weight: 600; color: #232B3D; font-size: 0.95rem; margin-top: 0.15rem; }

/* ---------------- Footer link "by nommadedigital.cl" ---------------- */
.nommade-link {
  color: #ec4899;
  font-weight: 600;
  position: relative;
  transition: color 0.3s ease, text-shadow 0.3s ease;
}
.nommade-link::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1px;
  background: #ec4899;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}
.nommade-link:hover { color: #f472b6; text-shadow: 0 0 12px rgba(236,72,153,0.5); }
.nommade-link:hover::after { transform: scaleX(1); transform-origin: left; }

/* ---------------- WhatsApp flotante ---------------- */
.wa-float {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 50;
  width: 3.5rem; height: 3.5rem;
  display: flex; align-items: center; justify-content: center;
  background: #25D366;
  color: #fff;
  border-radius: 999px;
  box-shadow: 0 12px 28px -8px rgba(37,211,102,0.55);
  animation: wa-pulse 2.6s ease-in-out infinite;
  transition: transform 0.25s ease;
}
.wa-float svg { width: 1.7rem; height: 1.7rem; }
.wa-float:hover { transform: scale(1.08); }
@keyframes wa-pulse {
  0%, 100% { box-shadow: 0 12px 28px -8px rgba(37,211,102,0.55); }
  50% { box-shadow: 0 12px 28px -8px rgba(37,211,102,0.85), 0 0 0 10px rgba(37,211,102,0.12); }
}

/* ---------------- Scroll reveal ---------------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.16,1,0.3,1), transform 0.7s cubic-bezier(0.16,1,0.3,1);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1.is-visible { transition-delay: 0.08s; }
.reveal-delay-2.is-visible { transition-delay: 0.16s; }
.reveal-delay-3.is-visible { transition-delay: 0.24s; }

/* ---------------- Focus visibility (accesibilidad) ---------------- */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid #D4A24C;
  outline-offset: 2px;
}

/* ---------------- Scrollbar sutil ---------------- */
::selection { background: #D4A24C; color: #0A1428; }
