/* ============================================================
   BOSÓN — Tema Interestelar
   Paleta: dorado-ámbar cósmico / negro absoluto / polvo estelar
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&family=Rajdhani:wght@300;400;500;600&display=swap');

/* === VARIABLES === */
:root {
    --void:           #00000a;
    --deep-space:     #020408;
    --nebula-dark:    #0a1020;
    --gold:           #c8a96e;
    --gold-bright:    #e8c27a;
    --gold-dim:       #8a6e3e;
    --dust:           #b8956a;
    --star-warm:      #f0e8d8;
    --star-cold:      #d4e8ff;
    --accretion:      #ff8c00;
    --panel-bg:       rgba(6, 10, 20, 0.88);
    --border:         rgba(200, 169, 110, 0.22);
    --border-hover:   rgba(200, 169, 110, 0.6);
    --glow:           rgba(200, 169, 110, 0.15);
    --glow-strong:    rgba(200, 169, 110, 0.35);
    --text-primary:   #f0e8d8;
    --text-secondary: rgba(200, 169, 110, 0.55);
    --text-muted:     rgba(180, 160, 120, 0.35);
}

/* === RESET === */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* === BASE === */
body.espacio {
    font-family: 'Rajdhani', sans-serif;
    background: var(--void);
    color: var(--text-primary);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* === FONDO DE ESTRELLAS === */
.estrellas {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background:
        radial-gradient(1px 1px at  7%  12%, rgba(240,232,216,0.9) 0%, transparent 100%),
        radial-gradient(1px 1px at 14%  68%, rgba(212,232,255,0.7) 0%, transparent 100%),
        radial-gradient(2px 2px at 22%  34%, rgba(240,232,216,0.6) 0%, transparent 100%),
        radial-gradient(1px 1px at 31%  80%, rgba(212,232,255,0.8) 0%, transparent 100%),
        radial-gradient(1px 1px at 43%  22%, rgba(240,232,216,0.5) 0%, transparent 100%),
        radial-gradient(2px 2px at 52%  57%, rgba(200,169,110,0.7) 0%, transparent 100%),
        radial-gradient(1px 1px at 61%   9%, rgba(212,232,255,0.6) 0%, transparent 100%),
        radial-gradient(1px 1px at 73%  45%, rgba(240,232,216,0.8) 0%, transparent 100%),
        radial-gradient(2px 2px at 82%  71%, rgba(200,169,110,0.5) 0%, transparent 100%),
        radial-gradient(1px 1px at 88%  28%, rgba(212,232,255,0.7) 0%, transparent 100%),
        radial-gradient(1px 1px at 96%  88%, rgba(240,232,216,0.6) 0%, transparent 100%),
        radial-gradient(1px 1px at  5%  95%, rgba(212,232,255,0.5) 0%, transparent 100%),
        radial-gradient(2px 2px at 36%  49%, rgba(240,232,216,0.4) 0%, transparent 100%),
        radial-gradient(1px 1px at 67%  93%, rgba(200,169,110,0.6) 0%, transparent 100%),
        radial-gradient(1px 1px at 79%  16%, rgba(212,232,255,0.8) 0%, transparent 100%);
    background-size: 800px 600px;
    animation: stardrift 180s linear infinite;
}

.estrellas::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(1px 1px at 18%  42%, rgba(240,232,216,0.5) 0%, transparent 100%),
        radial-gradient(1px 1px at 27%   8%, rgba(200,169,110,0.4) 0%, transparent 100%),
        radial-gradient(2px 2px at 48%  76%, rgba(212,232,255,0.6) 0%, transparent 100%),
        radial-gradient(1px 1px at 59%  33%, rgba(240,232,216,0.7) 0%, transparent 100%),
        radial-gradient(1px 1px at 71%  61%, rgba(200,169,110,0.5) 0%, transparent 100%),
        radial-gradient(1px 1px at 84%  19%, rgba(212,232,255,0.6) 0%, transparent 100%),
        radial-gradient(2px 2px at 93%  54%, rgba(240,232,216,0.4) 0%, transparent 100%),
        radial-gradient(1px 1px at  3%  72%, rgba(200,169,110,0.5) 0%, transparent 100%),
        radial-gradient(1px 1px at 39%  91%, rgba(212,232,255,0.7) 0%, transparent 100%);
    background-size: 1100px 800px;
    animation: stardrift 260s linear infinite reverse;
    opacity: 0.7;
}

@keyframes stardrift {
    from { transform: translateY(0); }
    to   { transform: translateY(-600px); }
}

/* === NEBULOSA === */
.nebulosa {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background:
        radial-gradient(ellipse 70% 50% at 10% 50%,  rgba(160, 80,  0, 0.14) 0%, transparent 60%),
        radial-gradient(ellipse 50% 70% at 90% 30%,  rgba(20,  50, 120, 0.16) 0%, transparent 60%),
        radial-gradient(ellipse 40% 35% at 50% 90%,  rgba(100, 40,  0, 0.10) 0%, transparent 55%),
        radial-gradient(ellipse 60% 60% at 75% 65%,  rgba(10,  20,  60, 0.18) 0%, transparent 55%),
        radial-gradient(ellipse 80% 40% at 50%  0%,  rgba(5,   8,  25, 0.50) 0%, transparent 70%);
    animation: nebulaShift 25s ease-in-out infinite alternate;
}

@keyframes nebulaShift {
    0%   { opacity: 0.65; transform: scale(1);    }
    100% { opacity: 1.00; transform: scale(1.06); }
}

/* === HEADER === */
.header-espacial {
    background: rgba(4, 7, 16, 0.85);
    backdrop-filter: blur(16px) saturate(1.3);
    border-bottom: 1px solid var(--border);
    position: relative;
    z-index: 100;
    box-shadow: 0 1px 40px rgba(200, 169, 110, 0.08);
}

.header-espacial::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    opacity: 0.4;
}

.nav-espacial {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0.9rem 2.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* === LOGO === */
.logo h1 {
    font-family: 'Orbitron', monospace;
    font-size: 2rem;
    font-weight: 900;
    color: var(--gold-bright);
    letter-spacing: 0.35em;
    text-shadow: 0 0 20px rgba(232, 194, 122, 0.45);
    background: none;
    -webkit-text-fill-color: unset;
}

.tagline {
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.62rem;
    font-weight: 300;
    color: var(--text-muted);
    letter-spacing: 0.25em;
    text-transform: uppercase;
    display: block;
    margin-top: 0.1rem;
}

/* === NAV === */
.menu {
    display: flex;
    list-style: none;
    gap: 0.3rem;
    align-items: center;
}

.menu a {
    color: rgba(200, 169, 110, 0.6);
    text-decoration: none;
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    padding: 0.5rem 1rem;
    border-radius: 2px;
    border: 1px solid transparent;
    transition: color 0.25s, border-color 0.25s, background 0.25s, box-shadow 0.25s;
    position: relative;
}

.menu a:hover {
    color: var(--gold-bright);
    border-color: rgba(200, 169, 110, 0.2);
    background: rgba(200, 169, 110, 0.05);
    box-shadow: 0 0 16px rgba(200, 169, 110, 0.08);
}

.menu a::before {
    content: '';
    position: absolute;
    bottom: 0; left: 50%;
    transform: translateX(-50%);
    width: 0; height: 1px;
    background: var(--gold);
    transition: width 0.3s ease;
}

.menu a:hover::before { width: 70%; }

.btn-registro {
    background: transparent !important;
    border: 1px solid rgba(200, 169, 110, 0.35) !important;
    color: var(--gold-bright) !important;
}

.btn-registro:hover {
    background: rgba(200, 169, 110, 0.08) !important;
    box-shadow: 0 0 20px rgba(200, 169, 110, 0.18) !important;
}

.admin-link {
    border-color: rgba(255, 160, 40, 0.4) !important;
    color: rgba(255, 180, 60, 0.85) !important;
}

.admin-link:hover {
    color: #ffd080 !important;
    border-color: rgba(255, 180, 60, 0.6) !important;
}

/* === HERO === */
.hero-espacial {
    min-height: 82vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1280px;
    margin: 0 auto;
    padding: 3rem 2.5rem;
    position: relative;
    z-index: 2;
}

.hero-content { flex: 1; }

.hero-content h2 {
    font-family: 'Orbitron', monospace;
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 1.2rem;
    color: var(--star-warm);
    letter-spacing: 0.04em;
    text-shadow: 0 0 40px rgba(200, 169, 110, 0.2);
}

.resaltado {
    color: var(--gold-bright);
    font-size: 3.6rem;
    display: inline-block;
    text-shadow: 0 0 40px rgba(232, 194, 122, 0.5);
    background: linear-gradient(135deg, #e8c27a, #c8a96e, #f0d898);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content p {
    font-size: 1.1rem;
    font-weight: 300;
    color: rgba(200, 169, 110, 0.55);
    margin-bottom: 2.5rem;
    letter-spacing: 0.06em;
    line-height: 1.7;
    max-width: 520px;
}

.hero-buttons { display: flex; gap: 1rem; flex-wrap: wrap; }

.btn-primario, .btn-secundario {
    padding: 0.85rem 2rem;
    border-radius: 2px;
    text-decoration: none;
    font-family: 'Orbitron', monospace;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primario {
    background: transparent;
    border: 1px solid rgba(200, 169, 110, 0.5);
    color: var(--gold-bright);
    box-shadow: 0 0 20px rgba(200, 169, 110, 0.12);
}

.btn-primario::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(200,169,110,0.14), rgba(232,194,122,0.07));
    transform: translateX(-100%);
    transition: transform 0.4s cubic-bezier(0.16,1,0.3,1);
}

.btn-primario:hover::before { transform: translateX(0); }

.btn-primario:hover {
    border-color: var(--gold);
    box-shadow: 0 0 40px rgba(200, 169, 110, 0.28);
    color: #fff8e8;
    transform: translateY(-2px);
}

.btn-secundario {
    border: 1px solid rgba(200, 169, 110, 0.2);
    color: rgba(200, 169, 110, 0.5);
    background: transparent;
}

.btn-secundario:hover {
    border-color: rgba(200, 169, 110, 0.4);
    color: var(--gold);
    background: rgba(200, 169, 110, 0.04);
}

/* === PLANETA FLOTANTE === */
.planeta-flotante {
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 32%, #e8c060 0%, #b87820 35%, #6a3a00 70%, #2a1200 100%);
    box-shadow:
        0 0 80px rgba(200, 140, 30, 0.3),
        0 0 160px rgba(200, 120, 0, 0.15),
        inset -30px -20px 60px rgba(0,0,0,0.5);
    animation: flotar 12s ease-in-out infinite alternate;
    position: relative;
    flex-shrink: 0;
    margin-left: 3rem;
}

.planeta-flotante::before {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 340px; height: 100px;
    border: 1px solid rgba(200, 160, 60, 0.18);
    border-radius: 50%;
    animation: diskOrbit 30s linear infinite;
    box-shadow: 0 0 20px rgba(200, 140, 30, 0.06);
}

.planeta-flotante::after {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 380px; height: 120px;
    border: 1px solid rgba(200, 160, 60, 0.09);
    border-radius: 50%;
    animation: diskOrbit 45s linear infinite reverse;
}

@keyframes flotar {
    0%   { transform: translateY(0) rotate(0deg);   }
    100% { transform: translateY(-24px) rotate(4deg); }
}

@keyframes diskOrbit {
    from { transform: translate(-50%, -50%) rotateX(70deg) rotate(0deg); }
    to   { transform: translate(-50%, -50%) rotateX(70deg) rotate(360deg); }
}

/* === SECCIONES === */
.titulo-seccion {
    font-family: 'Orbitron', monospace;
    text-align: center;
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    margin: 4rem 0 2.5rem;
    color: var(--gold-bright);
    text-shadow: 0 0 20px rgba(232, 194, 122, 0.3);
    position: relative;
}

.titulo-seccion::after {
    content: '';
    display: block;
    width: 60px; height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    margin: 0.8rem auto 0;
    opacity: 0.6;
}

.seccion-novedades, .seccion-proyectos {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2.5rem 3rem;
    position: relative;
    z-index: 2;
}

/* === GRIDS === */
.grid-novedades, .grid-proyectos {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

/* === TARJETAS === */
.tarjeta-novedad, .tarjeta-proyecto {
    background: var(--panel-bg);
    backdrop-filter: blur(14px) saturate(1.2);
    border: 1px solid var(--border);
    border-radius: 3px;
    padding: 1.6rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s;
    position: relative;
    overflow: hidden;
}

.tarjeta-novedad::before, .tarjeta-proyecto::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(200,169,110,0.4), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.tarjeta-novedad::after, .tarjeta-proyecto::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(200,169,110,0.04) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.4s;
    pointer-events: none;
}

.tarjeta-novedad:hover, .tarjeta-proyecto:hover {
    transform: translateY(-6px);
    border-color: rgba(200, 169, 110, 0.38);
    box-shadow:
        0 12px 40px rgba(0,0,0,0.5),
        0 0 30px rgba(200,169,110,0.1);
}

.tarjeta-novedad:hover::before, .tarjeta-proyecto:hover::before { opacity: 1; }
.tarjeta-novedad:hover::after,  .tarjeta-proyecto:hover::after  { opacity: 1; }

.tarjeta-novedad h3, .tarjeta-proyecto h3 {
    font-family: 'Orbitron', monospace;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--star-warm);
    margin-bottom: 0.7rem;
}

.tarjeta-novedad p, .tarjeta-proyecto p {
    font-size: 0.9rem;
    font-weight: 300;
    color: rgba(200, 169, 110, 0.45);
    line-height: 1.65;
    letter-spacing: 0.02em;
}

.fecha-espacial {
    font-family: 'Orbitron', monospace;
    font-size: 0.6rem;
    letter-spacing: 0.2em;
    color: rgba(200, 169, 110, 0.4);
    text-transform: uppercase;
    margin-bottom: 0.7rem;
    display: block;
}

/* === PROYECTOS === */
.proyecto-imagen {
    height: 180px;
    margin-bottom: 1.2rem;
    border-radius: 2px;
    overflow: hidden;
    border: 1px solid rgba(200, 169, 110, 0.1);
}

.proyecto-imagen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(0.7) brightness(0.85);
    transition: filter 0.3s;
}

.tarjeta-proyecto:hover .proyecto-imagen img {
    filter: saturate(0.9) brightness(1);
}

.imagen-placeholder {
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 40% 40%, rgba(80,50,10,0.6), rgba(4,7,16,0.9));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    opacity: 0.7;
}

.area-badge {
    display: inline-block;
    padding: 0.2rem 0.7rem;
    background: rgba(200, 169, 110, 0.08);
    border: 1px solid rgba(200, 169, 110, 0.2);
    border-radius: 2px;
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(200, 169, 110, 0.7);
    margin-bottom: 0.6rem;
}

.proyecto-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1.2rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(200, 169, 110, 0.08);
}

.tipo {
    padding: 0.2rem 0.7rem;
    border-radius: 2px;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.tipo.gratuito {
    background: rgba(80, 160, 80, 0.08);
    color: rgba(100, 200, 100, 0.7);
    border: 1px solid rgba(80, 160, 80, 0.2);
}

.tipo.pago {
    background: rgba(200, 169, 110, 0.06);
    color: rgba(200, 169, 110, 0.6);
    border: 1px solid rgba(200, 169, 110, 0.18);
}

.btn-ver {
    padding: 0.35rem 0.9rem;
    background: transparent;
    border: 1px solid rgba(200, 169, 110, 0.22);
    color: rgba(200, 169, 110, 0.6);
    text-decoration: none;
    border-radius: 2px;
    font-family: 'Orbitron', monospace;
    font-size: 0.6rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.btn-ver:hover {
    border-color: rgba(200, 169, 110, 0.5);
    color: var(--gold-bright);
    background: rgba(200, 169, 110, 0.06);
    box-shadow: 0 0 14px rgba(200, 169, 110, 0.1);
}

/* === FOOTER === */
.footer-espacial {
    background: rgba(2, 4, 10, 0.92);
    backdrop-filter: blur(12px);
    border-top: 1px solid var(--border);
    padding: 2rem 2.5rem;
    margin-top: 5rem;
    position: relative;
    z-index: 2;
}

.footer-espacial::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    opacity: 0.3;
}

.footer-content {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-content p {
    font-size: 0.68rem;
    letter-spacing: 0.15em;
    color: var(--text-muted);
    font-weight: 300;
}

.redes-sociales { display: flex; gap: 0.8rem; }

.social-icon {
    width: 36px; height: 36px;
    background: rgba(200, 169, 110, 0.04);
    border: 1px solid rgba(200, 169, 110, 0.15);
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 1rem;
    color: rgba(200, 169, 110, 0.4);
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: rgba(200, 169, 110, 0.08);
    border-color: rgba(200, 169, 110, 0.4);
    color: var(--gold-bright);
    box-shadow: 0 0 14px rgba(200, 169, 110, 0.15);
    transform: translateY(-2px);
}

/* === RESPONSIVE === */
@media (max-width: 900px) {
    .nav-espacial  { flex-direction: column; gap: 1rem; padding: 1rem 1.5rem; }
    .menu          { flex-wrap: wrap; justify-content: center; }
    .hero-espacial { flex-direction: column; text-align: center; padding: 2rem 1.5rem; }
    .hero-content p { max-width: 100%; }
    .hero-content h2 { font-size: 2rem; }
    .resaltado     { font-size: 2.4rem; }
    .hero-buttons  { justify-content: center; }
    .planeta-flotante { width: 200px; height: 200px; margin: 2.5rem auto 0; }
    .seccion-novedades, .seccion-proyectos { padding: 0 1.5rem 2rem; }
    .footer-content { flex-direction: column; gap: 1.2rem; text-align: center; }
}