/* ════════════════════════════════════════════════
   styles.css — PlanetMC
   Combina: main.css + animations.css
   Eliminado: intro/loading screen, language switcher
   ════════════════════════════════════════════════ */

/* ════ CSS VARIABLES ════ */
:root {
  --bg:          #0d0d0d;
  --bg2:         #111111;
  --panel:       #1a1a1a;
  --panel2:      #222222;
  --border:      #333333;
  --border2:     #444444;
  --accent:      #5b9bd5;
  --accent2:     #3dba4e;
  --accent3:     #5b9bd5;
  --discord:     #5865F2;
  --java:        #e87c2a;
  --bedrock:     #3dba4e;
  --text:        #dddddd;
  --text-dim:    #888888;
  --text-bright: #ffffff;
  --mono:        'VT323', monospace;
  --head:        'Press Start 2P', monospace;
  --body:        'Rajdhani', sans-serif;
  --pixel-shadow: 2px 2px 0px #000000;
  --btn-shadow:   inset -2px -4px 0px rgba(0,0,0,0.5), inset 2px 2px 0px rgba(255,255,255,0.15);
}

/* ════ RESET ════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--body);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  image-rendering: pixelated;
}

/* ════ ACCESIBILIDAD ════ */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ════ BACKGROUND ════ */
.nebula { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.nebula::before {
  content: ''; position: absolute; width: 100%; height: 100%;
  background:
    linear-gradient(180deg, rgba(91,155,213,.03) 0%, transparent 30%),
    linear-gradient(0deg, rgba(61,186,78,.02) 0%, transparent 30%);
}
.nebula::after { display: none; }

.planet-deco,
.planet-deco-2,
.scanlines,
.destiny-grid { display: none; }

.dust-canvas { position: fixed; inset: 0; pointer-events: none; z-index: 0; }

/* ════ LAYOUT ════ */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
section { position: relative; z-index: 1; }

/* ════ NAV ════ */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 32px; height: 56px;
  background: #111111;
  border-bottom: 2px solid #333333;
  gap: 16px;
}
nav::before { display: none; }

.nav-logo {
  font-family: var(--head); font-size: .75rem;
  color: var(--text-bright); letter-spacing: 2px;
  text-shadow: var(--pixel-shadow);
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; flex-shrink: 0;
}
.nav-logo-img { width: 32px; height: 32px; object-fit: contain; flex-shrink: 0; image-rendering: pixelated; }
.nav-logo span { color: var(--accent); }

.nav-right { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

.nav-ticket-btn {
  font-family: var(--head); font-size: .5rem; letter-spacing: .5px;
  padding: 8px 14px;
  border: 2px solid #5865F2; background: #3a4199; color: #ffffff;
  text-decoration: none; white-space: nowrap; flex-shrink: 0;
  transition: filter .15s;
  display: flex; align-items: center; gap: 6px;
  box-shadow: var(--btn-shadow), 2px 2px 0px #000;
  text-shadow: 1px 1px 0px #000; cursor: pointer;
}
.nav-ticket-btn:hover  { filter: brightness(1.2); background: #4a51b9; }
.nav-ticket-btn:active { box-shadow: inset 2px 4px 0px rgba(0,0,0,.5); transform: translateY(1px); }

.nav-staff-btn {
  font-family: var(--head); font-size: .5rem; letter-spacing: .5px;
  padding: 8px 14px;
  border: 2px solid #3dba4e; background: #256b2e; color: #ffffff;
  text-decoration: none; white-space: nowrap; flex-shrink: 0;
  transition: filter .15s;
  display: flex; align-items: center; gap: 6px;
  box-shadow: var(--btn-shadow), 2px 2px 0px #000;
  text-shadow: 1px 1px 0px #000; cursor: pointer;
}
.nav-staff-btn:hover  { filter: brightness(1.2); background: #2e8a3a; }
.nav-staff-btn:active { box-shadow: inset 2px 4px 0px rgba(0,0,0,.5); transform: translateY(1px); }

.nav-toggle { display: none; background: none; border: none; color: var(--text-bright); font-size: 1.4rem; cursor: pointer; flex-shrink: 0; }

.nav-mobile-menu {
  display: none; flex-direction: column; gap: 6px;
  position: absolute; top: 56px; left: 0; right: 0;
  background: #111111;
  border-bottom: 2px solid #333333;
  padding: 12px;
}
.nav-mobile-menu.open { display: flex; }
.nav-mobile-menu a {
  font-family: var(--head); font-size: .5rem; letter-spacing: .5px;
  padding: 12px 14px;
  text-decoration: none; display: flex; align-items: center; gap: 8px;
  transition: filter .15s;
  box-shadow: 2px 2px 0px #000;
  text-shadow: 1px 1px 0px #000; color: #fff;
}
.nav-mobile-menu .mobile-ticket { border: 2px solid #5865F2; background: #3a4199; }
.nav-mobile-menu .mobile-ticket:hover { filter: brightness(1.2); }
.nav-mobile-menu .mobile-staff  { border: 2px solid #3dba4e; background: #256b2e; }
.nav-mobile-menu .mobile-staff:hover  { filter: brightness(1.2); }

/* ════ HERO ════ */
#inicio {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 100px 24px 60px;
}
.hero-inner { max-width: 860px; }

.hero-logo-img {
  width: 280px; height: 280px; object-fit: contain;
  image-rendering: pixelated;
  filter: drop-shadow(4px 4px 0px #000);
  margin: 0 auto 8px; display: block;
}
.hero-logo-fallback {
  width: 280px; height: 280px; margin: 0 auto 8px;
  display: flex; align-items: center; justify-content: center; position: relative;
}
.hero-logo-fallback .planet-big {
  width: 160px; height: 160px;
  background: linear-gradient(135deg, #5b9bd5, #3a6fa8);
  box-shadow: 4px 4px 0px #000, -2px -2px 0px rgba(255,255,255,.1);
  position: relative; z-index: 1;
}
.hero-logo-fallback .planet-ring {
  position: absolute; width: 220px; height: 220px;
  border: 4px solid rgba(91,155,213,.5);
  top: 50%; left: 50%; transform: translate(-50%,-50%);
  box-shadow: 2px 2px 0px #000;
}
.hero-logo-fallback .planet-ring2 {
  position: absolute; width: 260px; height: 260px;
  border: 2px solid rgba(91,155,213,.2);
  top: 50%; left: 50%; transform: translate(-50%,-50%);
}
.hero-logo-fallback .planet-label {
  position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%);
  font-family: var(--head); font-size: .8rem;
  color: var(--text-bright); text-shadow: var(--pixel-shadow);
  letter-spacing: 4px; white-space: nowrap;
}

.hero-sub {
  font-family: var(--mono);
  font-size: 1.2rem; color: var(--text-dim); margin-bottom: 32px; line-height: 1.7;
}
.hero-btns-wrap { display: flex; flex-direction: column; align-items: center; gap: 24px; }

/* ════ STATUS PILL ════ */
.ip-online-row { flex: 0 0 100%; display: flex; justify-content: center; margin-bottom: 4px; }
.ip-online-pill {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--head); font-size: .5rem; color: #3dba4e;
  border: 2px solid #3dba4e; background: rgba(61,186,78,.1);
  padding: 6px 18px; letter-spacing: 1px;
  box-shadow: 2px 2px 0px #000; text-shadow: 1px 1px 0px #000;
}
.ip-online-pill .blink {
  display: inline-block; width: 8px; height: 8px;
  background: #3dba4e; box-shadow: 1px 1px 0px #000;
}
.ip-maintenance-pill {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--head); font-size: .5rem; color: #ff4444;
  border: 2px solid #ff4444; background: rgba(255,68,68,.1);
  padding: 6px 18px; letter-spacing: 1px;
  box-shadow: 2px 2px 0px #000;
}
.ip-maintenance-pill .blink-red {
  display: inline-block; width: 8px; height: 8px;
  background: #ff4444; box-shadow: 1px 1px 0px #000;
}

/* ════ EDITION CARDS ════ */
.edition-cards-wrap { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; width: 100%; }
.edition-card {
  flex: 1; min-width: 280px; max-width: 380px;
  border: 2px solid; padding: 22px 24px 20px;
  position: relative; overflow: hidden;
  cursor: pointer; text-decoration: none;
  transition: filter .2s ease, transform .15s ease;
  display: flex; flex-direction: column; gap: 14px;
  box-shadow: 4px 4px 0px #000;
}
.edition-card::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,.04) 0%, transparent 60%);
  pointer-events: none;
}
.edition-card::after {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
}
.edition-card:hover  { filter: brightness(1.1); transform: translateY(-2px); }
.edition-card:active { transform: translateY(1px); box-shadow: 2px 2px 0px #000; }

.edition-card.java-card    { background: #1c1410; border-color: #8a5a2a; }
.edition-card.java-card::after    { background: var(--java); }
.edition-card.bedrock-card { background: #101c12; border-color: #2a6e38; }
.edition-card.bedrock-card::after { background: var(--bedrock); }
.edition-card.java-card:hover     { border-color: #e87c2a; }
.edition-card.bedrock-card:hover  { border-color: #3dba4e; }

.edition-card-header { display: flex; align-items: center; gap: 14px; }
.edition-card-icon-wrap {
  width: 64px; height: 64px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.edition-card-icon { width: 64px; height: 64px; object-fit: contain; image-rendering: pixelated; }
.edition-card-title {
  font-family: var(--head); font-size: .75rem;
  letter-spacing: 2px; text-shadow: var(--pixel-shadow);
}
.java-card    .edition-card-title { color: #e87c2a; }
.bedrock-card .edition-card-title { color: #3dba4e; }
.edition-card-sub {
  font-family: var(--mono); font-size: .85rem; color: var(--text-dim);
  letter-spacing: 2px; text-transform: uppercase; margin-top: 2px;
}

.platform-icons { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.platform-badge {
  display: flex; align-items: center; gap: 6px;
  font-family: var(--mono); font-size: .75rem; letter-spacing: 1px;
  color: var(--text-dim);
  background: rgba(255,255,255,.05); border: 1px solid #333333;
  padding: 5px 10px; transition: all .15s; box-shadow: 1px 1px 0px #000;
}
.platform-badge i { font-size: .9rem; }
.java-card    .platform-badge:hover { background: rgba(232,124,42,.15); border-color: #e87c2a; color: #e87c2a; }
.bedrock-card .platform-badge:hover { background: rgba(61,186,78,.12);  border-color: #3dba4e; color: #3dba4e; }
.platform-badge .fa-xbox        { color: #107c10; }
.platform-badge .fa-playstation { color: #003791; }
.platform-badge .fa-android     { color: #3ddc84; }
.platform-badge .fa-apple       { color: #a2aaad; }
.platform-badge .fa-windows     { color: #0078d4; }
.platform-badge .fa-linux       { color: #e8c170; }

.edition-card-ip {
  font-family: var(--mono); font-size: 1rem;
  background: rgba(0,0,0,.4); border: 1px solid #333333;
  padding: 10px 14px;
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.03);
}
.edition-card-ip .ip-val   { color: var(--accent); letter-spacing: 1px; }
.edition-card-ip .port-tag {
  font-size: .75rem; color: var(--text-dim); letter-spacing: 1px;
  background: rgba(255,255,255,.06); padding: 2px 8px; border: 1px solid #333;
}
.edition-card-ip .copy-icon {
  width: 16px; height: 16px; opacity: .4; cursor: pointer;
  transition: opacity .2s; flex-shrink: 0;
}
.edition-card-ip:hover .copy-icon { opacity: 1; }

/* ════ CTA CARDS ════ */
.hero-cta-cards { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero-cta-card {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  font-family: var(--head); letter-spacing: 1px;
  padding: 18px 28px; border: 2px solid;
  cursor: pointer; text-decoration: none;
  transition: filter .15s, transform .1s;
  position: relative; overflow: hidden; min-width: 180px;
  box-shadow: var(--btn-shadow), 3px 3px 0px #000;
  text-shadow: 1px 1px 0px #000;
}
.hero-cta-card::after { display: none; }
.hero-cta-card .card-icon { font-size: 1.4rem; margin-bottom: 4px; }
.hero-cta-card .card-name { font-size: .6rem; color: #fff; }
.hero-cta-card .card-desc { font-family: var(--mono); font-size: .75rem; letter-spacing: 1.5px; opacity: .7; text-transform: uppercase; }
.hero-cta-card:hover  { filter: brightness(1.2); transform: translateY(-2px); }
.hero-cta-card:active { transform: translateY(1px); box-shadow: 1px 1px 0px #000; }
.hero-cta-card.discord { background: #3a4199; border-color: #5865F2; color: #c8ccff; }
.hero-cta-card.shop    { background: #4a2a7a; border-color: #7c3aed; color: #c4a8ff; }
.hero-cta-card.wiki    { background: #1a4a2a; border-color: #3dba4e; color: #a0e8aa; }

/* ════ SURVIVAL FEATURES ════ */
.modes-section { padding: 60px 0 70px; }
.section-title {
  font-family: var(--head); font-size: 1rem; letter-spacing: 2px;
  color: var(--text-bright); text-shadow: var(--pixel-shadow);
  text-align: center; margin-bottom: 18px;
}
.section-intro {
  font-family: var(--mono); font-size: 1.05rem; line-height: 1.7;
  color: var(--text-dim); text-align: center;
  max-width: 760px; margin: 0 auto 36px;
}
.modes-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}
.mode-card {
  background: var(--panel); border: 2px solid var(--border);
  padding: 22px 20px 20px; box-shadow: 3px 3px 0px #000;
  position: relative; overflow: hidden;
  transition: filter .2s ease, transform .15s ease, border-color .2s ease;
}
.mode-card::after {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--accent);
}
.mode-card:hover { filter: brightness(1.08); transform: translateY(-2px); border-color: var(--accent); }
.mode-card-icon {
  font-size: 1.3rem; margin-bottom: 10px;
  display: block; color: var(--accent);
}
.mode-card h3 {
  font-family: var(--head); font-size: .7rem; letter-spacing: 1.5px;
  color: var(--accent); text-shadow: var(--pixel-shadow);
  margin-bottom: 10px;
}
.mode-card p {
  font-family: var(--body); font-size: .95rem; line-height: 1.6;
  color: var(--text);
}

/* ════ FOOTER ════ */
footer {
  position: relative; z-index: 1;
  border-top: 2px solid #333333;
  padding: 40px 40px 24px;
  display: flex; flex-wrap: wrap;
  justify-content: space-between; align-items: center; gap: 20px;
  background: #111111;
}
footer::before { display: none; }
.foot-logo {
  font-family: var(--head); font-size: .72rem;
  color: var(--text-bright); text-shadow: var(--pixel-shadow);
  letter-spacing: 2px; display: flex; align-items: center; gap: 10px; text-decoration: none;
}
.foot-logo-img { width: 32px; height: 32px; object-fit: contain; flex-shrink: 0; image-rendering: pixelated; }
.foot-logo span { color: var(--accent); }
.foot-social { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; justify-content: center; }
.foot-social a {
  color: var(--text-bright); font-size: 1.1rem; transition: color .15s, filter .15s;
  display: flex; align-items: center; justify-content: center;
  width: 22px; height: 22px;
}
.foot-social a:hover { color: var(--accent); }
.foot-social .kick-icon {
  font-family: var(--head); font-size: .85rem; font-weight: bold;
  text-shadow: var(--pixel-shadow); line-height: 1;
}
.foot-copy { font-family: var(--mono); font-size: .85rem; color: var(--text-dim); letter-spacing: 1px; }

/* ════ TOAST ════ */
.ip-toast {
  position: fixed; bottom: 30px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: #1a2a1a; border: 2px solid #3dba4e; color: #3dba4e;
  font-family: var(--head); font-size: .5rem;
  padding: 12px 28px;
  opacity: 0; transition: all .2s; pointer-events: none; z-index: 999;
  box-shadow: 4px 4px 0px #000; text-shadow: 1px 1px 0px #000;
  display: flex; align-items: center; gap: 8px;
}
.ip-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ════ DIVIDER — sin cuadrados de colores ════ */
.divider-mc {
  position: relative; height: 2px; margin: 0 40px;
  background: #222222; overflow: visible;
}
.divider-mc::before { display: none; }

/* ════ ANIMATIONS ════ */
@keyframes logoPulse {
  0%,100% { transform: scale(1);    filter: drop-shadow(4px 4px 0px #000); }
  50%      { transform: scale(1.04); filter: drop-shadow(4px 4px 0px #000) drop-shadow(0 0 24px rgba(91,155,213,.4)); }
}
@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-18px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes blink {
  0%,100% { opacity: 1;  }
  50%      { opacity: .2; }
}
@keyframes blinkRed {
  0%,100% { opacity: 1;   }
  50%      { opacity: .15; }
}

.hero-logo-img,
.hero-logo-fallback   { animation: fadeDown .6s ease both, logoPulse 4s ease-in-out 1s infinite; }
.hero-sub             { animation: fadeDown .7s .2s ease both; }
.hero-btns-wrap       { animation: fadeDown .7s .3s ease both; }

.ip-online-pill .blink          { animation: blink    1.4s infinite; }
.ip-maintenance-pill .blink-red { animation: blinkRed 1s   infinite; }

/* ════ SCROLL REVEAL ════ */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ════ RESPONSIVE ════ */
@media (max-width: 768px) {
  nav { padding: 0 16px; }
  .nav-right { display: none; }
  .nav-toggle { display: block; }
  footer { flex-direction: column; text-align: center; padding: 30px 20px; }
  .hero-logo-img, .hero-logo-fallback { width: 200px; height: 200px; }
  .hero-cta-cards { flex-direction: column; align-items: stretch; }
  .hero-cta-card  { min-width: unset; }
  .edition-cards-wrap { flex-direction: column; align-items: center; }
  .edition-card   { max-width: 100%; }
}
@media (max-width: 480px) {
  .hero-cta-card { padding: 14px 16px; }
  .platform-icons { gap: 6px; }
  .platform-badge { font-size: .7rem; padding: 4px 8px; }
  .edition-card { min-width: 0; width: 100%; }
  .container { padding: 0 16px; }
  #inicio { padding: 90px 16px 50px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
