/*
 * Author: Pyrukent
 * assets/css/main.css
 * Proyecto EMAS - FUNCIONAL
 * Versión: 0.4.1 - HAMBURGER MOVED TO RESPONSIVE
 */

:root {
  --primary-color: #2E4A6B;
  --secondary-color: #FF8C42;
  --accent-color: #6C757D;
  --neutral-color: #F8F9FA;
  --white: #FFFFFF;
  --black: #000000;
  --dark-blue: #1E3A5F;
  --gray-light: #E9ECEF;
  --gray-medium: #ADB5BD;
  --gray-dark: #495057;
  --gradient-primary: linear-gradient(135deg, #2E4A6B 0%, #1E3A5F 100%);
  --gradient-secondary: linear-gradient(135deg, #FF8C42 0%, #E67E3A 100%);
  --gradient-text: linear-gradient(45deg, #FF8C42, #2E4A6B);
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Poppins', sans-serif;
  --font-size-xs: clamp(0.75rem, 2vw, 0.875rem);
  --font-size-sm: clamp(0.875rem, 2.5vw, 1rem);
  --font-size-base: clamp(1rem, 3vw, 1.125rem);
  --font-size-lg: clamp(1.25rem, 4vw, 1.5rem);
  --font-size-xl: clamp(1.75rem, 5vw, 2.5rem);
  --font-size-2xl: clamp(2.5rem, 8vw, 4rem);
  --space-xs: clamp(0.5rem, 2vw, 1rem);
  --space-sm: clamp(1rem, 3vw, 1.5rem);
  --space-md: clamp(1.5rem, 4vw, 2rem);
  --space-lg: clamp(2rem, 6vw, 3rem);
  --space-xl: clamp(3rem, 8vw, 5rem);
  --space-2xl: clamp(5rem, 12vw, 8rem);
  --border-radius: 12px;
  --border-radius-lg: 20px;
  --border-radius-xl: 32px;
  --shadow-card: 0 15px 35px rgba(50, 50, 93, 0.1);
  --shadow-hover: 0 20px 40px rgba(50, 50, 93, 0.2);
  --ease-out-cubic: cubic-bezier(0.33, 1, 0.68, 1);
  --z-fixed: 1030;
  --z-negative: -1;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: var(--font-primary);
  font-size: var(--font-size-base);
  line-height: 1.6;
  color: var(--gray-dark);
  background: var(--white);
  overflow-x: hidden;
  min-height: 100vh;
}

.section-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

/* Navegación */
.navbar-glass {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  z-index: var(--z-fixed);
  transition: all 0.3s ease;
}

.navbar-glass.scrolled {
  background: rgba(46, 74, 107, 0.95);
  backdrop-filter: blur(30px);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
  padding: var(--space-sm) var(--space-md);
}

.brand-logo {
  height: 70px;
  width: auto;
  background: rgba(255, 255, 255, 0.95);
  padding: 12px;
  border-radius: 12px;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.2));
  transition: all 0.3s ease;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: var(--space-lg);
}

.nav-link {
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
  font-size: var(--font-size-sm);
  position: relative;
  padding: var(--space-xs) 0;
  transition: all 0.3s ease;
}

.nav-link::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--gradient-secondary);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav-link:hover::before,
.nav-link.active::before {
  width: 100%;
}

.nav-link:hover {
  color: var(--secondary-color);
  transform: translateY(-2px);
}

/* Hamburguesa - Base styles only (responsive styles in responsive.css) */
.nav-hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 4px;
  padding: 8px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: all 0.3s var(--ease-out-cubic);
  z-index: 10000;
}

.nav-hamburger span {
  width: 25px;
  height: 3px;
  background: var(--white);
  border-radius: 2px;
  transition: all 0.3s var(--ease-out-cubic);
}

.nav-hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.nav-hamburger.active span:nth-child(2) {
  opacity: 0;
}

.nav-hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* Hero Section */
.hero-parallax {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--gradient-primary);
}

.hero-parallax::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 20% 80%, rgba(255, 140, 66, 0.3) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(46, 74, 107, 0.4) 0%, transparent 50%);
  z-index: 1;
}

.parallax-bg {
  position: absolute;
  top: -10%;
  left: -10%;
  width: 120%;
  height: 120%;
  background: url('../images/hero/hero-background.png') center/cover no-repeat;
  z-index: 0;
  animation: parallaxFloat 12s ease-in-out infinite;
}

@keyframes parallaxFloat {
  0%, 100% { 
    transform: translate(0, 0) scale(1);
  }
  50% { 
    transform: translate(-10px, 10px) scale(1.02);
  }
}

.hero-content-wrapper {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 1000px;
  padding: 0 var(--space-md);
}

.hero-title {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: var(--space-lg);
  padding-top: 100px;
}

.hero-logo {
  height: 320px;
  width: auto;
  max-width: 500px;
  background: rgba(255, 255, 255, 0.95);
  padding: 40px;
  border-radius: 25px;
  backdrop-filter: blur(20px);
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.25);
  opacity: 0;
  animation: logoEntrance 2s ease 0.5s forwards;
}

@keyframes logoEntrance {
  0% {
    opacity: 0;
    transform: translateY(50px) scale(0.9);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.hero-subtitle {
  font-size: var(--font-size-lg);
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: var(--space-xl);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(10px);
  padding: var(--space-md);
  border-radius: var(--border-radius-lg);
  background: rgba(255, 255, 255, 0.08);
  opacity: 0;
  animation: subtitleEntrance 1.5s ease 1s forwards;
}

@keyframes subtitleEntrance {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-actions {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
  animation: actionsEntrance 1.5s ease 1.5s forwards;
}

@keyframes actionsEntrance {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.cta-primary {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-xl);
  background: var(--gradient-secondary);
  color: var(--white);
  text-decoration: none;
  font-weight: 700;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-card);
  transition: all 0.3s ease;
}

.cta-primary:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.cta-secondary {
  display: inline-flex;
  align-items: center;
  padding: var(--space-md) var(--space-xl);
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--border-radius-lg);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.cta-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-3px);
}

.scroll-indicator {
  position: absolute;
  bottom: var(--space-xl);
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.8);
  font-size: var(--font-size-xs);
  font-weight: 600;
}

/* Secciones */
section {
  padding: var(--space-2xl) 0;
  position: relative;
}

.section-intro {
  text-align: center;
  margin-bottom: var(--space-2xl);
}

.section-tag {
  display: inline-block;
  padding: var(--space-xs) var(--space-md);
  background: rgba(46, 74, 107, 0.1);
  color: var(--primary-color);
  border-radius: var(--border-radius);
  font-size: var(--font-size-xs);
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: var(--space-md);
}

.section-title {
  font-family: var(--font-display);
  font-size: var(--font-size-2xl);
  font-weight: 800;
  color: var(--primary-color);
  margin-bottom: var(--space-md);
}

.text-gradient {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.about-section {
  background: var(--neutral-color);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: center;
}

.lead-text {
  font-size: var(--font-size-lg);
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: var(--space-lg);
}

.values-cards {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.value-card {
  background: var(--white);
  padding: var(--space-xl);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-card);
  transition: all 0.3s ease;
}

.value-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-hover);
}

.card-icon {
  font-size: 3rem;
  margin-bottom: var(--space-md);
}

.value-card h4 {
  font-size: var(--font-size-lg);
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: var(--space-sm);
}

/* FORZAR MODO CLARO SIEMPRE */
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: light !important;
  }
  
  * {
    color-scheme: light !important;
  }
  
  body {
    background: #FFFFFF !important;
    color: #495057 !important;
  }
}