/* ===== RESET ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', sans-serif;
}
 
body {
  background: #fff;
  color: #fff;
}
 
/* ===== HEADER ===== */
.header {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 0 24px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  z-index: 100;
  background: rgba(0, 0, 0, 1);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
 
/* LEFT: logo + nav */
.header-left {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-shrink: 0;
}
 
.logo img{
  height: 32px;       /* ajusta este valor a tu gusto */
  width: auto;
  display: block;
}
 
/* CENTER: search */
.header-center {
  flex: 1;
  max-width: 1980px;
}
 
.search-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}
 
.search-icon {
  position: absolute;
  left: 12px;
  color: rgba(255,255,255,0.45);
  pointer-events: none;
  flex-shrink: 0;
}
 
.search {
  width: 100%;
  padding: 7px 14px 7px 34px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.15);
  outline: none;
  background: rgba(255,255,255,0.1);
  color: white;
  font-size: 13px;
  transition: border-color 0.2s, background 0.2s;
}
 
.search::placeholder {
  color: rgba(255,255,255,0.4);
}
 
.search:focus {
  border-color: rgba(255,255,255,0.35);
  background: rgba(255,255,255,0.14);
}
 
/* RIGHT: botones */
.header-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
 
.login {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.35);
  color: white;
  padding: 6px 14px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 13px;
  white-space: nowrap;
  transition: border-color 0.2s, background 0.2s;
}
 
.login:hover {
  border-color: rgba(255,255,255,0.7);
  background: rgba(255,255,255,0.07);
}
 
.register {
  background: #00c853;
  border: none;
  padding: 6px 14px;
  border-radius: 20px;
  cursor: pointer;
  color: #000;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  transition: background 0.2s;
}
 
.register:hover {
  background: #00e676;
}
 
.sell {
  background: transparent;
  border: 1px solid #00c853;
  color: #00c853;
  padding: 6px 14px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s;
}
 
.sell:hover {
  background: #00c853;
  color: #000;
}
 
.menu-toggle {
  display: none;
  font-size: 22px;
  cursor: pointer;
  color: white;
}
 
/* ===== MOBILE MENU ===== */
.mobile-menu {
  position: fixed;
  top: 52px; /* justo debajo del header */
  left: 0;
  width: 100%;
  background: rgba(10, 10, 10, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  display: flex;
  flex-direction: column;
  gap: 0;
  z-index: 99;
  /* Estado oculto */
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease;
}
 
.mobile-menu.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
 
/* Barra de búsqueda dentro del menú */
.mobile-search-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  padding: 14px 20px 10px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
 
.mobile-search-wrapper .search-icon {
  position: absolute;
  left: 32px;
  color: rgba(255,255,255,0.4);
  pointer-events: none;
}
 
.mobile-search-wrapper .search {
  width: 100%;
  padding: 10px 14px 10px 36px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.13);
  background: rgba(255,255,255,0.07);
  color: #fff;
  font-size: 14px;
  outline: none;
}
 
.mobile-search-wrapper .search::placeholder {
  color: rgba(255,255,255,0.35);
}
 
/* Botones del menú móvil */
.mobile-menu .mobile-login,
.mobile-menu .mobile-register,
.mobile-menu .mobile-sell {
  display: block;
  width: calc(100% - 40px);
  margin: 0 20px;
  padding: 13px 16px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
 
/* Separador visual entre botones */
.mobile-menu .mobile-login {
  margin-top: 14px;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.25);
  color: #fff;
}
 
.mobile-menu .mobile-login:hover {
  background: rgba(255,255,255,0.07);
  border-color: rgba(255,255,255,0.5);
}
 
.mobile-menu .mobile-register {
  margin-top: 10px;
  background: #00c853;
  border: none;
  color: #000;
}
 
.mobile-menu .mobile-register:hover {
  background: #00e676;
}
 
.mobile-menu .mobile-sell {
  margin-top: 10px;
  margin-bottom: 18px;
  background: transparent;
  border: 1px solid #00c853;
  color: #00c853;
}
 
.mobile-menu .mobile-sell:hover {
  background: #00c853;
  color: #000;
}
 
/* ===== HERO ===== */
.hero {
  height: 40vh;
  position: relative;
  overflow: hidden;
  margin-top: 52px; /* compensa el header fixed */
}
 
@media (max-width: 900px) {
  .hero {
    height: 30vw;      /* proporcional al ancho → se ve más "cuadrado" */
    min-height: 180px;
    max-height: 240px;
  }
 
  .slide img {
    object-position: center 20%; /* sube el foco hacia arriba donde está la acción */
  }
 
  .carousel-indicators {
    right: 12px;
    gap: 6px;
  }
 
  .carousel-indicators span {
    font-size: 11px;
  }
}
 
.carousel {
  height: 100%;
  width: 100%;
  position: relative;
}
 
.slide {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
}
 
.slide.active {
  opacity: 1;
}
 
/* Imagen de cada slide — desktop */
.slide-1 { background-image: url('../Img/PORTADA.jpg');   background-position: center center; }
.slide-2 { background-image: url('../Img/PORTADA 2.jpg'); background-position: center center; }
.slide-3 { background-image: url('../Img/PORTADA 3.jpg'); background-position: center center; }
 
/* Móvil — mueve el foco para mostrar la parte más interesante */
@media (max-width: 900px) {
  .slide-1 { background-image: url('../Img/PORTADA_MOVIL_1.jpg');   background-position: 35% center; }
  .slide-2 { background-image: url('../Img/PORTADA_MOVIL_2.jpg');   background-position: 40% center; }
  .slide-3 { background-image: url('../Img/PORTADA_MOVIL_3.jpg');   background-position: 38% center; }
}
 
.hero::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 1;
}
 
.hero-content {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 8%;
  transform: translateY(-50%);
  max-width: 500px;
}
 
.hero-content h1 {
  font-size: 60px;
  margin-bottom: 15px;
}
 
.hero-content p {
  font-size: 16px;
  margin-bottom: 20px;
  opacity: 0.9;
}
 
.hero-buttons {
  display: flex;
  gap: 10px;
}
 
.primary {
  background: #ff3d00;
  border: none;
  padding: 10px 20px;
  border-radius: 20px;
  cursor: pointer;
  color: white;
}
 
.secondary {
  background: transparent;
  border: 1px solid white;
  padding: 10px 20px;
  border-radius: 20px;
  cursor: pointer;
  color: white;
}
 
.carousel-indicators {
  position: absolute;
  top: 50%;
  right: 40px;
  transform: translateY(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
 
.carousel-indicators span {
  font-size: 14px;
  opacity: 0.5;
  cursor: pointer;
}
 
.carousel-indicators .active {
  opacity: 1;
  font-weight: bold;
}
 
/* ===== ELIGE TU UNIVERSO ===== */
.universo {
  padding: 40px 40px;
  background: #fff;
}
 
.universo-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 32px;
}
 
.universo-title {
  font-family: 'Bebas Neue', 'Segoe UI', sans-serif;
  font-size: 42px;
  font-weight: 400;
  letter-spacing: 0.03em;
  color: #00c853;
  line-height: 1;
}
 
/* GRID DE TARJETAS */
.universo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
 
/* TARJETA */
.game-card {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 6 / 4;
  cursor: pointer;
  background-size: cover;
  background-position: center top;
  transition: transform 0.3s ease;
}
 
.game-card:hover {
  transform: translateY(-6px);
}
 
.game-card:hover .card-overlay {
  background: linear-gradient(to right, rgba(0,0,0,0.88) 0%, rgba(0,0,0,0.25) 55%, transparent 100%);
}
 
/* OVERLAY DEGRADADO */
.card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0,0,0,0.78) 0%, rgba(0,0,0,0.2) 50%, transparent 100%);
  transition: background 0.3s ease;
}
 
/* BADGE SUPERIOR */
.card-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 20px;
  padding: 4px 10px;
  font-size: 11px;
  color: rgba(255,255,255,0.9);
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
  z-index: 1;
}
 
.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #00c853;
  flex-shrink: 0;
}
 
/* INFO INFERIOR */
.card-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px 16px;
  z-index: 1;
}
 
.card-name {
  font-family: 'Bebas Neue', 'Segoe UI', sans-serif;
  font-size: 30px;
  font-weight: 400;
  color: #fff;
  letter-spacing: 0.04em;
  line-height: 1;
  margin-bottom: 5px;
}
 
.card-sub {
  font-size: 12px;
  color: rgba(255,255,255,0.8);
  font-weight: 400;
}
 
/* ===== RESPONSIVE ===== */
 
@media (max-width: 1100px) {
  .header-center {
    max-width: 300px;
  }
}
 
@media (max-width: 900px) {
  .header-center,
  .login,
  .register,
  .sell {
    display: none;
  }
 
  .menu-toggle {
    display: block;
  }
 
  .universo-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 16px;
  }
 
  .game-card {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 12 / 4;
  cursor: pointer;
  background-size: cover;
  background-position: center top;
  transition: transform 0.3s ease;
  }
}
/* ===== BANNER FOTO ===== */
.photo-banner {
  background: #fff;
  padding: 20px 40px;
}
 
.photo-banner-overlay {
  position: absolute;
  inset: 0;
}
 
.photo-banner-inner {
  position: relative;
  width: 100%;
  max-width: 1800px;
  height: 480px;
  margin: 0 auto;
  border-radius: 14px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
}

.photo-banner-content {
  position: relative;
  z-index: 1;
  max-width: 640px;
  padding: 0 48px;
}
 
.photo-banner-eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #00c853;
  margin-bottom: 18px;
  border: 1px solid rgba(0, 200, 83, 0.35);
  padding: 5px 12px;
  border-radius: 14px;
  background: rgba(0, 200, 83, 0.08);
}
 
.photo-banner-title {
  font-family: 'Bebas Neue', 'Segoe UI', sans-serif;
  font-size: 58px;
  font-weight: 400;
  color: #fff;
  line-height: 1.05;
  letter-spacing: 0.03em;
  margin-bottom: 18px;
}
 
.photo-banner-sub {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.6;
  margin-bottom: 32px;
}
 
.photo-banner-btn {
  display: inline-block;
  padding: 13px 30px;
  background: #00c853;
  color: #000;
  font-size: 14px;
  font-weight: 700;
  border-radius: 30px;
  text-decoration: none;
  letter-spacing: 0.03em;
  transition: background 0.2s, transform 0.2s;
}
 
.photo-banner-btn:hover {
  background: #00e676;
  transform: translateY(-2px);
}
 
@media (max-width: 768px) {
  .photo-banner {
    padding: 10px 20px;
  }

  .photo-banner-inner {
    height: auto;
    min-height: 340px;
    border-radius: 16px;
  }
 
  .photo-banner-content {
    padding: 0 28px;
  }
 
  .photo-banner-title {
    font-size: 38px;
  }
}
 
/* ===== GRADING PROFESIONAL ===== */
.grading {
  background: #fff;
  padding: 20px 40px;
}
 
.grading-inner {
  position: relative;
  max-width: 1800px;
  height: 480px;
  margin: 0 auto;
  padding: 80px 40px;
  border-radius: 14px;
  overflow: hidden;
  background-color: #051a0e;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  z-index: 1;
}

.grading-inner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 50% 50%, rgba(0,200,83,0.07) 0%, transparent 70%);
  pointer-events: none;
}

.grading-left {
  position: relative;
  z-index: 1;
  max-width: 620px;
}
 
/* LEFT */
.grading-eyebrow {
  display: inline-block;
  border: 1px solid #00c853;
  color: #00c853;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 4px;
  margin-bottom: 20px;
}
 
.grading-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 58px;
  font-weight: 400;
  color: #fff;
  line-height: 1;
  margin-bottom: 24px;
  letter-spacing: 0.02em;
}
 
.grading-route {
  color: #00c853;
  display: flex;
}
 
.grading-route .arrow {
  color: #00c853;
  margin: 0 1px;
}
 
.grading-desc {
  font-size: 16px;
  color: rgba(255,255,255,0.75);
  line-height: 1.7;
  margin-bottom: 16px;
  max-width: 480px;
}
 
.grading-desc strong {
  color: #fff;
  font-weight: 700;
}
 
.grading-sub {
  font-size: 13px;
  color: rgba(255,255,255,0.45);
  line-height: 1.6;
  margin-bottom: 32px;
  max-width: 440px;
}
 
.grading-sub .highlight {
  color: #00c853;
  font-weight: 700;
}
 
.grading-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
 
.grading-btn-primary {
  background: #00c853;
  border: none;
  padding: 13px 26px;
  border-radius: 30px;
  cursor: pointer;
  color: #000;
  font-size: 14px;
  font-weight: 700;
  transition: background 0.2s, transform 0.2s;
  white-space: nowrap;
}
 
.grading-btn-primary:hover {
  background: #00e676;
  transform: translateY(-2px);
}
 
.grading-btn-secondary {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.4);
  padding: 13px 26px;
  border-radius: 30px;
  cursor: pointer;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  transition: border-color 0.2s, background 0.2s;
  white-space: nowrap;
}
 
.grading-btn-secondary:hover {
  border-color: rgba(255,255,255,0.8);
  background: rgba(255,255,255,0.07);
}
 
/* RIGHT — badges + stats */
.grading-right {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}
 
.grade-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  padding: 14px 20px;
  min-width: 90px;
  position: relative;
  border: 1px solid rgba(255,255,255,0.12);
}
 
.grade-10 {
  background: rgba(0,0,0,0.5);
  border-color: rgba(255,255,255,0.18);
}
 
.grade-95 {
  background: rgba(0,0,0,0.4);
  border-color: rgba(255,255,255,0.1);
  transform: scale(0.88);
  transform-origin: left center;
}
 
.grade-number {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 42px;
  line-height: 1;
  color: #fff;
  letter-spacing: 0.02em;
}
 
.grade-95 .grade-number {
  font-size: 32px;
  color: rgba(255,255,255,0.8);
}
 
.grade-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-top: 2px;
}
 
.grade-source {
  font-size: 9px;
  font-weight: 700;
  color: rgba(255,255,255,0.35);
  letter-spacing: 0.08em;
  margin-top: 2px;
}
 
.grading-stats {
  display: flex;
  gap: 28px;
  margin-top: 8px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.08);
  width: 100%;
}
 
.stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
 
.stat-value {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 32px;
  line-height: 1;
  color: #fff;
  letter-spacing: 0.03em;
}
 
.psa-text {
  color: #e53935;
}
 
.stat-label {
  font-size: 11px;
  color: rgba(255,255,255,0.4);
  font-weight: 500;
}
 
/* RESPONSIVE GRADING */
@media (max-width: 1000px) {
  .grading-inner {
    height: auto;
    min-height: 420px;
    padding: 50px 32px;
    border-radius: 20px;
  }

  .grading-left {
    max-width: 100%;
  }
 
  .grading-right {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 20px;
  }
 
  .grading-title {
    font-size: 44px;
  }
}
 
@media (max-width: 480px) {
  .grading {
    padding: 40px 16px;
  }

  .grading-inner {
    padding: 40px 24px;
    border-radius: 16px;
  }
 
  .grading-title {
    font-size: 36px;
  }
}
 
/* ===== TRUST BADGES ===== */
.trust {
  background: #ffffff;
  padding: 20px 40px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
 
.trust-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
 
.trust-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(0, 0, 0, 0.10);
  border-radius: 16px;
  padding: 28px 24px 32px;
  transition: border-color 0.3s, transform 0.3s, background 0.3s;
}
 
.trust-card:hover {
  border-color: rgba(0,200,83,0.3);
  background: rgba(0,200,83,0.04);
  transform: translateY(-4px);
}
 
.trust-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(0,200,83,0.1);
  border: 1px solid rgba(0,200,83,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: #00c853;
  transition: background 0.3s, border-color 0.3s;
}
 
.trust-card:hover .trust-icon-wrap {
  background: rgba(0,200,83,0.18);
  border-color: rgba(0,200,83,0.4);
}
 
.trust-title {
  font-size: 15px;
  font-weight: 700;
  color: #000000;
  margin-bottom: 10px;
  letter-spacing: 0.01em;
}
 
.trust-desc {
  font-size: 13px;
  color: rgba(57, 57, 57, 0.42);
  line-height: 1.65;
}
 
@media (max-width: 900px) {
  .trust-inner {
    grid-template-columns: repeat(2, 1fr);
  }
}
 
@media (max-width: 480px) {
  .trust {
    padding: 48px 20px;
  }
  .trust-inner {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}
 
/* ===== FOOTER ===== */
.footer {
  background: #111;
  padding: 60px 40px 0;
}
 
.footer-main {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  gap: 80px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
 
.footer-brand {
  flex: 0 0 260px;
}
 
.footer-logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 22px;
  letter-spacing: 0.05em;
  color: #fff;
  margin-bottom: 16px;
}
 
.footer-desc {
  font-size: 13px;
  color: rgba(255,255,255,0.45);
  line-height: 1.7;
  margin-bottom: 24px;
}
 
.footer-socials {
  display: flex;
  gap: 10px;
}
 
.social-btn {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.05);
  color: rgba(255,255,255,0.7);
  font-size: 11px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
 
.social-btn:hover {
  border-color: rgba(255,255,255,0.4);
  color: #fff;
  background: rgba(255,255,255,0.1);
}
 
.footer-links {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
 
.footer-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
 
.footer-col-title {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
  letter-spacing: 0.02em;
}
 
.footer-col a {
  font-size: 13px;
  color: rgba(255,255,255,0.45);
  text-decoration: none;
  transition: color 0.2s;
}
 
.footer-col a:hover {
  color: rgba(255,255,255,0.85);
}
 
.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
 
.footer-copy {
  font-size: 12px;
  color: rgba(255,255,255,0.25);
}
 
.footer-bottom-links {
  display: flex;
  gap: 24px;
  flex-shrink: 0;
}
 
.footer-bottom-links a {
  font-size: 12px;
  color: rgba(255,255,255,0.35);
  text-decoration: none;
  transition: color 0.2s;
}
 
.footer-bottom-links a:hover {
  color: rgba(255,255,255,0.7);
}
 
/* NEWSLETTER + FOOTER RESPONSIVE */
@media (max-width: 900px) {
  .footer-main {
    flex-direction: column;
    gap: 40px;
  }
 
  .footer-brand {
    flex: none;
  }
 
  .footer-links {
    grid-template-columns: repeat(2, 1fr);
  }
 
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}
 
@media (max-width: 480px) {
  .footer {
    padding: 40px 20px 0;
  }
 
  .footer-links {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
}
 
/* ===== ESTADO LOGUEADO EN HEADER (compartido entre páginas) ===== */
.user-greeting {
  display: none;
  align-items: center;
  position: relative;
}
.user-greeting.active { display: flex; }
 
.user-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 20px;
  padding: 4px 12px 4px 4px;
  cursor: pointer;
  color: #fff;
  font-size: 13px;
  transition: border-color .2s;
}
.user-btn:hover { border-color: #2a9d4e; }
 
.user-avatar {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: #2a9d4e;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 12px; color: #fff;
  overflow: hidden; flex-shrink: 0;
}
.user-avatar img { width: 100%; height: 100%; object-fit: cover; }
 
.user-chevron { font-size: 10px; opacity: 0.6; transition: transform .2s; }
.user-greeting.open .user-chevron { transform: rotate(180deg); }
 
.user-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  min-width: 180px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  overflow: hidden;
  z-index: 9998;
}
.user-greeting.open .user-dropdown { display: block; }
 
.dropdown-header {
  padding: 12px 14px 10px;
  border-bottom: 1px solid #f0f0f0;
}
.dropdown-header .d-name { font-size: 13px; font-weight: 600; color: #111; }
.dropdown-header .d-user { font-size: 11px; color: #999; }
 
.dropdown-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  font-size: 13px;
  color: #333;
  cursor: pointer;
  text-decoration: none;
  transition: background .15s;
}
.dropdown-item:hover { background: #f5f5f5; }
.dropdown-item.danger { color: #c0392b; }
.dropdown-item.danger:hover { background: #fdecea; }
.dropdown-divider { border: none; border-top: 1px solid #f0f0f0; margin: 0; }
 
/* ===== MODALES (compartido entre páginas) ===== */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.65);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}
.modal-overlay.active { display: flex; }
 
.modal {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  padding: 36px 32px;
  width: 100%;
  max-width: 420px;
  position: relative;
  animation: modalIn .2s ease;
}
@keyframes modalIn {
  from { opacity: 0; transform: translateY(-16px); }
  to   { opacity: 1; transform: translateY(0); }
}
.modal-close {
  position: absolute;
  top: 14px; right: 16px;
  background: none;
  border: none;
  color: #999;
  font-size: 20px;
  cursor: pointer;
  line-height: 1;
}
.modal-close:hover { color: #333; }
.modal-logo { text-align: center; margin-bottom: 18px; }
.modal-logo img { height: 48px; }
.modal h2 { color: #111; font-size: 20px; font-weight: 600; text-align: center; margin: 0 0 6px; }
.modal-sub { color: #777; font-size: 13px; text-align: center; margin: 0 0 24px; }
.modal-field { margin-bottom: 14px; }
.modal-field label { display: block; color: #444; font-size: 13px; margin-bottom: 5px; }
.modal-field input {
  width: 100%;
  background: #f5f5f5;
  border: 1px solid #ddd;
  border-radius: 7px;
  color: #111;
  font-size: 14px;
  padding: 10px 12px;
  box-sizing: border-box;
  transition: border-color .2s;
  outline: none;
}
.modal-field input:focus { border-color: #2a9d4e; }
.modal-btn {
  width: 100%;
  background: #2a9d4e;
  color: #fff;
  border: none;
  border-radius: 7px;
  font-size: 15px;
  font-weight: 600;
  padding: 11px;
  cursor: pointer;
  margin-top: 6px;
  transition: background .2s;
}
.modal-btn:hover { background: #1e7a3b; }
.modal-btn:disabled { background: #aaa; cursor: not-allowed; }
.modal-switch { text-align: center; margin-top: 18px; font-size: 13px; color: #777; }
.modal-switch a { color: #2a9d4e; cursor: pointer; text-decoration: none; font-weight: 500; }
.modal-switch a:hover { text-decoration: underline; }
.modal-msg {
  font-size: 13px;
  text-align: center;
  margin-top: 12px;
  padding: 9px 12px;
  border-radius: 6px;
  display: none;
}
.modal-msg.error   { background: #fdecea; color: #c0392b; display: block; }
.modal-msg.success { background: #eafaf1; color: #1e7a3b; display: block; }
 
/* ===== DROPDOWN MONEDA ===== */
.currency-dropdown {
  position: relative;
}
.currency-selected {
  display: flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 20px;
  padding: 4px 10px 4px 5px;
  cursor: pointer;
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  font-family: inherit;
  transition: all .2s;
}
.currency-selected:hover { background: rgba(255,255,255,0.15); }
.currency-flag-img {
  width: 24px !important;
  height: 24px !important;
  max-width: 24px !important;
  max-height: 24px !important;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  display: block;
}
.header .currency-flag-img,
.currency-selected .currency-flag-img,
.currency-option .currency-flag-img {
  width: 24px !important;
  height: 24px !important;
}
.currency-chevron { font-size: 9px; opacity: 0.6; }
.currency-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  min-width: 160px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  overflow: hidden;
  z-index: 9999;
}
.currency-menu.open { display: block; }
.currency-option {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 12px;
  font-size: 13px;
  color: #333;
  cursor: pointer;
  transition: background .15s;
}
.currency-option:hover { background: #f5f5f5; }
.currency-option.active { background: #eafaf1; color: #1e7a3b; font-weight: 600; }
 
img.currency-flag-img {
  width: 24px !important;
  height: 24px !important;
  max-width: 24px !important;
  max-height: 24px !important;
  border-radius: 50% !important;
  object-fit: cover !important;
  display: block !important;
  flex-shrink: 0 !important;
}
/* ===== CARRITO ===== */
.cart-btn {
  position: relative;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 20px;
  padding: 6px 12px;
  cursor: pointer;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all .2s;
}
.cart-btn:hover { background: rgba(255,255,255,0.15); border-color: #00c853; }
 
.cart-count {
  background: #00c853;
  color: #000;
  font-size: 11px;
  font-weight: 700;
  border-radius: 99px;
  padding: 1px 6px;
  min-width: 18px;
  text-align: center;
}
 
/* Overlay */
.cart-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 200;
}
.cart-overlay.open { display: block; }
 
/* Drawer */
.cart-drawer {
  position: fixed;
  top: 0; right: 0;
  width: 380px;
  height: 100vh;
  background: #fff;
  z-index: 201;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform .3s ease;
  box-shadow: -4px 0 24px rgba(0,0,0,0.15);
}
.cart-drawer.open { transform: translateX(0); }
 
.cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid #f0f0f0;
  flex-shrink: 0;
}
.cart-title { font-size: 15px; font-weight: 700; color: #111; }
.cart-close {
  background: none; border: none; font-size: 18px;
  color: #999; cursor: pointer; padding: 4px;
  transition: color .15s;
}
.cart-close:hover { color: #333; }
 
.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  justify-content: flex-start;
}
 
.cart-empty {
  text-align: center;
  color: #aaa;
  font-size: 14px;
  margin: auto;
  padding: 40px 0;
}
 
/* Item del carrito */
.cart-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: #f9f9f9;
  border: 1px solid #eee;
  border-radius: 10px;
  padding: 10px;
}
.cart-item-img {
  width: 52px;
  height: 72px;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
  background: #eee;
}
.cart-item-img img {
  width: 100%; height: 100%; object-fit: cover;
}
.cart-item-info { flex: 1; display: flex; flex-direction: column; gap: 3px; }
.cart-item-nombre { font-size: 13px; font-weight: 700; color: #111; line-height: 1.3; }
.cart-item-set    { font-size: 11px; color: #888; }
.cart-item-meta   { font-size: 11px; color: #555; }
.cart-item-precio { font-size: 13px; font-weight: 700; color: rgb(0,180,216); margin-top: 4px; }
.cart-item-remove {
  background: none; border: none; color: #ccc;
  cursor: pointer; font-size: 16px; padding: 2px;
  transition: color .15s; flex-shrink: 0;
}
.cart-item-remove:hover { color: #e53935; }
 
/* Footer */
.cart-footer {
  padding: 16px 20px;
  border-top: 1px solid #f0f0f0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-shrink: 0;
}
.cart-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.cart-total-label { font-size: 13px; color: #888; font-weight: 500; }
.cart-total-val   { font-size: 18px; font-weight: 700; color: #111; }
 
.cart-confirmar-btn {
  background: #00c853; color: #000; border: none;
  border-radius: 10px; font-size: 14px; font-weight: 700;
  padding: 12px; cursor: pointer; transition: background .2s;
  font-family: inherit;
}
.cart-confirmar-btn:hover { background: #00e676; }
 
.cart-vaciar-btn {
  background: none; border: 1px solid #ddd; color: #888;
  border-radius: 10px; font-size: 13px; font-weight: 500;
  padding: 9px; cursor: pointer; transition: all .2s;
  font-family: inherit;
}
.cart-vaciar-btn:hover { border-color: #e53935; color: #e53935; }
 
@media (max-width: 480px) {background: rgba(0, 0, 0, 0.55);
  .cart-drawer { width: 100vw; }
}
 
/* ===== TABS DRAWER ===== */
.cart-tabs {
  display: flex;
  border-bottom: 1px solid #f0f0f0;
  flex-shrink: 0;
}
.cart-tab {
  flex: 1;
  padding: 10px 8px;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  color: #888;
  cursor: pointer;
  transition: all .15s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.cart-tab:hover { color: #111; }
.cart-tab.active { color: #111; border-bottom-color: #00c853; }
 
@keyframes fadeInUp {
  from { opacity: 0; transform: translate(-50%, 10px); }
  to   { opacity: 1; transform: translate(-50%, 0); }
}