/* =================== VARIABLES =================== */
:root{

  /* Color principal (azul elegante) */
  --rojo:#2563eb;       

  /* Hover / resaltado */
  --hover:#3b82f6;      

  /* Texto */
  --negro:#1e293b;       

  /* Fondos */
  --gris:#f1f5f9;        
  --blanco:#ffffff;     

  /* Cards */
  --beige:#f8fafc;    

  /* Info / headers */
  --marron:#334155;     
}

/* =================== BODY =================== */
body{
  background: var(--blanco);
  font-family: 'Poppins', sans-serif;
  margin:0;
  padding:0;
  color: var(--negro);
}
/* FACEBOOK CARD */
.fb-container{
    background:#fff;
    border-radius:12px;
    padding:15px;
    max-width:100%;
    margin:auto;
    box-shadow:0 4px 12px rgba(0,0,0,.15);
}

.fb-container h5{
    color:#1877f2;
    font-weight:bold;
}

.fb-container i{
    font-size:20px;
}

/* ANUNCIATE AQUI */

.ads-box{
    background:#fff;
    border-radius:15px;
    overflow:hidden;
    max-width:400px;
    margin:auto;
    box-shadow:0 5px 15px rgba(0,0,0,.2);
    border:2px dashed #b22222;
}

/* Header */
.ads-header{
    background:#b22222;
    color:white;
    padding:10px;
    text-align:center;
    font-weight:bold;
    display:flex;
    justify-content:center;
    align-items:center;
    gap:8px;
}

/* Body */
.ads-body{
    padding:15px;
    text-align:center;
}

.ads-body h5{
    font-weight:bold;
    margin-bottom:8px;
}

.ads-small{
    font-size:13px;
    color:#555;
}

/* BANNER CON IMAGEN RESPONSIVE */

.banner-img-ad{
    max-width:1200px;
    margin:15px auto;
    border-radius:6px;
    overflow:hidden;
    box-shadow:0 3px 10px rgba(0,0,0,.25);

    /* Altura controlada */
    height:160px;
}

.banner-img-ad img{
    width:100%;
    height:100%;
    object-fit:cover; /* Recorta sin deformar */
    display:block;
    transition:0.3s;
}

/* MÓVIL */
@media (max-width:768px){

    .banner-img-ad{
        height:100px; /* más pequeño en celular */
        margin:10px;
    }

}



/* Boton */
.btn-ads{
    background:#25d366;
    color:white;
    border-radius:25px;
    padding:8px 18px;
    font-weight:bold;
    text-decoration:none;
    display:inline-flex;
    align-items:center;
    gap:6px;
    margin-top:10px;
    transition:.3s;
}

.btn-ads:hover{
    background:#1ebe5d;
    color:white;
    transform:scale(1.05);
}


.navbar-header,
.navbar-header .navbar-collapse,
.navbar-header .navbar-collapse.show {
    background: #111 !important;  /* negro siempre */
}

/* TITULO */
h3 {
    font-weight: 700;
    color: #b22222;
    margin-bottom: 20px;
    border-left: 4px solid #b22222;
    padding-left: 10px;
}

/* CONTENEDOR DE CARDS */
.partidos-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 15px;
}

/* CARD DE PARTIDO */
.partido-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,.1);
    transition: 0.3s;
}

.partido-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,.2);
}

/* ENCABEZADO ROJO DE LA TARJETA (fecha, hora, campo) */
.partido-header {
    background: var(--rojo);
    color: #fff;
    font-weight: 700;
    padding: 8px 12px;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    text-align: center;
    font-size: 0.95rem;
}

/* NOMBRES DE LOS EQUIPOS */
.partido-nombres {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
    font-size: 1.05rem;
    padding: 10px 12px;
    gap: 5px;
}

.partido-nombres span img {
    height: 20px;
    object-fit: contain;
    margin-right: 5px;
}

/* RESPONSIVE */
@media(max-width: 768px){
    .partido-nombres {
        flex-direction: column;
        text-align: center;
    }
}



.footer-admin{
    margin-top:6px;
}

.footer-admin a{
    color:#777;
    font-size:11px;
    text-decoration:none;
    transition:0.2s;
}

.footer-admin a:hover{
    color:#ff3b3b;
    text-decoration:underline;
}

/* =================== NAVBAR =================== */
.navbar-app{
    background:#1c1c1c;
    position: sticky;
    top:0;
    z-index: 999;
    box-shadow: 0 4px 15px rgba(0,0,0,.4);
    padding:0.5rem 1rem;
}

.navbar-nav{
    display:flex;
    flex-direction:row;
    align-items:center;
    gap:10px;
    overflow-x:auto;  /* scroll horizontal en m贸vil si no cabe */
    flex-wrap: nowrap;
    padding: 0;
    margin: 0;
}

.navbar-nav .nav-link{
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    font-size:12px;
    color:#bbb;
    gap:2px;
    padding:6px 8px;
    min-width:50px;
    border-radius:8px;
    transition:0.2s;
    text-align:center;
    white-space: nowrap;
}

.navbar-nav .nav-link i{
    font-size:20px;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active{
    background:#333;
    color:#ff3b3b;
    transform:scale(1.1);
    box-shadow:0 4px 10px rgba(0,0,0,.5);
}

/* Scroll suave en m贸vil */
.navbar-nav::-webkit-scrollbar {
    height: 4px;
}
.navbar-nav::-webkit-scrollbar-thumb {
    background: #555;
    border-radius: 2px;
}

/* Header no demasiado alto en m贸vil */
@media(max-width:768px){
    .navbar-brand span{
        font-size: 14px;
    }
    .navbar-nav .nav-link{
        font-size:10px;
        padding:4px 6px;
    }
    .navbar-nav .nav-link i{
        font-size:18px;
    }
}

/* TITULO */
h3 {
    font-weight: 700;
    color: #b22222;
    margin-bottom: 20px;
    border-left: 4px solid #b22222;
    padding-left: 10px;
}

/* CONTENEDOR TABLA CON SCROLL EN MOVIL */
.table-responsive {
    overflow-x: auto;
}

/* TABLA MODERNA */
.table {
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,.15);
    background: #fff;
    width: 100%;
}

.table th,
.table td {
    text-align: center;
    vertical-align: middle;
    padding: 12px 10px;
}

.table th {
    background: #222; /* encabezado negro */
    color: #fff;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.table tbody tr:nth-child(odd) {
    background: #f5f5f5;
}

.table tbody tr:hover {
    background: #ffe5e5;
    transform: scale(1.02);
    transition: all 0.2s;
}

.table td b {
    color: #b22222;
    font-weight: 700;
}

/* RESPONSIVE: SCROLL HORIZONTAL */
@media(max-width:768px){
    .table th,
    .table td {
        padding: 8px 6px;
    }
}


/* =================== TITULOS =================== */
.titulo{
  color: var(--rojo);
  font-weight: 700;
  border-left: 3px solid var(--rojo);
  padding-left: 10px;
  margin-bottom: 20px;
  text-shadow: 1px 1px 2px rgba(0,0,0,.2);
}

/* =================== CARDS =================== */
.card{
  border:none;
  border-radius:12px;
  box-shadow:0 6px 20px rgba(0,0,0,.3);
  background: var(--beige);
  transition: 0.3s;
}

.card:hover{
  transform: translateY(-5px);
  box-shadow:0 10px 30px rgba(0,0,0,.35);
}

.card-header{
  background: var(--rojo);
  color:white;
  font-weight:bold;
  border-top-left-radius:12px;
  border-top-right-radius:12px;
  text-shadow: 1px 1px 2px rgba(0,0,0,.3);
}

/* =================== BOTONES =================== */
.btn-rojo{
  background: var(--rojo);
  color:white;
  border:none;
  border-radius:8px;
  transition:0.3s;
  box-shadow: 0 3px 8px rgba(0,0,0,.3);
}

.btn-rojo:hover{
  background: var(--hover);
  transform: scale(1.05);
  box-shadow: 0 6px 15px rgba(0,0,0,.4);
}

/* =================== EQUIPO CARD =================== */
.equipo-card{
  transition:0.3s;
  cursor:pointer;
  border-radius:12px;
  box-shadow: 0 4px 12px rgba(0,0,0,.25);
}

.equipo-card:hover{
  transform: translateY(-5px);
  box-shadow:0 10px 25px rgba(0,0,0,.35);
}

.equipo-card img{
  object-fit:contain;
}

/* =================== MARCADOR FINAL =================== */
.marcador-final{
  border-left:3px solid var(--rojo);
  transition:0.2s;
  background: var(--beige);
  border-radius:12px;
  padding:8px;
  margin-bottom:12px;
  box-shadow: 0 4px 12px rgba(0,0,0,.25);
}

.marcador-final:hover{
  transform: scale(1.02);
  box-shadow:0 8px 20px rgba(0,0,0,.35);
}

/* =================== INFO PARTIDO =================== */
.partido-info{
  display:flex;
  justify-content:center;
  gap:12px;
  flex-wrap:wrap;
  font-size:0.9rem;
  background: var(--marron);
  color:white;
  border-radius:8px;
  padding:6px 10px;
  margin-top:6px;
  box-shadow: 0 2px 8px rgba(0,0,0,.3);
}

/* =================== TABLAS =================== */
.table thead{
  background: var(--marron);
  color:white;
}

/* =================== FOOTER =================== */
.footer{
  background: var(--negro);
  color:white;
  padding:15px;
  text-align:center;
  margin-top:40px;
  border-top-left-radius:12px;
  border-top-right-radius:12px;
  box-shadow: 0 -4px 12px rgba(0,0,0,.25);
}

/* =================== RESPONSIVE =================== */
@media(max-width:768px){
  .marcador-final .col-5,
  .marcador-final .col-2{
    width:100%!important;
    text-align:center;
    margin-bottom:8px;
  }

  .marcador-final img{
    height:40px!important;
  }

  .marcador-final h5{
    font-size:1rem;
    margin:0;
  }

  .partido-info{
    font-size:0.8rem;
    gap:6px;
    padding:4px 6px;
  }

  .navbar-nav .nav-link{
    font-size:10px;
  }
}
