/* RESET BÁSICO */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

/* BODY */
body {
  min-height: 100vh;
  background: radial-gradient(circle at top, #2a0000, #000 60%);
  color: #fff;
  padding: 20px;
  text-align: center;
  position: relative;
  overflow-x: hidden;
}

/* VOLVER */
.volver {
  position: absolute;
  top: 20px;
  left: 20px;
  color: #ff2e2e;
  text-decoration: none;
  font-weight: bold;
  z-index: 5;
}

/* TÍTULOS */
h1 {
  margin-top: 90px;
  font-size: 3rem;
  color: #ff2e2e;
  text-shadow: 0 0 10px rgba(255,46,46,0.4);
}

.subtitle {
  opacity: 0.75;
  margin-bottom: 50px;
  font-size: 1.1rem;
}

/* GRID SOCIAL */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
  max-width: 900px;
  margin: 0 auto;
}

/* CARDS SOCIALES */
.social {
  background: rgba(15,15,15,0.9);
  border: 2px solid #ff2e2e;
  border-radius: 16px;
  padding: 35px 20px;
  text-decoration: none;
  color: white;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.social span {
  font-size: 2.8rem;
}

.social h3 {
  margin-top: 12px;
}

.social p {
  opacity: 0.8;
  margin-top: 6px;
}

.social:hover {
  transform: translateY(-6px);
  box-shadow:
    0 0 25px rgba(255,46,46,0.5),
    inset 0 0 10px rgba(255,46,46,0.2);
}

.social.disabled {
  opacity: 0.4;
  filter: grayscale(0.6);
  cursor: not-allowed;
}

/* USER MENU (copiado limpio de index) */
.userMenu {
  position: absolute;
  top: 20px;
  right: 20px;
  user-select: none;
  z-index: 10;
}

.userBtn {
  background: #ff2e2e;
  color: #fff;
  border: none;
  padding: 10px 14px;
  font-size: 0.95rem;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
  transition: background 0.2s;
}

.userBtn:hover {
  background: #e01e1e;
}

.userDropdown {
  position: absolute;
  top: 48px;
  right: 0;
  background: rgba(26,26,26,0.95);
  border: 2px solid #ff2e2e;
  border-radius: 10px;
  padding: 18px 16px;
  width: 240px;
  display: none;
  flex-direction: column;
  gap: 14px;
  backdrop-filter: blur(6px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.45);
  animation: dropdownAnim 0.18s ease-out;
}

.userDropdown.show {
  display: flex;
}

@keyframes dropdownAnim {
  from { opacity:0; transform: translateY(-4px) scale(0.98); }
  to { opacity:1; transform: translateY(0) scale(1); }
}

.userDropdown input {
  width: 100%;
  padding: 10px;
  border: 2px solid #ff2e2e;
  border-radius: 8px;
  background: #0f0f0f;
  color: white;
}

.userDropdown button {
  padding: 10px;
  border-radius: 8px;
  border: none;
  background: #ff2e2e;
  color: white;
  font-weight: bold;
  cursor: pointer;
  transition: 0.2s;
}

.userDropdown button:hover {
  background: #e01e1e;
}

#userNotLogged { display:flex; flex-direction:column; gap:10px; }
#userLogged { display:flex; flex-direction:column; gap:14px; }
#userLogged p { text-align:center; margin-bottom:3px; }
.logoutBtn { background:#444; }
.logoutBtn:hover { background:#666; }
.loginMsg { font-size:0.85rem; text-align:center; opacity:0.9; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px) {
  h1 { font-size:2.4rem; margin-top:70px; }
  .subtitle { font-size:1rem; margin-bottom:35px; }
  .grid { gap:25px; }
  .social { padding:28px 15px; border-radius:14px; }
  .social span { font-size:2.4rem; }
}

@media (max-width: 500px) {
  body { padding:12px; }
  h1 { font-size:2rem; margin-top:60px; }
  .subtitle { font-size:0.95rem; margin-bottom:25px; }
  .grid { gap:20px; }
  .social { padding:20px 12px; border-radius:12px; }
  .social span { font-size:2rem; }
  .userBtn { font-size:0.9rem; padding:8px 12px; }
  .userDropdown { width:200px; padding:14px 12px; }
}
