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

body {
    background-color: #0f172a;
    color: white;
    font-family: Arial, sans-serif;
}

/* HEADER */

header {
    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 25px 60px;

    background-color: #111827;
}

header h1 {
    font-size: 32px;
}

nav {
    display: flex;
    gap: 25px;
}

nav a {
    color: white;
    text-decoration: none;
    transition: 0.3s;
}

nav a:hover {
    color: #60a5fa;
}

/* EVENTOS */

.eventos {
    padding: 60px;
}

.eventos h2 {
    margin-bottom: 30px;
    font-size: 36px;
}

.eventos-grid {
    display: grid;

    grid-template-columns:
        repeat(auto-fit, minmax(250px, 1fr));

    gap: 25px;
}

.evento-card {
    background-color: #1e293b;

    padding: 30px;

    border-radius: 20px;

    transition: 0.3s;
}

.evento-card:hover {
    transform: translateY(-5px);

    background-color: #334155;
}

.evento-card h3 {
    margin-bottom: 10px;
}

/* POST PRINCIPAL */

.post-principal {
    margin: 60px;

    background-color: #1e293b;

    border-radius: 25px;

    overflow: hidden;
}

.post-principal img {
    width: 100%;
    height: 400px;

    object-fit: cover;
    object-position: top;
}

.post-contenido {
    padding: 40px;
}

.post-contenido h2 {
    font-size: 40px;

    margin-bottom: 20px;
}

.post-contenido p {
    color: #cbd5e1;

    margin-bottom: 30px;

    font-size: 18px;
}

button {
    background-color: #3b82f6;

    color: white;

    border: none;

    padding: 15px 25px;

    border-radius: 12px;

    cursor: pointer;

    font-size: 16px;

    transition: 0.3s;
}

button:hover {
    background-color: #2563eb;
}

/* BLOG HERO */

.blog-hero {
    text-align: center;

    padding: 80px 20px;
}

.blog-hero h2 {
    font-size: 48px;

    margin-bottom: 20px;
}

.blog-hero p {
    color: #cbd5e1;

    font-size: 20px;
}

/* POSTS */

.posts-grid {
    display: grid;

    grid-template-columns:
        repeat(auto-fit, minmax(320px, 1fr));

    gap: 30px;

    padding: 60px;
}

.post-card {
    background-color: #1e293b;

    border-radius: 20px;

    overflow: hidden;

    transition: 0.3s;
}

.post-card:hover {
    transform: translateY(-8px);
}
/*Posiciones imagenes POst*/
.post-card img {
    width: 100%;
    height: 400px;

    object-fit: cover;
}
.post-concierto img {
    object-position: center 6%; /* Enfocado un poco más abajo del centro */
}

/* Ajuste específico para la imagen del post de videojuegos */
.post-encuentros img {
    object-position: center 26%;
}
.post-info {
    padding: 25px;
}

.post-info h3 {
    margin-bottom: 15px;

    font-size: 24px;
}

.post-info p {
    color: #cbd5e1;

    margin-bottom: 20px;
}
/* POSTS EXPANDIBLES */

.posts-container {
    padding: 60px;

    display: flex;
    flex-direction: column;

    gap: 40px;
}

.post-expandido {
    display: none;

    margin-top: 25px;

    padding-top: 25px;

    border-top: 1px solid #334155;
}

.post-expandido p {
    margin-bottom: 15px;

    line-height: 1.7;
}
/* LOGO */

.logo {
    display: flex;
    align-items: center;

    gap: 15px;

    text-decoration: none;

    color: white;
}

.logo img {
    width: 50px;
    height: 50px;

    border-radius: 50%;

    object-fit: cover;
}

.logo span {
    font-size: 32px;
    font-weight: bold;
}

/* LINKS EVENTO */

.links-evento {
    display: flex;
    gap: 15px;

    flex-wrap: wrap;

    margin-top: 30px;
}

.links-evento a {
    background-color: #2563eb;

    color: white;

    text-decoration: none;

    padding: 12px 22px;

    border-radius: 12px;

    font-weight: bold;

    transition: 0.3s;
}

.links-evento a:hover {
    background-color: #1d4ed8;

    transform: translateY(-3px);
}

.enlace-discreto {
    color: #93c5fd;

    text-decoration: none;

    transition: 0.3s;
}

.enlace-discreto:hover {
    color: white;
}

/*Carrousel*/
.carousel {
    position: relative;
    max-width: 1200px;
    height: 700px;
    margin: 30px auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 100%;
}
.carousel-image {
    position: absolute;
    top: 50%;
    left: 50%;

    max-height: 420px;
    width: auto;
    max-width: 260px;

    transform: translate(-50%, -50%) scale(0.8);
    transition: all 0.5s ease;

    opacity: 0;
    object-fit: contain;
        box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

/* Imagen central */
.carousel-image.active {
    opacity: 1;
    z-index: 3;
}

.carousel-image.left {
    opacity: 0.4;
    z-index: 2;
}
.carousel-image.right {
    opacity: 0.4;
    z-index: 2;
}

.carousel-btn {
        display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    
    position: absolute;
    top: 50%;
    transform: translateY(-50%);

    width: 50px;
    height: 50px;

    border: none;
    border-radius: 50%;

    background: rgba(0, 0, 0, 0.4);
    color: white;

    font-size: 28px;
    font-weight: bold;

    cursor: pointer;
    z-index: 10;

    transition: all 0.3s ease;
}

/* Al pasar el ratón */
.carousel-btn:hover {
    background: rgba(0, 0, 0, 0.7);
}

/* Botón izquierdo */
.carousel-btn.prev {
    left: 15px;
}

/* Botón derecho */
.carousel-btn.next {
    right: 15px;
}

