/* ---- Variables globales ---- */
:root {
  --color-primary: #2196f3; /* Azul principal */
  --color-primary-dark: #1976d2;
  --color-bg: #000;
  --color-card: #141414;
  --font-family-base: 'Poppins', Arial, sans-serif;
}

/* ---- Reset básico ---- */
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-family-base);
  background: var(--color-bg) url('https://www.revoluciong.com.ar/assets/img/inicio-fondo.png') no-repeat center center fixed;
  background-size: cover;
  color: #fff;
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }

/* ---- Loader ---- */
.loader {
  position: fixed; inset: 0; display: flex; align-items: center; justify-content: center;
  background: #141414; z-index: 9999;
}
.logocarga {
  width: 120px; height: 120px;
  background: url('https://www.revoluciong.com.ar/assets/img/logorg.png') center/contain no-repeat;
  animation: spin 2s linear infinite;
}
@keyframes spin { from { transform: rotate(0deg) } to { transform: rotate(360deg) } }

/* ---- Top bar ---- */
.topbar {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
  display: flex; justify-content: space-between; align-items: center;
  padding: .4rem 1.5rem; font-weight: 600; font-size: .9rem;
  background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  border-radius: 0;
  box-shadow: 0 2px 8px #0008;
  min-height: 56px;
}
.topbar > div:first-child {
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 1px;
}
.topbar .social {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.topbar .social a {
  color: #fff;
  font-size: 1.25rem;
  transition: color 0.2s;
}
.topbar .social a:hover {
  color: var(--color-primary-dark);
}
@media (max-width: 600px) {
  .topbar {
    flex-direction: column;
    align-items: flex-start;
    padding: .4rem .7rem;
    min-height: unset;
  }
  .topbar .social {
    margin-top: .3rem;
    gap: .7rem;
  }
}

/* ---- Logo y navbar ---- */
.logo-wrapper { margin-top: 80px; text-align: center; padding: 1.2rem 0; border-bottom: 2px solid var(--color-primary); }
.logo-wrapper img { max-width: 240px; }

.navbar {
  position: sticky; top: 55px; z-index: 900;
  display: flex; justify-content: center; gap: 2rem;
  padding: .8rem 0; background: #111; border-bottom: 2px solid var(--color-primary);
}
.navbar a { font-weight: 600; letter-spacing: .5px; transition: color .2s; }
.navbar a:hover { color: var(--color-primary); }

/* ---- Slider principal ---- */
.main-slider {
  max-width: 1100px;
  margin: 2rem auto;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 24px #000a;
  height: 400px;
  padding: 0;
}
.main-slider .swiper-slide {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: stretch;
  justify-content: stretch;
  padding: 0;
  margin: 0;
}
.main-slider .swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  margin: 0;
  padding: 0;
}

/* ---- Barra informativa ---- */
.banner-info { max-width: 1100px; margin: 1rem auto; padding: .5rem 1rem; font-size: .9rem; text-align: center;
  border: 2px solid var(--color-primary); border-radius: 30px; }

/* ---- Secciones genéricas ---- */
section { max-width: 1100px; margin: 3rem auto; }
.section-title { font-size: 2.2rem; color: var(--color-primary); margin-bottom: 1.2rem; text-transform: uppercase; text-align: center; }

/* ---- Noticias ---- */
.news-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 1.5rem; }
.news-card { background: var(--color-card); border: 2px solid var(--color-primary); border-radius: 12px; overflow: hidden; }
.news-card img { width: 100%; height: auto; }
.news-card h3 { padding: 1rem; font-size: 1.4rem; }

/* ---- Accesos rápidos y grids reutilizables ---- */
.quick-grid { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.quick-card { flex: 1 1 280px; height: 150px; background: url('https://www.revoluciong.com.ar/assets/img/fondosinuso.png') center/cover;
  border: 2px solid var(--color-primary); border-radius: 16px; display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; font-weight: 700; text-shadow: 0 0 5px #000; }

/* ---- Servidores ---- */
.servers-section { position: relative; }
.servers-label { position: absolute; left: -60px; top: 80%; transform: rotate(-90deg) translateY(-50%);
  transform-origin: left top; font-size: 2rem; font-weight: 800; letter-spacing: 2px; color: #fff; }
.serverSwiper {
  padding: 2rem 0 3rem 0;
}
.serverSwiper .swiper-slide {
  display: flex;
  justify-content: center;
  align-items: stretch;
  height: auto;
}
.cajita {
  background: #181c24;
  border-radius: 10px;
  box-shadow: 0 4px 24px #000a;
  padding: 1.5rem 1.2rem;
  margin: 0 0.5rem;
  max-width: 350px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.2s, box-shadow 0.2s;
}
.cajita:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 8px 32px #000c;
}
.cajita .contenedor {
  flex-direction: column;
  align-items: center;
  width: 100%;
}
.cajita .izquierda img {
  width: 100%;
  max-width: 260px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 1rem;
  background: #222;
}
.cajita .derecha {
  width: 100%;
  text-align: center;
}
.titulo-sv {
  color: #2196f3;
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  text-shadow: none;
}
.texto-sv {
  color: #fff;
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 0.3rem;
}
.descripcion-sv {
  color: #bfc9da;
  font-size: 0.95rem;
  margin-bottom: 0.7rem;
  min-height: 40px;
}
.ip {
  color: #fff;
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}
.botones-sv {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.7rem;
}
.botones-sv a {
  background: linear-gradient(90deg, #21d4fd 0%, #2196f3 100%);
  color: #fff;
  border-radius: 16px;
  padding: 0.85rem 1.4rem;
  font-size: 1.18rem;
  font-weight: 800;
  text-transform: none;
  margin: 0.3rem 0.3rem;
  box-shadow: 0 4px 18px #2196f366, 0 1.5px 0 #fff3 inset;
  border: 2px solid rgba(255,255,255,0.18);
  transition: background 0.22s, color 0.18s, transform 0.15s, box-shadow 0.18s, filter 0.18s;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 150px;
  outline: none;
  letter-spacing: 0.7px;
  position: relative;
  overflow: hidden;
}
.botones-sv a::after {
  content: '';
  position: absolute;
  left: -60%;
  top: 0;
  width: 60%;
  height: 100%;
  background: linear-gradient(120deg, rgba(255,255,255,0.18) 0%, rgba(255,255,255,0.01) 100%);
  transform: skewX(-25deg);
  transition: left 0.4s;
  pointer-events: none;
}
.botones-sv a:hover::after {
  left: 110%;
}
.botones-sv a:hover {
  background: linear-gradient(90deg, #2196f3 0%, #21d4fd 100%);
  color: #fff;
  filter: brightness(1.08) drop-shadow(0 0 8px #21d4fd88);
  transform: translateY(-5px) scale(1.06);
  box-shadow: 0 8px 28px #2196f399, 0 2px 0 #fff3 inset;
}
.botones-sv a:active {
  filter: brightness(0.97);
  transform: scale(0.98);
  box-shadow: 0 2px 8px #2196f366;
}
@media (max-width: 900px) {
  .serverSwiper .swiper-slide {
    max-width: 90vw;
  }
  .cajita {
    max-width: 95vw;
    padding: 1rem 0.5rem;
  }
  .cajita .izquierda img {
    max-width: 100vw;
    height: 120px;
  }
}

/* ---- Afiliaciones & Wallpapers ---- */
.affiliate-card { flex: 1 1 200px; background: #0006; backdrop-filter: blur(4px); border: 2px solid #666; border-radius: 8px; padding: 1rem; text-align: center; }

/* ---- Footer ---- */
footer { background: var(--color-primary); color: #000; text-align: center; padding: 2rem 1rem; margin-top: 4rem; font-weight: 700; }
footer .social a { color: #000; margin: 0 .5rem; font-size: 1.3rem; }

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .news-grid { grid-template-columns: 1fr; }
  .servers-label { display: none; }
  .serverSwiper { padding-left: 0; }
}

/* ---- Responsive avanzado para móvil ---- */
@media (max-width: 600px) {
  body {
    font-size: 1rem;
    background-attachment: fixed;
  }
  .topbar {
    flex-direction: column;
    align-items: flex-start;
    padding: .5rem .7rem;
    min-height: unset;
    font-size: 1.05rem;
  }
  .topbar .social {
    margin-top: .3rem;
    gap: .7rem;
    justify-content: flex-start;
    font-size: 1.4rem;
  }
  .main-header {
    margin-top: 56px;
    text-align: center;
  }
  .logo-wrapper img {
    max-width: 70px;
    margin: 0.5rem auto 0.2rem auto;
    display: block;
  }
  .navbar {
    display: none !important;
  }
  .menu-toggle {
    display: flex !important;
    position: fixed;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1300;
    background: #181c24;
    border-radius: 50%;
    box-shadow: 0 2px 8px #0005;
  }
  .mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: rgba(0,0,0,0.7);
    z-index: 1200;
    transition: 0.3s;
  }
  .mobile-menu-overlay.show {
    display: block;
  }
  .mobile-menu {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: #181c24;
    z-index: 1201;
    transform: translateY(-100%);
    transition: transform 0.3s;
    align-items: center;
    justify-content: center;
    padding-top: 2.5rem;
  }
  .mobile-menu.open {
    transform: translateY(0);
  }
  .mobile-menu a {
    color: #fff;
    font-size: 1.3rem;
    font-weight: 700;
    margin: 1rem 0;
    text-decoration: none;
    letter-spacing: 1px;
    transition: color 0.2s;
  }
  .mobile-menu a:hover {
    color: #2196f3;
  }
  .close-menu {
    position: absolute;
    top: 18px;
    right: 24px;
    background: none;
    border: none;
    color: #fff;
    font-size: 2.2rem;
    cursor: pointer;
  }
  .navbar a {
    display: inline-block;
    padding: 0.7rem 1.1rem;
    border-bottom: none;
    width: auto;
    min-width: 110px;
    text-align: center;
    font-weight: 700;
    color: #fff;
    border-radius: 8px;
    margin: 0 0.1rem;
    background: #222c;
    transition: background 0.18s, color 0.18s;
  }
  .navbar a:hover {
    background: #2196f3;
    color: #fff;
  }
  .main-slider {
    max-width: 98vw;
    height: 120px;
    border-radius: 10px;
    margin: 0.7rem auto 0.3rem auto;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .main-slider .swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
  }
  .main-slider .swiper-slide img {
    height: 100px;
    width: auto;
    max-width: 95vw;
    border-radius: 10px;
    margin: 0 auto;
    display: block;
    object-fit: contain;
  }
  .main-slider .swiper-slide {
    border-radius: 10px;
  }
  .section-title {
    font-size: 1.1rem;
    margin-bottom: 0.7rem;
    letter-spacing: 1px;
  }
  .banner-info {
    font-size: 0.98rem;
    padding: 0.4rem 0.2rem;
    margin: 0.4rem auto;
    border-radius: 14px;
  }
  .quick-grid {
    flex-direction: column;
    gap: 1.1rem;
    align-items: stretch;
  }
  .quick-card {
    font-size: 1rem;
    min-height: 60px;
    border-radius: 10px;
    padding: 0.8rem 0.4rem;
    text-align: center;
  }
  .servers-section {
    margin-top: 1.1rem;
  }
  .serverSwiper {
    padding: 0.3rem 0 1.2rem 0;
  }
  .cajita {
    max-width: 98vw;
    padding: 0.7rem 0.2rem;
    border-radius: 10px;
    margin: 0.5rem auto;
    box-shadow: 0 2px 8px #0003;
  }
  .cajita .izquierda img {
    max-width: 100vw;
    height: 80px;
    border-radius: 8px;
  }
  .titulo-sv {
    font-size: 1rem;
    margin-bottom: 0.2rem;
  }
  .texto-sv, .ip, .descripcion-sv {
    font-size: 0.93rem;
  }
  .botones-sv a {
    font-size: 0.98rem;
    min-width: 90vw;
    margin: 0.2rem 0;
    border-radius: 10px;
    padding: 0.6rem 0;
  }
  .affiliate-card {
    padding: 0.7rem 0.1rem;
    border-radius: 10px;
    margin-bottom: 0.7rem;
  }
  .affiliate-card img {
    max-width: 60px;
    margin-bottom: 0.4rem;
  }
  footer {
    padding: 0.8rem 0.1rem 0.5rem 0.1rem;
    font-size: 0.93rem;
    background: linear-gradient(180deg, #2d0366 80%, #5a1bb7 100%);
    border-radius: 14px 14px 0 0;
    margin-top: 1.2rem;
  }
  footer img {
    max-width: 50px;
  }
  footer nav {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    align-items: center;
    margin-bottom: 0.5rem;
  }
  footer nav a {
    font-size: 0.98rem;
    margin: 0.1rem 0;
    padding: 0.3rem 0;
    border-bottom: 1px solid #fff2;
    width: 100%;
    text-align: center;
  }
  footer div[style*='text-align: right'] {
    text-align: center !important;
    margin-top: 0.7rem;
  }
  footer .bi {
    font-size: 1.3rem !important;
    margin: 0 0.3rem !important;
  }
}
@media (min-width: 601px) {
  .mobile-menu,
  .mobile-menu-overlay {
    display: none !important;
  }
} 