/* ─────────────────────────────────────────
   Green Express LLC — main.css v2.0
   Responsive: Mobile / Tablet / Desktop
   ───────────────────────────────────────── */

:root {
  --dark:   #0a0f1e;
  --navy:   #0d1630;
  --navy2:  #111d3c;
  --green:  #4ade00;
  --green2: #39c200;
  --white:  #f0f4ff;
  --muted:  #8ca0c8;
  --border: rgba(74,222,0,0.18);
  --card-bg:rgba(255,255,255,0.04);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--dark);
  color: var(--white);
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
}

h1,h2,h3,h4 { font-family: 'Syne', sans-serif; line-height: 1.2; font-style: normal; }
.accent { color: var(--green); }

/* ══════════════════════════════
   NAV
══════════════════════════════ */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.9rem 5%;
  background: rgba(10,15,30,0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav-logo {
  display: flex; align-items: center; gap: 0.5rem;
  font-family: 'Syne', sans-serif; font-weight: 800;
  font-size: 1rem; color: var(--white); text-decoration: none;
}
.nav-logo img { height: 36px; width: auto; display: block; }

.nav-links { display: flex; gap: 1.8rem; list-style: none; }
.nav-links a {
  color: var(--muted); text-decoration: none;
  font-size: 0.82rem; font-weight: 500;
  letter-spacing: 0.06em; text-transform: uppercase;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--green); }
.nav-cta {
  background: var(--green) !important; color: var(--dark) !important;
  padding: 0.4rem 1rem; border-radius: 4px; font-weight: 700 !important;
}
.nav-cta:hover { background: var(--green2) !important; }

/* Hamburger */
.nav-hamburger {
  display: none; flex-direction: column; justify-content: center;
  gap: 5px; background: none; border: none; cursor: pointer; padding: 6px;
}
.nav-hamburger span {
  display: block; width: 24px; height: 2px;
  background: var(--white); border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav dropdown */
.nav-links.open {
  display: flex !important;
  flex-direction: column;
  position: fixed;
  top: 58px; left: 0; right: 0;
  background: rgba(10,15,30,0.98);
  padding: 1.5rem 5%;
  gap: 1.4rem;
  border-bottom: 1px solid var(--border);
  z-index: 99;
}

/* ══════════════════════════════
   HERO
══════════════════════════════ */
#hero {
  min-height: 100vh;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  padding: 8rem 5% 5rem;
  text-align: center;
  position: relative; overflow: hidden;
}
#hero::after {
  content: ''; position: absolute; top: -120px; right: -200px;
  width: 600px; height: 600px;
  background: radial-gradient(ellipse, rgba(74,222,0,0.1) 0%, transparent 70%);
  pointer-events: none;
}

.hero-tag {
  display: inline-flex; align-items: center; gap: 0.5rem;
  border: 1px solid var(--border); border-radius: 100px;
  padding: 0.3rem 0.9rem; font-size: 0.75rem;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--green); margin-bottom: 1.6rem; width: fit-content;
}
.hero-tag::before {
  content: ''; width: 7px; height: 7px;
  border-radius: 50%; background: var(--green);
  animation: pulse 2s infinite; flex-shrink: 0;
}
@keyframes pulse {
  0%,100% { opacity:1; transform:scale(1); }
  50%      { opacity:.4; transform:scale(.7); }
}
.hero-h1 {
  font-size: clamp(2rem, 5.5vw, 5rem);
  font-weight: 800; max-width: 100%;
  white-space: nowrap;
  margin-bottom: 1.2rem; letter-spacing: -0.02em; line-height: 1.18;
}
.hero-sub {
  font-size: clamp(0.95rem, 1.5vw, 1.15rem);
  color: var(--muted); max-width: 520px;
  margin-bottom: 2.4rem; font-weight: 300;
}
.hero-btns { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; }

.btn-primary {
  background: var(--green); color: var(--dark);
  font-family: 'Syne', sans-serif; font-weight: 700; font-size: 0.9rem;
  padding: 0.8rem 1.8rem; border-radius: 5px; text-decoration: none;
  letter-spacing: 0.03em; transition: background 0.2s, transform 0.2s;
  display: inline-block; white-space: nowrap;
}
.btn-primary:hover { background: var(--green2); transform: translateY(-2px); }

.btn-ghost {
  border: 1px solid var(--border); color: var(--white);
  font-family: 'Syne', sans-serif; font-weight: 600; font-size: 0.9rem;
  padding: 0.8rem 1.8rem; border-radius: 5px; text-decoration: none;
  letter-spacing: 0.03em; transition: border-color 0.2s, color 0.2s, transform 0.2s;
  display: inline-block; white-space: nowrap;
}
.btn-ghost:hover { border-color: var(--green); color: var(--green); transform: translateY(-2px); }

.hero-scroll {
  position: absolute; bottom: 2rem; left: 5%;
  display: flex; align-items: center; gap: 0.7rem;
  font-size: 0.74rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--muted);
}
.hero-scroll-line { width: 40px; height: 1px; background: var(--muted); position: relative; overflow: hidden; }
.hero-scroll-line::after {
  content: ''; position: absolute; left: -40px; top: 0;
  width: 40px; height: 1px; background: var(--green);
  animation: slide-line 1.8s ease-in-out infinite;
}
@keyframes slide-line { 0%{left:-40px} 100%{left:40px} }

/* ══════════════════════════════
   SECTIONS BASE
══════════════════════════════ */
section { position: relative; z-index: 1; }
.section-wrap { max-width: 1160px; margin: 0 auto; padding: 5rem 5%; }

.section-label {
  font-size: 0.74rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--green); margin-bottom: 0.7rem;
  display: flex; align-items: center; gap: 0.6rem;
}
.section-label::before {
  content: ''; display: inline-block; width: 3px; height: 13px;
  background: var(--green); border-radius: 2px; flex-shrink: 0;
}
.section-title {
  font-size: clamp(1.6rem, 3vw, 2.6rem); font-weight: 800;
  letter-spacing: -0.01em; line-height: 1.2; margin-bottom: 1rem;
}
.section-desc {
  color: var(--muted); max-width: 520px; font-weight: 300;
  font-size: 0.97rem; margin-bottom: 3rem; line-height: 1.7;
}

/* ══════════════════════════════
   QUIÉNES SOMOS
══════════════════════════════ */
#quienes {
  background: var(--navy);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.quienes-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 3.5rem; align-items: start;
}
.quienes-cards { display: flex; flex-direction: column; gap: 1.2rem; }
.quienes-card {
  background: var(--card-bg); border: 1px solid var(--border);
  border-radius: 10px; padding: 1.6rem;
}
.quienes-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 0.6rem; color: var(--green); }
.quienes-card p  { color: var(--muted); font-size: 0.92rem; line-height: 1.7; }

/* ══════════════════════════════
   SERVICIOS
══════════════════════════════ */
#servicios { background: var(--dark); }
.servicios-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.4rem; }
.servicio-card {
  background: var(--card-bg); border: 1px solid var(--border);
  border-radius: 10px; padding: 1.8rem 1.6rem;
  transition: border-color 0.25s, transform 0.25s;
  position: relative; overflow: hidden;
}
.servicio-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--green); transform: scaleX(0); transform-origin: left; transition: transform 0.3s;
}
.servicio-card:hover::before { transform: scaleX(1); }
.servicio-card:hover { border-color: rgba(74,222,0,0.4); transform: translateY(-4px); }
.servicio-icon {
  width: 42px; height: 42px; border-radius: 8px;
  background: rgba(74,222,0,0.1); display: flex; align-items: center;
  justify-content: center; margin-bottom: 1rem; font-size: 1.3rem;
}
.servicio-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 0.6rem; }
.servicio-card p  { color: var(--muted); font-size: 0.88rem; line-height: 1.65; }

/* ══════════════════════════════
   LÍNEAS
══════════════════════════════ */
#lineas { background: var(--navy); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.lineas-tabs { display: flex; gap: 0.5rem; margin-bottom: 2rem; flex-wrap: wrap; }
.tab-btn {
  background: transparent; border: 1px solid var(--border); color: var(--muted);
  font-family: 'Syne', sans-serif; font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  padding: 0.45rem 1rem; border-radius: 4px; cursor: pointer; transition: all 0.2s;
}
.tab-btn.active, .tab-btn:hover { background: var(--green); color: var(--dark); border-color: var(--green); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }
.marcas-grid { display: flex; flex-wrap: wrap; gap: 0.8rem; }
.marca-chip {
  background: var(--card-bg); border: 1px solid var(--border);
  border-radius: 6px; padding: 0.65rem 1.2rem;
  font-family: 'Syne', sans-serif; font-weight: 700;
  font-size: 0.82rem; letter-spacing: 0.06em; color: var(--white);
  transition: border-color 0.2s, color 0.2s;
}
.marca-chip:hover { border-color: var(--green); color: var(--green); }

/* ══════════════════════════════
   COBERTURA
══════════════════════════════ */
#cobertura { background: var(--dark); }
.cobertura-inner {
  background: var(--card-bg); border: 1px solid var(--border); border-radius: 12px;
  padding: 3rem; display: grid; grid-template-columns: 1fr 1fr;
  gap: 3rem; align-items: center;
}
.cobertura-stat {
  font-family: 'Syne', sans-serif; font-size: clamp(2.5rem,5vw,3.5rem);
  font-weight: 800; color: var(--green); line-height: 1; margin-bottom: 0.3rem;
}
.cobertura-stat-label { color: var(--muted); font-size: 0.88rem; margin-bottom: 1.5rem; }
.cobertura-map {
  position: relative; height: 300px;
  background: rgba(74,222,0,0.03); border: 1px solid var(--border);
  border-radius: 10px; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.map-dot {
  position: absolute; width: 10px; height: 10px; border-radius: 50%;
  background: var(--green); box-shadow: 0 0 12px var(--green);
}
.map-dot::after {
  content: ''; position: absolute; inset: -4px; border-radius: 50%;
  border: 1px solid var(--green); animation: ring 1.8s ease-out infinite; opacity: 0.5;
}
@keyframes ring { 0%{transform:scale(1);opacity:.5} 100%{transform:scale(2.5);opacity:0} }

/* ══════════════════════════════
   CONTACTO
══════════════════════════════ */
#contacto { background: var(--navy2); border-top: 1px solid var(--border); }
.contacto-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
.contact-items { display: flex; flex-direction: column; gap: 1.3rem; margin-top: 0.5rem; }
.contact-item  { display: flex; align-items: flex-start; gap: 0.9rem; }
.contact-icon  {
  width: 38px; height: 38px; flex-shrink: 0; border-radius: 8px;
  background: rgba(74,222,0,0.1); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center; font-size: 1rem;
}
.contact-item-text span { display: block; font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.15rem; }
.contact-item-text a, .contact-item-text p { color: var(--white); text-decoration: none; font-size: 0.95rem; word-break: break-all; }
.contact-item-text a:hover { color: var(--green); }

.contact-form { display: flex; flex-direction: column; gap: 0.9rem; }
.form-group { display: flex; gap: 0.9rem; }
.form-group input { flex: 1; min-width: 0; }
.contact-form input,
.contact-form textarea {
  width: 100%; background: rgba(255,255,255,0.05);
  border: 1px solid var(--border); border-radius: 6px;
  padding: 0.8rem 0.95rem; color: var(--white);
  font-family: 'DM Sans', sans-serif; font-size: 0.88rem; outline: none;
  transition: border-color 0.2s; -webkit-appearance: none;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: var(--muted); }
.contact-form input:focus,
.contact-form textarea:focus { border-color: var(--green); }
.contact-form textarea { resize: vertical; min-height: 105px; }
.contact-form button {
  background: var(--green); color: var(--dark);
  font-family: 'Syne', sans-serif; font-weight: 700; font-size: 0.88rem;
  padding: 0.85rem 1.8rem; border: none; border-radius: 5px; cursor: pointer;
  letter-spacing: 0.04em; transition: background 0.2s, transform 0.2s;
  align-self: flex-start;
}
.contact-form button:hover { background: var(--green2); transform: translateY(-2px); }

/* ══════════════════════════════
   FOOTER
══════════════════════════════ */
footer {
  background: var(--dark); border-top: 1px solid var(--border);
  padding: 1.8rem 5%;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 1rem;
}
.footer-logo { display: flex; align-items: center; gap: 0.6rem; font-family: 'Syne', sans-serif; font-weight: 700; font-size: 0.95rem; color: var(--white); }
.footer-logo img { height: 28px; width: auto; }
footer p { color: var(--muted); font-size: 0.8rem; }

/* ══════════════════════════════
   SCROLL REVEAL
══════════════════════════════ */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.65s ease, transform 0.65s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ══════════════════════════════
   RESPONSIVE — TABLET (≤1024px)
══════════════════════════════ */

/* ══════════════════════════════════════════
   TABLET (≤1024px)
══════════════════════════════════════════ */
@media (max-width: 1024px) {
  .servicios-grid  { grid-template-columns: repeat(2, 1fr); }
  .quienes-grid    { gap: 2.5rem; }
  .cobertura-inner { padding: 2rem; gap: 2rem; }
  .contacto-inner  { gap: 2.5rem; }
}

/* ══════════════════════════════════════════
   MOBILE (≤768px) — centrado y simétrico
══════════════════════════════════════════ */
@media (max-width: 768px) {

  /* Nav */
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }

  /* Hero */
  #hero {
    padding: 7rem 6% 4rem;
    align-items: center;
    text-align: center;
    min-height: 100svh;
  }
  .hero-tag  { margin: 0 auto 1.6rem; }
  .hero-h1   { font-size: clamp(1.8rem, 8vw, 2.6rem); text-align: center; white-space: normal; }
  .hero-sub  { text-align: center; margin: 0 auto 2.4rem; font-size: 0.95rem; }
  .hero-btns { justify-content: center; flex-wrap: wrap; gap: 0.8rem; }
  .btn-primary, .btn-ghost {
    flex: 1; min-width: 130px; max-width: 200px;
    text-align: center; padding: 0.85rem 1rem;
  }
  .hero-scroll { display: none; }

  /* Section base */
  .section-wrap  { padding: 3.5rem 6%; }
  .section-label { justify-content: center; text-align: center; }
  .section-label::before { display: none; }
  .section-title { text-align: center; font-size: clamp(1.3rem, 5.5vw, 1.7rem); }
  .section-desc  { text-align: center; margin-left: auto; margin-right: auto; }

  /* Quiénes */
  .quienes-grid { grid-template-columns: 1fr; gap: 2rem; text-align: center; }
  .quienes-grid > div:first-child { display: flex; flex-direction: column; align-items: center; }
  .quienes-card { text-align: left; }

  /* Servicios */
  .servicios-grid { grid-template-columns: 1fr; gap: 1.2rem; }
  .servicio-card  { text-align: center; }
  .servicio-icon  { margin-left: auto; margin-right: auto; }

  /* Líneas */
  .lineas-tabs {
    flex-wrap: nowrap; overflow-x: auto;
    padding-bottom: 4px; -webkit-overflow-scrolling: touch;
  }
  .lineas-tabs::-webkit-scrollbar { height: 3px; }
  .lineas-tabs::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }
  .tab-btn     { white-space: nowrap; }
  .marcas-grid { justify-content: center; }

  /* Cobertura */
  .cobertura-inner {
    grid-template-columns: 1fr; gap: 1.8rem;
    padding: 2rem; text-align: center;
  }
  .cobertura-stat, .cobertura-stat-label { text-align: center; }
  .cobertura-inner > div > p { text-align: center; }
  .cobertura-map { height: 220px; }

  /* Contacto */
  .contacto-inner { grid-template-columns: 1fr; gap: 2rem; }
  .contacto-inner > div:first-child { text-align: center; }
  .contacto-inner > div:first-child .section-desc { text-align: center; margin: 0 auto 1.5rem; }
  .contact-items { align-items: flex-start; }
  .form-group    { flex-direction: column; gap: 0.9rem; }
  .contact-form button { width: 100%; text-align: center; align-self: stretch; }

  /* Footer */
  footer { flex-direction: column; align-items: center; text-align: center; gap: 0.6rem; }
  .footer-logo { justify-content: center; }
}

/* ══════════════════════════════════════════
   SMALL MOBILE (≤420px)
══════════════════════════════════════════ */
@media (max-width: 420px) {
  #hero          { padding: 6.5rem 5% 3.5rem; }
  .hero-h1       { font-size: clamp(1.8rem, 11vw, 2.4rem); }
  .section-title { font-size: clamp(1.2rem, 5vw, 1.5rem); }
  .cobertura-stat { font-size: 2.8rem; }
  .cobertura-map  { height: 190px; }
  .marca-chip    { font-size: 0.74rem; padding: 0.5rem 0.85rem; }
  .hero-btns     { flex-direction: column; align-items: center; }
  .btn-primary, .btn-ghost { width: 100%; max-width: 260px; }
}
