/* tierlist-edificios.css */

/* ===== HERO ===== */
.tl-hero {
  background: linear-gradient(135deg, #0e0e0e 0%, #1a0505 50%, #0e0e0e 100%);
  border-bottom: 3px solid var(--primario);
  padding: 3rem 1.5rem 2rem;
  text-align: center;
}

.tl-hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.tl-badge {
  display: inline-block;
  background: var(--acento);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 3px;
  padding: 0.4rem 1.2rem;
  border-radius: 20px;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.tl-hero h1 {
  font-size: 2.8rem;
  color: #fff;
  margin: 0 0 0.5rem;
  text-shadow: 0 0 30px rgba(196, 30, 58, 0.5);
}

.tl-hero-sub {
  font-size: 1.1rem;
  color: #ccc;
  margin-bottom: 1.5rem;
}

.tl-disclaimer {
  background: rgba(196, 30, 58, 0.08);
  border: 1px solid rgba(196, 30, 58, 0.25);
  border-radius: 8px;
  padding: 1rem 1.5rem;
  color: #aaa;
  font-size: 0.9rem;
  line-height: 1.6;
  text-align: left;
}

.tl-disclaimer a {
  color: var(--acento);
  font-weight: 600;
  text-decoration: none;
}

.tl-disclaimer a:hover {
  text-decoration: underline;
}

/* ===== LEGEND ===== */
.tl-legend {
  max-width: 900px;
  margin: 2rem auto;
  padding: 0 1.5rem;
}

.tl-legend-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  background: #1a1a1a;
  border-radius: 10px;
  padding: 0.8rem 1rem;
  border: 1px solid #222;
  font-size: 0.85rem;
  color: #ccc;
}

.legend-badge {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.tier-s .legend-badge { background: var(--acento); color: #fff; }
.tier-a .legend-badge { background: #7b2d8b; color: #fff; }
.tier-b .legend-badge { background: #1a5276; color: #fff; }
.tier-c .legend-badge { background: #1e8449; color: #fff; }

/* ===== TIER SECTIONS ===== */
.tier-section {
  max-width: 900px;
  margin: 2rem auto;
  padding: 0 1.5rem;
}

.tier-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.2rem 1.5rem;
  border-radius: 12px 12px 0 0;
  margin-bottom: 0;
}

.tier-s-header { background: linear-gradient(135deg, rgba(196,30,58,0.3), rgba(196,30,58,0.1)); border-left: 5px solid var(--acento); }
.tier-a-header { background: linear-gradient(135deg, rgba(123,45,139,0.3), rgba(123,45,139,0.1)); border-left: 5px solid #7b2d8b; }
.tier-b-header { background: linear-gradient(135deg, rgba(26,82,118,0.3), rgba(26,82,118,0.1)); border-left: 5px solid #1a5276; }
.tier-c-header { background: linear-gradient(135deg, rgba(30,132,73,0.3), rgba(30,132,73,0.1)); border-left: 5px solid #1e8449; }

.tier-label {
  font-size: 3rem;
  font-weight: 900;
  line-height: 1;
  flex-shrink: 0;
}

.tier-s-header .tier-label { color: var(--acento); }
.tier-a-header .tier-label { color: #9b59b6; }
.tier-b-header .tier-label { color: #2980b9; }
.tier-c-header .tier-label { color: #27ae60; }

.tier-header h2 {
  margin: 0 0 0.3rem;
  font-size: 1.3rem;
  color: #fff;
}

.tier-header p {
  margin: 0;
  font-size: 0.9rem;
  color: #aaa;
}

/* ===== TIER LIST ITEMS ===== */
.tier-list {
  background: #111;
  border: 1px solid #222;
  border-top: none;
  border-radius: 0 0 12px 12px;
  overflow: hidden;
}

.tier-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid #1a1a1a;
  transition: background 0.2s;
}

.tier-item:last-child {
  border-bottom: none;
}

.tier-item:hover {
  background: #1a1a1a;
}

.item-rank {
  width: 28px;
  height: 28px;
  background: #222;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: #888;
  flex-shrink: 0;
}

.item-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.item-info {
  flex: 1;
  min-width: 0;
}

.item-info strong {
  display: block;
  color: #fff;
  font-size: 1rem;
  margin-bottom: 0.2rem;
}

.item-info span {
  color: #888;
  font-size: 0.85rem;
}

.item-power {
  color: var(--acento);
  font-size: 0.85rem;
  font-weight: 700;
  text-align: right;
  flex-shrink: 0;
  white-space: nowrap;
}

/* ===== TIER NOTE ===== */
.tier-note {
  background: rgba(26, 82, 118, 0.15);
  border: 1px solid rgba(41, 128, 185, 0.3);
  border-left: 4px solid #2980b9;
  border-radius: 0;
  padding: 1rem 1.5rem;
  color: #aaa;
  font-size: 0.9rem;
  line-height: 1.6;
}

.tier-note strong {
  color: #fff;
}

/* ===== CTA ===== */
.tl-cta {
  max-width: 900px;
  margin: 3rem auto;
  padding: 2rem 1.5rem;
  text-align: center;
  background: linear-gradient(135deg, #1a0505, #1a1a1a);
  border: 1px solid rgba(196, 30, 58, 0.3);
  border-radius: 12px;
}

.tl-cta h2 {
  color: #fff;
  margin-bottom: 0.8rem;
  font-size: 1.5rem;
}

.tl-cta p {
  color: #aaa;
  margin-bottom: 1.5rem;
}

.btn-edificios {
  display: inline-block;
  background: var(--acento);
  color: #fff;
  padding: 0.9rem 2rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  transition: all 0.3s;
}

.btn-edificios:hover {
  background: #a01830;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(196, 30, 58, 0.4);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .tl-hero h1 { font-size: 2rem; }
  .tl-legend-grid { grid-template-columns: repeat(2, 1fr); }
  .item-power { display: none; }
}

@media (max-width: 480px) {
  .tl-hero { padding: 2rem 1rem 1.5rem; }
  .tl-hero h1 { font-size: 1.6rem; }
  .tl-legend-grid { grid-template-columns: 1fr 1fr; gap: 0.6rem; }
  .legend-item { padding: 0.6rem; font-size: 0.75rem; }
  .tier-label { font-size: 2rem; }
  .tier-header { gap: 1rem; padding: 1rem; }
  .tier-header h2 { font-size: 1.1rem; }
  .tier-item { padding: 0.8rem 1rem; gap: 0.7rem; }
  .item-icon { font-size: 1.2rem; }
  .item-info strong { font-size: 0.9rem; }
  .tl-legend { padding: 0 1rem; }
  .tier-section { padding: 0 1rem; }
  .tl-cta { margin: 2rem 1rem; padding: 1.5rem 1rem; }
}