/* ============================================================
   LA LIGA DEL CONSEJO — style.css
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Barlow+Condensed:wght@400;600;700;800&family=Barlow:wght@300;400;500&display=swap');

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

:root {
  --red:      #cc0000;
  --red-dark: #8b0000;
  --black:    #0a0a0a;
  --dark:     #111111;
  --grey:     #1a1a1a;
  --light:    #e8e0d0;
  --white:    #ffffff;
}

/* ── BASE ── */
body {
  min-height: 100vh;
  background: var(--black);
  font-family: 'Barlow', sans-serif;
  color: var(--white);
  overflow-x: hidden;
  padding-top: 70px;
}

body::before {
  content: '';
  position: fixed; inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%, rgba(180,0,0,0.35) 0%, transparent 70%),
    radial-gradient(ellipse 40% 30% at 20% 50%, rgba(140,0,0,0.15) 0%, transparent 60%),
    radial-gradient(ellipse 40% 30% at 80% 50%, rgba(140,0,0,0.15) 0%, transparent 60%);
  pointer-events: none; z-index: 0;
}

/* ── NAVBAR ── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(10,10,10,0.95);
  border-bottom: 1px solid rgba(200,0,0,0.3);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  height: 60px;
  position: fixed;
}

.navbar-brand {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.4rem;
  letter-spacing: 0.15em;
  color: var(--white);
  text-decoration: none;
  text-shadow: 0 0 20px rgba(200,0,0,0.5);
}

.navbar-brand span { color: var(--red); }

.navbar-links {
  display: flex;
  gap: 0.25rem;
  list-style: none;
}

.navbar-links a {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.navbar-links a:hover,
.navbar-links a.active {
  color: var(--white);
  border-bottom-color: var(--red);
}

/* ── PAGE WRAPPER ── */
.page {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
}

.page.narrow { max-width: 520px; }

/* ── PAGE HEADER ── */
.page-header {
  text-align: center;
  margin-bottom: 3rem;
  animation: fadeDown 0.6s ease both;
}

.event-tag {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1rem; font-weight: 600;
  letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--red); margin-bottom: 0.25rem;
}

.event-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2.8rem, 10vw, 4.5rem); line-height: 0.9;
  color: var(--white);
  text-shadow: 0 0 30px rgba(200,0,0,0.6), 0 2px 0 var(--red-dark), 0 4px 0 #500000;
}

.event-subtitle {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1rem; font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--light); margin-top: 0.5rem; opacity: 0.7;
}

/* ── RING DIVIDER ── */
.ring-divider {
  display: flex; align-items: center; gap: 0.75rem; margin: 1.25rem 0;
}
.ring-divider::before, .ring-divider::after {
  content: ''; flex: 1; height: 1px;
  background: linear-gradient(90deg, transparent, var(--red), transparent);
}
.ring-divider span { font-family: 'Bebas Neue', sans-serif; font-size: 1rem; color: var(--red); }

/* ── CARD ── */
.card {
  background: var(--dark);
  border: 1px solid rgba(200,0,0,0.25);
  border-top: 3px solid var(--red);
  padding: 2.5rem 2rem;
  position: relative;
  animation: fadeUp 0.7s ease 0.2s both;
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 16px 100%, 0 calc(100% - 16px));
}

.card::before {
  content: ''; position: absolute; top: -1px; left: -1px;
  width: 30px; height: 30px;
  border-top: 2px solid var(--red); border-left: 2px solid var(--red);
}
.card::after {
  content: ''; position: absolute; bottom: -1px; right: -1px;
  width: 30px; height: 30px;
  border-bottom: 2px solid var(--red); border-right: 2px solid var(--red);
}

.card-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1rem; font-weight: 700;
  letter-spacing: 0.25em; text-transform: uppercase;
  color: var(--red); margin-bottom: 1.75rem;
}

/* ── FORM FIELDS ── */
.field { margin-bottom: 1.35rem; }

label {
  display: block;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1rem; font-weight: 700;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: rgba(255,255,255,0.45); margin-bottom: 0.4rem;
}

input[type="text"], input[type="tel"] {
  width: 100%; padding: 0.85rem 1rem;
  background: var(--grey);
  border: 1px solid rgba(255,255,255,0.08);
  border-bottom: 2px solid rgba(200,0,0,0.4);
  color: var(--white);
  font-family: 'Barlow', sans-serif; font-size: 1rem;
  outline: none; border-radius: 0;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

input[type="text"]:focus, input[type="tel"]:focus {
  border-bottom-color: var(--red);
  background: #1c1c1c;
  box-shadow: 0 4px 20px rgba(200,0,0,0.15);
}

input::placeholder { color: rgba(255,255,255,0.2); font-style: italic; }

/* ── DATE SELECTOR ── */
.date-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1rem; font-weight: 700;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  margin-bottom: 0.75rem; display: block;
}

.date-options { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }

.date-option input[type="radio"] { display: none; }

.date-option label {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 1.25rem 0.5rem;
  background: var(--grey);
  border: 1px solid rgba(255,255,255,0.06);
  border-bottom: 2px solid rgba(200,0,0,0.3);
  cursor: pointer; transition: all 0.2s;
  text-transform: none; letter-spacing: 0;
  color: rgba(255,255,255,0.5);
  text-align: center; position: relative;
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
}

.date-option label .day {
  font-family: 'Bebas Neue', sans-serif; font-size: 2.8rem;
  color: var(--white); line-height: 1; margin-bottom: 0.1rem;
  text-shadow: 0 0 20px rgba(200,0,0,0.5);
}

.date-option label .month {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1rem; font-weight: 700;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--red);
}

.date-option label .plazas {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1rem; color: rgba(255,255,255,0.3);
  margin-top: 0.3rem; letter-spacing: 0.05em;
}

.badge-completo {
  display: none; position: absolute; top: 5px; right: 5px;
  background: var(--red-dark); color: rgba(255,255,255,0.8);
  font-size: 1rem; font-weight: 700;
  font-family: 'Barlow Condensed', sans-serif;
  letter-spacing: 0.1em; text-transform: uppercase; padding: 2px 5px;
}

.date-option.completo label { opacity: 0.3; cursor: not-allowed; pointer-events: none; }
.date-option.completo .badge-completo { display: block; }

.date-option input[type="radio"]:checked + label {
  background: rgba(180,0,0,0.15);
  border-color: rgba(200,0,0,0.5);
  border-bottom-color: var(--red);
  box-shadow: 0 0 20px rgba(200,0,0,0.2);
}

.date-option label:hover { background: #1e1e1e; border-bottom-color: var(--red); }

/* ── BUTTON ── */
.btn {
  display: inline-block;
  width: 100%; padding: 1.1rem;
  background: var(--red); color: var(--white);
  border: none; font-family: 'Bebas Neue', sans-serif;
  font-size: 1.4rem; letter-spacing: 0.15em;
  cursor: pointer; margin-top: 1.5rem;
  transition: background 0.2s, transform 0.1s, box-shadow 0.2s;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
  text-align: center; text-decoration: none;
}

.btn:hover { background: #e00000; box-shadow: 0 0 30px rgba(200,0,0,0.5); transform: translateY(-1px); }
.btn:active { transform: scale(0.99); }
.btn:disabled { opacity: 0.5; pointer-events: none; }

/* ── MESSAGES ── */
.msg {
  margin-top: 1rem; padding: 0.85rem 1rem;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1rem; letter-spacing: 0.05em; display: none;
}
.msg.error   { background: rgba(180,0,0,0.2); color: #ff6b6b; border-left: 3px solid var(--red); display: block; }
.msg.warning { background: rgba(180,100,0,0.2); color: #ffb347; border-left: 3px solid #ff8c00; display: block; }

/* ── SUCCESS SCREEN ── */
.success-screen {
  display: none; text-align: center;
  padding: 2rem 0; animation: fadeUp 0.5s ease both;
}

.success-icon {
  font-family: 'Bebas Neue', sans-serif; font-size: 4rem;
  color: var(--red); text-shadow: 0 0 40px rgba(200,0,0,0.8);
  margin-bottom: 1rem; animation: pulse 1.5s ease infinite;
}

.success-screen h2 {
  font-family: 'Bebas Neue', sans-serif; font-size: 2.5rem;
  letter-spacing: 0.05em; color: var(--white);
  text-shadow: 0 0 20px rgba(200,0,0,0.5);
  line-height: 1; margin-bottom: 0.75rem;
}

.success-screen p { color: rgba(255,255,255,0.6); font-size: 1rem; line-height: 1.6; }

.success-date {
  display: inline-block; margin-top: 1rem;
  padding: 0.5rem 1.5rem;
  background: rgba(180,0,0,0.2);
  border: 1px solid rgba(200,0,0,0.4);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1rem; font-weight: 700;
  letter-spacing: 0.15em; text-transform: uppercase; color: var(--red);
}

/* ── FOOTER NOTE ── */
.footer-note {
  margin-top: 1.5rem; font-size: 1rem;
  color: rgba(255,255,255,0.2); text-align: center;
  letter-spacing: 0.05em; text-transform: uppercase;
  font-family: 'Barlow Condensed', sans-serif;
}

.ldc-mark {
  text-align: center; margin-top: 1.5rem;
  font-family: 'Bebas Neue', sans-serif; font-size: 1rem;
  letter-spacing: 0.4em; color: rgba(200,0,0,0.3);
}

/* ── SECTION TITLE ── */
.section-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.8rem; letter-spacing: 0.08em;
  color: var(--white); margin-bottom: 0.25rem;
}

.section-subtitle {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1rem; font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: rgba(255,255,255,0.35); margin-bottom: 2rem;
}

/* ── FIGHTERS TABLE ── */
.fighters-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.fighter-card {
  background: var(--dark);
  border: 1px solid rgba(200,0,0,0.2);
  border-top: 2px solid var(--red);
  padding: 1.25rem;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
  animation: fadeUp 0.5s ease both;
}

.fighter-id {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1rem; letter-spacing: 0.15em;
  color: var(--red); margin-bottom: 0.25rem;
}

.fighter-name {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.3rem; letter-spacing: 0.05em;
  color: var(--white); line-height: 1.1;
}

.fighter-date {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(255,255,255,0.3); margin-top: 0.5rem;
}

/* ── CONTENT BLOCKS ── */
.content-block {
  background: var(--dark);
  border: 1px solid rgba(200,0,0,0.2);
  border-left: 3px solid var(--red);
  padding: 1.5rem 1.75rem;
  margin-bottom: 1rem;
  animation: fadeUp 0.5s ease both;
}

.content-block h3 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.2rem; letter-spacing: 0.08em;
  color: var(--white); margin-bottom: 0.5rem;
}

.content-block p, .content-block li {
  font-size: 1rem; line-height: 1.7;
  color: rgba(255,255,255,0.6);
}

.content-block ul {
  padding-left: 1.25rem; margin-top: 0.5rem;
}

.content-block li { margin-bottom: 0.25rem; }

.tag {
  display: inline-block;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1rem; font-weight: 700;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--red); background: rgba(200,0,0,0.1);
  border: 1px solid rgba(200,0,0,0.3);
  padding: 2px 8px; margin-bottom: 0.5rem;
}

/* ── SPONSORS ── */
.sponsors {
  margin-top: 2rem;
  padding: 1.25rem 0 1rem;
  border-top: 1px solid rgba(200,0,0,0.2);
  text-align: center;
}

.sponsors-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1rem;
}

.sponsors-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 1.5rem;
}

.sponsors-logos img {
  height: 120px;
  width: auto;
  object-fit: contain;
  filter: grayscale(100%) brightness(0.7);
  opacity: 0.65;
  transition: filter 0.3s, opacity 0.3s;
  flex-shrink: 0;
}

.sponsors-logos img:hover {
  filter: grayscale(0%) brightness(1);
  opacity: 1;
}

/* ── ANIMATIONS ── */
@keyframes fadeUp   { from { opacity:0; transform:translateY(24px);  } to { opacity:1; transform:translateY(0); } }
@keyframes fadeDown { from { opacity:0; transform:translateY(-16px); } to { opacity:1; transform:translateY(0); } }
@keyframes pulse {
  0%,100% { text-shadow: 0 0 40px rgba(200,0,0,0.8); }
  50%      { text-shadow: 0 0 60px rgba(200,0,0,1), 0 0 80px rgba(200,0,0,0.4); }
}

/* ── RESPONSIVE ── */
@media (max-width: 600px) {
  .navbar { padding: 0 1rem; }
  .navbar-brand { font-size: 1.1rem; }
  .navbar-links a { padding: 0.5rem 0.6rem; font-size: 1rem; }
  .page { padding: 2rem 1rem 3rem; }
  .sponsors-logos { flex-wrap: wrap; gap: 1rem; }
  .sponsors-logos img { height: 60px; }
}
