/* style.css - Versión Brutalista Batalla de Porteros */

/* PALETA Y VARIABLES */
:root {
  --bg: #000000;
  --bg-alt: #050505;
  --accent: #f39c1f;
  --accent-soft: rgba(243, 156, 31, 0.3);
  --text: #f5f5f5;
  --muted: #9d9d9d;
  --border: #ffffff;
  --border-muted: #383838;

  --radius-none: 0;
  --radius-sm: 4px;

  --font-display: "Anton", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --font-sans: "Barlow Condensed", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

/* RESETEO BÁSICO */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

/* FONDO NEGRO CON TEXTURA */
body {
  min-height: 100vh;
  color: var(--text);
  font-family: var(--font-sans);
  background-color: var(--bg);
  position: relative;
  text-transform: uppercase;
}

/* Textura principal (AJUSTA LA RUTA DE TU TEXTURA AQUÍ) */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: url("../img/dark-asphalt-texture.png"); /* cambia a tu textura */
  background-size: cover;
  background-repeat: repeat;
  opacity: 0.18;
  mix-blend-mode: screen;
  z-index: -2;
}

/* Ruido/grunge extra opcional */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: url("../img/grunge-noise.png"); /* opcional, cambia o quita */
  background-size: 400px 400px;
  opacity: 0.12;
  mix-blend-mode: soft-light;
  z-index: -1;
}

/* LAYOUT GENERAL */
.page {
  max-width: 1180px;
  margin: 0 auto;
  padding: 16px;
  border-left: 2px solid var(--border-muted);
  border-right: 2px solid var(--border-muted);
}

@media (min-width: 768px) {
  .page {
    padding: 24px 24px 40px;
  }
}

/* HEADER GENERAL */
.header {
  border-bottom: 2px solid var(--border);
  padding-bottom: 16px;
  margin-bottom: 18px;
}

.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

/* Badges rectos tipo etiqueta */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px;
  border-radius: var(--radius-none);
  border: 2px solid var(--border);
  background-color: var(--bg);
  font-size: 8px;
  letter-spacing: 0.15em;
  color: var(--text);
}

.badge-dot {
  width: 8px;
  height: 8px;
  background-color: var(--accent);
  border-radius: var(--radius-none);
  box-shadow: 0 0 0 2px var(--bg), 0 0 12px var(--accent);
}

/* Títulos grandes brutales */
.title {
  font-family: var(--font-display);
  font-size: 26px;
  line-height: 1;
  letter-spacing: 0.08em;
  margin: 0 0 6px 0;
}

@media (min-width: 768px) {
  .title {
    font-size: 42px;
  }
}

.title span {
  background-color: var(--accent);
  color: #000;
  padding: 0 6px;
  box-shadow: 4px 4px 0 #ffffff;
}

.subtitle {
  font-size: 12px;
  color: var(--muted);
  max-width: 520px;
}

/* BOTONES BRUTALISTAS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 18px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  border-radius: var(--radius-none);
  border: 2px solid var(--border);
  background-color: var(--bg);
  color: var(--text);
  text-decoration: none;
  cursor: pointer;
  box-shadow: 4px 4px 0 #ffffff;
  text-transform: uppercase;
  transition: transform 0.08s ease-out, box-shadow 0.08s ease-out,
    background-color 0.08s ease-out, color 0.08s ease-out;
}

.btn-icon {
  font-size: 16px;
}

.btn-primary {
  background-color: var(--accent);
  color: #000;
}

.btn-primary:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 #ffffff;
}

.btn-ghost {
  background-color: var(--bg);
}

.btn-ghost:hover {
  background-color: #111111;
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 #ffffff;
}

/* INPUTS Y SELECTS */
.search-wrapper {
  margin: 18px 0 12px;
}

.search-input {
  width: 100%;
  padding: 10px 14px;
  border-radius: var(--radius-none);
  border: 2px solid var(--border);
  background-color: var(--bg);
  color: var(--text);
  font-size: 12px;
  letter-spacing: 0.12em;
}

.search-input::placeholder {
  color: #666666;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.select {
  padding: 8px 12px;
  border-radius: var(--radius-none);
  border: 2px solid var(--border-muted);
  background-color: var(--bg-alt);
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.12em;
}

/* GRID DE JUGADORES (LISTA) */
.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

@media (min-width: 768px) {
  .grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
  }
}

/* CARD de jugador: bloque, esquinas duras, estilo póster */
.card-player {
  position: relative;
  border-radius: var(--radius-none);
  border: 2px solid var(--border);
  background-color: var(--bg-alt);
  overflow: hidden;
}

.card-player-inner {
  padding: 8px 8px 10px;
}

/* etiqueta categoría arriba izquierda */
.card-badge {
  position: absolute;
  top: 0;
  left: 0;
  padding: 4px 8px;
  background-color: var(--accent);
  color: #000;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  border-bottom: 2px solid var(--border);
  border-right: 2px solid var(--border);
}

.card-img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  display: block;
  border-bottom: 2px solid var(--border);
  background-color: #111;
}

.card-name {
  font-size: 13px;
  font-weight: 700;
  margin-top: 6px;
}

.card-meta {
  font-size: 10px;
  color: var(--muted);
  margin: 2px 0 8px;
}

.card-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.tag-academia {
  font-size: 9px;
  padding: 3px 6px;
  border-radius: var(--radius-none);
  border: 2px solid var(--border-muted);
  background-color: var(--bg);
  color: var(--muted);
  letter-spacing: 0.12em;
}

/* PERFIL JUGADOR */
.profile-layout {
  display: grid;
  gap: 16px;
}

@media (min-width: 768px) {
  .profile-layout {
    grid-template-columns: minmax(0, 2.2fr) minmax(0, 3fr);
    align-items: flex-start;
  }
}

/* Tarjeta principal perfil */
.profile-card {
  border-radius: var(--radius-none);
  border: 3px solid var(--border);
  background-color: var(--bg-alt);
  padding: 14px;
  box-shadow: 6px 6px 0 #ffffff;
}

.profile-header {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.profile-img-wrapper {
  position: relative;
  max-width: 310px;
  border: 3px solid var(--border);
  background-color: #111;
}

.profile-img {
  width: 100%;
  display: block;
  object-fit: cover;
}

/* chip categoría en foto */
.profile-chip {
  position: absolute;
  bottom: 0;
  left: 0;
  padding: 4px 10px;
  background-color: var(--accent);
  color: #000;
  font-size: 10px;
  letter-spacing: 0.16em;
  font-weight: 700;
  border-top: 2px solid var(--border);
  border-right: 2px solid var(--border);
}

/* Nombre del jugador */
.profile-name {
  font-family: var(--font-display);
  font-size: 26px;
  letter-spacing: 0.16em;
  margin: 10px 0 4px;
}

/* meta info */
.profile-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 10px;
}

.profile-meta span {
  padding: 4px 8px;
  border-radius: var(--radius-none);
  border: 2px solid var(--border-muted);
  background-color: var(--bg);
}

/* Zona compartir - brutalista */
.share-card {
  border-radius: var(--radius-none);
  border: 3px solid var(--border);
  background-color: #000;
  padding: 10px;
  margin-top: 12px;
}

.share-title {
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--muted);
  margin-bottom: 4px;
}

.share-subtitle {
  font-size: 11px;
  color: var(--text);
  margin-bottom: 10px;
}

.share-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.share-note {
  margin-top: 8px;
  font-size: 10px;
  color: var(--muted);
}

/* GALERÍA */
.gallery-card {
  border-radius: var(--radius-none);
  border: 3px solid var(--border);
  background-color: var(--bg-alt);
  padding: 10px;
  box-shadow: 6px 6px 0 #ffffff;
}

.gallery-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 8px;
}

.gallery-title {
  font-size: 12px;
  letter-spacing: 0.22em;
}

.gallery-sub {
  font-size: 10px;
  color: var(--muted);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

@media (min-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }
}

.gallery-img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: var(--radius-none);
  border: 2px solid var(--border-muted);
  background-color: #111;
  cursor: pointer;
  transition: transform 0.08s ease-out, box-shadow 0.08s ease-out,
    border-color 0.08s ease-out;
}

.gallery-img:hover {
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0 #ffffff;
  border-color: var(--accent);
}

/* FOOTER */
.footer {
  margin-top: 20px;
  padding-top: 10px;
  border-top: 2px solid var(--border);
  font-size: 10px;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}


/* BADGES DE CAMPEÓN / SUBCAMPEÓN - tipo sticker/parche */
.br-badge {
  position: absolute;
  top: 24px;
  right: 2px;
  padding: 4px 10px;
  border-radius: 0;
  font-family: var(--font-display);
  
  letter-spacing: 0.16em;
  background-color: #000;              /* fondo negro, como el marco */
  color: #f5f5f5;
  border: 2px solid #f5f5f5;           /* borde blanco fino */
  transform: rotate(24deg);            /* efecto sticker */
  transform-origin: center;
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.8);
  z-index: 10;
}

/* solo cambiamos el COLOR del texto/borde para distinguirlos */
.br-campeon {
  font-size: 16px;
  color: #f39c1f;                      /* dorado */
  border-color: #facc15;
}

.br-subcampeon {
  font-size: 12px;
  color: #e5e7eb;                      /* plateado */
  border-color: #e5e7eb;
}

/* ========== LANDING 2025 ========== */

/* HERO brutalista con imagen */
.hero-brutal {
  border: 3px solid var(--border);
  background-color: var(--bg-alt);
  padding: 18px 12px 20px;
  margin-bottom: 24px;
  box-shadow: 6px 6px 0 #ffffff;
}

@media (min-width: 768px) {
  .hero-brutal {
    padding: 22px 18px 24px;
  }
}

.hero-layout {
  display: grid;
  gap: 14px;
}

@media (min-width: 900px) {
  .hero-layout {
    grid-template-columns: minmax(0, 3fr) minmax(0, 2.4fr);
    align-items: stretch;
  }
}

.hero-copy {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: 32px;
  line-height: 1.05;
  letter-spacing: 0.08em;
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 50px;
  }
}

.hero-text {
  font-size: 13px;
  max-width: 520px;
  color: var(--muted);
}

.hero-btn {
  margin-top: 10px;
  padding: 14px 26px;
  font-size: 14px;
}

/* Imagen del hero */
.hero-image-wrapper {
  position: relative;
  border: 3px solid var(--border);
  background-color: #000;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-image-label {
  margin-top: auto;
  padding: 6px 10px;
  background-color: #000;
  border-top: 2px solid var(--border);
  font-size: 10px;
  letter-spacing: 0.16em;
}

/* SECCIONES BRUTALISTAS CON IMAGEN */
.section-brutal {
  border: 3px solid var(--border);
  background-color: #000;
  padding: 16px 12px;
  margin-bottom: 22px;
  box-shadow: 6px 6px 0 #ffffff;
}

.section-alt {
  background-color: var(--bg-alt);
}

@media (min-width: 768px) {
  .section-brutal {
    padding: 18px 18px 20px;
  }
}

.section-layout {
  display: grid;
  gap: 12px;
}

@media (min-width: 900px) {
  .section-layout {
    grid-template-columns: minmax(0, 3fr) minmax(0, 2.4fr);
    align-items: stretch;
  }

  .section-reverse {
    grid-template-columns: minmax(0, 2.4fr) minmax(0, 3fr);
  }
}

.section-copy {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.section-title {
  font-family: var(--font-display);
  font-size: 20px;
  letter-spacing: 0.16em;
  margin-bottom: 4px;
}

.section-text {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.3;
}

.section-text strong {
  color: var(--text);
}

/* Lista brutalista */
.section-list {
  list-style: none;
  padding-left: 0;
  margin: 4px 0 8px;
}

.section-list li {
  position: relative;
  padding-left: 16px;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 4px;
}

.section-list li::before {
  content: "▮";
  position: absolute;
  left: 0;
  top: 0;
  font-size: 10px;
  color: var(--accent);
}

/* Imagen sección */
.section-image-wrapper {
  position: relative;
  border: 3px solid var(--border);
  background-color: #000;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.section-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.section-image-label {
  margin-top: auto;
  padding: 6px 10px;
  background-color: #000;
  border-top: 2px solid var(--border);
  font-size: 10px;
  letter-spacing: 0.16em;
}

/* CTA FINAL */
.cta-final {
  margin-top: 24px;
  display: flex;
  justify-content: center;
}

.btn-xl {
  padding: 16px 34px;
  font-size: 16px;
  letter-spacing: 0.20em;
}

