* {
  box-sizing: border-box;
}

html {
  height: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  margin: 0;
  font-family: 'Inter', Arial, sans-serif;
  background: #0b0b0b;
  color: #f2f2f2;
}

main {
  flex: 1;
}

img {
  max-width: 100%;
  display: block;
}

a, button {
  transition: 0.3s ease;
}

h1, h2, h3, .brand-name {
  font-family: 'Orbitron', Arial, sans-serif;
}

section {
  padding: 6rem 1.5rem 4rem;
  max-width: 1200px;
  margin: auto;
  width: 100%;
}

section h2 {
  text-align: center;
  margin-bottom: 2rem;
  color: #c62828;
  font-size: 2rem;
}

/* ================= HEADER ================= */

header {
  background: rgba(0, 0, 0, 0.95);
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

header img {
  height: 55px;
  width: auto;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-size: 1rem;
  color: #fff;
}

.brand-subtitle {
  font-size: 0.8rem;
  color: #aaa;
}

nav {
  display: flex;
  align-items: center;
}

nav a {
  color: #f2f2f2;
  margin-left: 1.2rem;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}

nav a:hover {
  color: #c62828;
}

nav a.active {
  color: #c62828;
  border-bottom: 2px solid #c62828;
  padding-bottom: 0.2rem;
}

.menu-toggle {
  display: none;
  font-size: 2rem;
  cursor: pointer;
}

/* ================= BUTTONS ================= */

.primary-btn,
.secondary-btn,
.login-btn,
.link-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border: none;
  cursor: pointer;
  border-radius: 999px;
  font-weight: 700;
  padding: 0.85rem 1.3rem;
}

.primary-btn,
.login-btn {
  background: #c62828;
  color: #fff;
}

.primary-btn:hover,
.login-btn:hover {
  background: #e53935;
  transform: translateY(-2px);
}

.secondary-btn {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.2);
}

.secondary-btn:hover {
  border-color: #c62828;
  color: #c62828;
  transform: translateY(-2px);
}

.login-btn {
  margin-left: 1rem;
  padding: 0.55rem 1rem;
}

/* ================= HERO ================= */

.hero {
  background:
    linear-gradient(rgba(0,0,0,0.72), rgba(0,0,0,0.9)),
    url("../images/hero-desktop.jpg") center/cover no-repeat;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  border-radius: 0 0 28px 28px;
}

.hero-content {
  max-width: 900px;
}

.hero-badge {
  display: inline-block;
  background: rgba(198, 40, 40, 0.16);
  border: 1px solid rgba(198, 40, 40, 0.45);
  color: #ff8a80;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  margin-bottom: 1.2rem;
  font-weight: 700;
  font-size: 0.9rem;
}

.hero h1 {
  font-size: 3.4rem;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.15rem;
  max-width: 760px;
  margin: 0 auto 1.8rem;
  color: #d8d8d8;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ================= QUOTE ================= */

.quote {
  background: linear-gradient(135deg, #c62828, #111);
  text-align: center;
  padding: 3rem 2rem;
  font-size: 1.4rem;
  font-style: italic;
  border-radius: 24px;
  margin-top: 2rem;
}

/* ================= CONTENT BOX ================= */

.content-box {
  background: #111;
  border-radius: 18px;
  padding: 2rem;
  line-height: 1.9;
  color: #ddd;
  box-shadow: 0 8px 24px rgba(0,0,0,0.35);
}

/* ================= STATS ================= */

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}

.stat-card {
  background: linear-gradient(180deg, #121212, #0f0f0f);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 18px;
  padding: 1.5rem;
  text-align: center;
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
}

.stat-number {
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.4rem;
}

.stat-label {
  color: #bbb;
  font-size: 0.95rem;
}

/* ================= MATCHES ================= */

.match-highlight {
  background: linear-gradient(180deg, #121212, #0d0d0d);
  border-radius: 22px;
  padding: 2rem;
  max-width: 820px;
  margin: auto;
  box-shadow: 0 10px 28px rgba(0,0,0,0.28);
  border: 1px solid rgba(255,255,255,0.05);
}

.match-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.match-tag {
  display: inline-block;
  background: rgba(198,40,40,0.15);
  color: #ff9a9a;
  border: 1px solid rgba(198,40,40,0.3);
  border-radius: 999px;
  padding: 0.35rem 0.8rem;
  font-size: 0.85rem;
  font-weight: 700;
}

.match-title {
  font-size: 1.4rem;
  font-weight: 800;
  margin: 0;
}

.match-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.match-detail-box {
  background: rgba(255,255,255,0.03);
  border-radius: 16px;
  padding: 1rem;
}

.match-detail-box strong {
  display: block;
  color: #fff;
  margin-bottom: 0.35rem;
}

.match-detail-box span {
  color: #bbb;
  font-size: 0.95rem;
}

.countdown-box {
  margin-top: 1.5rem;
  padding: 1rem;
  background: rgba(198,40,40,0.08);
  border: 1px solid rgba(198,40,40,0.22);
  border-radius: 16px;
  text-align: center;
  font-weight: 700;
  color: #fff;
}

/* ================= CARDS ================= */

.cards,
.news-grid,
.player-grid,
.contact-grid {
  display: grid;
  gap: 1.4rem;
}

.cards {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.news-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.player-grid {
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.contact-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.card,
.news-card,
.player-card,
.contact-card {
  background: #111;
  border-radius: 18px;
  padding: 1.4rem;
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
  border: 1px solid rgba(255,255,255,0.04);
}

.card:hover,
.news-card:hover,
.player-card:hover {
  transform: translateY(-6px);
}

.card-title,
.news-card h3,
.player-card h3,
.contact-card h3 {
  margin-top: 0;
  color: #fff;
}

.card-subtitle,
.news-date,
.player-meta,
.contact-card p {
  color: #bdbdbd;
  font-size: 0.95rem;
}

.news-card p,
.player-card p {
  color: #ddd;
  line-height: 1.7;
}

.player-photo {
  width: 100%;
  height: 220px;
  border-radius: 14px;
  object-fit: cover;
  margin-bottom: 1rem;
  background: #1b1b1b;
}

.player-badge {
  display: inline-block;
  background: rgba(198,40,40,0.15);
  color: #ff9a9a;
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
}

/* ================= FEATURED PLAYER ================= */

.featured-player {
  background: linear-gradient(135deg, #151515, #0d0d0d);
  border-radius: 22px;
  padding: 2rem;
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 2rem;
  align-items: center;
  box-shadow: 0 10px 28px rgba(0,0,0,0.28);
}

.featured-player img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: 18px;
}

.featured-player h3 {
  margin-top: 0;
  font-size: 1.8rem;
}

.featured-player p {
  color: #ddd;
  line-height: 1.8;
}

/* ================= GALERÍA ================= */

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1rem;
}

.gallery img {
  width: 100%;
  height: 240px;
  border-radius: 16px;
  object-fit: cover;
  cursor: pointer;
  transition: transform 0.3s ease;
  box-shadow: 0 8px 24px rgba(0,0,0,0.22);
}

.gallery img:hover {
  transform: scale(1.03);
}

/* ================= MODAL ================= */

.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.95);
  align-items: center;
  justify-content: center;
}

.modal-content {
  max-width: 85%;
  max-height: 85%;
  border-radius: 12px;
}

.close {
  position: absolute;
  top: 20px;
  right: 40px;
  font-size: 40px;
  cursor: pointer;
  color: white;
}

.prev, .next {
  position: absolute;
  top: 50%;
  font-size: 50px;
  color: white;
  cursor: pointer;
  user-select: none;
  transform: translateY(-50%);
}

.prev { left: 30px; }
.next { right: 30px; }

.prev:hover, .next:hover {
  color: #c62828;
}

.dots-container {
  position: absolute;
  bottom: 40px;
  display: flex;
  gap: 10px;
}

.dot {
  height: 12px;
  width: 12px;
  background-color: #888;
  border-radius: 50%;
  cursor: pointer;
  transition: 0.3s;
}

.dot.active {
  background-color: #c62828;
  transform: scale(1.2);
}

/* ================= VIDEO ================= */

.video-container {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 18px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
}

.video-container iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* ================= CONTACT ================= */

.social-actions {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ================= FOOTER ================= */

footer {
  background: #111;
  text-align: center;
  padding: 1rem;
  font-size: 0.9rem;
  color: #aaa;
  margin-top: auto;
}

/* ================= SPA ================= */

.page-section {
  animation: fadeIn 0.35s ease-in-out;
}

.hidden {
  display: none;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ================= RESPONSIVE ================= */

@media (max-width: 900px) {
  .featured-player {
    grid-template-columns: 1fr;
  }

  .featured-player img {
    height: 320px;
  }
}

@media (max-width: 768px) {
  .hero {
    background:
      linear-gradient(rgba(0,0,0,0.62), rgba(0,0,0,0.88)),
      url("../images/hero-mobile.jpg") center/cover no-repeat;
    min-height: 88vh;
  }

  .hero h1 {
    font-size: 2.3rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .menu-toggle {
    display: block;
  }

  nav {
    position: absolute;
    top: 85px;
    right: 0;
    background: #111;
    flex-direction: column;
    width: 100%;
    display: none;
    text-align: center;
    padding: 0.8rem 0 1.2rem;
  }

  nav.active {
    display: flex;
  }

  nav a {
    margin: 0.9rem 0;
  }

  .login-btn {
    margin-left: 0;
  }

  .brand-subtitle {
    display: none;
  }

  .match-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .prev, .next {
    font-size: 38px;
  }

  .close {
    right: 20px;
  }
}
/* ================= CONVOCATORIAS / RECLUTAMIENTO ================= */

.recruitment-card {
  background:
    linear-gradient(135deg, rgba(198,40,40,0.18), rgba(13,13,13,0.95)),
    #111;
  border-radius: 24px;
  padding: 2rem;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: center;
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow: 0 12px 30px rgba(0,0,0,0.35);
  overflow: hidden;
}

.recruitment-content h3 {
  font-size: 2.2rem;
  margin: 1rem 0;
  color: #fff;
}

.recruitment-content p {
  color: #d6d6d6;
  line-height: 1.8;
}

.recruitment-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

.recruitment-info div {
  background: rgba(255,255,255,0.04);
  border-radius: 16px;
  padding: 1rem;
}

.recruitment-info strong {
  display: block;
  color: #fff;
  margin-bottom: 0.4rem;
}

.recruitment-info span {
  color: #bdbdbd;
  font-size: 0.95rem;
}

.recruitment-schedule {
  background: rgba(255,255,255,0.035);
  border-radius: 16px;
  padding: 1.2rem;
  margin-bottom: 1.5rem;
}

.recruitment-schedule h4 {
  margin-top: 0;
  color: #fff;
  font-family: 'Orbitron', Arial, sans-serif;
}

.recruitment-schedule ul {
  margin: 0;
  padding-left: 1.2rem;
  color: #d6d6d6;
  line-height: 1.8;
}

.recruitment-callout {
  background: rgba(198,40,40,0.14);
  border: 1px solid rgba(198,40,40,0.35);
  border-radius: 16px;
  padding: 1rem;
  margin-bottom: 1.5rem;
}

.recruitment-callout strong {
  color: #ff9a9a;
}

.recruitment-callout p {
  margin-bottom: 0;
}

.recruitment-image {
  position: relative;
}

.recruitment-image img {
  width: 100%;
  height: 460px;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: 0 10px 26px rgba(0,0,0,0.35);
  transform: rotate(1.5deg);
}

.recruitment-photo-label {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  background: rgba(0,0,0,0.72);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 999px;
  padding: 0.55rem 0.9rem;
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
}

@media (max-width: 850px) {
  .recruitment-card {
    grid-template-columns: 1fr;
  }

  .recruitment-image img {
    height: 300px;
    transform: none;
  }
}