/* VARIABLES */
:root {
  --primary: #4CAF50;
  --text: #e8e8e8;
  --bg: #111;
  --card-bg: #1b1b1b;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}

/* HEADER FLOTANTE */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: #000;
  border-bottom: 1px solid #222;
  z-index: 999;
  padding: 1rem 0;
}

.header-spacer {
  height: 120px; /* evita que el header tape el contenido */
}

/* HEADER STRUCTURE */
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

/* LOGO */
.logo img {
  height: 100px;
  width: 100px;
  object-fit: contain;
}

/* NAV */
.site-nav ul {
  list-style: none;
  display: flex;
  gap: 1.2rem;
}

.site-nav a {
  color: var(--text);
  text-decoration: none;
  transition: .3s;
}

.site-nav a:hover {
  color: var(--primary);
}

/* HAMBURGUESA */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 2.2rem;
  cursor: pointer;
}

@media (max-width: 768px) {

  .menu-toggle {
    display: block;
  }

  .site-nav {
    display: none;
    width: 100%;
    background: #000;
    padding: 1rem 0;
    margin-top: 1rem;
    border-top: 1px solid #222;
  }

  .site-nav ul {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .site-nav.active {
    display: block;
  }

  /* Ajuste del espaciador cuando el header reduce tamaño móvil */
  .header-spacer {
    height: 90px;
  }
}

/* HERO */
.hero {
  text-align: center;
  padding: 4rem 0;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.hero p {
  max-width: 650px;
  margin: 0 auto 2rem;
}

.btn {
  display: inline-block;
  padding: .8rem 1.6rem;
  background: var(--primary);
  color: white;
  border-radius: 5px;
  text-decoration: none;
}

/* SERVICIOS */
.services {
  padding: 3rem 0;
}

.services h2 {
  text-align: center;
  margin-bottom: 1.5rem;
  color: var(--primary);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.service-card {
  background: var(--card-bg);
  padding: 1.5rem;
  border-radius: 6px;
  text-align: center;
}

/* ABOUT */
.about {
  padding: 3rem 0;
}

.about h2 {
  text-align: center;
  color: var(--primary);
  margin-bottom: 1rem;
}

/* STATS */
.stats {
  padding: 3rem 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
  text-align: center;
}

.stat-item strong {
  font-size: 2.2rem;
  color: var(--primary);
  display: block;
}

/* FOOTER */
.site-footer {
  text-align: center;
  padding: 2rem 0;
  color: #777;
}
