/* ==========================================================================
   SOLANUM - GLOBAL STYLES (HEADER, FOOTER, UTILITIES, ANIMATIONS)
   ========================================================================== */
@import url('variables.css');

/* --------------------------------------------------------------------------
   UTILITIES ADICIONALES (LAYOUT)
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 var(--spacing-lg);
}

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-sm { gap: var(--spacing-sm); }
.gap-md { gap: var(--spacing-md); }
.gap-lg { gap: var(--spacing-lg); }
.text-center { text-align: center; }
.w-full { width: 100%; }
.relative { position: relative; }
.absolute { position: absolute; }
.hidden { display: none; }

/* Contenedores de Video Globales */
.video-bg-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: -1;
  pointer-events: none;
}

.video-bg-container iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100vw;
  height: 56.25vw; /* 16:9 Aspect Ratio */
  min-height: 100vh;
  min-width: 177.77vh; /* 16:9 Aspect Ratio */
  transform: translate(-50%, -50%);
}

.video-inline-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  overflow: hidden;
  pointer-events: none;
}

.video-inline-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.video-inline-1-1 {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  pointer-events: none;
}

.video-inline-1-1 iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 300%;
  height: calc(300% * 0.5625); /* 16:9 Aspect Ratio */
  transform: translate(-50%, -50%);
}

/* Botones Globales */
.btn-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-family-base);
  font-size: var(--fs-boton);
  font-weight: var(--font-weight-medium);
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: var(--transition-normal);
  cursor: pointer;
  border: none;
}

.btn-wsp {
  background-color: var(--color-whatsapp);
  color: var(--color-white);
  padding: 0.55rem 0.9rem;
  gap: 0.5rem;
  font-family: var(--font-family-base);
  font-size: var(--fs-boton);
  font-weight: var(--font-weight-medium);
}

.btn-wsp:hover {
  background-color: #20b858;
  transform: translateY(-2px);
}

.btn-wsp img {
  width: 20px;
  height: 20px;
}

/* --------------------------------------------------------------------------
   HEADER
   -------------------------------------------------------------------------- */
.header {
  background-color: var(--color-header-footer);
  padding: var(--spacing-md) 0;
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.15);
  animation: headerSlideDown 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.nav-menu {
  background-color: rgba(255, 255, 255, 0.9);
  border-radius: var(--radius-pill);
  padding: 0.25rem 0.6rem;
}

.nav-link {
  color: var(--color-header-footer);
  text-decoration: none;
  font-family: var(--font-family-base);
  font-size: var(--fs-boton);
  font-weight: var(--font-weight-medium);
  padding: 0.35rem 0.65rem;
  transition: var(--transition-fast);
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
}

.nav-link:hover {
  background-color: rgba(150, 0, 25, 0.1);
}

.nav-link.active {
  border: 1px solid #1E1E1E;
  color: #1E1E1E;
}

.logo-header {
  height: 30px;
  transition: transform var(--transition-normal);
}

.logo-header:hover {
  transform: scale(1.04);
}

/* --------------------------------------------------------------------------
   FOOTER
   -------------------------------------------------------------------------- */
.footer {
  background-color: var(--color-header-footer);
  color: var(--color-white);
  padding: var(--spacing-2xl) 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 2fr 1fr;
  gap: var(--spacing-lg);
}

.footer-col h4 {
  font-size: 0.9rem;
  font-weight: var(--font-weight-medium);
  letter-spacing: 0.05em;
  margin-bottom: var(--spacing-sm);
  opacity: 0.8;
}

.footer-col p, .footer-col a {
  color: var(--color-white);
  text-decoration: none;
  font-size: 0.9rem;
  line-height: 1.6;
  opacity: 0.9;
  display: block;
}

.footer-col a:hover {
  text-decoration: underline;
  opacity: 1;
}

.social-links {
  display: flex;
  gap: var(--spacing-sm);
}

.social-links img {
  width: 24px;
  height: 24px;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.social-links a:hover img {
  transform: translateY(-3px) scale(1.1);
}

.logo-footer {
  height: 35px;
  margin-bottom: var(--spacing-xs);
}

.logo-tagline {
  font-size: 0.85rem;
  font-weight: var(--font-weight-medium);
  opacity: 0.9;
}

/* --------------------------------------------------------------------------
   ANIMACIONES SCROLL Y ENTRADA
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(35px);
  transition: opacity 1.4s cubic-bezier(0.16, 1, 0.3, 1), transform 1.4s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.15s; }
.reveal-delay-2 { transition-delay: 0.3s; }
.reveal-delay-3 { transition-delay: 0.45s; }
.reveal-delay-4 { transition-delay: 0.6s; }

/* Keyframes Globales */
@keyframes headerSlideDown {
  0% {
    opacity: 0;
    transform: translateY(-20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroFadeInUp {
  0% {
    opacity: 0;
    transform: translateY(35px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroKenBurns {
  0% {
    transform: scale(1.08) translateY(0);
  }
  100% {
    transform: scale(1) translateY(-1.5%);
  }
}

@keyframes btnPulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.45);
  }
  50% {
    box-shadow: 0 0 0 10px rgba(37, 211, 102, 0);
  }
}

/* --------------------------------------------------------------------------
   MEDIA QUERIES GLOBALES (HEADER / FOOTER)
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); gap: var(--spacing-xl); }
}

@media (max-width: 768px) {
  .nav-menu { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   BOTÓN FLOTANTE WHATSAPP (CTA GLOBAL PERMANENTE)
   -------------------------------------------------------------------------- */
.floating-wsp {
  position: fixed;
  bottom: 25px;
  right: 25px;
  z-index: 9999;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  background-color: var(--color-whatsapp);
  color: var(--color-white);
  padding: 0.75rem 1.35rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-family-base);
  font-size: var(--fs-boton);
  font-weight: var(--font-weight-medium);
  letter-spacing: 0.02em;
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4), 0 2px 8px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.2s ease;
  animation: floatingWspEntrance 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.floating-wsp:hover {
  background-color: #20b858;
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.5), 0 4px 12px rgba(0, 0, 0, 0.2);
}

.floating-wsp img,
.floating-wsp svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  display: block;
}

.floating-wsp span {
  display: inline-block;
  line-height: 1;
}

@keyframes floatingWspEntrance {
  0% {
    opacity: 0;
    transform: translateY(20px) scale(0.9);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 640px) {
  .floating-wsp {
    bottom: 20px;
    right: 20px;
    padding: 0.85rem;
    border-radius: 50%;
  }
  .floating-wsp span {
    display: none;
  }
}

/* ==========================================================================
   INTERACTIVE DRONE BACKGROUND
   ========================================================================== */
.como-trabajamos,
.significa-section,
.beneficios-section,
.compromiso,
.contacto-info {
  position: relative !important;
  overflow: hidden !important;
  user-select: none !important;
  -webkit-user-select: none !important;
  -moz-user-select: none !important;
  -ms-user-select: none !important;
  cursor: default;
}

.como-trabajamos *,
.significa-section *,
.beneficios-section *,
.compromiso *,
.contacto-info * {
  user-select: none !important;
  -webkit-user-select: none !important;
  -moz-user-select: none !important;
  -ms-user-select: none !important;
}

.como-trabajamos a,
.significa-section a,
.beneficios-section a,
.compromiso a,
.contacto-info a,
.como-trabajamos button,
.significa-section button,
.beneficios-section button,
.compromiso button,
.contacto-info button {
  cursor: pointer;
}

.como-trabajamos > .container,
.significa-section > .container,
.beneficios-section > .container,
.compromiso > .container,
.contacto-info > .container {
  position: relative;
  z-index: 2;
}

.section-drone-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 5;
}

.section-shader-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}



