/* =========================================
   SAKO TECHNOLOGIES | CORE STYLES (ORIGINAL)
   Extracted from Monolithic Build
   ========================================= */

/* --- FUENTES E IMPORTACIONES --- */
@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@300;600;800&family=Syncopate:wght@700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Segoe+UI&display=swap");

:root {
  --bg: #050505;
  --text: #ffffff;
  --accent-blue: #3b82f6;
  --border-color: rgba(255, 255, 255, 0.1);
  --panel-bg: #0a0a0a;
  --card-bg: #111;
  --text-muted: #888;
  --success: #10b981;
}

/* --- RESET & BASE --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: "Manrope", sans-serif;
  overflow-x: hidden;
  padding-top: 60px; /* Espacio para el Nav Fijo */
}

a { text-decoration: none; }

/* --- BACKGROUND FX --- */
#canvas-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: -2;
  opacity: 1;
  pointer-events: none;
}

.noise-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("https://grainy-gradients.vercel.app/noise.svg");
  opacity: 0.05;
  z-index: -1;
  pointer-events: none;
}

/* --- NAVEGACIÓN (Estilo Original Fino) --- */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 30px;
  height: 60px; /* Altura original */
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.logo {
  font-family: "Syncopate", sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: 2px;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 201;
}

.logo img {
  height: 24px;
  border-radius: 50%;
  width: auto;
}

.logo span {
  color: var(--accent-blue);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  height: 100%;
}

.nav-item {
  color: #888;
  text-decoration: none;
  font-size: 0.75rem;
  letter-spacing: 1px;
  font-weight: 600;
  transition: 0.3s;
  text-transform: uppercase;
}

.nav-item:hover {
  color: #fff;
}

.nav-item.active {
  color: #fff;
  border-bottom: 1px solid #fff;
  padding-bottom: 5px; /* Ajuste visual del active */
}

/* Botón Contacto del Nav */
.nav-btn-special {
  background-color: #ffffff;
  color: #000000 !important;
  padding: 8px 20px; /* Ajustado para el nav de 60px */
  border-radius: 50px;
  font-weight: 800;
  text-decoration: none;
  font-size: 0.75rem;
  letter-spacing: 1px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  margin-left: 10px;
}

.nav-btn-special:hover {
  transform: scale(1.05);
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.4);
}

.hamburger {
  display: none;
  font-size: 1.1rem;
  color: #fff;
  cursor: pointer;
  z-index: 201;
  padding: 10px;
}

/* --- UTILITIES & ANIMATIONS --- */
.fade-in {
  opacity: 0;
  transform: translateY(40px);
  transition: all 1s cubic-bezier(0.23, 1, 0.32, 1);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 { transition-delay: 0.15s; }
.delay-2 { transition-delay: 0.3s; }
.delay-3 { transition-delay: 0.45s; }

/* Glitch Text Base (Usado en todos los Heroes) */
.glitch-text {
  position: relative;
  font-family: "Syncopate", sans-serif;
  font-weight: 700;
  color: #fff;
  letter-spacing: -3px;
  text-shadow: 0 0 80px rgba(255, 255, 255, 0.1);
}

/* --- FOOTER (Global) --- */
footer {
  padding: 60px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  margin-top: 40px;
  text-align: center;
  background: #050505;
}

.footer-socials {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 25px;
}

.social-btn {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #888;
  text-decoration: none;
  font-size: 1.2rem;
  transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

.social-btn:hover {
  transform: translateY(-5px);
  color: #fff;
  border-color: transparent;
}

/* Gradientes Originales */
.social-btn.instagram:hover {
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285aeb 90%);
  box-shadow: 0 0 20px rgba(214, 36, 159, 0.4);
}

.social-btn.whatsapp:hover {
  background: #25d366;
  box-shadow: 0 0 20px rgba(37, 211, 102, 0.4);
}

.social-btn.email:hover {
  background: #ffffff;
  color: #000;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.4);
  transform: translateY(-5px);
}


.social-btn.facebook:hover {
  background: #1877F2; /* Azul Facebook */
  color: #fff;
  border-color: transparent;
  /* Sombra azulada intensa */
  box-shadow: 0 0 25px rgba(24, 119, 242, 0.5);
  transform: translateY(-5px);
}

.social-btn.tiktok:hover {
  /* Degradado oficial de TikTok (Cian a Rosa/Rojo) */
  background: linear-gradient(45deg, #00f2ea 0%, #ff0050 100%);
  color: #fff;
  border-color: transparent;
  /* Glow Effect combinado */
  box-shadow: 0 0 20px rgba(0, 242, 234, 0.4), 0 0 20px rgba(255, 0, 80, 0.4);
  transform: translateY(-5px);
}

footer p {
  color: #444;
  font-size: 0.8rem;
  margin-top: 20px;
}

footer a {
  color: #666;
  text-decoration: none;
  margin-left: 10px;
  transition: 0.3s;
  font-size: 0.8rem;
}

footer a:hover {
  color: #fff;
  text-decoration: underline;
}
/* =========================================
   COOKIE BANNER (GDPR/AEPD COMPLIANT)
   ========================================= */
.cookie-banner {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 90%;
    max-width: 420px;
    background: rgba(5, 5, 5, 0.95); /* Fondo sólido "Dark Tech" */
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 25px;
    border-radius: 12px;
    z-index: 9999; /* Por encima de todo */
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.9);
    
    /* Estado inicial: Oculto */
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.cookie-banner.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

.cookie-content {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.cookie-content i {
    color: var(--accent-blue, #3b82f6);
    font-size: 1.2rem;
    margin-top: 4px;
}

.cookie-content p {
    font-size: 0.85rem;
    color: #ccc;
    line-height: 1.5;
    margin: 0;
    font-family: 'Manrope', sans-serif;
}

/* Enlaces legales en el texto */
.cookie-content a { 
    color: #fff; 
    text-decoration: underline; 
    transition: color 0.3s;
}
.cookie-content a:hover { color: var(--accent-blue, #3b82f6); }

/* Contenedor de botones (Flex para igualdad) */
.cookie-actions { 
    display: flex; 
    gap: 15px; 
}

/* BOTONES IDÉNTICOS (Requisito AEPD) */
.btn-cookie {
    flex: 1; /* Ocupan el mismo espacio (50% cada uno) */
    padding: 12px 0;
    border-radius: 6px;
    font-weight: 700;
    cursor: pointer;
    font-size: 0.75rem;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: 'Syncopate', sans-serif;
    transition: all 0.3s ease;
    
    /* Estilo Base: Outline "Ghost" para ambos */
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
}

/* Hover Effect */
.btn-cookie:hover {
    background: #fff;
    color: #000;
    border-color: #fff;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* --- RESPONSIVE MENU --- */
@media (max-width: 768px) {
  nav { padding: 0 20px; }
  
  .hamburger { display: block; }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: auto;
    padding: 20px 0;
    background: rgba(10, 10, 10, 0.98);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-20px);
    z-index: 199;
  }

  .nav-links.active {
    opacity: 1;
    pointer-events: all;
    transform: translateY(0);
  }

  .nav-item { font-size: 1.1rem; }
  
  .nav-btn-special {
    margin-left: 0;
    margin-top: 10px;
    width: 80%;
    text-align: center;
  }
}
/* --- HERO TYPOGRAPHY --- */
.hero h1 {
    /* Sintaxis: clamp(MINIMO, IDEAL, MAXIMO) */
    /* Lo hemos subido de 9rem a 15rem en pantallas grandes */
    font-size: clamp(5rem, 18vw, 15rem); 
    
    line-height: 0.85; /* Muy pegado, estilo poster */
    font-weight: 800;
    letter-spacing: -6px; /* Kerning negativo agresivo para estilo Tech */
    margin: 0 0 30px 0;
    
    /* Aseguramos que el glitch y el brillo no se corten */
    padding: 20px 10px; 
    display: inline-block;
    width: 100%;
    
    /* Sombra para separarlo del fondo */
    text-shadow: 0 0 100px rgba(255, 255, 255, 0.15);
}

/* El punto azul también crece, pero ajustamos su posición si es necesario */
.hero h1 .dot-accent {
    color: var(--accent-blue);
    font-size: inherit; /* Hereda el tamaño monstruoso del H1 */
}

/* --- AJUSTE RESPONSIVE (MÓVIL) --- */
@media (max-width: 768px) {
    .hero h1 {
        /* En móvil sigue siendo grande, pero seguro */
        font-size: clamp(3.5rem, 14vw, 5rem); 
        letter-spacing: -2px;
        line-height: 1;
        padding: 0; /* Quitamos padding extra en móvil */
    }
}
/* =========================================
   PARCHE MÓVIL
   ========================================= */
@media (max-width: 768px) {
    /* Ajuste forzoso para todos los títulos H1 internos */
    .internal-hero h1, 
    .internal-hero h1.glitch-text,
    .glitch-text {
        /* Usamos clamp para que escale suavemente entre 2rem y 3rem según el ancho */
        font-size: clamp(1.8rem, 10vw, 3rem) !important; 
        line-height: 1.1 !important;
        letter-spacing: -1px !important; /* Reducimos el espaciado entre letras */
        width: 100%;
        padding: 0 10px;
        
        /* Esto evita que se salga de la pantalla */
        white-space: normal !important;
        overflow-wrap: break-word; 
        word-wrap: break-word;
        hyphens: auto;
    }

    /* Ajuste específico para el texto "NUESTROS PACKS" o muy largos */
    .internal-hero p.lead {
        font-size: 0.95rem !important;
        padding: 0 15px;
    }
}