:root {
  --bg-page: #f9f3ff;
  --text-main: #2d1b46;
  --text-soft: #6b5d86;
  --purple-700: #7a3eea;
  --purple-900: #4e258d;
  --pink-500: #ec5cab;
  --pink-300: #f7b6da;
  --blue-200: #c9e4ff;
  --mint-200: #dff8ee;
  --yellow-200: #fff2b7;
  --border-soft: rgba(122, 62, 234, 0.12);
  --shadow-soft: 0 18px 48px rgba(105, 63, 170, 0.12);
  --shadow-hover: 0 20px 52px rgba(105, 63, 170, 0.18);
  --radius-xl: 30px;
  --radius-lg: 24px;
  --radius-md: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: "Nunito", Arial, sans-serif;
  color: var(--text-main);
  background:
    radial-gradient(circle at 8% 18%, rgba(249, 188, 235, 0.95) 0, rgba(249, 188, 235, 0) 16%),
    radial-gradient(circle at 86% 14%, rgba(188, 162, 255, 0.85) 0, rgba(188, 162, 255, 0) 18%),
    radial-gradient(circle at 76% 82%, rgba(255, 235, 173, 0.55) 0, rgba(255, 235, 173, 0) 16%),
    linear-gradient(180deg, #fdf9ff 0%, #f6efff 48%, #f8f5ff 100%);
}

.decor-orb {
  position: absolute;
  pointer-events: none;
  z-index: 0;
  border-radius: 999px;
  filter: blur(10px);
  opacity: 0.85;
}

.orb-a {
  width: 230px;
  height: 230px;
  background: rgba(247, 182, 218, 0.7);
  top: 140px;
  left: -60px;
}

.orb-b {
  width: 300px;
  height: 300px;
  background: rgba(190, 224, 255, 0.72);
  top: 560px;
  right: -110px;
}

.orb-c {
  width: 260px;
  height: 260px;
  background: rgba(223, 248, 238, 0.75);
  bottom: 120px;
  left: 6%;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

button,
a {
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

button {
  font: inherit;
  border: none;
  cursor: pointer;
}

.page-shell {
  min-height: 100vh;
  position: relative;
  overflow: clip;
}

.site-header,
.site-footer,
main {
  position: relative;
  z-index: 2;
}

.site-header {
  width: min(1320px, calc(100% - 32px));
  margin: 20px auto 0;
  padding: 16px 26px;
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-soft);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.brand-logo {
  height: 70px;
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.site-nav a {
  text-decoration: none;
}

.site-nav a:hover {
  text-decoration: none;
  transform: translateY(-2px);
}

.nav-link {
  padding: 11px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--border-soft);
  color: var(--text-main);
  font-weight: 700;
}


.nav-link:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}

.nav-link.is-active {
  box-shadow: var(--shadow-soft);
}

.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: 999px;
  font-weight: 800;
  border: none;
}

.primary-button {
  color: #fff;
  background: linear-gradient(135deg, var(--purple-700), var(--pink-500));
  box-shadow: 0 14px 28px rgba(122, 62, 234, 0.24);
}

.secondary-button {
  color: var(--purple-900);
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--border-soft);
}

.primary-button:hover,
.secondary-button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.site-footer {
  width: 100%;
  margin: 0;
  padding: 34px 32px;
  background: rgba(255, 255, 255, 0.88);
  border-top: 1px solid rgba(122, 62, 234, 0.12);
  box-shadow: 0 -12px 36px rgba(105, 63, 170, 0.06);
  backdrop-filter: blur(12px);
  position: relative;
  z-index: 4;
  scroll-snap-align: none;
}

.footer-grid {
  width: min(1320px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.footer-grid div {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-grid > div {
  display: flex;
  flex-direction: column;
  align-items: center;   
  text-align: center;    
}

.footer-grid h4 {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 850;
  color: var(--purple-900);
}

.footer-grid p,
.footer-grid a {
  margin: 0;
  font-size: 14px;
  color: rgba(45, 27, 70, 0.66);
  line-height: 1.5;
  text-decoration: none;
}

.footer-grid a:hover {
  color: var(--purple-900);
}

.collaboration-panel {
  scroll-snap-align: start;
  scroll-snap-stop: normal;
  margin-bottom: 0;
}

.footer-grid-simple {
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
}

.social-links {
  display: flex;
  flex-direction: row;   
  gap: 14px;
  align-items: center;
}

.footer-grid .social-links {
  display: flex;
  flex-direction: row !important;
  gap: 14px;
  align-items: center;
}

.social-links img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  opacity: 0.7;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.social-links a:hover img {
  opacity: 1;
  transform: translateY(-2px);
}

@media (max-width: 980px) {
  .site-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .site-header,
  .site-footer {
    width: min(100% - 16px, 1320px);
    padding: 18px;
  }

  .brand-logo {
    height: 54px;
  }

  .site-nav {
    gap: 8px;
  }

  .nav-link {
    padding: 10px 14px;
    font-size: 14px;
  }
}

@media (max-width: 640px) {
  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  .page-shell {
    overflow-x: hidden;
  }

  .site-header {
    width: calc(100vw - 12px) !important;
    max-width: calc(100vw - 12px) !important;
    padding: 6px !important;
    gap: 4px !important;
    border-radius: 18px !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;
  }

  .brand {
    flex: 0 0 auto !important;
    width: auto !important;
    margin: 0 !important;
  }

  .brand-logo {
    height: 36px !important;
    max-width: 36px !important;
    object-fit: contain !important;
  }

  .site-nav {
    flex: 1 1 auto !important;
    width: auto !important;
    min-width: 0 !important;
    gap: 3px !important;
    justify-content: flex-end !important;
    flex-wrap: nowrap !important;
  }

  .nav-link {
    padding: 6px 8px !important;
    font-size: clamp(0.62rem, 2.8vw, 0.8rem) !important;
    white-space: nowrap !important;
  }

  .primary-button,
  .secondary-button {
    min-width: 0;
    max-width: 100%;
    text-align: center;
  }

  .site-footer {
    width: 100%;
    padding: 22px 16px;
  }
}

@media (max-width: 360px) {
  .nav-link {
    padding: 5px 4px !important;
    font-size: 0.58rem !important;
  }
}



/* Capa de estrellitas */
.stars-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.stars-layer::before,
.stars-layer::after {
  content: "";
  position: absolute;
  inset: -20%;
  background-repeat: repeat;
  opacity: 0.75;
}

.stars-layer::before {
  background-image:
    radial-gradient(circle, rgba(255,255,255,0.95) 0 2px, transparent 3px),
    radial-gradient(circle, rgba(236,92,171,0.5) 0 2px, transparent 3px),
    radial-gradient(circle, rgba(122,62,234,0.45) 0 2px, transparent 3px),
    radial-gradient(circle, rgba(255,220,130,0.55) 0 2px, transparent 3px);
  background-size: 160px 160px, 230px 230px, 280px 280px, 340px 340px;
  background-position: 30px 40px, 110px 90px, 70px 160px, 220px 20px;
  animation: starsMoveOne 32s linear infinite;
}

.stars-layer::after {
  background-image:
    radial-gradient(circle, rgba(201,228,255,0.7) 0 2px, transparent 3px),
    radial-gradient(circle, rgba(247,182,218,0.6) 0 1.5px, transparent 3px),
    radial-gradient(circle, rgba(255,255,255,0.85) 0 1.5px, transparent 3px);
  background-size: 260px 260px, 310px 310px, 190px 190px;
  background-position: 40px 120px, 210px 60px, 140px 200px;
  animation: starsMoveTwo 48s linear infinite;
}

@keyframes starsMoveOne {
  from { transform: translate(0, 0); }
  to { transform: translate(-90px, 120px); }
}

@keyframes starsMoveTwo {
  from { transform: translate(0, 0); }
  to { transform: translate(120px, -100px); }
}

/* Todo el contenido por encima de las estrellas */
.site-header,
.section-dots,
.index-main,
.site-footer {
  z-index: 2;
}

/* ⭐ CAPA DE ESTRELLAS REALES (no puntos) */
.stars-layer::after {
  content: "";
  position: absolute;
  width: 6px;
  height: 6px;
  background: white;
  clip-path: polygon(
    50% 0%,
    61% 35%,
    98% 35%,
    68% 55%,
    79% 91%,
    50% 70%,
    21% 91%,
    32% 55%,
    2% 35%,
    39% 35%
  );
  opacity: 0.7;

  /* MUCHAS estrellas con distintas posiciones */
  box-shadow:
    80px 120px 0 0 rgba(255,255,255,0.8),
    240px 60px 0 0 rgba(255,220,130,0.7),
    420px 200px 0 0 rgba(247,182,218,0.7),
    600px 100px 0 0 rgba(201,228,255,0.8),
    900px 300px 0 0 rgba(255,255,255,0.75),
    1100px 80px 0 0 rgba(190,162,255,0.7),
    1300px 220px 0 0 rgba(255,220,130,0.65),
    300px 420px 0 0 rgba(255,255,255,0.8),
    700px 520px 0 0 rgba(247,182,218,0.7),
    1000px 480px 0 0 rgba(201,228,255,0.7),
    1400px 600px 0 0 rgba(255,255,255,0.7);

  animation: starDrift 60s linear infinite;
}

.star-item {
  position: absolute;
  background: currentColor;
  clip-path: polygon(
    50% 0%,
    61% 35%,
    98% 35%,
    68% 55%,
    79% 91%,
    50% 70%,
    21% 91%,
    32% 55%,
    2% 35%,
    39% 35%
  );
  opacity: 0.6;
    filter: drop-shadow(0 0 6px rgba(255,255,255,0.6));
  animation: starFloat 18s ease-in-out infinite alternate;
}

@keyframes starFloat {
  0% {
    transform: translate(0px, 0px) rotate(0deg);
  }
  50% {
    transform: translate(12px, -18px) rotate(12deg);
  }
  100% {
    transform: translate(-10px, 14px) rotate(-10deg);
  }
}

@media (min-width: 981px) {
  .site-header {
    width: min(980px, calc(100% - 40px));
    padding: 8px 16px;
    border-radius: 22px;
  }

  .brand-logo {
    height: 44px;
  }

  .site-nav {
    gap: 8px;
  }

  .nav-link {
    padding: 7px 12px;
    font-size: 0.88rem;
  }

  .primary-button,
  .secondary-button {
    padding: 10px 18px;
    font-size: 0.95rem;
  }

  .site-footer {
    padding: 24px 28px;
  }

  .footer-grid {
    width: min(980px, 100%);
    gap: 28px;
  }

  .footer-grid h4 {
    font-size: 14px;
  }

  .footer-grid p,
  .footer-grid a {
    font-size: 13px;
  }
}
