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

:root {
  /* Modified Blue - Less Neon, More Solid "Tebex" Blue */
  --primary: #0ea5e9;
  /* Sky Blue 500 equivalent - cleaner */
  --primary-dark: #0284c7;
  /* Sky Blue 600 */
  --secondary: #38bdf8;
  /* Sky Blue 400 */
  --accent: #6366f1;
  /* Indigo - softer accent */
  --bg: #0f172a;
  /* Slate 900 - Dark Blue-Grey instead of black */
  --bg-light: #1e293b;
  /* Slate 800 */
  --bg-card: #1e293b;
  /* Solid card background */
  --text: #f8fafc;
  --text-muted: #94a3b8;
  --border: rgba(148, 163, 184, 0.1);
  /* Subtle border */
  --border-hover: rgba(14, 165, 233, 0.5);
  --shadow: rgba(15, 23, 42, 0.5);
  --glow: rgba(14, 165, 233, 0.2);
  /* Reduced glow intensity */
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

/* Background Effects */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* Using the requested background image */
  background: url('img/fondo.png') center center / cover no-repeat;
  /* Dark overlay + Blur for readability (Standard Store/Tebex style) */
  filter: brightness(0.25) blur(2px);
  z-index: -2;
  pointer-events: none;
}

body::after {
  /* Subtle vignette instead of grid */
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, transparent 0%, #0f172a 90%);
  z-index: -1;
  pointer-events: none;
}

/* Hero Section - Premium Split Layout */
.hero {
  min-height: 90vh;
  display: flex;
  align-items: flex-start;
  /* Align content to top */
  justify-content: center;
  padding: 8rem 2rem 4rem;
  /* Fixed top spacing */
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.hero-container {
  max-width: 1300px;
  width: 100%;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 4rem;
  align-items: center;
  position: relative;
}

/* Left Content */
.hero-content-left {
  position: relative;
  z-index: 2;
  animation: slideInLeft 0.8s ease-out;
}

.badge-new {
  display: inline-flex;
  margin-bottom: 2rem;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: rgba(0, 217, 255, 0.1);
  border: 1px solid rgba(0, 217, 255, 0.3);
  color: var(--primary);
  padding: 0.5rem 1.2rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  position: relative;
  overflow: hidden;
}

.badge-new::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  animation: shimmer 3s infinite;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  /* Smaller base text for "Vive el Survival" */
  line-height: 1.1;
  font-weight: 800;
  margin-bottom: 1.5rem;
  color: white;
}

.text-gradient {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  text-shadow: 0 10px 30px rgba(0, 217, 255, 0.3);
  font-size: 1.3em;
  /* Make "Definitivo" relatively larger to preserve its impact */
}

.hero-description {
  font-size: 1.25rem;
  color: var(--text-muted);
  max-width: 600px;
  margin-bottom: 3rem;
  line-height: 1.7;
}

/* Buttons */
.hero-buttons {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 4rem;
  flex-wrap: wrap;
}

.btn-glow {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border: none;
  color: white;
  padding: 1rem 2.5rem;
  border-radius: 12px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  box-shadow: 0 10px 30px rgba(0, 217, 255, 0.3);
  text-decoration: none;
}

.btn-glow span {
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-glow .ip-text {
  font-size: 0.85rem;
  font-weight: 500;
  opacity: 0.8;
  margin-left: 1.8rem;
}

.btn-glow:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 217, 255, 0.5);
}

.btn-glass {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: white;
  padding: 0 2.5rem;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 600;
  font-size: 1.1rem;
  text-decoration: none;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.btn-glass:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: white;
  transform: translateY(-3px);
}

/* Hero Stats */
.hero-stats {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 1.5rem 2rem;
  background: rgba(15, 22, 35, 0.6);
  border: 1px solid var(--border);
  border-radius: 16px;
  backdrop-filter: blur(10px);
  display: inline-flex;
}

.hero-stat-item {
  display: flex;
  flex-direction: column;
}

.stat-num {
  font-size: 1.5rem;
  font-weight: 800;
  color: white;
}

.stat-lbl {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.hero-stat-sep {
  width: 1px;
  height: 40px;
  background: var(--border);
}

/* Right Visual */
.hero-content-right {
  position: relative;
  display: flex;
  justify-content: center;
  perspective: 1000px;
}

/* Hero Visual Clean */
.hero-visual-wrapper {
  position: relative;
  width: 100%;
  max-width: 350px;
  /* Reduced specific logo size from 450px */
  /* Removed animation and 3D transform for simplicity */
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-main-image {
  width: 100%;
  /* Removed heavy drop-shadow */
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.2));
}

.visual-glow {
  /* Removed the large radial glow behind logo */
  display: none;
}

/* Float Cards - Simplified */
.float-card {
  position: absolute;
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 0.8rem 1.2rem;
  border-radius: 8px;
  /* Less rounded */
  color: white;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  /* Softer shadow */
  backdrop-filter: blur(5px);
  z-index: 2;
}

.float-card i {
  color: var(--primary);
}

.card-1 {
  top: 15%;
  left: -5%;
  /* Removed float animation */
}

.card-2 {
  bottom: 15%;
  right: -5%;
  /* Removed float animation */
}

/* Cards - Premium Clean Style */
/* Cards - Premium Clean Style */
.card {
  background: rgba(15, 23, 42, 0.95);
  /* Nearly solid dark blue-grey */
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  /* Ensure card fills grid cell height */
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.card-image {
  height: 350px;
  /* Increased from 220px to scale the card up significantly */
  width: 100%;
  background-size: cover;
  background-position: center;
  position: relative;
}

/* Card Content Area */
.card-content {
  padding: 2.5rem 2.5rem 0.8rem 2.5rem;
  /* Decreased bottom padding from 2.5rem to 1.5rem */
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

/* ... (previous styles) ... */

/* Container */
.container {
  max-width: 1400px;
  /* Increased from 1200px for wider layout */
  margin: 0 auto;
  padding: 0 2rem;
}

.card-title {
  font-size: 1.75rem;
  /* Slightly larger title */
  font-weight: 700;
  color: white;
  margin-bottom: 1.25rem;
  /* Increased margin */
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  line-height: 1.3;
}

.card-title i {
  color: var(--primary);
  margin-top: 0.25rem;
  flex-shrink: 0;
}

.card-text {
  color: var(--text-muted);
  line-height: 1.8;
  /* Increased line-height for readability */
  margin-bottom: 2rem;
  /* Increased margin to separate from tags */
  font-size: 1rem;
}

/* Tags in Cards */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: auto;
  /* Push to bottom */
}

.tag {
  background: rgba(14, 165, 233, 0.1);
  color: var(--primary);
  padding: 0.35rem 0.8rem;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  border: 1px solid rgba(14, 165, 233, 0.2);
  transition: all 0.2s;
}

.tag:hover {
  background: rgba(14, 165, 233, 0.2);
  border-color: var(--primary);
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-20px);
  }

  ;
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes shimmer {
  0% {
    left: -100%;
  }

  100% {
    left: 200%;
  }
}

@media (max-width: 968px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-content-left {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-description {
    margin-left: auto;
    margin-right: auto;
  }

  .float-card {
    display: none;
  }

  .hero-main-image {
    max-width: 300px;
    margin-top: 2rem;
  }

  .btn-glow {
    align-items: center;
  }

  .btn-glow .ip-text {
    margin-left: 0;
  }
}

/* Buttons */
.buttons {
  display: flex;
  gap: 1.25rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 3.5rem;
}

.btn {
  padding: 1rem 2.5rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  box-shadow: 0 4px 15px var(--glow);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px var(--glow);
}

.btn-outline {
  background: rgba(0, 217, 255, 0.1);
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-outline:hover {
  background: rgba(0, 217, 255, 0.2);
  transform: translateY(-3px);
}

/* Stats */
.stats {
  display: flex;
  gap: 4rem;
  justify-content: center;
  flex-wrap: wrap;
}

.stat {
  text-align: center;
}

.stat-value {
  font-size: 2.8rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: block;
}

.stat-label {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-top: 0.5rem;
}

/* Container */
.container {
  max-width: 1400px;
  /* Increased from 1200px */
  margin: 0 auto;
  padding: 0 2rem;
}

/* Navigation */
.nav {
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1rem 1.5rem;
  margin: -4rem auto 4rem;
  position: sticky;
  top: 1.5rem;
  z-index: 100;
  box-shadow: 0 8px 32px var(--shadow);
}

.nav-list {
  list-style: none;
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  padding: 0.8rem 1.5rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.nav-link:hover,
.nav-link.active {
  background: rgba(0, 217, 255, 0.1);
  color: var(--primary);
}

/* Sections */
.section {
  padding: 5rem 0;
}

.section-title {
  text-align: center;
  font-size: clamp(2.5rem, 6vw, 3.5rem);
  font-weight: 800;
  margin-bottom: 3.5rem;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

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

/* 3-Column Grid for Mechanics */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

@media (max-width: 992px) {
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

/* Cards */
/* Cards duplicate removed - using definition at line 325 */

.card:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
  box-shadow: 0 10px 30px rgba(0, 217, 255, 0.1);
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(800px circle at var(--mouse-x, 0) var(--mouse-y, 0), rgba(255, 255, 255, 0.06), transparent 40%);
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
}

.card:hover::before {
  opacity: 1;
}

.card-image {
  height: 200px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.card-image::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(to top, rgba(15, 22, 35, 0.9), transparent);
}

.card-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.card-text {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.5rem 0;
}

.tag {
  background: rgba(0, 217, 255, 0.15);
  color: var(--primary);
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  border: 1px solid var(--border);
}

/* Staff Member Card */
.staff-member {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2.5rem;
  text-align: center;
  transition: all 0.3s ease;
}

.staff-member:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
  box-shadow: 0 15px 40px rgba(0, 217, 255, 0.2);
}

.staff-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  margin: 0 auto 1.5rem;
  border: 3px solid var(--primary);
  box-shadow: 0 0 20px var(--glow);
}

.staff-name {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1rem;
}

.staff-role {
  display: inline-block;
  padding: 0.6rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.role-owner {
  background: linear-gradient(135deg, #FF0080, #FF8C00);
  color: white;
}

.role-dev {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
}

.role-mod {
  background: linear-gradient(135deg, #10B981, #059669);
  color: white;
}

.role-helper {
  background: linear-gradient(135deg, #F59E0B, #D97706);
  color: white;
}

/* Footer */
.footer {
  background: var(--bg-light);
  border-top: 1px solid var(--border);
  padding: 4rem 2rem;
  text-align: center;
  margin-top: 6rem;
}

.footer-links {
  display: flex;
  gap: 2.5rem;
  justify-content: center;
  margin: 2.5rem 0;
}

.footer-link {
  color: var(--text-muted);
  font-size: 2rem;
  transition: all 0.3s ease;
}

.footer-link:hover {
  color: var(--primary);
  transform: translateY(-3px);
}

.copyright {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-top: 2rem;
  line-height: 1.8;
}

/* Toast */
#toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--bg-card);
  border: 2px solid var(--primary);
  padding: 1.25rem 2rem;
  border-radius: 12px;
  box-shadow: 0 10px 30px var(--glow);
  opacity: 0;
  transform: translateX(400px);
  transition: all 0.4s ease;
  z-index: 1000;
  color: var(--text);
  font-weight: 600;
}

#toast.show {
  opacity: 1;
  transform: translateX(0);
}

/* Responsive */
@media (max-width: 768px) {
  .hero {
    min-height: 85vh;
  }

  .logo {
    width: 100px;
    height: 100px;
  }

  .buttons {
    flex-direction: column;
    width: 100%;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

  .stats {
    gap: 2.5rem;
  }

  .nav-list {
    flex-direction: column;
    gap: 0.5rem;
  }

  .nav-link {
    width: 100%;
    justify-content: center;
  }

  .grid {
    grid-template-columns: 1fr;
  }
}