/* ================= BASE ================= */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background: #0b0f14;
  color: #e6edf3;
}

/* ================= GALAXY SVG ================= */
.galaxy-svg {
  max-width: 100%;
  height: auto;
  filter: drop-shadow(0 0 40px rgba(87,255,143,0.6));
}

/* ================= CTA ================= */
.cta {
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  border: 1px solid #57ff8f;
  color: #57ff8f;
  background: transparent;
  cursor: pointer;
}

.cta.primary {
  background: #57ff8f;
  color: #0b0f14;
}

/* ================= CARDS ================= */
.card {
  background: linear-gradient(180deg, #0f1722, #0c1320);
  border-radius: 18px;
  padding: 30px;
  border: 1px solid rgba(255,255,255,0.05);
}

/* ================= GUIDANCE SECTION ================= */
#guidance {
  padding: 100px 20px;
  text-align: center;
}

#guidance h2 {
  font-size: 36px;
  margin-bottom: 10px;
}

#guidance p {
  color: #9fb0c3;
  margin-bottom: 40px;
}

/* ===== FORM CARD ===== */
#leadForm {
  max-width: 520px;
  margin: 0 auto;
  padding: 28px;
}

/* ===== FORM ROWS (THIS FIXES UX) ===== */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 14px;
}

.form-row.single {
  grid-template-columns: 1fr;
}

/* ===== INPUTS ===== */
#leadForm input,
#leadForm select,
#leadForm textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: 10px;
  border: none;
  font-size: 14px;
  font-family: inherit;
}

#leadForm textarea {
  min-height: 90px;
  resize: vertical;
}

/* ===== BUTTON ===== */
.btn-primary {
  width: 100%;
  padding: 14px;
  border-radius: 999px;
  background: #57ff8f;
  color: #000;
  font-weight: 600;
  border: none;
  cursor: pointer;
  font-size: 15px;
  margin-top: 10px;
}

.btn-primary:hover {
  filter: brightness(1.1);
}

.form-note {
  margin-top: 12px;
  font-size: 12px;
  color: #9fb3c8;
}

/* ===== MOBILE ===== */
@media (max-width: 640px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}
/* ===============================
   ABOUT SECTION – V3
   =============================== */

.about-v3 {
  padding: 90px 20px;
  max-width: 1200px;
  margin: auto;
}

.about-header {
  text-align: center;
  margin-bottom: 60px;
}

.about-header h2 {
  font-size: 34px;
  margin-bottom: 12px;
}

.about-sub {
  color: #b7e9cc;
  font-size: 16px;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
  margin-bottom: 90px;
}

.about-card {
  background: linear-gradient(
    180deg,
    rgba(10,25,40,0.85),
    rgba(5,15,25,0.9)
  );
  padding: 28px;
  border-radius: 18px;
  box-shadow: inset 0 0 0 1px rgba(87,255,143,0.08);
}

.about-card h3 {
  color: #57ff8f;
  margin-bottom: 12px;
}

.about-card p {
  color: #e5fdf0;
  font-size: 15px;
  line-height: 1.6;
}

.about-card.highlight {
  transform: translateY(-6px);
  box-shadow:
    0 20px 50px rgba(0,0,0,0.5),
    inset 0 0 0 1px rgba(87,255,143,0.18);
}

/* FACULTY */

.faculty-section {
  text-align: center;
}

.faculty-title {
  font-size: 28px;
  margin-bottom: 8px;
}

.faculty-sub {
  color: #b7e9cc;
  margin-bottom: 40px;
}

.faculty-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}

.faculty-card {
  background: linear-gradient(
    180deg,
    rgba(10,25,40,0.9),
    rgba(5,15,25,0.95)
  );
  padding: 30px;
  border-radius: 20px;
  text-align: left;
  box-shadow: inset 0 0 0 1px rgba(87,255,143,0.1);
}

.faculty-card h4 {
  font-size: 20px;
  margin-bottom: 4px;
}

.faculty-card span {
  color: #57ff8f;
  font-size: 13px;
  display: block;
  margin-bottom: 14px;
}

.faculty-card p {
  font-size: 14.5px;
  line-height: 1.6;
  color: #e5fdf0;
}
/* ===============================
   FORM LAYOUT – V3 STABLE
   =============================== */

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 14px;
}

.form-row.single {
  grid-template-columns: 1fr;
}

#leadForm input,
#leadForm select,
#leadForm textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: 10px;
  border: none;
  font-size: 14px;
  font-family: inherit;
}

#leadForm textarea {
  min-height: 90px;
  resize: vertical;
}

.btn-primary {
  width: 100%;
  padding: 14px;
  border-radius: 999px;
  background: #57ff8f;
  color: #000;
  font-weight: 600;
  border: none;
  cursor: pointer;
  font-size: 15px;
  margin-top: 10px;
}

.btn-primary:hover {
  filter: brightness(1.1);
}

.form-note {
  margin-top: 12px;
  font-size: 13px;
  color: #9fb3c8;
  text-align: center;
}

@media (max-width: 640px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}
/* ================================
   MOBILE POLISH PATCH – V3
   Do NOT edit desktop styles
   ================================ */

@media (max-width: 768px) {

  /* 1. Global safety reset */
  * {
    max-width: 100%;
    box-sizing: border-box;
  }

/* ===============================
   MOBILE HARD SCROLL FIX – FINAL
   =============================== */
@media (max-width: 768px) {

  /* 1. Never lock viewport height on mobile */
  body,
  main,
  .main,
  .wrapper,
  .container,
  .hero,
  .galaxy,
  .universe {
    height: auto !important;
    min-height: unset !important;
    overflow: visible !important;
  }

  /* 2. Transforms MUST NOT affect layout containers */
  .hero,
  .container,
  .section {
    transform: none !important;
  }

  /* 3. Only visuals may stay absolute */
  .planet,
  .orbit,
  .star,
  .bg-effect {
    position: absolute;
  }

  /* 4. Restore natural document flow */
  section {
    display: block;
    width: 100%;
    max-width: 100%;
  }

}

  /* 2. Main container fixes */
  .container,
  .section,
  .hero,
  .content {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  /* 3. Kill horizontal scroll sources */
  [style*="width: 100vw"],
  [style*="width: 120%"],
  .orbit,
  .galaxy,
  .planet,
  .visual-layer {
    max-width: 100%;
    overflow: hidden;
  }

  /* 4. Absolute positioned visuals → relative on mobile */
  .orbit,
  .planet,
  .floating,
  .animated-bg {
    position: relative !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    transform: none !important;
  }

  /* 5. Hero section alignment */
  .hero {
    text-align: center;
    padding-top: 60px;
    padding-bottom: 40px;
  }

  .hero h1 {
    font-size: 1.9rem;
    line-height: 1.3;
  }

  .hero p {
    font-size: 1rem;
    line-height: 1.6;
  }

  /* 6. Button safety */
  button,
  .btn {
    width: 100%;
    max-width: 320px;
    margin: 12px auto;
    padding: 14px 18px;
    font-size: 1rem;
  }

  /* 7. Card & section stacking */
  .grid,
  .flex,
  .row {
    flex-direction: column !important;
    gap: 20px;
  }

  /* 8. Login / form polish */
  input,
  select,
  textarea {
    width: 100%;
    font-size: 16px; /* prevents iOS zoom */
    padding: 12px;
  }

  /* 9. Footer fix */
  footer {
    text-align: center;
    padding: 24px 16px;
  }

}
/* ===============================
   MOBILE NAVBAR FIX – CLEAN
   =============================== */
@media (max-width: 768px) {

  nav,
  .navbar,
  .nav {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    padding: 16px;
  }

  .nav-links,
  .menu,
  .nav-menu {
    display: flex !important;
    flex-direction: column !important;
    gap: 14px;
    margin-top: 12px;
  }

  .nav-links a,
  .menu a {
    font-size: 1rem;
  }

}
/* ===============================
   MOBILE CARD STACK FIX
   =============================== */
@media (max-width: 768px) {

  .cards,
  .card-row,
  .features,
  .features-grid,
  .grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 20px;
  }

  .card,
  .feature-card {
    width: 100% !important;
    max-width: 100% !important;
  }

}

/* ===============================
   MOBILE OVERFLOW SAFETY (FINAL)
   =============================== */
@media (max-width: 768px) {

  html {
    overflow-x: hidden;
  }

  body {
    overflow-x: visible;
  }

}
/* ===============================
   MOBILE APP-LIKE HEADER
   =============================== */
@media (max-width: 768px) {

  header,
  nav,
  .navbar {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center;
    padding: 20px 16px;
  }

  .logo,
  .brand {
    font-size: 1.2rem;
    margin-bottom: 12px;
  }

  .nav-links,
  .menu {
    display: flex !important;
    flex-direction: row !important;
    gap: 18px;
    font-size: 0.95rem;
    opacity: 0.85;
  }

}
/* ===============================
   MOBILE HERO RESET
   =============================== */
@media (max-width: 768px) {

  .hero {
    padding-top: 40px !important;
    padding-bottom: 40px !important;
    text-align: center;
  }

  .hero h1 {
    font-size: 2rem;
    line-height: 1.25;
  }

  .hero p {
    font-size: 1rem;
    max-width: 90%;
    margin: 0 auto;
  }

}
/* ===============================
   MOBILE CARD = APP STYLE
   =============================== */
@media (max-width: 768px) {

  .cards,
  .features,
  .grid,
  .card-row {
    display: flex !important;
    flex-direction: column !important;
    gap: 16px;
  }

  .card,
  .feature-card {
    width: 100% !important;
    padding: 20px !important;
    border-radius: 18px;
  }

}

/* ===============================
   MOBILE VISUAL DE-EMPHASIS
   =============================== */
@media (max-width: 768px) {

  .galaxy,
  .orbit,
  .planet {
    opacity: 0.6;
    transform: scale(0.85);
    margin-top: 24px;
  }

}
/* =====================================
   MOBILE: HOME CARDS = ABOUT CARD FEEL
   ===================================== */
@media (max-width: 768px) {

  /* Card containers */
  .cards,
  .features,
  .conceptos-cards,
  .learning-engine,
  .home-cards {
    display: block !important;
  }

  /* Individual cards */
  .card,
  .feature-card,
  .concept-card {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto 20px auto !important;
    padding: 22px !important;

    /* Remove desktop forcing */
    height: auto !important;
    min-height: unset !important;
    align-items: flex-start !important;
    text-align: left !important;
  }

  /* Headings inside cards */
  .card h3,
  .feature-card h3 {
    font-size: 1.15rem;
    margin-bottom: 10px;
  }

  /* Paragraph text inside cards */
  .card p,
  .feature-card p {
    font-size: 0.95rem;
    line-height: 1.6;
  }

}
