/* ============================================================
   Conecta Saltillo — Neo-Brutalist Design System
   Palette: #000 #e8ff4c #ff4bd1 #0000cd #ff283b #88ea4e
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700;900&display=swap');

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

body {
  font-family: 'Montserrat', sans-serif;
  background: #0000cd;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 32px 20px 64px;
}

/* ── LAYOUT ── */
.container {
  width: 100%;
  max-width: 520px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  animation: nb-slideUp 0.25s ease-out;
}

@keyframes nb-slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}


/* ── PROFILE SECTION ── */
.profile-section {
  background: #e8ff4c;
  border: 3px solid #000;
  box-shadow: 6px 6px 0 #000;
  padding: 36px 28px 28px;
  text-align: center;
}

.profilePicture {
  display: block;
  width: 88px;
  height: 88px;
  margin: 0 auto 18px;
  border: 3px solid #000;
  box-shadow: 4px 4px 0 #000;
  overflow: hidden;
  cursor: pointer;
  background: #0000CD;
}

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

.userName {
  font-size: 1.4em;
  font-weight: 900;
  color: #000;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}

.description {
  font-size: 0.78em;
  font-weight: 700;
  color: #000;
  line-height: 1.6;
  margin-bottom: 22px;
  max-width: 360px;
  margin-left: auto;
  margin-right: auto;
}

/* Social icons */
.social {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.social a {
  width: 42px;
  height: 42px;
  background: #000;
  color: #e8ff4c;
  border: 2px solid #000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1em;
  text-decoration: none;
  box-shadow: 3px 3px 0 #88ea4e;
  transition: transform 0.1s, box-shadow 0.1s;
}

.social a:hover {
  transform: translate(3px, 3px);
  box-shadow: none;
}


/* ── LINK BUTTONS ── */
.links {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.link {
  display: block;
  padding: 17px 24px;
  background: #fff;
  border: 3px solid #000;
  box-shadow: 5px 5px 0 #000;
  color: #000;
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  font-size: 0.82em;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  text-decoration: none;
  text-align: center;
  transition: transform 0.1s, box-shadow 0.1s, background 0.1s;
}

.link:nth-child(2) {
  background: #88ea4e;
}

.link:hover {
  transform: translate(5px, 5px);
  box-shadow: none;
  background: #ff4bd1;
  color: #000;
}


/* ── EVENTOS SECTION ── */
.eventos-section {
  background: #000;
  border: 3px solid #000;
  box-shadow: 6px 6px 0 #ff283b;
  padding: 24px 20px 20px;
}

.eventos-title {
  font-size: 0.82em;
  font-weight: 900;
  color: #e8ff4c;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}

#eventos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 14px;
  min-height: 120px;
}

/* Evento cards — generated by JS */
.evento-card {
  position: relative;
  height: 120px;
  border: 2px solid #e8ff4c;
  box-shadow: 3px 3px 0 #e8ff4c;
  overflow: hidden;
  display: block;
  text-decoration: none;
  transition: transform 0.1s, box-shadow 0.1s;
}

.evento-card:nth-child(2) {
  border-color: #ff4bd1;
  box-shadow: 3px 3px 0 #ff4bd1;
}

.evento-card:nth-child(3) {
  border-color: #88ea4e;
  box-shadow: 3px 3px 0 #88ea4e;
}

.evento-card:hover {
  transform: translate(3px, 3px);
  box-shadow: none;
}

.evento-card .card-img {
  position: absolute;
  inset: 0;
  background: #1a1a1a center/cover no-repeat;
}

.evento-card .card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.05) 65%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 8px;
}

.evento-card .card-name {
  font-size: 0.63em;
  font-weight: 900;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  line-height: 1.2;
  margin-bottom: 4px;
}

.evento-card .card-date {
  font-size: 0.6em;
  font-weight: 700;
  color: rgba(255,255,255,0.65);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 3px;
}

.evento-card .card-price {
  font-size: 0.63em;
  font-weight: 900;
  color: #000;
  background: #e8ff4c;
  display: inline-block;
  padding: 2px 6px;
  border: 1px solid #000;
}

.evento-card:nth-child(2) .card-price {
  background: #ff4bd1;
}

.evento-card:nth-child(3) .card-price {
  background: #88ea4e;
}

/* Ver más */
.mas-eventos {
  text-align: center;
}

.mas-eventos a {
  display: inline-block;
  padding: 10px 32px;
  background: #e8ff4c;
  border: 2px solid #000;
  color: #000;
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  font-size: 0.72em;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-decoration: none;
  box-shadow: 3px 3px 0 #88ea4e;
  transition: transform 0.1s, box-shadow 0.1s;
}

.mas-eventos a:hover {
  transform: translate(3px, 3px);
  box-shadow: none;
}


/* ── FOOTER ── */
.footer {
  background: #ff283b;
  border: 3px solid #000;
  padding: 12px 20px;
  text-align: center;
}

.footer a {
  font-size: 0.7em;
  font-weight: 900;
  color: #000;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.footer a:hover {
  text-decoration: underline;
}


/* ── RESPONSIVE ── */
@media (max-width: 480px) {
  body {
    padding: 16px 12px 48px;
  }

  .profile-section {
    padding: 28px 20px 22px;
  }

  .userName {
    font-size: 1.2em;
  }

  .link {
    font-size: 0.78em;
    padding: 15px 20px;
  }

  #eventos-grid {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .evento-card {
    height: 110px;
  }
}