/* ===== RESET ===== */
*{
  margin:0;
  padding:0;
  box-sizing:border-box;
  font-family:"Poppins",Arial,Helvetica,sans-serif;
}

/* ===== VARIABLES ===== */
:root{
  --azul-oscuro:#002b5c;
  --azul-claro:#0077ff;
  --blanco:#ffffff;
  --rojo:#e63946;
  --borde-suave:#eef4ff;
  --sombra:rgba(0,0,0,.15);
}

/* ===== FONDO GENERAL ===== */
body{
  background:linear-gradient(90deg,#eaf1fb 0%,#ffffff 50%,#eaf1fb 100%);
  color:var(--azul-oscuro);
  overflow-x:hidden;
  position:relative;
}

/* ===== BARRAS LATERALES (siempre visibles) ===== */
body::before,
body::after{
  content:"";
  position:fixed;
  top:0;
  width:14px;
  height:100vh;
  z-index:-1;
  background:linear-gradient(to bottom,var(--rojo),#0057b8 90%,var(--azul-oscuro));
  box-shadow:0 0 20px rgba(0,0,0,.25);
}
body::before{left:0;}
body::after{right:0;}

/* ===== LEMAS LATERALES (se ocultan en móvil) ===== */
html::before,
html::after{
  position:fixed;
  top:50%;
  transform:translateY(-50%);
  font-weight:800;
  font-size:1rem;
  color:var(--azul-oscuro);
  text-align:center;
  letter-spacing:4px;
  text-transform:uppercase;
  z-index:0;
  pointer-events:none;
  writing-mode:vertical-rl;
  text-orientation:upright;
}
html::before{content:"UN POBO"; left:30px;}
html::after{content:"UN SENTIMENTO"; right:30px;}
@media (max-width:1024px){
  html::before,html::after{display:none;}
}

/* ===== CONTENEDOR PRINCIPAL ===== */
main{
  max-width:1100px;
  width:90%;
  margin:40px auto;
}

/* ===== HEADER / NAVBAR ===== */
header {
  width: 100%;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(90deg, var(--azul-oscuro), #0057b8, #4da3ff);
  padding: 10px 30px;
  color: var(--blanco);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.logo img {
  width: 36px;
  height: 36px;
  transition: transform 0.3s ease;
}

.logo img:hover {
  transform: scale(1.05);
}

.menu {
  list-style: none;
  display: flex;
  gap: 20px;
}

.menu li a {
  color: var(--blanco);
  text-decoration: none;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.menu li a:hover,
.menu li a.active {
  background: var(--rojo);
  color: var(--blanco);
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.3);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--blanco);
  font-size: 1.8rem;
  cursor: pointer;
  padding: 6px 8px;
}

/* ===== HERO ===== */
.hero{
  background:linear-gradient(135deg,var(--azul-oscuro),var(--azul-claro));
  color:var(--blanco);
  text-align:center;
  padding:100px 20px 80px;
}
.hero-content{
  background:rgba(255,255,255,.14);
  backdrop-filter:blur(8px);
  border-radius:16px;
  padding:40px;
  max-width:700px;
  margin:0 auto;
  box-shadow:0 6px 20px rgba(0,0,0,.25);
  border:1px solid rgba(255,255,255,.2);
}
.escudo-hero{ width:120px; margin-bottom:20px; filter:drop-shadow(0 0 12px var(--rojo)); }
.hero h1{ font-size:3rem; font-weight:800; text-transform:uppercase; margin-bottom:10px; }
.hero .lema{ font-style:italic; font-size:1.2rem; margin-bottom:25px; opacity:.9; }
.btn-hero{
  background:var(--blanco); color:var(--azul-oscuro);
  font-weight:700; text-decoration:none;
  padding:12px 34px; border-radius:8px;
  box-shadow:0 5px 10px var(--sombra);
  transition:.25s ease;
}
.btn-hero:hover{ background:var(--rojo); color:var(--blanco); transform:translateY(-3px); }

/* ===== SECCIONES GENÉRICAS ===== */
section{
  background:var(--blanco);
  border-radius:16px;
  box-shadow:0 6px 20px var(--sombra);
  padding:50px 30px;
  margin-bottom:40px;
  text-align:center;
}
section h2{
  color:var(--azul-oscuro);
  font-size:1.9rem;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:1px;
  margin-bottom:35px;
  position:relative;
}
section h2::after{
  content:"";
  display:block;
  width:50px; height:3px;
  background:var(--rojo);
  margin:10px auto 0;
  border-radius:2px;
}

/* ===== ÚLTIMO RESULTADO ===== */
.ultimo-resultado{ display:flex; flex-direction:column; align-items:center; justify-content:center; text-align:center; }

.resultado-card{
  display:flex; justify-content:center; align-items:center;
  gap:40px;
  background:var(--blanco);
  border-radius:12px;
  padding:30px 20px;
  box-shadow:0 4px 15px var(--sombra);
  width:100%;
  max-width:600px;
  margin:0 auto 25px;
}
.resultado-card .equipo{
  display:flex; flex-direction:column; align-items:center; text-align:center;
  max-width:120px; word-break:break-word;
}
.resultado-card .equipo span{
  margin-top:10px; font-weight:700; color:var(--azul-oscuro);
  line-height:1.1; text-align:center; white-space:normal;
}
.resultado-card img{ width:70px; height:70px; border-radius:50%; object-fit:cover; }
.marcador{ font-size:2.5rem; font-weight:800; color:var(--azul-oscuro); text-align:center; min-width:80px; }

/* Estado sin datos */
.resultado-card.vacio{ min-height:140px; }
.resultado-card.vacio::before{
  content:"Aínda non hai resultados dispoñibles";
  color:var(--azul-oscuro); font-weight:600; opacity:.7;
}

/* Botón secundario */
.btn-secundario{
  display:inline-block;
  background:var(--azul-claro); color:var(--blanco);
  padding:10px 24px; border-radius:6px; text-decoration:none; font-weight:700;
  transition:.25s ease; margin:20px auto 0;
}
.btn-secundario:hover{ background:var(--rojo); transform:scale(1.05); }

/* ===== MINI CLASIFICACIÓN ===== */
.mini-clasificacion table{
  width:90%; max-width:520px; margin:0 auto 30px;
  border-collapse:collapse; border-radius:10px; overflow:hidden;
  box-shadow:0 4px 12px var(--sombra);
}
.mini-clasificacion th{
  background:var(--azul-oscuro); color:var(--blanco);
  padding:12px; text-transform:uppercase; letter-spacing:.5px;
}
.mini-clasificacion td{
  background:var(--blanco); padding:10px; font-weight:500; color:var(--azul-oscuro);
}
.mini-clasificacion tr:nth-child(even) td{ background:var(--borde-suave); }

/* ===== PRÓXIMO PARTIDO ===== */
.partido-card{
  display:flex; justify-content:center; align-items:center; gap:25px;
  background:var(--blanco); border-radius:12px; padding:25px;
  max-width:650px; margin:0 auto; box-shadow:0 4px 10px var(--sombra);
  text-align:center;
}
.partido-card img{ width:70px; height:70px; border-radius:50%; object-fit:cover; }
.partido-card .equipo{ display:flex; flex-direction:column; align-items:center; text-align:center; flex:1; }
.partido-card .info{ flex:1.2; text-align:center; color:var(--azul-oscuro); line-height:1.6; }
.partido-card .info p{ margin:4px 0; }
.partido-card .info strong{ color:var(--rojo); font-size:1.2rem; display:block; margin-bottom:5px; }



/* ===== FOOTER ===== */
footer{
  background:linear-gradient(90deg,var(--azul-oscuro),#0057b8);
  color:var(--blanco);
  text-align:center;
  padding:20px;
  font-size:.95rem;
  font-weight:500;
  box-shadow:0 -3px 10px rgba(0,0,0,.2);
  margin-top:auto;
}
footer::after{
  content:"";
  display:block; width:60px; height:3px; background:var(--rojo);
  margin:10px auto 0; border-radius:2px;
}

/* ===== RESPONSIVE ===== */
@media (max-width:992px){
  main{ width:94%; }
}


/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
  .carrusel { height: 340px; }
  .overlay h1 { font-size: 2.3rem; }
}

@media (max-width: 768px) {
  .menu {
    display: none;
    position: absolute;
    top: 60px;
    right: 0;
    width: 100%;
    flex-direction: column;
    background: #06335f;
    text-align: center;
    padding: 20px 0;
    box-shadow: 0 6px 12px rgba(0,0,0,0.3);
  }

  .menu.active { display: flex; }

  .menu-toggle { display: block; }

  .carrusel { height: 280px; }
  .overlay h1 { font-size: 1.8rem; }
}

@media (max-width: 480px) {
  .carrusel { height: 220px; }
  .info-club { margin: 30px 10px; padding: 40px 15px; }
  .redes-sociales { padding: 30px 10px; }
}

  /* Ajustes secciones */
  section{ padding:32px 18px; }

  /* Último resultado / Próximo partido */
  .resultado-card, .partido-card{ flex-direction:column; gap:14px; }
  .resultado-card img, .partido-card img{ width:60px; height:60px; }

  /* Próximo partido en grid si prefieres */
  .partido-card{
    display:grid;
    grid-template-columns:1fr 1fr;
    grid-template-areas:
      "eq1 eq2"
      "info info";
    justify-items:center;
    align-items:center;
    gap:12px;
  }
  .partido-card .equipo:first-child{ grid-area:eq1; }
  .partido-card .equipo:last-child{ grid-area:eq2; }
  .partido-card .info{ grid-area:info; }


@media (max-width:380px){
  .logo span{ font-size:.95rem; }
  .hero h1{ font-size:2rem; }
  .marcador{ font-size:2.1rem; }
}


