:root {
    --bg: #0E0F0F;
  --bg-soft: #181A1A;
  --primary: #1F3D36;  
  --accent: #22c55e;
  --text: #e5e7eb;
  --muted: #9ca3af;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: system-ui, Arial, sans-serif;
}

body {
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

/* CONTAINER */
.container {
  max-width: 1100px;
  margin: auto;
  padding: 0 20px;
}
/* ===== HEADER ===== */
.header {
  background: #0E0F0F;
  backdrop-filter: blur(6px);
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid #1f2933;
}

/* ===== NAV DESKTOP ===== */
.nav {
  height: 70px;
  display: flex;
  align-items: center;
  position: relative;
}

/* logo a la izquierda */
.logo {
  font-weight: 700;
  font-size: 1.1rem;
  color: white;
}

/* ====== CONTENEDOR DE LINKS ====== */
.nav nav {
  flex: 1;                      /* ocupa todo el espacio */
  display: flex;
  justify-content: center;     /* 🔥 centra los links */
  align-items: center;
}

/* links */
nav a {
  color: var(--text);
  text-decoration: none;
  margin: 0 18px;              /* espacio parejo */
  font-size: 0.95rem;
  transition: color .2s;
}

nav a:hover {
  color: white;
  
}

.nav-btn {
  background: linear-gradient(135deg, #18783c, #1a7138);
  padding: 8px 14px;
  border-radius: 6px;
  color: #fbfbfb;
  font-weight: 600;
}

/* ===== BOTÓN HAMBURGUESA ===== */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.7rem;
  color: white;
  cursor: pointer;
}

/* ================================================= */
/* =================== MOBILE ====================== */
/* ================================================= */

@media (max-width: 768px) {

  .nav {
    height: 60px;
  }

  /* mostrar botón */
  .menu-toggle {
    display: block;
  }

  /* menú desplegable */
  .nav nav {
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
    background: rgba(11,15,20,0.95);
    backdrop-filter: blur(8px);

    display: flex;
    flex-direction: column;
    justify-content: center;   /* 🔥 centra vertical */
    align-items: center;       /* 🔥 centra horizontal */

    gap: 18px;
    padding: 22px 0;
    border-bottom: 1px solid #1f2933;

    /* estado oculto */
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: all .3s ease;
  }

  /* estado visible */
  .nav nav.active {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  nav a {
    margin: 0;
    font-size: 1rem;
  }

  .nav-btn {
    margin-top: 10px;
  }
}

/* ================= HERO ================= */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;

  background-image: linear-gradient(
      rgba(0, 0, 0, 0.65),
      rgba(0, 0, 0, 0.65)
    ),
    url("gas.jpg");

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* contenedor interno */
.hero .container {
  width: 100%;
  padding: 0 20px;
}

/* grid */
.hero-grid {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 50px;
  align-items: center;
}

/* ================= TEXTOS ================= */

.hero-text h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.15;
  margin-bottom: 15px;
  
}

.hero-text p {
  color: #cbd5e1;
  max-width: 520px;
  margin-bottom: 35px;
  font-size: 1.05rem;
}

.hero-text{
  margin-bottom: 180px;
}

/* ================= BOX ================= */

.hero-box {
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(6px);
  padding: 30px 28px;
  border-radius: 18px;
  box-shadow: 0 25px 50px rgba(0,0,0,0.45);
}

.hero-box h3 {
  color: rgb(195, 195, 195);
  margin-bottom: 15px;
  font-size: 1.2rem;
}

.hero-box ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.hero-box li {
  margin-bottom: 10px;
  font-size: 0.95rem;
  color: #e5e7eb;
}

/* ================= BUTTON ================= */

.btn {
  background: linear-gradient(135deg, #18783c, #1a7138);
  color: #ffffff;
  padding: 12px 22px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: .25s ease;
  box-shadow: 0 12px 30px rgba(34,197,94,.35);
}

.btn:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 20px 40px rgba(34,197,94,.45);
}

.btn.big {
  padding: 15px 30px;
  font-size: 1.05rem;
}

/* ================= ANIMACIONES ================= */

.fade-up {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp .8s ease forwards;
  color: white;
}

.delay {
  animation-delay: .2s;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ================= RESPONSIVE ================= */

/* tablets */
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 35px;
  }

  .hero-text p {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-box {
    max-width: 420px;
    margin: 0 auto;
  }

  .hero-text {
    margin-bottom: 0;
  }
}

/* ================= MOBILE ================= */
@media (max-width: 600px) {

  .hero {
    min-height: 100vh;
    padding-top: 70px; /* por si hay navbar fija */
  }

  .hero-grid {
    min-height: auto;
    gap: 28px;
  }

  .hero-text h1 {
    font-size: 1.9rem;
    line-height: 1.2;
  }

  .hero-text p {
    font-size: 0.95rem;
    margin-bottom: 25px;
  }

  .hero-text {
    margin-bottom: 0;
  }

  .hero-box {
    padding: 22px 20px;
    border-radius: 14px;
  }

  .hero-box h3 {
    font-size: 1.05rem;
  }

  .hero-box li {
    font-size: 0.9rem;
  }

  .btn.big {
    width: 100%;
    padding: 14px 0;
    font-size: 1rem;
  }
}


/* SERVICES */
.services {
  padding: 100px 0;
}

/* ---------- Header ---------- */
.services-header {
  text-align: center;
  margin-bottom: 50px;
}

.services-header h2 {
  font-size: clamp(2rem, 3vw, 2.6rem);
  margin-bottom: 10px;
  color: white;
}

.services-header p {
  color: #b5b5b5;
  font-size: 1rem;
}

/* ---------- Slider area ---------- */
.services-slider-area {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* ---------- Window ---------- */
.services-window {
  overflow: hidden;
  width: 100%;
}

/* ---------- Track ---------- */
.services-track {
  display: flex;
  gap: 30px;
  transition: transform .5s cubic-bezier(.4,0,.2,1);
}

/* ---------- Card ---------- */
.service-card {
  flex: 0 0 85%;
  padding: 42px 38px;
  background: var(--bg-soft);
  border-radius: 26px;
  border: 1px solid #1f2933;
  color: white;
}

.service-card h4 {
  font-size: 1.4rem;
  margin-bottom: 14px;
}

.service-card p {
  color: #d0d0d0;
  line-height: 1.6;
  font-size: 1.05rem;
}

/* ---------- Flechas ---------- */
.nav-arrow {
  background: var(--bg-soft);
  
  color: white;
  font-size: 2.2rem;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  cursor: pointer;
  transition: .2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
}

.nav-arrow:hover {
  background: var(--primary);
  border-color: var(--primary);
}

/* ---------- Desktop ---------- */
@media (min-width: 768px) {

  .service-card {
    flex: 0 0 calc(50% - 15px);
  }
}

/* ---------- Mobile ---------- */
@media (max-width: 767px) {

  .nav-arrow {
    display: none;
  }

  .services-window {
    overflow-x: auto;
  }

  .services-track {
    scroll-snap-type: x mandatory;
  }

  .service-card {
    scroll-snap-align: center;
  }
}


/* WHY */
.why {
  background: #111111;
  padding: 90px 0;
}

.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.why-list { list-style: none; }
.why-list li {
  background: var(--bg-soft);
  margin-bottom: 12px;
  padding: 14px 18px;
  border-radius: 12px;
  border: 1px solid #1f2933;
}

/* ZONA */
.zone {
  padding: 90px 0;
}

.zone-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
  align-items: center;
}

.map iframe {
  width: 100%;
  height: 300px;
  border: 0;
  border-radius: 16px;
}

/* CTA */
.cta {
  background: #111111;
  padding: 100px 0;
  text-align: center;
  color: white;
}

.cta-box h2 {
  color: white;
  margin-bottom: 10px;
}

.cta-box p {
  color: white;
  margin-bottom: 25px;
}

.cta-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.cta-note {
  font-size: .9rem;
  color: var(--muted);
}

/* FOOTER */
footer {
  background:  #000000;
  text-align: center;
  padding: 18px;
  font-size: .85rem;
  color: var(--muted);
}

/* ANIMACIONES */
.fade-up {
  opacity: 0;
  transform: translateY(20px);
  transition: .6s ease;
}

.fade-up.show {
  opacity: 1;
  transform: translateY(0);
}

.delay { transition-delay: .2s; }
.delay-1 { transition-delay: .1s; }
.delay-2 { transition-delay: .2s; }
.delay-3 { transition-delay: .3s; }
.delay-4 { transition-delay: .4s; }
.delay-5 { transition-delay: .5s; }

/* RESPONSIVE */
@media (max-width: 900px) {
  .hero-grid,
  .why-grid,
  .zone-grid {
    grid-template-columns: 1fr;
  }

  nav a { margin-left: 12px; }
  .hero h1 { font-size: 2rem; }
}
