/* ===== Google Fonts ===== */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=Inter:wght@300;400;500;600;700&display=swap');

/* ===== CSS Variables ===== */
:root {
  --bg-primary: #0a0e1a;
  --bg-secondary: #111827;
  --bg-card: rgba(17, 24, 39, 0.7);
  --bg-glass: rgba(255, 255, 255, 0.04);
  --border-glass: rgba(255, 255, 255, 0.08);
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --accent-1: #6366f1;
  --accent-2: #8b5cf6;
  --accent-3: #a78bfa;
  --accent-4: #c084fc;
  --accent-green: #34d399;
  --accent-cyan: #22d3ee;
  --accent-amber: #fbbf24;
  --accent-rose: #fb7185;
  --gradient-hero: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #a78bfa 100%);
  --gradient-card: linear-gradient(135deg, rgba(99,102,241,0.15) 0%, rgba(139,92,246,0.08) 100%);
  --gradient-section: linear-gradient(180deg, #0a0e1a 0%, #111827 100%);
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.4);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.5);
  --shadow-glow: 0 0 30px rgba(99,102,241,0.2);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --max-width: 1200px;
}

/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: 'Inter', sans-serif;
  background: linear-gradient(rgba(10, 14, 26, 0.9), rgba(10, 14, 26, 0.9)), url('fondoagua.jpg');
  background-size: cover;
  background-attachment: fixed;
  background-position: center;
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 { font-family: 'Outfit', sans-serif; line-height: 1.2; }

a { text-decoration: none; color: var(--accent-3); transition: var(--transition); }
a:hover { color: var(--accent-4); }

img { max-width: 100%; display: block; }

/* ===== Scrollbar ===== */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--accent-1); border-radius: 4px; }

/* ===== Utility ===== */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
.section-padding { padding: 100px 0; }
.text-gradient {
  background: var(--gradient-hero);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.badge {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  background: rgba(99,102,241,0.15);
  color: var(--accent-3);
  border: 1px solid rgba(99,102,241,0.25);
}

/* ===== Animations ===== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-40px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Header ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 24px 0;
  transition: var(--transition);
}
.site-header.scrolled {
  background: rgba(10, 14, 26, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-glass);
  padding: 16px 0;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  font-family: 'Outfit', sans-serif;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-primary);
  z-index: 1100;
}
.logo span { color: var(--accent-1); }

/* Always hide horizontal nav as requested */
.nav-desktop { display: none; }

/* Hamburger Menu Button (Always visible now) */
.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  z-index: 1100;
  transition: var(--transition);
}
.hamburger:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--accent-1);
}
.hamburger span {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  transition: var(--transition);
  border-radius: 2px;
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 6px); }
.hamburger.active span:nth-child(2) { opacity: 0; transform: translateX(10px); }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -6px); }

/* Main Sidebar Nav (for all devices) */
.nav-mobile {
  position: fixed;
  top: 0;
  right: -100%;
  width: 350px;
  max-width: 100%;
  height: 100vh;
  background: rgba(10, 14, 26, 0.95);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  padding: 120px 48px 48px;
  transition: right 0.5s cubic-bezier(0.77, 0, 0.175, 1);
  z-index: 1050;
  list-style: none;
  border-left: 1px solid var(--border-glass);
  display: flex;
  flex-direction: column;
  gap: 30px;
}
.nav-mobile.open { right: 0; }
.nav-mobile a {
  font-family: 'Outfit', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-secondary);
  transition: var(--transition);
}
.nav-mobile a:hover {
  color: var(--text-primary);
  padding-left: 10px;
}
.nav-mobile a::before {
  content: '';
  display: inline-block;
  width: 0;
  height: 2px;
  background: var(--accent-1);
  margin-right: 0;
  transition: var(--transition);
  vertical-align: middle;
}
.nav-mobile a:hover::before {
  width: 20px;
  margin-right: 15px;
}
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 1040;
}
.nav-overlay.active { display: block; }

/* ===== Hero Section ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 80px;
}
.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -30%;
  width: 80%;
  height: 80%;
  background: radial-gradient(circle, rgba(99,102,241,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  right: -20%;
  width: 60%;
  height: 60%;
  background: radial-gradient(circle, rgba(139,92,246,0.1) 0%, transparent 70%);
  pointer-events: none;
}
.hero-content { 
  position: relative; 
  z-index: 1; 
  text-align: center; 
  max-width: 1000px; 
  margin: 0 auto; 
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero-image-container {
  width: 100%;
  max-width: 600px;
  margin-top: 40px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  border: 1px solid var(--border-glass);
  animation: fadeInUp 1s ease 0.6s forwards;
  opacity: 0;
}
.hero-image-container img {
  width: 100%;
  height: auto;
  transition: transform 0.5s ease;
}
.hero-image-container:hover img {
  transform: scale(1.05);
}
.hero-badge { margin-bottom: 24px; animation: fadeInUp 0.8s ease forwards; }
.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 900;
  margin-bottom: 24px;
  animation: fadeInUp 0.8s ease 0.15s forwards;
  opacity: 0;
}
.hero p {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--text-secondary);
  max-width: 650px;
  margin: 0 auto 40px;
  animation: fadeInUp 0.8s ease 0.3s forwards;
  opacity: 0;
}
.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 36px;
  background: var(--gradient-hero);
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  animation: fadeInUp 0.8s ease 0.45s forwards;
  opacity: 0;
  box-shadow: 0 4px 20px rgba(99,102,241,0.35);
}
.hero-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(99,102,241,0.5);
  color: #fff;
}

/* ===== Section Titles ===== */
.section-header { text-align: center; margin-bottom: 60px; }
.section-header .badge { margin-bottom: 16px; }
.section-header h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  margin-bottom: 16px;
}
.section-header p {
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.05rem;
}

/* ===== Glass Card ===== */
.glass-card {
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 32px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: var(--transition);
}
.glass-card:hover {
  border-color: rgba(99,102,241,0.25);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}

/* ===== What is PMBOK ===== */
.what-is .content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.what-is .text-block h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text-primary);
}
.what-is .text-block p {
  color: var(--text-secondary);
  margin-bottom: 16px;
  font-size: 1rem;
}
.info-list { list-style: none; }
.info-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
  color: var(--text-secondary);
}
.info-list .icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  flex-shrink: 0;
  margin-top: 2px;
}
.icon-purple { background: rgba(139,92,246,0.2); color: var(--accent-2); }
.icon-green { background: rgba(52,211,153,0.2); color: var(--accent-green); }
.icon-cyan { background: rgba(34,211,238,0.2); color: var(--accent-cyan); }
.icon-amber { background: rgba(251,191,36,0.2); color: var(--accent-amber); }
.icon-rose { background: rgba(251,113,133,0.2); color: var(--accent-rose); }
.icon-indigo { background: rgba(99,102,241,0.2); color: var(--accent-1); }

/* ===== Stat Cards ===== */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}
.stat-card {
  text-align: center;
  padding: 32px 20px;
}
.stat-card .stat-number {
  font-family: 'Outfit', sans-serif;
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 8px;
}
.stat-card .stat-label {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* ===== Methodology ===== */
.methodology-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}
.method-card {
  padding: 36px 28px;
  position: relative;
  overflow: hidden;
}
.method-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-hero);
  opacity: 0;
  transition: var(--transition);
}
.method-card:hover::before { opacity: 1; }
.method-card .card-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
}
.method-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 12px;
}
.method-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* ===== Timeline ===== */
.timeline { position: relative; padding: 40px 0; }
.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--accent-1), var(--accent-4));
  transform: translateX(-50%);
}
.timeline-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 48px;
  position: relative;
}
.timeline-item:nth-child(odd) { flex-direction: row; }
.timeline-item:nth-child(even) { flex-direction: row-reverse; }
.timeline-content {
  width: 45%;
  padding: 28px;
}
.timeline-content h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.timeline-content .year {
  font-family: 'Outfit', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-3);
  margin-bottom: 10px;
  display: block;
}
.timeline-content p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}
.timeline-dot {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent-1);
  border: 3px solid var(--bg-primary);
  z-index: 2;
  box-shadow: 0 0 15px rgba(99,102,241,0.4);
}

/* ===== 12 Principles Grid ===== */
.principles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}
.principle-card {
  padding: 28px 24px;
  position: relative;
  cursor: default;
}
.principle-card .principle-number {
  font-family: 'Outfit', sans-serif;
  font-size: 2.5rem;
  font-weight: 900;
  color: rgba(99,102,241,0.15);
  position: absolute;
  top: 12px;
  right: 20px;
}
.principle-card .principle-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin-bottom: 16px;
}
.principle-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 10px;
}
.principle-card p {
  color: var(--text-secondary);
  font-size: 0.88rem;
  line-height: 1.6;
}

/* ===== V8 Section ===== */
.v8-section { background: var(--gradient-section); }
.v8-highlight {
  background: linear-gradient(135deg, rgba(99,102,241,0.08) 0%, rgba(192,132,252,0.06) 100%);
  border: 1px solid rgba(99,102,241,0.15);
  border-radius: var(--radius-xl);
  padding: 48px;
  margin-bottom: 48px;
}
.v8-highlight h3 {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 16px;
}
.v8-highlight p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 700px;
}
.v8-principles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
}
.v8-card {
  padding: 32px;
  border-left: 3px solid var(--accent-1);
}
.v8-card .v8-num {
  font-family: 'Outfit', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent-1);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 10px;
}
.v8-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
}
.v8-card p {
  color: var(--text-secondary);
  font-size: 0.92rem;
}

/* ===== Domains ===== */
.domains-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}
.domain-card {
  padding: 28px;
  text-align: center;
}
.domain-card .domain-icon {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin: 0 auto 18px;
}
.domain-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.domain-card p {
  color: var(--text-secondary);
  font-size: 0.88rem;
}

/* ===== Value Section ===== */
.value-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
}
.value-card {
  padding: 36px 28px;
  border-top: 3px solid transparent;
  background-image: var(--gradient-card);
  background-origin: border-box;
}
.value-card:nth-child(1) { border-color: var(--accent-green); }
.value-card:nth-child(2) { border-color: var(--accent-cyan); }
.value-card:nth-child(3) { border-color: var(--accent-amber); }
.value-card:nth-child(4) { border-color: var(--accent-rose); }
.value-card .value-icon {
  font-size: 2rem;
  margin-bottom: 16px;
}
.value-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
}
.value-card p {
  color: var(--text-secondary);
  font-size: 0.92rem;
}

/* ===== Comparison Table ===== */
.comparison-table-wrapper { overflow-x: auto; margin-top: 40px; }
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  border-radius: var(--radius-md);
  overflow: hidden;
}
.comparison-table th, .comparison-table td {
  padding: 16px 20px;
  text-align: left;
  border-bottom: 1px solid var(--border-glass);
  font-size: 0.9rem;
}
.comparison-table th {
  background: rgba(99,102,241,0.12);
  color: var(--accent-3);
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.comparison-table td { color: var(--text-secondary); }
.comparison-table tr:hover td { background: rgba(255,255,255,0.02); }

/* ===== Footer ===== */
.site-footer {
  padding: 40px 0;
  border-top: 1px solid var(--border-glass);
  text-align: center;
  background: rgba(10, 14, 26, 0.95);
}
.site-footer p {
  color: var(--text-muted);
  font-size: 0.9rem;
}
.site-footer .footer-brand {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  color: var(--accent-3);
}

/* ===== Back to Top ===== */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent-1);
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  box-shadow: 0 4px 20px rgba(99,102,241,0.4);
  z-index: 999;
}
.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top:hover { transform: translateY(-3px); background: var(--accent-2); }

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .what-is .content-grid { grid-template-columns: 1fr; gap: 32px; }
  .timeline::before { left: 20px; }
  .timeline-item, .timeline-item:nth-child(even) { flex-direction: column; padding-left: 50px; }
  .timeline-content { width: 100%; }
  .timeline-dot { left: 20px; top: 0; }
  .v8-highlight { padding: 32px; }
}

@media (max-width: 768px) {
  .section-padding { padding: 60px 0; }
  .container { padding: 0 16px; }

  .hero { min-height: auto; padding: 120px 0 60px; }
  .hero h1 { font-size: 2.2rem; }
  .hero p { font-size: 1rem; }

  .nav-mobile { width: 100%; }
  .nav-mobile a { font-size: 1.5rem; }

  .principles-grid, .methodology-grid, .v8-principles-grid, .domains-grid, .value-grid {
    grid-template-columns: 1fr;
  }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .v8-highlight { padding: 24px; }
  .v8-highlight h3 { font-size: 1.3rem; }

  .comparison-table th, .comparison-table td { padding: 12px 14px; font-size: 0.82rem; }
}

@media (max-width: 480px) {
  .stat-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 1.7rem; }
  .glass-card { padding: 20px; }
  .principle-card { padding: 20px 18px; }
  .v8-card { padding: 22px; }
}
