:root {
  --primary: #059669; /* Emerald 600 */
  --primary-dark: #064e3b; /* Dark Emerald */
  --accent: #f97316; /* Orange 500 */
  --dark: #1e293b; /* Slate 800 */
  --light: #f8fafc;
  --white: #ffffff;
  --text: #334155;
  --text-light: #64748b;
  --font-main: 'Inter', system-ui, -apple-system, sans-serif;
}

* {
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-main);
  color: var(--text);
  line-height: 1.6;
  background-color: var(--white);
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1.5rem 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: 0.8rem 0;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--primary-dark);
  text-decoration: none;
}

.logo span span {
  color: var(--primary);
}

.logo-icon {
  color: var(--primary);
  width: 28px;
  height: 28px;
}

.logo-img {
    height: 40px; /* Ajusta la altura según sea necesario */
    width: auto;
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.navbar:not(.scrolled) .nav-links a:not(.btn-equipo) {
  color: var(--white);
}

.navbar.scrolled .nav-links a:not(.btn-equipo) {
  color: var(--text);
}

.nav-links a:hover {
  color: var(--primary) !important;
}

.btn-equipo {
  background: var(--primary);
  color: var(--white) !important;
  padding: 0.6rem 1.4rem;
  border-radius: 99px;
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.2);
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  /* background: url('recursos/imaxe_central.png') no-repeat center center/cover; */
  display: flex;
  align-items: center;
  padding-top: 80px;
  color: var(--white);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--primary-dark) 0%, #0f172a 100%);
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 850px;
  margin: 0 auto; /* Centramos el contenedor */
  text-align: center; /* Centramos el texto */
}

.hero-logo-container {
    background-color: white;
    border-radius: 50%;
    padding: 2rem;
    margin: 0 auto 2rem;
    width: 200px;
    height: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.hero-logo-img {
    width: 100%;
}

.badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  padding: 0.5rem 1.2rem;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(255,255,255,0.2);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1.1;
  font-weight: 900;
  margin-bottom: 1.5rem;
}

.hero-lead {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  margin-bottom: 3rem;
  opacity: 0.95;
  max-width: 700px;
}

.hero-actions {
  display: flex;
  gap: 1.25rem;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
  padding: 1.1rem 2.2rem;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  transition: all 0.3s ease;
  box-shadow: 0 10px 20px rgba(5, 150, 105, 0.3);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  padding: 1.1rem 2.2rem;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 700;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.3);
  transition: all 0.3s ease;
}

.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 15px 30px rgba(5, 150, 105, 0.4); }
.btn-secondary:hover { background: rgba(255, 255, 255, 0.2); }

/* Stats Bar */
.stats-bar {
  background: var(--dark);
  padding: 3.5rem 0;
  color: var(--white);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2.5rem;
  text-align: center;
}

.stat-num {
  display: block;
  font-size: 2.75rem;
  font-weight: 900;
  color: var(--primary);
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.7;
}

/* Sections */
.section { padding: 8rem 0; }
.bg-light { background: var(--light); }
.bg-green { background: var(--primary-dark); color: var(--white); }

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.section-header.centered {
  text-align: center;
  margin-bottom: 5rem;
}

.section-title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 900;
  color: var(--dark);
  margin-bottom: 1.5rem;
}

.section-title.white { color: var(--white); }

.section-subtitle {
  font-size: 1.25rem;
  color: var(--text-light);
  max-width: 650px;
  margin: 0 auto;
}

.image-box { position: relative; }
.rounded-img {
  width: 100%;
  border-radius: 24px;
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.15);
}

.floating-badge {
  position: absolute;
  bottom: 25px;
  right: -25px;
  background: var(--accent);
  color: var(--white);
  padding: 1.2rem 2.2rem;
  border-radius: 16px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  box-shadow: 0 15px 30px rgba(249, 115, 22, 0.4);
}

/* Info List */
.info-list {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  margin-top: 3rem;
}

.info-item {
  display: flex;
  gap: 1.75rem;
}

.info-icon {
  background: var(--white);
  color: var(--primary);
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.06);
  flex-shrink: 0;
}

.info-item h4 { margin: 0 0 0.5rem 0; font-size: 1.25rem; font-weight: 800; }
.info-item p { margin: 0; color: var(--text-light); font-size: 1rem; }

/* Dark Section */
.dark-section {
  background: #0f172a;
  color: var(--white);
}

.dark-section .section-title { color: var(--white); }
.dark-section .section-subtitle { color: rgba(255,255,255,0.6); }

.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.feature-card {
  background: rgba(255, 255, 255, 0.03);
  padding: 2.5rem;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.3s ease;
}

.feature-card:hover {
    background: rgba(255, 255, 255, 0.06);
    transform: translateY(-5px);
}

.feature-icon {
  background: var(--primary);
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  margin-bottom: 2rem;
  color: var(--white);
}

.feature-card h3 {
    margin: 0 0 1rem 0;
    font-size: 1.35rem;
    font-weight: 800;
}

.viability-box {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  margin-top: 5rem;
  padding: 3.5rem;
  border-radius: 28px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.video-container {
    margin-top: 3rem;
    margin-bottom: 3rem;
    position: relative;
    width: 100%;
    /* 16:9 Aspect Ratio (divide 9 by 16 = 0.5625) */
    padding-bottom: 56.25%; 
    height: 0;
}

.tech-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 20px;
}

.viability-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.viability-header i { width: 32px; height: 32px; }
.viability-header h3 { margin: 0; font-size: 1.75rem; font-weight: 800; }
.viability-box p { font-size: 1.15rem; margin: 0; opacity: 0.95; }

/* ODS Grid */
.ods-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.5rem;
  margin-top: 4rem;
}

.ods-card {
  background: rgba(255, 255, 255, 0.08);
  padding: 3rem;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.ods-card:hover { transform: scale(1.02); }

.ods-number {
  position: absolute;
  top: -15px;
  right: -15px;
  font-size: 6rem;
  font-weight: 900;
  opacity: 0.15;
}

.ods-card h4 {
    margin: 0 0 1rem 0;
    font-size: 1.5rem;
    font-weight: 800;
}

/* Team Section */
.team-section .team-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 3rem;
}

.member-tag {
  background: var(--light);
  padding: 0.6rem 1.25rem;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  border: 1px solid #e2e8f0;
  color: var(--text);
  transition: all 0.2s ease;
}

.member-tag:hover {
    background: var(--white);
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
}

.sherpa {
  margin-top: 1.5rem;
  color: var(--primary);
  font-size: 1.25rem;
}

/* Footer */
.footer {
  background: #020617;
  color: var(--white);
  padding: 5rem 0;
  text-align: center;
}

.footer-logo {
  font-weight: 900;
  font-size: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.footer p { opacity: 0.5; font-size: 0.95rem; }

@media (max-width: 1024px) {
    .grid-2 { gap: 3rem; }
}

@media (max-width: 768px) {
  .hero h1 { font-size: 2.75rem; }
  .grid-2 { grid-template-columns: 1fr; }
  .navbar .nav-links { display: none; }
  .hero-actions { flex-direction: column; }
  .section { padding: 5rem 0; }
  .floating-badge { right: 0; bottom: -20px; }
  .viability-box { padding: 2rem; }
}
