@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;500;700;800;900&display=swap');

* { box-sizing: border-box; }

/* Animaciones para hero-title */
@keyframes titleGlow {
  0% { text-shadow: 0 8px 30px rgba(0,0,0,0.6), 0 2px 6px rgba(0,0,0,0.4), 0 0 20px rgba(212,165,255,0); }
  50% { text-shadow: 0 8px 30px rgba(0,0,0,0.6), 0 2px 6px rgba(0,0,0,0.4), 0 0 40px rgba(212,165,255,0.6); }
  100% { text-shadow: 0 8px 30px rgba(0,0,0,0.6), 0 2px 6px rgba(0,0,0,0.4), 0 0 20px rgba(212,165,255,0); }
}

@keyframes titleFloat {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
}

@keyframes titlePulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.85; }
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

body {
  margin: 0;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  line-height: 1.6;
  color: #111;
  background: #fff;
}

:root{
  --brand: #D4A5FF;
  --bg: #0a1628;
  --muted: #b8c5d6;
  --glass: rgba(255,255,255,0.04);
  --accent: #A0DDEC;
  --radius: 16px;
  --max-width: 1200px;
  --space-lg: 3rem;
}

html,body{
  height:100%;
  background: none;
  color: #e6e9ef;
}

.container {
  width: min(var(--max-width), 92%);
  margin: 0 auto;
}

.header {
  border-bottom: none;
  position: sticky;
  top: 0;
  background: linear-gradient(90deg, rgba(212,165,255,0.12), rgba(160,221,236,0.08));
  box-shadow: 0 6px 30px rgba(10,22,40,0.6);
  backdrop-filter: blur(6px);
  z-index: 40;
  border-radius: var(--radius);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 8px;
  gap: 32px;
}

.logo {
  height: 65px;
  width: auto;
}
.logo-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  margin-left: -2px;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 2px;
  color: #D4A5FF;
  text-shadow: 0 4px 12px rgba(212,165,255,0.15);
  line-height: 1.3;
  text-transform: uppercase;
}
.nav a {
  text-decoration: none;
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  transition: color .18s ease, transform .18s ease;
}

.nav {
  margin-left: 50px;
}

/* Navegación con logo pequeño al lado del texto */
.nav-list {
  display: flex;
  gap: 12px;
  align-items: center;
  list-style: none;
  margin: 0;
  margin-left: -40px;
  padding: 0;
}

.nav-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.nav-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.nav-logo img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  display: block;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: transform .2s ease;
}

.nav-logo img:hover {
  transform: scale(1.08);
}

.nav a:hover {
  text-decoration: underline;
}

/* Nav hover glow */
.nav-item a:hover {
  color: #A0DDEC;
  text-shadow: 0 6px 18px rgba(160,221,236,0.2);
}

/* Mobile menu toggle */
.nav-toggle{
  display:none;
  width:44px;
  height:38px;
  border-radius:8px;
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02));
  border: 1px solid rgba(160,221,236,0.08);
  position: relative;
  cursor: pointer;
}
.nav-toggle::before, .nav-toggle::after, .nav-toggle div{
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  height: 2px;
  background: linear-gradient(90deg,#A0DDEC,#D4A5FF);
  transition: transform .25s ease, opacity .2s ease;
}
.nav-toggle div{ top: 50%; transform: translateY(-50%); }
.nav-toggle::before{ top: 12px; }
.nav-toggle::after{ bottom: 12px; }

.header.nav-open .nav-toggle::before{ transform: translateY(8px) rotate(45deg); }
.header.nav-open .nav-toggle::after{ transform: translateY(-8px) rotate(-45deg); }
.header.nav-open .nav-toggle div{ opacity: 0; }

@media (max-width: 800px) {
  .nav-toggle{ display:inline-block; }
  .nav-list{ display:none; position: absolute; top:64px; right:16px; background: linear-gradient(180deg, rgba(10,6,40,0.95), rgba(6,3,30,0.9)); padding:12px; border-radius:12px; box-shadow: 0 12px 40px rgba(2,6,23,0.6); width: calc(100% - 32px); max-width: 360px; flex-direction: column; gap: 10px; }
  .nav-list.show{ display:flex; }
  .nav-list .nav-item{ padding: 6px 8px; border-radius:8px; }
  .nav-list .nav-item a{ color: #e6e9ef; }
}

.hero {
  padding: 46px 0;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
  align-items: center;
}

.hero-bg {
  position: relative;
  background: transparent;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-align: center;
  padding: 0;
  overflow: hidden;
  border-radius: var(--radius);
}

.hero-bg::before{
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(0,0,0,0.35), rgba(10,5,40,0.25));
  mix-blend-mode: overlay;
  pointer-events: none;
}

.hero-bg::after{
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(800px 400px at 10% 20%, rgba(0,229,255,0.06), transparent 10%), radial-gradient(700px 300px at 90% 80%, rgba(255,0,255,0.04), transparent 8%);
  animation: drift 12s linear infinite;
  pointer-events: none;
}

@keyframes drift{
  0%{ transform: translateY(0) translateX(0); }
  50%{ transform: translateY(-20px) translateX(10px); }
  100%{ transform: translateY(0) translateX(0); }
}


/* responsive */
@media (max-width: 800px) {
  .hero__inner {
    grid-template-columns: 1fr;
  }
  .nav a { margin-left: 10px; }
}


.hero-bg {
  position: relative;
  background: transparent;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgb(255, 255, 255);
  text-align: center;
  padding: 0; /* fill the viewport cleanly */
}

/* Fixed page background that follows while scrolling */
body::before{
  content: "";
  position: fixed;
  inset: 0;
  background-image: url("../img/fondo.webp");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  z-index: -2;
  transform: translateZ(0);
  will-change: transform;
}

/* subtle overlay gradient above the image for contrast */
body::after{
  content: "";
  position: fixed;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,22,40,0.65) 0%, rgba(15,30,53,0.7) 60%);
  z-index: -1;
  pointer-events: none;
}

/* Mobile fallback: fixed backgrounds can be janky on some devices, keep background-attachment fallback */
@supports (-webkit-overflow-scrolling: touch) {
  body::before{ background-attachment: scroll; }
}

.hero-bg .overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

.hero-bg .content {
  position: relative;
  z-index: 1;
  padding: 6rem 1.25rem; /* breathing room */
  max-width: 1200px;
}

.hero-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -1px;
  text-transform: uppercase;
  color: #fff;
  margin: 0;
  text-shadow: 0 8px 30px rgba(0,0,0,0.6), 0 2px 6px rgba(0,0,0,0.4);
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: titleGlow 3s ease-in-out infinite, titleFloat 3.5s ease-in-out infinite, titlePulse 4s ease-in-out infinite;
}

/* Hero title + profile photo row */
.hero-content-row{ display:flex; align-items:center; gap:1.5rem; justify-content:center; }
.profile-photo{ width:320px; height:auto; border-radius:18px; object-fit:cover; box-shadow: 0 14px 40px rgba(0,0,0,0.6); border: 6px solid rgba(212,165,255,0.12); flex-shrink:0; }

@media (max-width: 900px){
  .hero-content-row{ gap:1rem; }
  .profile-photo{ width:260px; max-width:40%; }
}

@media (max-width: 700px){
  .hero-content-row{ flex-direction:column; }
  .profile-photo{ width:80%; max-width: 320px; height:auto; border-radius:14px; }
}

.hero-title-main {
  font-size: clamp(3rem, 8vw, 6.5rem);
}

.hero-title-sub {
  font-size: clamp(2rem, 5.6vw, 4.55rem);
  font-weight: 700;
}

.hero-subtitle {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  margin-top: 16px;
  font-weight: 500;
}

/* reveal animation utility */
.reveal{
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s cubic-bezier(.2,.9,.2,1), transform .7s cubic-bezier(.2,.9,.2,1);
}
.reveal.is-visible{
  opacity: 1;
  transform: none;
}

/* Features / cards */
.features{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  margin-top: var(--space-lg);
}
.card{
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: 0 8px 30px rgba(10,22,40,0.6);
  border: 1px solid rgba(160,221,236,0.1);
}
.card h3{ margin: 0 0 .5rem 0; }

/* small utilities */
.muted{ color: var(--muted); }

/* Buttons */
.btn{
  display: inline-block;
  padding: .75rem 1.1rem;
  border-radius: var(--radius);
  background: linear-gradient(90deg,#D4A5FF,#A0DDEC);
  color: #0a1628;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 8px 30px rgba(212,165,255,0.2);
}
.btn:hover{ transform: translateY(-3px); }

/* Footer */
.footer{
  border-top: 1px solid rgba(160,221,236,0.1);
  padding: 28px 0;
  margin-top: var(--space-lg);
  color: var(--muted);
  font-size: 14px;
}

@media (max-width: 800px) {
  .nav-logo img { width: 28px; height: 28px; }
  .hero-bg .content { padding: 3.5rem 1rem; }
  .hero-title-main { font-size: clamp(2rem, 10vw, 3.5rem); }
  .hero-title-sub { font-size: clamp(1.4rem, 6vw, 2.5rem); }
  .hero-title { font-size: clamp(2rem, 10vw, 3.5rem); }
  .features { grid-template-columns: 1fr; }
}

/* Accordion Styles */
.accordion { display: flex; flex-direction: column; gap: 1rem; }
.accordion-item { border: 1px solid rgba(160,221,236,0.15); border-radius: 16px; overflow: hidden; background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01)); }
.accordion-header { display: flex; justify-content: space-between; align-items: center; width: 100%; padding: 1.5rem; background: transparent; border: none; color: #e6e9ef; font-size: 1.05rem; font-weight: 600; cursor: pointer; transition: all .3s ease; }
.accordion-header:hover { background: rgba(212,165,255,0.06); color: #A0DDEC; }
.accordion-header.active { background: rgba(160,221,236,0.08); color: #D4A5FF; }
.accordion-icon { font-size: 1.2rem; transition: transform .3s ease; }
.accordion-header.active .accordion-icon { transform: rotate(45deg); }
.accordion-content { max-height: 0; overflow: hidden; transition: max-height .35s cubic-bezier(.2,.9,.2,1); padding: 0 1.5rem; }
.accordion-content.active { max-height: 1000px; padding: 0 1.5rem 1.5rem 1.5rem; }

/* Submodule Cards Grid */
.submodules-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.5rem; }
.submodule-card { display: flex; flex-direction: column; gap: 0.5rem; padding: 1.5rem; background: linear-gradient(135deg, rgba(212,165,255,0.08), rgba(160,221,236,0.06)); border: 1px solid rgba(160,221,236,0.12); border-radius: 12px; text-decoration: none; color: inherit; transition: all .3s ease; }
.submodule-card:hover { border-color: #A0DDEC; background: linear-gradient(135deg, rgba(212,165,255,0.12), rgba(160,221,236,0.1)); transform: translateY(-4px); box-shadow: 0 10px 30px rgba(160,221,236,0.15); }
.submodule-card h4 { margin: 0; color: #D4A5FF; font-size: 1.1rem; }
.submodule-card p { margin: 0; }

@media (max-width: 700px) {
  .accordion-header { padding: 1rem; font-size: 0.95rem; }
  .accordion-content.active { padding: 0 1rem 1rem 1rem; }
  .submodules-grid { grid-template-columns: 1fr; }
}

