:root {
  --pk-primary: #0ea5e9;       
  --pk-primary-dark: #0284c7;
  --pk-whatsapp: #25D366;
  --pk-whatsapp-dark: #128C7E;
  --pk-dark: #0f172a;     
  --pk-accent: #38bdf8;        
  --pk-text: #334155;          
  --pk-text-light: #64748b;    
  --pk-bg: #f8fafc;            
  --pk-white: #ffffff;
  
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-heading: 'Outfit', sans-serif;
  --radius-lg: 24px;
  --radius-md: 16px;
  --shadow-float: 0 20px 40px -15px rgba(0,0,0,0.08);
  --shadow-premium: 0 25px 50px -12px rgba(0,0,0,0.25);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--pk-dark);
  line-height: 1.1;
  letter-spacing: -0.025em;
  font-weight: 700;
}

a { text-decoration: none; color: inherit; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); }
img { max-width: 100%; height: auto; display: block; border-radius: var(--radius-md); }
.container { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 1.5rem; }

/* Header Premium con Glassmorphism */
.header {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
  background: rgba(248, 250, 252, 0.85); 
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0,0,0,0.05); 
  padding: 1rem 0; transition: all 0.3s ease;
}

.nav { display: flex; justify-content: space-between; align-items: center; }

.logo { 
  font-family: var(--font-heading); font-weight: 800; font-size: 1.5rem; 
  color: var(--pk-dark); display: flex; align-items: center; gap: 0.5rem;
  letter-spacing: -0.02em;
}
.logo span { color: var(--pk-primary); }
.logo::before {
  content: '';
  width: 28px; height: 28px; border-radius: 8px;
  background: linear-gradient(135deg, var(--pk-primary), var(--pk-accent));
  box-shadow: 0 4px 8px rgba(14, 165, 233, 0.3);
}

.nav-links { display: flex; gap: 2.5rem; list-style: none; }
.nav-link { 
  font-weight: 500; font-size: 0.95rem; color: var(--pk-text); 
  position: relative; padding: 0.5rem 0;
}
.nav-link::after {
  content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 2px;
  background: var(--pk-primary); transition: width 0.3s ease; border-radius: 2px;
}
.nav-link:hover { color: var(--pk-primary); }
.nav-link:hover::after { width: 100%; }

/* Botones Premium */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.85rem 1.75rem; border-radius: 50px; font-weight: 600; font-size: 0.95rem;
  cursor: pointer; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); border: none;
  white-space: nowrap;
}
.btn-primary { 
  background: var(--pk-primary); color: var(--pk-white); 
  box-shadow: 0 4px 12px rgba(14, 165, 233, 0.3); 
}
.btn-primary:hover { 
  background: var(--pk-primary-dark); transform: translateY(-2px); 
}
.btn-whatsapp { 
  background: var(--pk-whatsapp); color: var(--pk-white); 
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3); 
}
.btn-whatsapp:hover { 
  background: var(--pk-whatsapp-dark); transform: translateY(-2px); 
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.4); 
}
.btn-outline-dark {
  border: 1px solid rgba(0,0,0,0.1); color: var(--pk-dark);
  background: rgba(255,255,255,0.8);
}
.btn-outline-dark:hover {
  border-color: var(--pk-primary); color: var(--pk-primary); background: var(--pk-white);
}

/* Hero Interno Premium */
.hero-inner { 
  padding: 10rem 0 6rem; 
  background: linear-gradient(-45deg, var(--pk-dark), #1e293b, #0f172a, #020617);
  background-size: 400% 400%;
  animation: gradientBG 15s ease infinite;
  color: var(--pk-white); text-align: center; 
  position: relative; overflow: hidden;
}

@keyframes gradientBG {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.hero-inner::before {
  content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background: radial-gradient(circle at 30% 20%, rgba(14,165,233,0.15) 0%, transparent 50%),
              radial-gradient(circle at 70% 80%, rgba(56,189,248,0.1) 0%, transparent 50%);
  pointer-events: none;
}

.hero-inner h1 { 
  color: var(--pk-white); font-size: clamp(2.5rem, 5vw, 4rem); 
  margin-bottom: 1.5rem; position: relative; font-weight: 800;
}
.hero-inner h1 span { 
  background: linear-gradient(135deg, var(--pk-accent), #818cf8);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-inner p { 
  color: #cbd5e1; font-size: clamp(1.1rem, 2vw, 1.25rem); 
  max-width: 700px; margin: 0 auto; position: relative;
}

/* Secciones */
.section { padding: 6rem 0; }
.section-alt { background: var(--pk-white); }
.section-title { 
  text-align: center; font-size: clamp(2rem, 4vw, 2.8rem); 
  margin-bottom: 1rem; font-weight: 800;
}
.section-subtitle { 
  text-align: center; color: var(--pk-text-light); 
  max-width: 700px; margin: 0 auto 4rem; font-size: 1.15rem; 
}

/* Grid de Servicios Técnicos */
.services-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
  gap: 2rem;
}
.service-card {
  background: var(--pk-white); padding: 2.5rem; border-radius: var(--radius-lg);
  border: 1px solid rgba(0,0,0,0.05); transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.03);
  display: flex; flex-direction: column;
}
.service-card:hover {
  transform: translateY(-8px); box-shadow: var(--shadow-float);
  border-color: rgba(14, 165, 233, 0.2);
}
.service-icon {
  width: 56px; height: 56px; border-radius: 16px; 
  background: rgba(14, 165, 233, 0.1); color: var(--pk-primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem; margin-bottom: 1.5rem;
}
.service-card h3 { font-size: 1.4rem; margin-bottom: 1rem; }
.service-card p { color: var(--pk-text-light); margin-bottom: 1.5rem; flex-grow: 1; }
.service-link {
  color: var(--pk-primary); font-weight: 600; font-size: 0.95rem;
  display: inline-flex; align-items: center; gap: 0.5rem; margin-top: auto;
}
.service-link:hover { gap: 0.8rem; color: var(--pk-primary-dark); }

/* Pack Completo */
.pack-section {
  background: var(--pk-white); border-radius: var(--radius-lg);
  padding: 3rem; margin: 4rem 0; box-shadow: var(--shadow-float);
  border: 1px solid rgba(14, 165, 233, 0.1);
  display: grid; grid-template-columns: 2fr 1fr; gap: 3rem; align-items: center;
}
.pack-section h2 { font-size: 2.2rem; margin-bottom: 1rem; }
.pack-section p { color: var(--pk-text-light); margin-bottom: 1.5rem; font-size: 1.1rem; }
.pack-list { list-style: none; margin-bottom: 2rem; }
.pack-list li { 
  margin-bottom: 0.75rem; display: flex; gap: 0.75rem; align-items: flex-start;
  color: var(--pk-text); font-size: 1rem;
}
.pack-list li::before { content: '✓'; color: var(--pk-primary); font-weight: 700; font-size: 1.1rem; }
.pack-sidebar {
  background: rgba(14, 165, 233, 0.05); border-radius: var(--radius-md);
  padding: 2rem; text-align: center;
}
.pack-sidebar h3 { font-size: 1.3rem; margin-bottom: 1rem; }
.pack-sidebar p { color: var(--pk-text-light); font-size: 0.95rem; margin-bottom: 1.5rem; }

/* Bento Grid: Diseño Gráfico */
.graphic-bento {
  display: grid; grid-template-columns: repeat(12, 1fr); gap: 1.5rem;
  background: var(--pk-dark); border-radius: var(--radius-lg);
  padding: 3rem; box-shadow: var(--shadow-premium);
  position: relative; overflow: hidden;
  background-image: radial-gradient(circle at 80% 20%, rgba(14,165,233,0.15) 0%, transparent 50%);
}
.graphic-bento-header {
  grid-column: span 12; text-align: center; margin-bottom: 2rem;
}
.graphic-bento-header h2 { color: var(--pk-white); font-size: 2.5rem; margin-bottom: 1rem; }
.graphic-bento-header p { color: #cbd5e1; font-size: 1.1rem; max-width: 600px; margin: 0 auto; }

.g-card {
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-md); padding: 2rem; backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}
.g-card:hover { background: rgba(255,255,255,0.1); transform: translateY(-5px); }
.g-card h4 { color: var(--pk-white); font-size: 1.2rem; margin-bottom: 0.75rem; }
.g-card p { color: #94a3b8; font-size: 0.95rem; line-height: 1.5; }

.g-identidad { grid-column: span 6; }
.g-digital { grid-column: span 6; }
.g-publicitario { grid-column: span 4; }
.g-packaging { grid-column: span 4; }
.g-edicion { grid-column: span 4; }

.graphic-bento-footer {
  grid-column: span 12; text-align: center; margin-top: 2rem;
}

/* Footer & Utils */
.footer { background: var(--pk-dark); color: var(--pk-white); padding: 5rem 0 2rem; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 4rem; margin-bottom: 4rem; }
.footer h3 { color: var(--pk-white); margin-bottom: 1.5rem; font-size: 1.1rem; }
.footer ul { list-style: none; }
.footer li { margin-bottom: 0.85rem; color: #cbd5e1; font-size: 0.95rem; }
.footer a { color: #cbd5e1; }
.footer a:hover { color: var(--pk-white); }
.footer-desc { color: #cbd5e1; font-size: 0.95rem; line-height: 1.7; margin-bottom: 1rem; }
.copyright { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 2rem; text-align: center; color: #94a3b8; font-size: 0.875rem; }

.whatsapp-fab { position: fixed; right: 1.5rem; bottom: 1.5rem; z-index: 50; }
.whatsapp-fab a {
  width: 56px; height: 56px; border-radius: 50%; background: var(--pk-whatsapp);
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4); display: flex; 
  align-items: center; justify-content: center; color: var(--pk-white); 
  font-size: 1.4rem; transition: all 0.3s ease;
}
.whatsapp-fab a:hover { transform: translateY(-3px) scale(1.05); }

.nav-toggle {
  display: none; width: 44px; height: 44px; 
  border: 1px solid rgba(0,0,0,0.1); background: var(--pk-white);
  border-radius: 12px; cursor: pointer; flex-direction: column; 
  justify-content: center; gap: 5px; padding: 8px;
}
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--pk-dark); border-radius: 2px; transition: 0.3s; }

@media (max-width: 992px) {
  .g-identidad, .g-digital, .g-publicitario, .g-packaging, .g-edicion { grid-column: span 6; }
  .pack-section { grid-template-columns: 1fr; gap: 2rem; }
}
@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px); padding: 1.5rem; 
    border-bottom: 1px solid rgba(0,0,0,0.05); gap: 1rem; border-radius: 0 0 16px 16px;
  }
  .nav-links.is-open { display: flex; }
  .hero-inner { padding: 8rem 0 4rem; }
  .g-identidad, .g-digital, .g-publicitario, .g-packaging, .g-edicion { grid-column: span 12; }
  .graphic-bento { padding: 2rem 1.5rem; }
}
