:root {
    --text: #f7fbf8; 
    --muted: #c8d7d2; 
    --accent: #67d7be; 
    --accent-2: #efca72; /* Dorado */
}

* { box-sizing: border-box; }

body { 
    margin: 0; 
    background: #020302; 
    color: var(--text); 
    font-family: 'Inter', sans-serif; 
    overflow-x: hidden; 
}

/* --- HEADER --- */
.topbar { 
    position: absolute; 
    width: 100%; 
    display: flex; 
    justify-content: space-between; 
    padding: 20px 50px; 
    z-index: 100; 
}

.brand { font-weight: 900; text-decoration: none; color: inherit; }
.nav a { color: var(--muted); text-decoration: none; font-weight: 700; margin-left: 20px; transition: color 0.3s; }
.nav a:hover { color: var(--accent); }

/* --- SISTEMA PLANETARIO --- */
.planet-system { 
    position: relative; 
    width: 100%; 
    height: 100vh; 
    min-height: 600px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    overflow: visible; /* Permite que la tarjeta centrada se vea completa */
}

.center-logo { 
    position: absolute; 
    width: 55vmin; 
    height: 55vmin; 
    margin-top: -10vh; 
    z-index: 1; 
    pointer-events: none; 
}

.center-world { 
    position: absolute; 
    width: 38%; 
    left: 31%; 
    top: 31%; 
    /* Capa 1 dentro del centro (por debajo del anillo) */
  z-index: 1; 
    animation: spinWorld 24s linear infinite; 
}

/* YA ESTO FUNCIONA, NO TOCAR - Sincronización Base/Mundo */
.center-base,
.center-world {
  position: absolute;
  object-fit: contain;
  display: block;
}

.center-base {
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
}

.orbit { 
    position: absolute; 
    width: 72vmin; 
    height: 72vmin; 
    margin-top: -10vh; 
    z-index: 3; 
}

.orbit-main { animation: orbitSystem 95s linear infinite; }

/* --- SATÉLITES --- */
.satellite { 
    position: absolute; 
    width: 18vmin; 
    height: 18vmin; 
    transform: translate(-50%, -50%); 
    animation: keepReadable 95s linear infinite reverse; 
    z-index: 10; 
    pointer-events: auto; 
    overflow: visible; 
}

.satellite img { width: 100%; transition: transform 0.3s; }

/* PODER TOTAL AL HACER HOVER: Salta al frente de todos los planetas */
.satellite:hover { 
    z-index: 2000 !important; 
}

.satellite:hover img { transform: scale(1.1); }

/* --- POSICIONES ORBITALES --- */
.sat-1 { left: 50%; top: 0%; } 
.sat-2 { left: 85%; top: 15%; } 
.sat-3 { left: 100%; top: 50%; }
.sat-4 { left: 85%; top: 85%; } 
.sat-5 { left: 50%; top: 100%; } 
.sat-6 { left: 15%; top: 85%; }
.sat-7 { left: 0%; top: 50%; } 
.sat-8 { left: 15%; top: 15%; }

/* ============================================================
   TARJETA PREMIUM COMPACTA (Sustituye el bloque anterior)
   ============================================================ */

.premium-card {
    position: absolute; 
    top: 50%; left: 50%; 
    transform: translate(-50%, -50%) scale(0.8);
    
    width: 260px; /* Más estrecha */
    background: rgba(255, 255, 255, 0.98); 
    border: 2px solid #efca72; 
    border-radius: 12px; 
    padding: 15px; /* Menos aire interno */
    
    text-align: center; 
    opacity: 0; 
    visibility: hidden;
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); 
    z-index: 4000;
    box-shadow: 0 0 40px rgba(0,0,0,0.8);
}

/* Espacio mínimo entre elementos para que no crezca sola */
.premium-card h3 { 
    color: #000 !important; 
    margin: 0 0 5px 0; /* Casi pegado al texto */
    font-size: 1.1rem; 
    line-height: 1.2;
    font-weight: 900;
}

.premium-card p { 
    color: #333 !important; 
    font-size: 0.85rem; 
    margin: 0 0 12px 0; /* Espacio justo para el botón */
    line-height: 1.3;
}

.btn-visitar {
    display: inline-block;
    background: #000;
    color: #efca72;
    padding: 6px 16px; /* Botón más pequeño */
    border-radius: 5px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.85rem;
    border: 1px solid #efca72;
}

/* Mostrar al pasar el mouse */
.satellite:hover .premium-card { 
    opacity: 1; 
    visibility: visible; 
    pointer-events: auto;
    transform: translate(-50%, -50%) scale(1); 
}

/* --- SECCIONES INFERIORES --- */
.contact { 
    position: relative; 
    z-index: 3; 
    margin-top: -40px; 
    text-align: center; 
    padding: 60px 20px; 
}

.energia-visual img { 
    max-width: 640px; 
    width: 100%; 
    mix-blend-mode: screen; 
    opacity: 0.9;
}

.eyebrow { color: var(--accent); font-weight: 900; text-transform: uppercase; font-size: 0.8rem; margin-bottom: 10px; }

.site-footer { 
    padding: 40px; 
    text-align: center; 
    color: var(--muted); 
    font-size: 0.85rem; 
    border-top: 1px solid rgba(255,255,255,0.05);
}

/* --- ANIMACIONES --- */
@keyframes spinWorld { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes orbitSystem { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes keepReadable { 
    from { transform: translate(-50%, -50%) rotate(0deg); } 
    to { transform: translate(-50%, -50%) rotate(360deg); } 
}
.nav a {
    text-transform: uppercase !important; /* Esto obliga a que sea MAYÚSCULA siempre */
    letter-spacing: 1px; /* Le da un toque más elegante y profesional */
    font-weight: 800;
}

/* 1. Definición: Solo pulsación de luz y tamaño */
@keyframes pulsoEnergia {
    0%, 100% { 
        filter: brightness(1) contrast(1);
        transform: scale(1);
        opacity: 0.8;
    }
    50% { 
        filter: brightness(1.4) contrast(1.2); /* La luz nace desde adentro */
        transform: scale(1.04); /* Crece apenas un poco, sin saltar */
        opacity: 1;
    }
}

/* 2. Aplicación quirúrgica a la imagen */
.energia-visual img {
    width: 100% !important;
    max-width: 420px !important;
    margin: 0 auto !important;
    display: block !important;
    
    /* MAGIA: Esto hace que el negro sea invisible y la luz pulse */
    mix-blend-mode: screen; 
    animation: pulsoEnergia 5s ease-in-out infinite;
    pointer-events: none; /* Para que no interfiera con los clics */
}

.energia-visual img {
    /* ... lo que ya tenías ... */
    position: relative;
    left: -15px; /* Empuja la imagen 15px hacia la izquierda */
}
/* --- RESPONSIVE MÓVIL --- */
@media (max-width: 768px) {
    .topbar { padding: 20px; }
    .orbit, .center-logo { width: 75vw; height: 87vw; margin-top: -48vh; }
    .satellite { width: 24vw; height: 24vw; }
    .premium-card { width: 60vw; padding: 20px; }
}
@media (max-width: 768px) {
    /* Solo movemos la sección de la energía, sin tocar lo demás */
    .contact {
        margin-top: -380px !important; /* Jala el fuego hacia la órbita */
        position: relative;
        z-index: 1; /* Se queda detrás de los satélites para no taparlos */
        display: block !important;
    }

    .energia-visual img {
        width: 100% !important;
        max-width: 420px !important;
        margin: 0 auto !important;
        display: block !important;
    }
}