/* Estilo global para la página */
body {
    font-family: 'Inter', sans-serif;
    color: white;
    background-color: #0e1622;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    overflow-x: hidden; /* Evitar desbordamiento horizontal */
}

/* Navbar general */
.navbar {
    background-color: #0e1622 !important;
    border-bottom: 2px solid linear-gradient(to right, #ff005e, #00f0ff);
    padding: 10px 30px;
    width: 100%;
    box-sizing: border-box;
    position: fixed; /* Posición fija para que sea sticky */
    top: 0;
    left: 0;
    z-index: 1000; /* Asegura que esté por encima de otros elementos */
    transition: transform 0.3s ease-out; /* Transición suave para el desplazamiento */
}

.navbar::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px; /* Altura del borde */
    background: linear-gradient(to right, #ff005e, #00f0ff); /* Gradiente de color */
}

/* Estilo cuando la navbar está oculta */
.navbar-hidden {
    transform: translateY(-100%); /* Mueve la navbar fuera de la vista hacia arriba */
}


/* Logo de la navbar */
.logo-navbar {
    max-width: 180px;
    height: auto;
}

/* Ajuste del botón toggle a la derecha */
.navbar-toggler {
    border-color: white; /* Cambia el color del borde del botón */
    color: white;
    margin-left: auto; /* Alinea el botón a la derecha */
}

/* Enlaces de la navbar */
.navbar-nav .nav-link {
    color: white !important;
    font-family: 'Inter', sans-serif;
    text-transform: uppercase;
    position: relative;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: #ff005e !important;
}


/* Efecto de subrayado al hacer hover en los enlaces (Inicio, Acerca del Torneo, etc.) */
.navbar-nav .nav-link::after {
    content: "";
    position: absolute;
    width: 0;
    height: 2px;
    background-color: #ff005e;
    bottom: 0;
    left: 0;
    transition: width 0.3s ease;
}

.navbar-nav .nav-link:hover::after {
    width: 100%; /* Subraya el enlace al hacer hover */
}

/* No aplicar subrayado al logo */
.navbar-brand {
    padding: 0; /* Eliminamos el padding para el logo */
}

.navbar-brand img {
    text-decoration: none !important; /* Aseguramos que no haya subrayado en el logo */
}

.cta-button {
    background-color: #ff005e;
    color: white;
    border: none;
    padding: 12px 30px;
    font-size: 1rem; /* Tamaño del texto igual que en el navbar */
    text-transform: uppercase;
    font-family: 'Rajdhani', sans-serif;
    letter-spacing: 0; /* Ajustamos el espaciado para que sea igual al de la navbar */
    transition: all 0.3s ease;
    border-radius: 5px; /* Bordes redondeados, si es necesario */
}

.cta-button:hover {
    background-color: white;
    color: #ff005e;
    transform: scale(1.1); /* Mismo efecto de hover que en el navbar */
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5); /* Sombra al hacer hover */
}

/* Ajustes para pantallas pequeñas */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
    }

    .navbar-nav {
        flex-direction: column;
        align-items: center;
    }

     /* Estilo general para la navbar en pantallas pequeñas */
     .navbar-collapse {
        text-align: center; /* Asegura que todos los elementos estén centrados */
    }

    /* Alinear correctamente el botón Inscríbete */
    .cta-button {
        display: inline-block; /* Asegura que el botón no ocupe toda la fila */
        margin: 10px auto; /* Centra el botón en el menú desplegable */
    }
}

/* Estilos de la Sección de Inicio */
header {
    text-align: center;
    padding: 60px 20px;
    background-color: #0e1622;
    color: #fff;
    margin-top: 0px;
}

header h1 {
    font-size: 3rem;
}

header p {
    font-size: 1.2rem;
}

.blog-section {
    margin-top: 230px;
}
.section-title {
    font-family: 'Rajdhani', sans-serif;
    font-size: 2.5rem;
    color: white;
    text-align: center;
    margin-bottom: 50px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.section-title::after {
    content: '';
    width: 60px;
    height: 4px;
    background-color: #ff005e; /* Barra de acento */
    display: block;
    margin: 10px auto 0;
}
/* Estilos generales */
.blog-card {
    background-color: rgba(255, 255, 255, 0.1);;
    border-radius: 12px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.side-gradient {
    position: absolute;
    top: 0;
    right: 0;
    width: 8px;
    height: 100%;
    border-top-right-radius: 12px;
    border-bottom-right-radius: 12px;
    background: linear-gradient(to bottom, #ff005e, #00f0ff);
}

.blog-card:hover {
    transform: translateY(-5px);
}

/* Efectos al hacer hover en la tarjeta */
.blog-card:hover .blog-image img {
    transform: scale(1.05);
    transition: transform 0.3s ease;
}

.blog-title-link {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-title-link:hover {
    color: #ff005e; /* Efecto hover del título */
    text-decoration: none;
}

.blog-image img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-title {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.6rem;
    color: white;
    margin-top: 10px;
    margin-bottom: 10px;
    transition: color 0.3s ease; /* Animación del color */
}
.blog-content {
    padding: 20px;
}
.blog-category {
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.9rem; /* Tamaño más pequeño */
    color: #ff005e; /* Color que resalta */
    text-transform: uppercase; /* Para que esté en mayúsculas */
}
.blog-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    color: #bbb;
    font-size: 0.9rem;
}
.blog-meta i {
    color: #ff005e;
    margin-right: 5px;
}
.blog-excerpt {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    color: #ccc;
    margin-bottom: 15px;
}
.blog-button {
    display: flex;
    justify-content: flex-end;
}
/* Estilos del botón "Leer más" */
.read-more-btn {
    background-color: #ff005e;
    color: white;
    padding: 12px;
    display: inline-block;
    border-radius: 8px;
    transition: background-color 0.3s ease, color 0.3s ease;
    border: none;
}

.read-more-btn:hover {
    background-color: white;
    color: #ff005e;
}
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}
.pagination a {
    color: #ff005e;
    padding: 8px 12px;
    margin: 0 5px;
    border-radius: 5px;
    text-decoration: none;
    border: 1px solid #ff005e;
}
.pagination a.active, .pagination a:hover {
    background-color: #ff005e;
    color: #ffffff;
}

/* Footer */
.footer {
    background-color: #0e1622; /* Fondo oscuro */
    padding: 50px 20px;
    color: white;
    font-family: 'Inter', sans-serif;
}

.footer .container {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

/* Columnas del footer */
.footer-column {
    text-align: center;
}

/* Logo del footer */
.logo-footer {
    max-width: 240px;
    margin-bottom: 20px;
}

/* Títulos de las secciones en blanco */
.footer-column h3 {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.2rem;
    color: #ff005e; /* Ahora en blanco */
    margin-bottom: 15px;
    text-transform: uppercase;
}

/* Enlaces del footer */
.footer-column a {
    display: block;
    color: white;
    font-size: 0.9rem;
    margin-bottom: 10px;
    transition: color 0.3s ease;
    text-decoration: none;
}

.footer-column a:hover {
    color: #ff005e; /* Hover en los enlaces */
}

/* Redes sociales */
.social-links {
    display: flex;
    justify-content: center; /* Centra los iconos horizontalmente */
    color: white;
    gap: 20px; /* Espaciado entre los iconos */
    margin-top: 10px;
}

.social-links a {
    font-size: 1.2rem; /* Tamaño de los iconos aumentado */
    color: white; /* Color de los iconos */
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: #ff005e; /* Cambia el color en hover */
}

/* Newsletter */
.newsletter-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 20px;
}

.newsletter-form input {
    padding: 10px;
    width: 80%;
    max-width: 300px;
    border: none;
    border-radius: 5px;
    margin-bottom: 10px;
    background-color: #19273b;
    color: white;
}

.newsletter-form button {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 8px 20px;
    border: none;
    border-radius: 5px;
    color: white;
    background-color: #ff005e;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
    white-space: nowrap; /* Evita que el texto del botón se divida en varias líneas */
}

.newsletter-form button:hover {
    background-color: white;
    color: #ff005e;
    transform: scale(1.05);
}

/* Línea divisoria y derechos reservados */
.footer-bottom {
    text-align: center;
    border-top: 1px solid #333;
    padding-top: 20px;
}

.footer-bottom p {
    color: white;
    font-size: 0.9rem;
}

/* Estilo para el nombre del torneo en negrita y blanco */
.footer-bottom .tournament-name {
    font-weight: bold;
    color: #ff005e;
}

/* Responsivo */
@media (max-width: 768px) {
    .footer-columns {
        grid-template-columns: 1fr; /* Una columna en pantallas pequeñas */
        text-align: center;
    }

    .newsletter-form {
        width: 100%;
        padding: 0 10px;
    }
}
