*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root{
    scroll-behavior: smooth;
    --colorpincipal: #d0021b;
    --colorsecundario: #f8e6e6;
}

body{
    font-family: 'Kanit';
    background-color: white;
    display: flex;
    flex-direction: column;
}

article{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.carousel {
    width: 80%;
    max-width: 800px;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    position: relative;
    margin-bottom: 2rem;
  }

  .carousel-images {
    display: flex;
    transition: transform 0.5s ease-in-out;
  }

  .carousel-images img {
    width: 100%;
    display: block;
  }

  .carousel-buttons {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
  }

  .carousel-buttons button {
    background-color: rgba(0, 0, 0, 0.5);
    border: none;
    color: white;
    padding: 10px 20px;
    cursor: pointer;
    font-size: 16px;
    border-radius: 50%;
  }

  .carousel-buttons button:hover {
    background-color: rgba(0, 0, 0, 0.8);
  }

/* Estilo para los botones de compartir */
.share-buttons {
    display: flex;
    gap: 3rem; /* Espacio entre los botones */
}

/* Estilo común para los botones */
.share {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 14rem; /* Tamaño del círculo */
    height: 2rem; /* Tamaño del círculo */
    border-radius: 2rem; /* Forma circular */
    background-color: #25D366; /* Color de fondo para WhatsApp */
    color: white;
    text-decoration: none;
    font-size: 1.5rem; /* Tamaño de los íconos */
    transition: background-color 0.3s ease;
    margin-bottom: 3rem;
    padding: 2rem 2rem;
    text-align: center;
}

/* Color de fondo para Facebook */
.share.facebook {
    background-color: #1877f2;
}

/* Color de fondo para X */
.share.x {
    background-color: #1d9bf0;
}

/* Efecto hover para cambiar el color de fondo */
.share:hover {
    background-color: #075e54; /* Color más oscuro para WhatsApp */
}

/* Efecto hover para Facebook */
.share.facebook:hover {
    background-color: #145498;
}

/* Efecto hover para X */
.share.x:hover {
    background-color: #0a6ea7;
}

header{
    display: flex;   
    background-color: var(--colorsecundario);
    justify-content: space-between;
    align-items: center; 
    padding: 0.625rem;
}

header .logo:hover .logo-img {
    filter: brightness(1.5); /* Ilumina un poco el logo al hacer hover */
}

header .cs-logo-nombre:hover {
    filter: brightness(1.5); /* Ilumina un poco el logo al hacer hover */
}

.boton-contacto:hover{
    filter: brightness(1.5);
}


.logo{
    display: flex;
    align-items: center;
}

.logo-juego{
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-img{
    height: 6.25rem;
}

.logo-nombre{
    font-size: 3rem;
    font-style: italic;
    font-weight: 600;
    padding-right: 1.875rem;
    color: var(--colorpincipal);
}

.lol-logo-nombre{
    font-size: 3rem;
    font-style: italic;
    font-weight: 600;
    padding-right: 1.875rem;
    color: var(--colorpincipal);
}

.logo-nombre-contacto{
    font-size: 3rem;
    font-style: italic;
    font-weight: 600;
    padding-right: 1.875rem;
    color: var(--colorpincipal);
}

.boton-contacto{
    position: absolute;
    background-color: #d0021b; /* Color principal, rojo */
    color: white;
    text-align: center;
    padding: 0.8rem 1rem;
    font-size: 1.125rem;
    font-weight: bold;
    text-decoration: none;
    border-radius: 2rem; /* Bordes redondeados */
    margin-bottom: 1rem; /* Espacio debajo del botón */;
    cursor: pointer;
    right: 1rem;
    top: 0.5rem;
    transition: all 0.3s ease;
}

.container {
    display: flex;
    justify-content: center; /* Centra el contenido horizontalmente */
    align-items: center; /* Centra el contenido verticalmente */
}

.contact-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: 0 2px 5px var(--colorpincipal);
    width: 80%;
    max-width: 37.5rem;
    padding: 1.875rem;
    border-radius: 0.625rem;
    text-align: center;
    margin-top: 4rem;
    background-color: var(--colorsecundario);
}

.profile-img {
    border-radius: 1rem;
}

.img-circle {
    width: 15.625rem;
    height: 15.625rem;
    border-radius: 1rem;
    border: 3px solid #d0021b; /* Color principal de tu página */
    background: rgba(55, 55, 55, 0.227)
}

.description h2 {
    font-size: 1.8rem;
    color: var(--colorpincipal);
}

.description p {
    font-size: 1rem;
    color: black;
    line-height: 1.5;
    margin-top: 0.625rem;
}

.social-links {
    margin-top: 1.875rem;
}

.social-icon {
    display: inline-block;
}

.social-icon img {
    width: 2.8125rem;
    height: 2.8125rem;
    transition: transform 0.3s ease;
}

.social-icon2 img {
    width: 2.8125rem;
    height: 2.8125rem;
    transition: transform 0.3s ease;
}

.social-icon3 img {
    width: 2.8125rem;
    height: 2.8125rem;
    transition: transform 0.3s ease;
}

.social-icon img:hover {
    transform: scale(1.1);
}

.social-icon2 img:hover {
    transform: scale(1.1);
}

.social-icon3 img:hover {
    transform: scale(1.1);
}
/* Estilos para el interruptor */
.switch {
    position: relative;
    display: inline-block;
    width: 3.75rem;
    height: 2.188rem;
    right: 1.9rem;
    border: 0.125rem solid var(--colorpincipal);
    border-radius: 3.125rem;
    top: 1.875rem;
  }
  
.switch input {
    opacity: 0;
    width: 0;
    height: 0;
  }
  
.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: black;
    transition: 0.4s;
    border-radius: 3.125rem;
  }

.icon {
    font-size: 1.25rem;
    pointer-events: none;
    color: white;
    transition: opacity 0.3s, transform 0.3s;
}

.sun {
    position: absolute;
    right: 1.688rem;
    opacity: 1;
    z-index: 1;
}

.moon {
    position: absolute;
    left: 1.688rem;
    opacity: 1;
    z-index: 2;
}
  
.slider:before {
    position: absolute;
    content: "";
    height: 1.875rem;
    width: 1.875rem;
    border-radius: 3.125rem;
    background-color: white;
    transition: 0.4s;
    z-index: 3;
  }
  
  /* Cuando el interruptor está activado (modo nocturno) */
  input:checked + .slider {
    background-color: #4CAF50;
  }
  
  input:checked + .slider:before {
    transform: translateX(26px);
  } 

.separador{
    border: none;
    border-top: 2px solid var(--colorpincipal);
    padding: 0;
    margin: 0;
    width: 100%;
}

.titulo{
    font-size: 4rem;
    font-style: bold;
    font-weight: 500;
    text-align: center;
    margin-top: 4rem;
    color: var(--colorpincipal);
}

.cartas{
    display: flex;
    flex-flow: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.625rem;
    margin-top: 9.375rem;
    border-radius: 0.625rem;
    
}

.imagen img{
    border: 2px solid black;
    border-radius: 0.625rem;
    filter: grayscale(100%);
    box-shadow: 0px 3px 5px #d0021a90;
}

.imagen img:hover{
    filter: grayscale(0%);
    transform: scale(1.05);
    cursor: pointer;
}

.noticias{
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 1.25rem;
    margin-bottom: 1.25rem;
}

.fecha {
    font-size: 0.9rem;
    color: var(--colorpincipal);
    font-weight: 400;
    font-style: italic;
    display: inline-block;
    text-align: center;
}

.nota{
    width: 20rem;
    height: 37rem;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0px 2px 4px var(--colorpincipal);
    margin: 1.25rem;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.nota h2{
    color: var(--colorpincipal);
    text-align: center;
}

.nota img{
    width: 100%;
    height: auto;
}

.info{
    padding: 1.25rem;
    
}

.info h3{
    color: var(--colorpincipal);
    display: flex;
    margin-bottom: 0.5rem;
    justify-content: start;
}

.info p{
    font-size: 1rem;
    line-height: 1.2;
    font-weight: 500;
}

.boton{
    display: inline-block;
    padding: 0.5rem 1rem;
    text-decoration: none;
    border-radius: 0.5rem;
    margin-top: 1rem;
    background-color: #333;
    color: #fff;
    margin-bottom: 1.25rem;
    margin-left: 35%;
    text-align: center;  
    position: absolute;
    bottom: 0;
}

.boton:hover {
    transform: scale(1.1); /* Agranda el botón un 10% */
    background-color: var(--colorpincipal); /* Cambia el color de fondo al pasar el ratón */
}

.noticia {
    width: 100%; /* Ocupa todo el ancho de la ventana */
    height: 100%; /* Ocupa toda la altura de la ventana */
    display: flex; /* Flexbox para distribución interna */
    flex-direction: column; /* Organiza los elementos en columna */
    align-items: center; /* Centra los elementos horizontalmente */
    justify-content: center; /* Distribuye los elementos verticalmente */
    text-align: center; /* Centra el texto dentro del contenedor */
    padding: 1.25rem;
}

.noticia-imagen {
    width: 100%; /* Ocupa el 80% del ancho del contenedor */
    max-width: 50rem; /* Limita el ancho máximo */
    height: auto; /* Mantiene la proporción de la imagen */
    margin-bottom: 1.25rem; /* Espaciado inferior */
    border-radius: 0.5rem; /* Bordes redondeados */
}

.noticia-titulo {
    font-size: 2rem; /* Tamaño de fuente grande */
    font-weight: bold;
    margin-bottom: 1.25rem; /* Espaciado inferior */
    color: var(--colorpincipal);
}

.noticia-parrafo {
    font-size: 1.125rem;
    line-height: 1.8;
    max-width: 50rem; /* Limita el ancho máximo del texto */
    margin: 0 10px; /* Espaciado lateral */
    text-align: justify; /* Justifica el texto */
    margin-bottom: 3.125rem;
}

.resaltar{
    color: #d0021b;
}

.pagination {
    display: flex;
    justify-content: center;
    margin: 1.25rem 0;
    padding-bottom: 3.125rem;
}

.pagination button {
    background-color: #000;
    color: white;
    border: none;
    border-radius: 0.25rem;
    padding: 0.625rem 0.938rem;
    margin: 0 0.313rem;
    cursor: pointer;
}

.pagination button.active {
    background-color: #d0021b;
    color: #fff;
    font-weight: bold;
}

.pagination button:hover {
    background-color: #333;
}

footer {
    text-align: center;
    background-color: #333;
    color: var(--colorpincipal);
    padding: 0.625rem 0;
    font-size: 1rem;
    position: fixed;
    bottom: 0;
    width: 100%;
}
/* Estilos para el modo oscuro */
.night-mode {
    background-color: #121212;
    color: #fff;
}

@media (max-width:800px){
    header{
        flex-direction: column;
    }

    .cartas{
        flex-direction: column;
        align-items: center;
        margin-top: 3.125rem;
    }

    .container{
        margin-bottom: 5rem;
    }

    .logo{
        align-items: center;
    }

    .boton-contacto{
        margin-top: 11rem;
    }

    .logo-nombre{
        align-items: center;
    }

    .switch{
        align-items: center;
        margin-left: 4.063rem;
        margin-bottom: 2.5rem;
    }

    section{
        margin-bottom: 3.75rem;
    }

    .share{
        width: 7rem;
        height: 6rem;
        font-size: 1rem;
        border-radius: 2rem;
    }

    .share-buttons{
        gap: 2rem;
    }

    .logo-nombre{
        font-size: 2.5rem;
    }

    .titulo{
        font-size: 2rem;
    }

    .imagen img{
        width: 20rem;
        filter: grayscale(0);
    }

    .icon:hover {
        background-color: initial; /* Quitar el efecto hover */
        transition: none; /* Deshabilitar la transición */
    }

    .logo-img{
        filter: none;
    }

    .cs-logo-nombre{
        filter: none;
    }

    .boton-contacto{
        filter: none;
    }

    .contacto-logo-nombre{
        filter: none;
    }
}