/* ==========================================================================
   EPDS · Rediseño 2026 (sandbox)
   Hoja de estilos independiente usada solo por index2.php / header2.php /
   footer2.php. No afecta a la web en producción (css/styles.css).
   ========================================================================== */

:root {
  --bg: #050608;
  --bg-soft: #0a0d12;
  --card: #0d1016;
  --card-2: #11151c;
  --card-border: rgba(255, 255, 255, 0.07);
  --card-border-hover: rgba(34, 211, 238, 0.55);
  --text: #f5f7fa;
  --muted: #98a2b3;
  --muted-2: #c7ced9;
  --accent: #22d3ee;
  --accent-2: #06b6d4;
  --accent-strong: #0891b2;
  --accent-glow: rgba(34, 211, 238, 0.35);
  --radius: 18px;
  --radius-lg: 26px;
  --maxw: 1280px;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

h1, h2, h3, h4 {
  line-height: 1.15;
  margin: 0;
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
}

/* ===== Botones ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 999px;
  padding: 0.85rem 1.8rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  color: #04222b;
  box-shadow: 0 10px 30px -8px var(--accent-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px -8px var(--accent-glow);
}

.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 1.5px solid rgba(34, 211, 238, 0.55);
}

.btn-outline:hover {
  background: rgba(34, 211, 238, 0.1);
  transform: translateY(-2px);
}

.btn-block {
  width: 100%;
}

/* ===== Topbar ===== */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(5, 6, 8, 0.82);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--card-border);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: 76px;
}

.logo {
  display: inline-flex;
  align-items: center;
}

.logo-img {
  max-height: 46px;
  width: auto;
  object-fit: contain;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.8rem;
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.main-nav a {
  position: relative;
  color: var(--muted-2);
  padding: 0.4rem 0;
  transition: color 0.2s ease;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.25s ease;
}

.main-nav a:hover {
  color: #fff;
}

.main-nav a:hover::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1px solid var(--card-border);
  border-radius: 12px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 0 auto;
  background: var(--text);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  overflow: hidden;
  padding: 5.5rem 0 5rem;
  background:
    radial-gradient(circle at 78% 30%, rgba(34, 211, 238, 0.22), transparent 55%),
    radial-gradient(circle at 20% 10%, rgba(37, 99, 235, 0.18), transparent 50%),
    linear-gradient(180deg, #060a14 0%, #05070d 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--hero-bg, none);
  background-size: cover;
  background-position: center;
  opacity: 0.35;
  mix-blend-mode: screen;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}

.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 1.2rem;
}

.hero p {
  color: var(--muted-2);
  font-size: 1.12rem;
  max-width: 640px;
  margin: 0 auto 2rem;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.7rem;
}

.hero-badges span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--accent);
  background: rgba(34, 211, 238, 0.08);
  border: 1px solid rgba(34, 211, 238, 0.35);
}

/* ===== Secciones ===== */
.section {
  padding: 4.5rem 0;
}

.section-tight {
  padding: 2.5rem 0 4.5rem;
}

.section-head {
  max-width: 720px;
  margin-bottom: 2.5rem;
}

.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-head h2 {
  font-size: clamp(1.8rem, 3.2vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.8rem;
}

.section-head p {
  color: var(--muted);
  font-size: 1.05rem;
  margin: 0;
}

/* ===== Tarjetas de categoría (solo texto) ===== */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.cat-card {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  padding: 2.2rem 2rem;
  min-height: 220px;
  background: linear-gradient(160deg, var(--card-2), var(--card));
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.cat-card:hover {
  transform: translateY(-6px);
  border-color: var(--card-border-hover);
  box-shadow: var(--shadow);
}

.cat-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

.cat-card p {
  color: var(--muted);
  margin: 0;
  font-size: 1rem;
}

.cat-card .cat-arrow {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.95rem;
}

.cat-card svg {
  transition: transform 0.25s ease;
}

.cat-card:hover svg {
  transform: translateX(4px);
}

/* ===== Banda gaming destacada ===== */
.gaming-band {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  align-items: center;
  gap: 2rem;
  padding: 2.5rem;
  background:
    radial-gradient(circle at 80% 50%, rgba(34, 211, 238, 0.14), transparent 60%),
    linear-gradient(135deg, #0b0f16 0%, #070a10 100%);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.gaming-band-media {
  display: flex;
  justify-content: center;
}

.gaming-band-media img {
  width: 100%;
  max-height: 340px;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--card-border);
  box-shadow: 0 30px 50px rgba(0, 0, 0, 0.5);
}

.gaming-band-text h2 {
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.gaming-band-text p {
  color: var(--muted-2);
  font-size: 1.08rem;
  margin: 0;
}

/* ===== Cards de PCs gamer ===== */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.8rem;
}

.pc-card {
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, var(--card-2), var(--card));
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.pc-card:hover {
  transform: translateY(-8px);
  border-color: var(--card-border-hover);
  box-shadow: var(--shadow);
}

.pc-card-media {
  position: relative;
  aspect-ratio: 16 / 11;
  overflow: hidden;
  background: #05070b;
}

.pc-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.pc-card:hover .pc-card-media img {
  transform: scale(1.07);
}

.pc-card-title {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  padding: 1.2rem 1.3rem 2.5rem;
  font-size: 1.7rem;
  font-weight: 800;
  line-height: 1.05;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  color: #fff;
  background: linear-gradient(180deg, rgba(5, 7, 11, 0.85) 0%, rgba(5, 7, 11, 0) 100%);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.7);
}

.pc-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  padding: 1.5rem 1.5rem 1.8rem;
  flex: 1;
}

.pc-card-body h3 {
  font-size: 1.2rem;
  font-weight: 700;
}

.pc-card-body > p {
  color: var(--muted);
  margin: 0;
  font-size: 0.98rem;
}

.pc-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.pc-list li {
  position: relative;
  padding-left: 1.5rem;
  color: var(--muted-2);
  font-size: 0.92rem;
}

.pc-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent-glow);
}

.pc-card .btn {
  margin-top: auto;
}

/* ===== Reseñas ===== */
.reviews-medal {
  display: flex;
  justify-content: center;
  margin: 0 auto 2.5rem;
}

.reviews-medal .medal {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 30% 25%, #11161f, #05070b);
  border: 1px solid var(--card-border-hover);
  box-shadow: 0 0 30px -6px var(--accent-glow);
}

.reviews-medal .medal img {
  max-width: 52px;
  max-height: 52px;
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.review-card {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  padding: 1.6rem;
  background: linear-gradient(180deg, var(--card-2), var(--card));
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
}

.review-stars {
  color: #fbbf24;
  letter-spacing: 2px;
  font-size: 1rem;
}

.review-author strong {
  display: block;
  font-size: 1rem;
}

.review-date {
  font-size: 0.8rem;
  color: var(--muted);
}

.review-text {
  color: var(--muted-2);
  font-size: 0.95rem;
  margin: 0;
  flex: 1;
}

.review-source {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.reviews-cta {
  display: flex;
  justify-content: center;
  margin-top: 2.5rem;
}

/* ===== Footer ===== */
.footer {
  border-top: 1px solid var(--card-border);
  background: var(--bg-soft);
  padding: 3.5rem 0 0;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.5rem;
}

.footer-col h3 {
  font-size: 1.2rem;
  margin-bottom: 0.6rem;
}

.footer-col h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 1rem;
}

.footer-col > p {
  color: var(--muted);
  margin: 0;
  max-width: 320px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.footer-link {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.7rem 1rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--card-border);
  color: var(--muted-2);
  font-size: 0.9rem;
  transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.footer-link:hover {
  border-color: var(--card-border-hover);
  color: #fff;
  transform: translateX(3px);
}

.footer-link svg {
  color: var(--accent);
  flex-shrink: 0;
}

.footer-bottom {
  margin-top: 3rem;
  border-top: 1px solid var(--card-border);
  padding: 1.4rem 0;
}

.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  color: var(--muted);
  font-size: 0.85rem;
}

/* ===== WhatsApp flotante ===== */
.whatsapp-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 60;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.2rem;
  border-radius: 999px;
  background: #25d366;
  color: #04270f;
  font-weight: 700;
  box-shadow: 0 14px 34px -8px rgba(37, 211, 102, 0.55);
  transition: transform 0.25s ease;
}

.whatsapp-float:hover {
  transform: translateY(-3px) scale(1.03);
}

/* ===== Responsive ===== */
@media (max-width: 960px) {
  .cat-grid,
  .cards-grid,
  .reviews-grid {
    grid-template-columns: 1fr 1fr;
  }

  .gaming-band {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  .nav-toggle {
    display: flex;
  }

  .main-nav {
    position: fixed;
    inset: 76px 0 auto 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 1rem 1.5rem 1.5rem;
    background: rgba(5, 6, 8, 0.98);
    border-bottom: 1px solid var(--card-border);
    transform: translateY(-130%);
    transition: transform 0.3s ease;
  }

  .nav-open .main-nav {
    transform: translateY(0);
  }

  .main-nav a {
    width: 100%;
    padding: 0.9rem 0;
    border-bottom: 1px solid var(--card-border);
  }

  .cat-grid,
  .cards-grid,
  .reviews-grid,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .footer-bottom-inner {
    flex-direction: column;
    text-align: center;
  }

  .hero {
    padding: 4rem 0 3.5rem;
  }
}
