/* === RESET & BASE === */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "Inter", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: #0b3d2e;
  background: #fff;
  overflow-x: hidden;
}

/* === BRAND HELPERS === */
.bg-bottle { background-color: #0b3d2e; }
.text-bottle { color: #0b3d2e; }
.text-brand { color: #f2c94c; }
.bg-brand { background-color: #f2c94c; }

/* === NAVIGATION === */
header a { transition: color .25s ease; }
header a:hover { color: #f2c94c; }

/* === EFFECTS & UTILITIES === */
.shadow-soft { box-shadow: 0 10px 30px rgba(0,0,0,.08); }
img { max-width: 100%; height: auto; display: block; }

/* === FADE-IN ANIMATION === */
.js-fade { opacity: 0; transform: translateY(30px); transition: opacity .8s ease, transform .8s ease; }
.js-fade.visible { opacity: 1; transform: translateY(0); }

/* === SCROLLBAR === */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-thumb { background: #0b3d2e; border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: #094b38; }

/* === HERO CANVAS TAP-FRIENDLY === */
#aiCanvas { display: block; position: absolute; inset: 0; z-index: 0; }

/* === CONTACT FORM === */
#contactForm input,
#contactForm textarea {
  outline: none;
  font-family: inherit;
  font-size: 1rem;
}
#contactForm button { transition: transform .2s ease; }
#contactForm button:hover { transform: translateY(-1px); }

/* === MOBILE CONTAINER === */
@media (max-width: 768px) {
  .container { padding-left: 1rem; padding-right: 1rem; }
}

/* === HERO BUTTONS === */
.btn-main {
  background: #f2c94c;
  color: #0b3d2e;
  padding: .9rem 1.6rem;
  border-radius: 12px;
  font-weight: 600;
  transition: all .3s ease;
  box-shadow: 0 8px 22px rgba(0,0,0,.25);
}
.btn-main:hover {
  background: #ffe37d;
  transform: translateY(-2px);
}
.btn-ghost {
  border: 2px solid #f2c94c;
  color: #f2c94c;
  padding: .85rem 1.45rem;
  border-radius: 12px;
  font-weight: 600;
  transition: all .3s ease;
}
.btn-ghost:hover {
  background: #f2c94c;
  color: #0b3d2e;
  transform: translateY(-2px);
}

/* === DECORATIVE IMAGE === */
#home img {
  filter: brightness(1.1) contrast(1.05);
}

/* === HERO STYLES === */
#home {
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at 40% 40%, #0b3d2e 0%, #000 100%);
  min-height: 100vh;
}
section { scroll-margin-top: 100px; }
section h2 {
  letter-spacing: -0.02em;
  line-height: 1.3;
}
section p, section li { line-height: 1.7; }

/* === HERO NETWORK EFFECT === */
#hero-network {
  filter: brightness(8) contrast(3.5) saturate(1.4);
  opacity: 0.95;
  mix-blend-mode: screen;
  pointer-events: none;
}
.hero-graph {
  box-shadow: 0 0 40px rgba(242, 201, 76, 0.15);
  border-radius: 1rem;
}

/* === ALTERNATING SECTIONS (text-image layout) === */
#about img,
#technology img,
#pilot img {
  width: 80%;
  border-radius: 1.5rem;
  box-shadow: 0 10px 35px rgba(0,0,0,0.15);
  border: 1px solid rgba(11,61,46,0.3);
  transition: transform .6s ease, box-shadow .6s ease;
}
#about img:hover,
#technology img:hover,
#pilot img:hover {
  transform: scale(1.05);
  box-shadow: 0 20px 45px rgba(0,0,0,0.25);
}

/* === ROADMAP CARDS === */
#roadmap .grid div {
  transition: all .4s ease;
}
#roadmap .grid div:hover {
  transform: translateY(-5px) scale(1.03);
  box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}
#roadmap .bg-gradient-to-br {
  background: linear-gradient(135deg, #0b3d2e, #146a4b);
}

/* === FRAMEWORK LOGOS (optional decorative placeholder) === */
.framework-logos {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
  gap: 3rem;
  opacity: 0.4;
  filter: grayscale(1);
}
.framework-logos img { height: 40px; }

/* === FOUNDER === */
#founder img {
  border-radius: 1.5rem;
  box-shadow: 0 10px 35px rgba(0,0,0,0.15);
}
#founder h3 { color: #0b3d2e; }

/* === FOOTER === */
footer {
  background-color: #0b3d2e;
  color: #fff;
  font-size: 0.9rem;
  padding-top: 2rem;
  padding-bottom: 2rem;
}

/* === FIX: HEADER MOBILE OVERLAP === */
@media (max-width: 768px) {
  .tagline {
    position: relative;
    z-index: 1;
    font-size: 12px;
    line-height: 1.2;
    text-align: center;
    display: block;
    margin-top: 4px;
    pointer-events: none;
  }

  header, nav, .navbar, .menu-toggle {
    position: relative;
    z-index: 9999;
  }

  .tagline { display: none; }
}

/* === HIDE HEADER SLOGAN ON MOBILE === */
@media (max-width: 640px) {
  header p,
  header .tagline,
  header span,
  .header-slogan,
  .header-text {
    display: none !important;
  }
}

/* === HERO BACKGROUND VISIBILITY ON MOBILE === */
#hero,
#home {
  position: relative;
  min-height: 100vh;
  background-color: #0b3d2e;
  overflow: hidden;
}

#hero canvas,
#home canvas,
#networkCanvas {
  width: 100%;
  height: 100vh !important;
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0.8;
  z-index: 1;
}

/* === MOBILE FIXES === */
@media (max-width: 768px) {
  #hero canvas,
  #home canvas,
  .hero-background,
  .hero-network,
  .particles-js,
  #networkCanvas {
    display: block !important;
    opacity: 0.7 !important;
    width: 100% !important;
    height: 100% !important;
    position: absolute !important;
    top: 0;
    left: 0;
    z-index: 1 !important;
  }

  #hero .content,
  #home .content,
  .hero-content {
    position: relative !important;
    z-index: 5 !important;
  }

  #hero, #home {
    overflow: visible !important;
    min-height: 90vh;
    background-color: #0b3d2e;
  }

  /* Ajustes de espaciado en secciones */
  section { padding-top: 4rem; padding-bottom: 4rem; }
  h2 { font-size: 1.8rem; }
  #about img, #technology img, #pilot img { width: 95%; }
}
