/* 
  Cefalea en Racimos - Design System
  Colors derived from LogoCefalea.png and App
*/

:root {
  /* Colors */
  --primary-blue: #0054A6;
  --accent-cyan: #00C2FF;
  --accent-purple: #8E78FF;
  --bg-dark: #0F172A;
  --bg-darker: #020617;
  --card-bg: rgba(30, 41, 59, 0.7);
  --text-primary: #F8FAFC;
  --text-secondary: #94A3B8;
  --glass-border: rgba(255, 255, 255, 0.1);
  --gradient-main: linear-gradient(135deg, var(--accent-purple), var(--primary-blue), var(--accent-cyan));
  
  /* Typography */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  /* Transitions */
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
}

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

/* Typography Helpers */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
}

p {
  color: var(--text-secondary);
}

/* Layout */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

section {
  padding: 6rem 0;
}

/* Background Effects */
.blob {
  position: fixed;
  width: 500px;
  height: 500px;
  background: var(--gradient-main);
  filter: blur(120px);
  opacity: 0.15;
  z-index: -1;
  border-radius: 50%;
  pointer-events: none;
}

.blob-1 { top: -100px; right: -100px; }
.blob-2 { bottom: -100px; left: -100px; }

/* Navbar */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 1.5rem 0;
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(12px);
  z-index: 1000;
  border-bottom: 1px solid var(--glass-border);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--text-primary);
  text-decoration: none;
}

.logo img {
  height: 40px;
  width: auto;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 8rem;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 4rem;
  align-items: center;
}

.hero-content h1 {
  font-size: 4rem;
  margin-bottom: 1.5rem;
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-content p {
  font-size: 1.25rem;
  margin-bottom: 2.5rem;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 1rem 2.5rem;
  border-radius: 99px;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition-smooth);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--gradient-main);
  color: white;
  box-shadow: 0 10px 30px rgba(0, 194, 255, 0.3);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(0, 194, 255, 0.4);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
  backdrop-filter: blur(5px);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--text-secondary);
}

/* App Preview Mockup */
.app-mockup {
  position: relative;
  background: var(--card-bg);
  border: 4px solid var(--glass-border);
  border-radius: 3rem;
  padding: 1rem;
  box-shadow: 0 50px 100px -20px rgba(0,0,0,0.5);
}

.app-mockup img {
  width: 100%;
  border-radius: 2.5rem;
  display: block;
}

/* Features */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.feature-card {
  background: var(--card-bg);
  padding: 2.5rem;
  border-radius: 2rem;
  border: 1px solid var(--glass-border);
  transition: var(--transition-smooth);
}

.feature-card:hover {
  border-color: var(--accent-cyan);
  background: rgba(30, 41, 59, 0.9);
  transform: translateY(-5px);
}

.feature-icon {
  width: 60px;
  height: 60px;
  background: rgba(0, 194, 255, 0.1);
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
  color: var(--accent-cyan);
}

/* PWA Instructions */
.pwa-guide {
  background: var(--card-bg);
  border-radius: 3rem;
  padding: 4rem;
  border: 1px solid var(--glass-border);
  text-align: center;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  margin-top: 3rem;
}

.step {
  position: relative;
}

.step-num {
  width: 40px;
  height: 40px;
  background: var(--gradient-main);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  margin: 0 auto 1.5rem;
}

/* Footer */
footer {
  padding: 4rem 0;
  border-top: 1px solid var(--glass-border);
  text-align: center;
}

/* Responsive */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .hero-content h1 {
    font-size: 3rem;
  }
  
  .app-mockup {
    max-width: 400px;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .steps-grid {
    grid-template-columns: 1fr;
  }
}

/* Animations */
[data-reveal] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

[data-reveal].active {
  opacity: 1;
  transform: translateY(0);
}
