/**
 * NOVA — CSS unificado
 * Layout: estructura basada en Ninestars/Bootstrap
 * Estética: paleta, tipografía y componentes de Nova
 */

/* ─────────────────────────────────────────────────────
   VARIABLES Y RESET
───────────────────────────────────────────────────── */
:root {
  --bg:           #0d0818;
  --bg2:          #120c22;
  --text:         #f0e6f6;
  --pink:         #fdc5f5;
  --lavender:     #b388eb;
  --periwinkle:   #8093f1;
  --sky:          #72ddf7;
  --gold:         #FFE492;
  --glass:        rgba(179,136,235,0.06);
  --glass-border: rgba(179,136,235,0.2);
}

* { box-sizing: border-box; }

body {
  font-family: 'Nunito', sans-serif;
  color: var(--text);
  background: var(--bg);
  cursor: none;
}

h1, h2, h3, h4, h5, h6 { font-family: 'Cinzel', serif; letter-spacing: 0.04em; }

a { color: var(--lavender); text-decoration: none; }
a:hover { color: var(--pink); text-decoration: none; }

/* ─────────────────────────────────────────────────────
   CURSOR
───────────────────────────────────────────────────── */
#cursor {
  width: 10px; height: 10px;
  background: var(--lavender);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 12px var(--lavender), 0 0 30px rgba(179,136,235,0.4);
  transition: width .15s, height .15s, background .15s;
  mix-blend-mode: screen;
}
#cursor.hover { width: 30px; height: 30px; background: rgba(179,136,235,0.15); }
@media (hover:none) and (pointer:coarse) { body { cursor: auto; } #cursor { display: none; } }

/* ─────────────────────────────────────────────────────
   FONDO
───────────────────────────────────────────────────── */
.nova-bg {
  position: fixed; inset: 0; z-index: -2; overflow: hidden;
  background:
    radial-gradient(ellipse 80% 55% at 50% 100%, rgba(60,10,90,.65) 0%, transparent 70%),
    radial-gradient(ellipse 55% 45% at 10% 80%,  rgba(40,10,80,.45) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 90% 70%,  rgba(80,20,110,.4)  0%, transparent 60%),
    linear-gradient(180deg, #0d0818 0%, #120c22 60%, #0e0920 100%);
}
.mist {
  position: absolute; bottom: 0; left: -20%; right: -20%; height: 28%;
  background: radial-gradient(ellipse 100% 100% at 50% 100%, rgba(179,136,235,.07), transparent 100%);
  animation: mistDrift 20s ease-in-out infinite alternate;
  pointer-events: none;
}
.mist:nth-child(2) { height: 18%; animation-delay: -8s; animation-duration: 26s; opacity: .5; }
@keyframes mistDrift {
  from { transform: translateX(-6%) scaleY(.9); }
  to   { transform: translateX(6%)  scaleY(1.1); }
}
#firefly-canvas { position: fixed; inset: 0; z-index: -1; pointer-events: none; }

/* ─────────────────────────────────────────────────────
   BACK TO TOP
───────────────────────────────────────────────────── */
.back-to-top {
  position: fixed; visibility: hidden; opacity: 0;
  right: 15px; bottom: 15px; z-index: 99999;
  background: var(--lavender);
  width: 40px; height: 40px;
  border-radius: 4px; transition: all 0.4s;
}
.back-to-top i { font-size: 24px; color: var(--bg); line-height: 0; }
.back-to-top:hover { background: var(--periwinkle); }
.back-to-top.active { visibility: visible; opacity: 1; }

/* ─────────────────────────────────────────────────────
   HEADER
───────────────────────────────────────────────────── */
#header {
  height: 90px;
  z-index: 997;
  transition: all 0.5s;
  background: rgba(13,8,24,0.85);
  backdrop-filter: blur(18px);
  box-shadow: 0 2px 20px rgba(179,136,235,0.12);
  border-bottom: 1px solid rgba(179,136,235,0.15);
}
#header .logo img { padding: 0; margin: 0; max-height: 80px; }
#main { margin-top: 72px; }

/* ─────────────────────────────────────────────────────
   NAVBAR — DESKTOP
───────────────────────────────────────────────────── */
.navbar { padding: 0; }
.navbar ul { margin: 0; padding: 0; display: flex; list-style: none; align-items: center; }
.navbar li { position: relative; }
.navbar a,
.navbar a:focus {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 0 10px 30px;
  font-family: 'Cinzel', serif; font-size: 13px; letter-spacing: .08em;
  color: rgba(240,230,246,0.75);
  white-space: nowrap; transition: 0.3s;
}
.navbar a:hover,
.navbar .active,
.navbar .active:focus,
.navbar li:hover > a { color: var(--pink); }

.navbar .dropdown ul {
  display: block; position: absolute; left: 14px; top: calc(100% + 30px);
  margin: 0; padding: 10px 0; z-index: 99; opacity: 0; visibility: hidden;
  background: rgba(13,8,24,0.95);
  box-shadow: 0 0 30px rgba(127,137,161,0.25); transition: 0.3s;
}
.navbar .dropdown ul li { min-width: 200px; }
.navbar .dropdown ul a { padding: 10px 20px; font-size: 14px; }
.navbar .dropdown ul a:hover,
.navbar .dropdown ul .active:hover,
.navbar .dropdown ul li:hover > a { color: var(--pink); }
.navbar .dropdown:hover > ul { opacity: 1; top: 100%; visibility: visible; }
.navbar .dropdown .dropdown ul { top: 0; left: calc(100% - 30px); visibility: hidden; }
.navbar .dropdown .dropdown:hover > ul { opacity: 1; top: 0; left: 100%; visibility: visible; }

@media (max-width: 1366px) {
  .navbar .dropdown .dropdown ul { left: -90%; }
  .navbar .dropdown .dropdown:hover > ul { left: -100%; }
}

/* ─────────────────────────────────────────────────────
   NAVBAR — MOBILE
───────────────────────────────────────────────────── */
.mobile-nav-toggle {
  background: none; border: none; padding: 0;
  color: var(--lavender); font-size: 28px; cursor: pointer;
  display: none; line-height: 0; transition: 0.5s;
  z-index: 9999;
}

@media (max-width: 991px) {
  .mobile-nav-toggle { display: block; }
  .navbar ul { display: none; }
}

#navbar.navbar-mobile {
  position: fixed; overflow: hidden;
  top: 0; right: 0; left: 0; bottom: 0;
  background: rgba(13,8,24,0.97);
  transition: 0.3s; z-index: 9990;
  isolation: isolate;
}
#navbar.navbar-mobile .mobile-nav-toggle {
  position: absolute; top: 15px; right: 15px;
  color: var(--pink);
}
#navbar.navbar-mobile ul {
  display: flex !important;
  flex-direction: column;
  position: absolute; top: 55px; right: 15px; bottom: 15px; left: 15px;
  padding: 10px 0;
  background: rgba(18,12,34,0.98);
  overflow-y: auto; transition: 0.3s;
  border-radius: 12px;
  border: 1px solid rgba(179,136,235,0.15);
}
#navbar.navbar-mobile a,
#navbar.navbar-mobile a:focus {
  padding: 12px 20px; font-size: 14px;
  color: rgba(240,230,246,0.8);
  display: block; width: 100%;
}
#navbar.navbar-mobile a:hover,
#navbar.navbar-mobile .active,
#navbar.navbar-mobile li:hover > a { color: var(--pink); }

/* ─────────────────────────────────────────────────────
   HERO
───────────────────────────────────────────────────── */
#hero {
  width: 100%; background: transparent;
  border-bottom: none;
  height: auto; min-height: calc(100vh - 72px);
  display: flex; align-items: center;
  padding: 60px 0;
  margin: 72px 0 -72px 0;
}
#hero h1 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-family: 'Cinzel', serif;
  background: linear-gradient(135deg, var(--pink) 0%, var(--lavender) 60%, var(--gold) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  text-align: left; line-height: 1.2; margin: 0;
}
#hero h2 {
  font-family: 'Nunito', sans-serif; font-style: italic;
  color: rgba(253,197,245,0.6);
  font-size: 1.05rem; text-align: left; margin: 12px 0 0;
}
#hero .btn-get-started {
  font-family: 'Cinzel', serif; font-size: .78rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .1em;
  color: var(--bg);
  background: linear-gradient(90deg, var(--pink) 0%, var(--lavender) 100%);
  box-shadow: 0 0 22px rgba(179,136,235,.45);
  border-radius: 999px; padding: 13px 32px;
  border: none; display: inline-block; margin-top: 28px;
  transition: transform .2s, box-shadow .2s;
}
#hero .btn-get-started:hover { transform: translateY(-2px); box-shadow: 0 0 35px rgba(253,197,245,.6); }

@keyframes up-down {
  0%   { transform: translateY(10px); }
  100% { transform: translateY(-10px); }
}
@media (max-width: 991px) {
  #hero { height: auto; }
  #hero .animated { animation: none; }
  #hero .hero-img { text-align: center; }
  #hero .hero-img img { width: 80%; }
}
@media (max-width: 768px) {
  #hero h1 { font-size: 28px; line-height: 36px; }
  #hero h2 { font-size: 18px; line-height: 24px; }
}
@media (max-height: 600px) { #hero { height: 120vh; } }

/* ─────────────────────────────────────────────────────
   ESTRELLA 3D
───────────────────────────────────────────────────── */
.nova-star {
  width: min(460px, 42vw);
  height: min(460px, 42vw);
  position: relative;
}
.nova-star::before {
  content: ''; position: absolute; inset: 10%; border-radius: 50%;
  background: radial-gradient(circle, rgba(179,136,235,.08) 0%, transparent 70%);
  animation: starAura 3.5s ease-in-out infinite; pointer-events: none;
}
@keyframes starAura {
  0%,100% { opacity: .5; transform: scale(1); }
  50%      { opacity: 1;  transform: scale(1.1); }
}
#star3d { width: 100%; height: 100%; }
@media (max-width: 991px) { .nova-star { width: min(280px,70vw); height: min(280px,70vw); margin: 0 auto; } }
@media (max-width: 575px)  { .nova-star { width: min(200px,60vw); height: min(200px,60vw); } }

/* ─────────────────────────────────────────────────────
   SECTIONS GENERAL
───────────────────────────────────────────────────── */
section { padding: 60px 0; overflow: hidden; }

.section-bg {
  background: rgba(179,136,235,0.03);
  border-top: 1px solid rgba(179,136,235,0.08);
  border-bottom: 1px solid rgba(179,136,235,0.08);
}

.section-title { text-align: center; padding-bottom: 30px; }
.section-title h2 {
  font-family: 'Cinzel', serif; font-size: 13px; font-weight: 700;
  letter-spacing: .2em; text-transform: uppercase;
  color: rgba(179,136,235,0.45);
  padding-bottom: 0; line-height: 1px; margin-bottom: 15px;
}
.section-title p {
  font-family: 'Cinzel', serif; font-size: 2rem; font-weight: 700;
  color: var(--pink);
  text-shadow: 0 0 30px rgba(253,197,245,.35);
  padding-bottom: 15px; margin-bottom: 15px; position: relative;
}
.section-title p::after {
  content: ''; position: absolute; display: block;
  width: 60px; height: 2px; background: var(--lavender);
  bottom: 0; left: calc(50% - 30px);
}

/* ─────────────────────────────────────────────────────
   ABOUT (¿Qué es Nova?)
───────────────────────────────────────────────────── */
#queesnova { background: transparent; }
#queesnova .about-img {
  background: rgba(179,136,235,0.04);
  border: 1px dashed rgba(179,136,235,0.2);
  border-radius: 20px; min-height: 300px;
  display: flex; align-items: center; justify-content: center;
  color: rgba(179,136,235,0.35); font-size: .85rem; font-style: italic;
}
#queesnova h3 { color: var(--lavender); font-family: 'Cinzel', serif; font-size: 1.8rem; font-weight: 700; }
#queesnova p  { color: rgba(240,230,246,0.72); line-height: 1.8; font-size: 15px; }
@media (max-width: 991px) { #queesnova .about-img img { max-width: 70%; } }
@media (max-width: 767px) { #queesnova .about-img img { max-width: 90%; } }

/* ─────────────────────────────────────────────────────
   SERVICES (Conceptos + Cómo Funciona)
───────────────────────────────────────────────────── */
.services { background: transparent; }
.services .icon-box {
  padding: 30px;
  position: relative; overflow: hidden;
  margin: 0 0 40px 0;
  background: linear-gradient(135deg, rgba(179,136,235,.07) 0%, rgba(128,147,241,.04) 50%, rgba(13,8,24,.65) 100%);
  border: 1px solid rgba(179,136,235,.2);
  border-radius: 20px;
  backdrop-filter: blur(16px);
  box-shadow: 0 0 30px rgba(179,136,235,.04), inset 0 1px 0 rgba(179,136,235,.1);
  color: var(--text);
  text-align: left;
  transition: border-color .3s, box-shadow .3s, transform .3s;
}
.services .icon-box::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(253,197,245,.3), transparent);
}
.services .icon-box:hover {
  border-color: rgba(179,136,235,.4);
  box-shadow: 0 0 40px rgba(179,136,235,.12), 0 8px 30px rgba(0,0,0,.3);
  transform: translateY(-5px);
}
.services .step-label {
  font-size: .62rem; text-transform: uppercase; letter-spacing: .15em;
  color: var(--sky); margin-bottom: 8px; display: block;
}
.services .title { font-family: 'Cinzel', serif; font-weight: 700; font-size: 1rem; margin-bottom: 10px; }
.services .title a { color: var(--gold); }
.services .title,
.services h4.title { color: var(--gold); }
.services .description { font-size: .87rem; line-height: 1.6; color: rgba(240,230,246,.72); margin-bottom: 0; }

/* ─────────────────────────────────────────────────────
   PANEL HERO / FORMULARIO
───────────────────────────────────────────────────── */
.nova-panel { max-width: 540px; }
.is-hidden { display: none !important; }

.nova-logo {
  width: min(380px, 100%); display: block;
  filter: drop-shadow(0 0 18px rgba(253,197,245,.45)) drop-shadow(0 0 60px rgba(179,136,235,.2));
  animation: logoPulse 4s ease-in-out infinite;
}
@keyframes logoPulse {
  0%,100% { filter: drop-shadow(0 0 18px rgba(253,197,245,.4))  drop-shadow(0 0 60px rgba(179,136,235,.15)); }
  50%      { filter: drop-shadow(0 0 30px rgba(253,197,245,.8))  drop-shadow(0 0 90px rgba(179,136,235,.4)); }
}

.nova-tagline { font-style: italic; font-size: 1rem; color: rgba(253,197,245,.6); margin-top: 12px; margin-bottom: 24px; }

.nova-form {
  width: 100%;
  background: linear-gradient(135deg, rgba(179,136,235,.07) 0%, rgba(128,147,241,.04) 50%, rgba(13,8,24,.65) 100%);
  border-radius: 24px; padding: 22px;
  border: 1px solid rgba(179,136,235,.2);
  backdrop-filter: blur(24px);
  box-shadow: 0 0 40px rgba(179,136,235,.04), inset 0 1px 0 rgba(179,136,235,.1);
}
.nova-label {
  font-size: .68rem; text-transform: uppercase; letter-spacing: .12em;
  color: rgba(179,136,235,.8); display: block; margin-bottom: 6px; font-weight: 700;
}
.nova-input {
  width: 100%; background: rgba(13,8,24,.7); border: 1px solid rgba(179,136,235,.16);
  padding: 10px 14px; border-radius: 14px; color: var(--text); outline: none;
  font-family: 'Nunito', sans-serif; font-size: .9rem;
  transition: border-color .25s, box-shadow .25s;
}
.nova-input option   { background: #120c22; color: var(--text); }
.nova-input::placeholder { color: rgba(240,230,246,.28); }
.nova-input:focus    { border-color: rgba(179,136,235,.55); box-shadow: 0 0 0 3px rgba(179,136,235,.08), 0 0 20px rgba(179,136,235,.1); }
.nova-textarea       { resize: none; min-height: 90px; }

.nova-swatches { display: flex; gap: 12px; align-items: center; padding: 6px 0 0; }
.nova-swatch {
  width: 22px; height: 22px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.2); cursor: pointer;
  transition: transform .15s, border-color .2s;
}
.nova-swatch:hover    { transform: scale(1.2); }
.nova-swatch.is-active { border-color: white; transform: scale(1.28); }

.nova-meta    { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; gap: 12px; }
.nova-counter { font-size: 11px; color: rgba(179,136,235,.55); }
.nova-inline-alert {
  font-size: 11px; padding: 5px 12px; border-radius: 999px;
  border: 1px solid rgba(255,228,146,.4); background: rgba(255,228,146,.08); color: var(--gold);
}
.nova-shake { animation: shake .25s ease-in-out 2; }
@keyframes shake {
  0%   { transform: translateX(0); }
  25%  { transform: translateX(-6px); }
  50%  { transform: translateX(6px); }
  75%  { transform: translateX(-4px); }
  100% { transform: translateX(0); }
}

/* ─────────────────────────────────────────────────────
   BOTONES
───────────────────────────────────────────────────── */
.nova-btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 13px 30px; text-transform: uppercase; letter-spacing: .1em;
  font-family: 'Cinzel', serif; font-size: .78rem; font-weight: 600;
  color: var(--bg); border: 0; border-radius: 999px; cursor: pointer;
  background: linear-gradient(90deg, var(--pink) 0%, var(--lavender) 100%);
  box-shadow: 0 0 22px rgba(179,136,235,.45), inset 0 1px 0 rgba(255,255,255,.3);
  transition: transform .2s, box-shadow .2s;
  position: relative; overflow: hidden;
}
.nova-btn::before {
  content: ''; position: absolute; top: -50%; left: -60%;
  width: 45%; height: 200%; background: rgba(255,255,255,.25);
  transform: skewX(-20deg); transition: left .45s;
}
.nova-btn:hover::before { left: 130%; }
.nova-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 35px rgba(253,197,245,.6), 0 0 80px rgba(179,136,235,.2), inset 0 1px 0 rgba(255,255,255,.3);
}
.nova-btn:active { transform: scale(.97); }
.nova-btn--small { padding: 10px 22px; font-size: .7rem; }
.nova-btn--ghost {
  background: transparent; color: var(--lavender);
  border: 1px solid rgba(179,136,235,.35);
  box-shadow: 0 0 10px rgba(179,136,235,.08);
}
.nova-btn--ghost::before { display: none; }
.nova-btn--ghost:hover {
  background: rgba(179,136,235,.07);
  border-color: rgba(179,136,235,.6);
  box-shadow: 0 0 22px rgba(179,136,235,.2);
}

/* ─────────────────────────────────────────────────────
   RESULTADO / CARD / LOADER
───────────────────────────────────────────────────── */
.nova-card__box {
  padding: 22px;
  background: linear-gradient(135deg, rgba(179,136,235,.07) 0%, rgba(128,147,241,.04) 50%, rgba(13,8,24,.7) 100%);
  border: 1px solid rgba(179,136,235,.22); backdrop-filter: blur(20px);
  border-radius: 22px;
  box-shadow: 0 0 30px rgba(179,136,235,.05), inset 0 1px 0 rgba(179,136,235,.12);
}
.nova-card__title {
  display: block; font-family: 'Cinzel', serif; font-size: 1.8rem;
  background: linear-gradient(90deg, var(--pink), var(--lavender));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  text-align: center; margin-bottom: 14px;
}
.nova-quote     { margin: 0; font-style: italic; color: rgba(240,230,246,.9); line-height: 1.65; }
.nova-card__info { margin-top: 16px; padding-top: 16px; border-top: 1px solid rgba(179,136,235,.12); font-size: .85rem; }
.nova-card__info p      { margin: 0 0 6px; color: rgba(240,230,246,.78); }
.nova-card__info strong { color: var(--lavender); }

.nova-loader { width: 64px; height: 64px; margin: 0 auto; position: relative; }
.nova-loader::before,
.nova-loader::after {
  content: ''; position: absolute; inset: 0;
  border-radius: 50%; border: 2px solid transparent;
  animation: loaderSpin 1.4s linear infinite;
}
.nova-loader::before { border-top-color: var(--pink); border-right-color: var(--pink); box-shadow: 0 0 16px rgba(253,197,245,.5); }
.nova-loader::after  { border-bottom-color: var(--lavender); border-left-color: var(--lavender); animation-direction: reverse; animation-duration: 1.1s; inset: 10px; }
@keyframes loaderSpin { to { transform: rotate(360deg); } }

/* ─────────────────────────────────────────────────────
   FOOTER
───────────────────────────────────────────────────── */
#footer {
  background: rgba(13,8,24,0.95);
  padding: 0 0 30px 0;
  color: rgba(240,230,246,.5);
  font-size: 14px;
  border-top: 1px solid rgba(179,136,235,.12);
}
#footer .footer-top { padding: 60px 0 30px 0; background: rgba(18,12,34,0.8); }
#footer .footer-top h4 { font-size: 16px; font-weight: bold; color: var(--text); padding-bottom: 12px; }
#footer .footer-top .footer-links ul { list-style: none; padding: 0; margin: 0; }
#footer .footer-top .footer-links ul li { padding: 10px 0; display: flex; align-items: center; }
#footer .footer-top .footer-links ul li:first-child { padding-top: 0; }
#footer .footer-top .footer-links ul a { color: rgba(240,230,246,.55); transition: 0.3s; display: inline-block; line-height: 1; }
#footer .footer-top .footer-links ul a:hover { color: var(--lavender); text-decoration: none; }
#footer .copyright { text-align: center; float: left; color: rgba(240,230,246,.35); }
#footer .credits   { float: right; text-align: center; font-size: 13px; color: rgba(240,230,246,.35); }
#footer .credits a { color: var(--lavender); }
@media (max-width: 575px) {
  #footer .copyright,
  #footer .credits { float: none; text-align: center; padding: 3px 0; }
}
