/* ======================================================
   FONDO ECOLÓGICO CORPORATIVO - BIOCYCLE SOLUTIONS
   ====================================================== */
body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  overflow: hidden;
  font-family: "Poppins", sans-serif;
  color: #ffffff;

  /* GRADIENTE MÁS SUAVE */
  background: linear-gradient(100deg,
      #0a2f4e 0%,     
      #38b86a 40%,    
      #1e512c 100%     
  );

  /* TEXTURA PERO CON MENOS FUERZA */
  background-image:
      linear-gradient(100deg, rgba(7,38,62,0.3) 0%, rgba(42,166,90,0.3) 40%, rgba(35,91,52,0.3) 100%),
      url("https://www.transparenttextures.com/patterns/leaf.png");

  background-repeat: no-repeat;
  background-size: cover;
  background-blend-mode: soft-light; /* CAMBIADO */
}


/* ======================================================
   ESTRUCTURA PRINCIPAL
   ====================================================== */
.container {
  display: grid;
  grid-template-columns: 45% 55%;
    height: 100vh;
    width: 100%;
}

/* ======================================================
   SECCIÓN DE TEXTO
   ====================================================== */
.text-section {
  display: flex;
  flex-direction: column;
  justify-content: center;
    align-items: flex-start;
    padding: 4rem;
    z-index: 2;
}

.text-section h1 {
  font-size: 3rem;
  font-weight: 700;
  color: #95c054;
  margin-bottom: 1rem;
  letter-spacing: 1px;
}

.text-section p {
  font-size: 1.2rem;
  max-width: 500px;
  line-height: 1.6;
  color: #07263e;
  margin-bottom: 2rem;
}

/* ======================================================
   BOTÓN DE INGRESO
   ====================================================== */
.text-section a {
  display: inline-block;
  background-color: #95c054;
  color: #07263e;
  font-weight: 600;
  text-decoration: none;
  padding: 0.9rem 2rem;
  border-radius: 30px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
}

.text-section a:hover {
  background-color: #2aa65a;
  color: #ffffff;
  transform: translateY(-2px);
}

/* ======================================================
   LOGO
   ====================================================== */
#logo {
  height: auto;
  display: block;
  margin: 0 auto;
  filter: drop-shadow(0 0 12px rgba(0, 0, 0, 0.5));
}
/* ======================================================
   SECCIÓN DE ANIMACIÓN / CANVAS
   ====================================================== */
.canvas-section {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

#earth {
  position: absolute;
    left: 70%;
    top: 50%;
    transform: translate(-65%, -50%);
  width: 100%;
  height: 80%;
  max-width: 900px;
  max-height: 600px;
  touch-action: manipulation;
}

/* ======================================================
   RESPONSIVE DESIGN
   ====================================================== */

/* 🟢 Tablets (entre 601px y 900px) */
@media (max-width: 900px) {
  .container {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
    text-align: center;
  }

  .text-section {
    align-items: center;
    padding: 2.5rem 2rem;
  }

  .text-section h1 {
    font-size: 2.4rem;
  }

  .text-section p {
    font-size: 1.1rem;
    max-width: 90%;
  }

  #earth {
    position: relative;
    transform: translate(0, 0);
    width: 85%;
    height: auto;
    max-width: 600px;
    margin: 2rem auto;
  }
}

/* 🟡 Celulares (hasta 600px) */
@media (max-width: 600px) {
  body {
    background-size: 400px 400px;
    /* textura más densa en pantallas pequeñas */
  }

  .text-section {
    padding: 2rem 1.5rem;
  }

  .text-section h1 {
    font-size: 1.9rem;
  }

  .text-section p {
    font-size: 1rem;
    line-height: 1.5;
  }

  .text-section a {
    padding: 0.8rem 1.6rem;
    font-size: 0.95rem;
  }

  #earth {
    width: 95%;
    height: auto;
    margin-top: 1rem;
  }
}

/* 🖥️ Pantallas grandes (mayores a 1200px) */
@media (min-width: 1200px) {
  .text-section h1 {
    font-size: 3.5rem;
  }

  .text-section p {
    font-size: 1.3rem;
  }

  #earth {
    max-width: 1000px;
    max-height: 700px;
  }
}