:root{
  --bg:#0f1115;
  --text:#c7cdd6;
  --text-soft:#8b93a1;
  --text-strong:#e9eef6;
  --accent:#089000;
  --accent-2:#055a00;
  --border:#1a1f27;
}

* { 
  box-sizing: border-box
}

html, body {
  height: 100%;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--text);
  background: var(--bg);
  min-height: 100%;
  overflow-x: hidden;
}

body::-webkit-scrollbar {
    width: 8px;
}

body::-webkit-scrollbar-thumb {
    background-color: #089000;
    border-radius: 6px;
}

body::-webkit-scrollbar-track {
    background-color: #0f1115;
}

/* Header */
.header {
  position: fixed; inset: 0 0 auto 0; height: 56px;
  display: flex; align-items: center; gap: 16px;
  padding: 0 20px; z-index: 10;
  background: rgba(10, 12, 16, 0.6);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.profile {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 150px;
}
.avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #2a2f37;
  display: inline-block;
}
.name {
  font-weight: 600;
  color: #cfd6df;
  font-size: 14px;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex: 1;
}
.nav a {
  color: var(--text-soft);
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  padding: 8px 10px;
  border-radius: 6px;
  transition: color .15s ease, background-color .15s ease;
}
.nav a:hover {
  color: var(--text-strong);
  background: rgba(255, 255, 255, 0.04);
}
.nav a.active {
  color: var(--text-strong);
}

.actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn {
  appearance: none;
  border: none;
  outline: none;
  cursor: pointer;
  padding: 8px 14px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 14px;
  color: white;
  background: linear-gradient(180deg, var(--accent) 0%, var(--accent-2) 100%);
  box-shadow: 0 6px 14px rgba(48, 178, 74,0.28), inset 0 0 0 1px rgba(255,255,255,0.08);
  transition: transform .08s ease, filter .15s ease;
}
.btn:hover { filter:brightness(1.05) }
.btn:active { transform:translateY(1px) }

.btn-red {
  appearance: none;
  border: none;
  outline: none;
  cursor: pointer;
  padding: 8px 14px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 14px;
  color: white;
  background: linear-gradient(180deg, #a02834 0%, #7a1f28 100%);
  box-shadow: 0 6px 14px rgba(220, 53, 69,0.28), inset 0 0 0 1px rgba(255,255,255,0.08);
  transition: transform .08s ease, filter .15s ease;
}
.btn-red:hover { filter:brightness(1.05) }
.btn-red:active { transform:translateY(1px) }



/* Responsive */
@media (max-width: 1100px) {
  .nav { gap: 14px; }
  .nav a { font-size: 13px; }
}

@media (max-width: 900px) {
  .nav { display: none; }
  .name { display: none; }
}



/* Main */
.center {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  min-height: 100vh;
  margin: 0;
}



/* Normativa */
.normativa {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
}

.normativa h1 {
  margin-top: 100px;
  text-align: center;
}

.normativa-item {
  margin-bottom: 15px;
  border: 1px solid var(--border);
  border-radius: 16px;
  margin: 0 25% 15px 25%;
  background: rgba(10, 12, 16, 0.6);
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}
  
.normativa-header {
  background: rgba(10, 12, 16, 0.6);
  padding: 20px;
  cursor: pointer;
  border-radius: 16px;
  transition: background-color 0.2s ease;
}

.normativa-header:hover, .normativa-header.active {
  background-color: rgba(26, 31, 39, 0.3);
}

.normativa-header.active {
  border-radius: 16px 16px 0 0;
}
  
.normativa-content {
  display: none;
  padding: 20px;
  background-color: rgba(26, 31, 39, 0.3);
  border-radius: 0 0 16px 16px;
}

.normativa-content.active {
  display: block;
}
  
.normativa-sub-item {
  margin-bottom: 50px;
  padding-left: 20px;
}

/* Login Styles */
.login-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 20px;
}

.login-box {
  background: rgba(10, 12, 16, 0.6);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 40px;
  text-align: center;
  max-width: 400px;
  width: 100%;
}

.login-box h2 {
  margin-bottom: 30px;
  color: var(--text-strong);
}

.error-message {
  background: rgba(220, 53, 69, 0.1);
  border: 1px solid rgba(220, 53, 69, 0.3);
  color: #f8d7da;
  padding: 12px;
  border-radius: 6px;
  margin-bottom: 30px;
  font-size: 14px;
}

/* Profile Styles */
.profile-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  margin: 0 auto;
}

.profile-container .avatar {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 100px;
}

.profile-container .avatar img {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  border: 4px solid var(--accent);
  object-fit: cover;
  background: var(--bg);
  box-shadow: 0 4px 20px rgba(8, 144, 0, 0.3);
}

.user-info {
  width: 100%;
  max-width: 800px;
  background: rgba(10, 12, 16, 0.6);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 40px;
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.user-info h2 {
  color: var(--text-strong);
  font-size: 32px;
  font-weight: 700;
  margin: 0 0 30px 0;
  text-align: center;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 15px;
}

.user-info p {
  color: var(--text);
  font-size: 18px;
}

.user-info p:last-of-type {
  border-bottom: none;
}

.user-info strong {
  color: var(--accent);
  font-weight: 600;
  display: inline-block;
  min-width: 200px;
}

.cosmetics {
  margin-top: 30px;
  padding-top: 25px;
  border-top: 2px solid var(--border);
}

.cosmetics strong {
  display: block;
  margin-bottom: 15px;
  color: var(--accent);
  font-size: 18px;
  font-weight: 600;
}

.cosmetic-item {
  display: inline-block;
  background: linear-gradient(135deg, rgba(8, 144, 0, 0.3), rgba(8, 144, 0, 0.1));
  border: 1px solid var(--accent);
  color: var(--text-strong);
  padding: 8px 16px;
  border-radius: 25px;
  font-size: 14px;
  font-weight: 500;
  margin: 6px 8px 6px 0;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(8, 144, 0, 0.2);
}

.cosmetic-item:hover {
  background: linear-gradient(135deg, rgba(8, 144, 0, 0.4), rgba(8, 144, 0, 0.2));
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(8, 144, 0, 0.3);
}

.cosmetics span:not(.cosmetic-item) {
  color: var(--text-soft);
  font-style: italic;
  font-size: 16px;
}

/* Responsive Profile */
@media (max-width: 768px) {
  .profile-container {
    padding: 70px 15px 30px;
    min-height: 100vh;
  }
  
  .profile-container .avatar {
    margin-bottom: 25px;
  }
  
  .profile-container .avatar img {
    width: 120px;
    height: 120px;
  }
  
  .user-info {
    padding: 25px;
    max-width: 100%;
  }
  
  .user-info h2 {
    font-size: 26px;
  }
  
  .user-info p {
    font-size: 16px;
  }
  
  .user-info strong {
    min-width: auto;
    display: block;
    margin-bottom: 5px;
  }
}

@media (max-width: 480px) {
  .profile-container {
    padding: 60px 10px 20px;
  }
  
  .profile-container .avatar {
    margin-bottom: 20px;
  }
  
  .profile-container .avatar img {
    width: 100px;
    height: 100px;
  }
  
  .user-info {
    padding: 20px;
  }
  
  .user-info h2 {
    font-size: 22px;
  }
  
  .user-info p {
    font-size: 15px;
  }
  
  .cosmetic-item {
    font-size: 13px;
    padding: 6px 12px;
    margin: 4px 4px 4px 0;
  }
}