@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700;800;900&display=swap');

:root {
  --verde-oscuro: #02140d;
  --verde: #0b6b3a;
  --verde-neon: #7cff6b;
  --azul: #00c2ff;
  --amarillo: #ffd84d;
  --blanco: #ffffff;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html { 
  scroll-behavior: smooth; 
}

body {
  font-family: 'Montserrat', sans-serif;
  background: #02140d;
  color: white;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,194,255,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,194,255,.06) 1px, transparent 1px);
  background-size: 42px 42px;
  pointer-events: none;
  z-index: -1;
}

/* HERO */
.hero {
  min-height: 100vh;
  background:
    linear-gradient(90deg, rgba(2,20,13,.96), rgba(2,20,13,.78), rgba(2,20,13,.35)),
    url("../img/el-cielo.jpg");
  background-size: cover;
  background-position: center;
  position: relative;
  padding-bottom: 60px;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 25% 30%, rgba(0,194,255,.25), transparent 30%),
    radial-gradient(circle at 80% 70%, rgba(124,255,107,.20), transparent 35%);
  pointer-events: none;
}

/* NAV */
.navbar {
  width: min(1180px, 92%);
  margin: auto;
  padding: 22px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 5;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 28px;
  font-weight: 900;
  letter-spacing: 4px;
  white-space: nowrap;
}

.brand img {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  box-shadow: 0 0 25px rgba(0,194,255,.9);
}

.navbar ul {
  display: flex;
  gap: 22px;
  list-style: none;
}

.navbar a {
  color: white;
  text-decoration: none;
  font-weight: 800;
  font-size: 14px;
  transition: .3s;
}

.navbar a:hover {
  color: var(--verde-neon);
  text-shadow: 0 0 12px rgba(124,255,107,.9);
}

/* HERO CONTENT */
.hero-content {
  width: min(1180px, 92%);
  min-height: 78vh;
  margin: auto;
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  align-items: center;
  gap: 45px;
  position: relative;
  z-index: 3;
}

.hero-text {
  max-width: 820px;
  padding: 45px;
  border-radius: 35px;
  background: rgba(255,255,255,.12);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(255,255,255,.22);
  box-shadow: 0 30px 80px rgba(0,0,0,.35);
}

.tag {
  display: inline-block;
  margin-bottom: 18px;
  padding: 10px 18px;
  border-radius: 30px;
  color: var(--verde-neon);
  background: rgba(124,255,107,.12);
  border: 1px solid rgba(124,255,107,.35);
  font-weight: 800;
}

.hero h1 {
  font-size: clamp(54px, 8vw, 110px);
  font-weight: 900;
  line-height: .9;
  background: linear-gradient(135deg, white, var(--azul), var(--verde-neon));
  -webkit-background-clip: text;
  color: transparent;
  word-break: break-word;
}

.hero h2 {
  font-size: clamp(26px, 4vw, 52px);
  line-height: 1.08;
  margin: 18px 0;
}

.hero p {
  font-size: 19px;
  line-height: 1.8;
  color: rgba(255,255,255,.9);
}

.hero-buttons {
  margin-top: 30px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  padding: 16px 28px;
  border-radius: 40px;
  text-decoration: none;
  font-weight: 900;
  transition: .3s;
  display: inline-block;
}

.primary {
  background: linear-gradient(135deg, var(--verde-neon), var(--azul));
  color: #02140d;
  box-shadow: 0 0 30px rgba(0,194,255,.55);
}

.secondary {
  border: 2px solid rgba(255,255,255,.45);
  color: white;
}

.btn:hover {
  transform: translateY(-5px);
}

.hero-panel {
  padding: 34px;
  border-radius: 34px;
  text-align: center;
  background: rgba(2,20,13,.55);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(255,255,255,.22);
  box-shadow: 0 30px 80px rgba(0,0,0,.38);
}

.hero-panel img {
  width: 220px;
  max-width: 80%;
  border-radius: 50%;
  margin-bottom: 18px;
  box-shadow: 0 0 35px rgba(124,255,107,.55);
}

.hero-panel h3 {
  color: var(--amarillo);
  font-size: 25px;
  margin-bottom: 12px;
}

/* SECTIONS */
.section {
  width: min(1180px, 92%);
  margin: 80px auto;
  padding: 55px;
  border-radius: 35px;
  background: rgba(255,255,255,.09);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(255,255,255,.18);
  box-shadow: 0 25px 70px rgba(0,0,0,.3);
}

.section h2 {
  text-align: center;
  font-size: clamp(32px, 5vw, 44px);
  margin-bottom: 18px;
  background: linear-gradient(135deg, var(--amarillo), white, var(--azul));
  -webkit-background-clip: text;
  color: transparent;
}

.section p {
  text-align: center;
  font-size: 18px;
  line-height: 1.8;
  color: rgba(255,255,255,.86);
}

.stats,
.tech-grid {
  margin-top: 35px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

.stats div,
.tech-grid div {
  padding: 28px;
  border-radius: 28px;
  background: linear-gradient(160deg, rgba(255,255,255,.16), rgba(255,255,255,.05));
  border: 1px solid rgba(255,255,255,.18);
  transition: .3s;
}

.stats div:hover,
.tech-grid div:hover {
  transform: translateY(-10px);
  box-shadow: 0 0 35px rgba(0,194,255,.35);
}

.stats h3,
.tech-grid h3 {
  color: var(--verde-neon);
  font-size: 24px;
  margin-bottom: 10px;
}

/* CARDS */
.cards {
  margin-top: 38px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.card {
  overflow: hidden;
  border-radius: 28px;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.18);
  box-shadow: 0 25px 60px rgba(0,0,0,.3);
  transition: .35s;
}

.card:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: 0 0 40px rgba(0,194,255,.4);
}

.card img {
  width: 100%;
  height: 245px;
  object-fit: cover;
}

.card div {
  padding: 24px;
}

.status {
  display: inline-block;
  padding: 7px 13px;
  border-radius: 20px;
  background: rgba(124,255,107,.16);
  border: 1px solid rgba(124,255,107,.4);
  color: var(--verde-neon);
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 12px;
}

.card h3 {
  color: var(--amarillo);
  font-size: 25px;
  margin-bottom: 12px;
}

.section p {
  text-align: justify;
  font-size: 18px;
  line-height: 1.8;
  color: rgba(255,255,255,.86);
}

.justificado {
  text-align: justify !important;
}

.tech {
  background:
    linear-gradient(135deg, rgba(0,194,255,.13), rgba(124,255,107,.10)),
    rgba(255,255,255,.08);
}

.contact {
  text-align: center;
}

.contact button {
  margin-top: 25px;
  padding: 17px 34px;
  border: none;
  border-radius: 45px;
  background: linear-gradient(135deg, var(--amarillo), var(--verde-neon), var(--azul));
  color: #02140d;
  font-size: 18px;
  font-weight: 900;
  cursor: pointer;
}

#mensaje {
  margin-top: 20px;
  color: var(--verde-neon);
  font-weight: 800;
}

footer {
  padding: 28px;
  text-align: center;
  background: rgba(0,0,0,.45);
}

/* TABLET */
@media (max-width: 1050px) {
  .hero-content {
    grid-template-columns: 1fr;
    padding-top: 25px;
  }

  .stats,
  .tech-grid,
  .cards {
    grid-template-columns: 1fr 1fr;
  }

  .navbar {
    flex-direction: column;
    gap: 18px;
  }

  .navbar ul {
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero-panel {
    display: none;
  }
}

/* CELULAR */
@media (max-width: 700px) {
  body::before {
    background-size: 30px 30px;
  }

  .hero {
    min-height: auto;
    padding-bottom: 45px;
    background:
      linear-gradient(180deg, rgba(2,20,13,.95), rgba(2,20,13,.75)),
      url("../img/el-cielo.jpg");
    background-size: cover;
    background-position: center top;
  }

  .navbar {
    width: 92%;
    padding: 16px 0;
  }

  .brand {
    width: 100%;
    justify-content: center;
    font-size: 22px;
    letter-spacing: 3px;
  }

  .brand img {
    width: 58px;
    height: 58px;
  }

  .navbar ul {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .navbar a {
    display: block;
    text-align: center;
    font-size: 13px;
    padding: 9px 6px;
  }

  .hero-content {
    width: 92%;
    min-height: auto;
    display: block;
    padding-top: 14px;
  }

  .hero-text {
    padding: 26px;
    border-radius: 26px;
  }

  .tag {
    font-size: 13px;
    padding: 9px 13px;
    margin-bottom: 16px;
  }

  .hero h1 {
    font-size: 48px;
    line-height: .95;
  }

  .hero h2 {
    font-size: 26px;
  }

  .hero p {
    font-size: 16px;
    line-height: 1.7;
  }

  .hero-buttons {
    flex-direction: column;
    gap: 12px;
  }

  .btn {
    width: 100%;
    text-align: center;
    padding: 15px 18px;
  }

  .section {
    width: 92%;
    margin: 45px auto;
    padding: 28px 22px;
    border-radius: 26px;
  }

  .section p {
    font-size: 16px;
  }

  .stats,
  .tech-grid,
  .cards {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .stats div,
  .tech-grid div {
    padding: 22px;
  }

  .card img {
    height: 220px;
  }

  .card div {
    padding: 21px;
  }

  .card h3 {
    font-size: 23px;
  }

  .contact button {
    width: 100%;
    padding: 16px 20px;
  }
}

/* CELULAR MUY PEQUEÑO */
@media (max-width: 390px) {
  .hero h1 {
    font-size: 40px;
  }

  .hero h2 {
    font-size: 23px;
  }

  .brand {
    font-size: 19px;
  }

  .navbar ul {
    grid-template-columns: 1fr;
  }
}

/* ===== MODAL INFO BIOCIELO ===== */

/* ===== MODAL INFO ===== */

.modal-info{
  display:none;
  position:fixed;
  inset:0;
  background:rgba(0,0,0,0.75);
  z-index:9999;
  justify-content:center;
  align-items:center;
  padding:20px;
}

.modal-card{
  width:min(92%,520px);
  max-height:80vh;
  overflow-y:auto;

  background:#123524;
  border-radius:20px;

  padding:32px 28px;

  position:relative;

  box-shadow:0 15px 40px rgba(0,0,0,0.4);

  border:1px solid rgba(181,214,140,0.25);

  scrollbar-width:thin;
}

.modal-card h3{
  color:#b8d68c;
  margin:0 40px 18px 0;
  font-size:1.5rem;
}

.modal-card p{
  color:#f3f5ef;
  line-height:1.8;
  font-size:1rem;
  text-align:left;
  margin:0;
}

.modal-card strong{
  color:#ffffff;
}

.modal-card a{
  color:#b8d68c;
  font-weight:bold;
  text-decoration:none;
}

.modal-card a:hover{
  text-decoration:underline;
}

.cerrar-modal{
  position:sticky;
  top:0;

  float:right;

  width:36px;
  height:36px;

  border:none;
  border-radius:50%;

  background:#b8d68c;

  color:#123524;

  font-size:24px;
  font-weight:bold;

  cursor:pointer;

  z-index:20;
}

@media(max-width:600px){

  .modal-info{
    align-items:flex-start;
    padding:65px 14px 20px;
  }

  .modal-card{
    width:100%;
    max-width:360px;

    max-height:78vh;

    padding:24px 20px;

    border-radius:18px;
  }

  .modal-card h3{
    font-size:1.25rem;
  }

  .modal-card p{
    font-size:.95rem;
    line-height:1.7;
  }

}


/* =========================
   TRIVIA
========================= */

#trivia{

  text-align: center;
  padding: 40px;

}

#triviaBox{

  background: rgba(255,255,255,0.1);
  padding: 30px;
  border-radius: 20px;
  max-width: 700px;
  margin: auto;
  backdrop-filter: blur(10px);

}

#pregunta{

  margin-top: 20px;
  font-size: 1.3rem;

}

#opciones{

  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 25px;

}

.opcionTrivia{

  padding: 12px;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  background: #2e8b57;
  color: white;
  font-size: 1rem;
  transition: 0.3s;

}

.opcionTrivia:hover{

  transform: scale(1.03);
  background: #246b45;

}

#resultado{

  margin-top: 20px;
  font-size: 1.1rem;
  font-weight: bold;

}

/* =========================
   BOTON TRIVIA
========================= */

#triviaBox button{

  border:none;
  cursor:pointer;
  font-family:'Montserrat',sans-serif;

}

#triviaBox > button{

  background:linear-gradient(135deg,#7cff6b,#00c2ff);

  color:#02140d;

  font-weight:800;

  padding:14px 26px;

  border-radius:40px;

  font-size:1rem;

  transition:.3s;

  box-shadow:0 0 25px rgba(0,194,255,.35);

}

#triviaBox > button:hover{

  transform:translateY(-3px) scale(1.03);

}

/* OPCIONES */

.opcionTrivia{

  padding:16px;

  border:none;

  border-radius:16px;

  cursor:pointer;

  background:#2e8b57;

  color:white;

  font-size:1rem;

  font-weight:700;

  transition:.25s;

}

.opcionTrivia:hover{

  transform:scale(1.03);

  background:#246b45;

}

.correcta{

  background:#00c853 !important;

  box-shadow:0 0 20px rgba(0,200,83,.45);

}

.incorrecta{

  background:#d50000 !important;

  box-shadow:0 0 20px rgba(213,0,0,.45);

}

/* RESULTADO */

#resultado{

  margin-top:24px;

  font-size:1.15rem;

  font-weight:800;

}

/* SIGUIENTE */

#siguienteBtn{

  margin-top:22px;

  display:none;

  width:100%;

  padding:16px;

  border-radius:16px;

  background:linear-gradient(135deg,#ffd84d,#7cff6b);

  color:#02140d;

  font-weight:900;

  font-size:1rem;

}

