* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

body {
    font-family: Arial, sans-serif;
    color: white;
    background: rgba(31, 33, 38, 1);
    user-select: none;
    display: flex;
    flex-direction: column;
}

div {
    display: block;
}

.background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: -1;
}

.main {
    color: rgb(191, 191, 191);
    background: rgb(46, 65, 26);
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 300px;
    height: auto;
    z-index: 1;
    flex: 1;
    width: 100%;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    padding: 28px !important;
}

.footer {
    width: 100%;
    padding: 20px 0;
    background: rgb(46, 65, 26);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 40px;
}

.kkk {
    width: 100%;
    padding: 20px 1px 50px;
    background: rgb(29, 29, 29);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    z-index: 5;
    display: flex;
    text-align: center;
    justify-content: center;
    font-size: 14px;
    text-transform: uppercase;
}

.footer-content {
    color: rgb(191, 191, 191);
    font-size: 14px;
    line-height: 20px;
    width: 100%;
    max-width: 400px;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: left;
    gap: 10px;
    margin: 0 auto
}

.footer img {
    position: absolute;
    max-width: 150px;
    height: auto;
    margin-left: clamp(10px, 20vw, 25%);
}

.footer-content p {
    display: flex;
    align-items: center;
    gap: 6px;
    color: white;
    margin-top: 10px;
    align-items: center;
    justify-content: flex-start;
    font-size: 20px;
    font: inherit;
    letter-spacing: 0;
    max-width: 350px;
    width: 100%;
    text-align: left;
    border-bottom: 1px solid;
    margin-bottom: 1.154em;
    padding-bottom: 1.154em;
}

.footer-content p:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.background__image {
    display: block;
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    max-height: 100vh;
}

.background__image img {
    position: absolute;
    top: 100px;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: -1;
}

.background__gradient {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 40%;
    background: linear-gradient(to bottom, rgba(31, 33, 38, 0), rgba(31, 33, 38, 1) 99%);
}

.navbar {
    width: 100%;
    height: 100px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 0;
    z-index: 10;
    transition: 0.3s;
}

.right {
    display: flex;
    justify-content: end;
    align-items: center;
    flex: 1;
}

.navbar.shrink {
    height: 70px;
}

.bar {
    width: 100%;
    height: 100px;
    display: block;
    position: fixed;
    top: 0;
    background: rgba(46, 65, 26, 0.85);
    backdrop-filter: blur(8px) saturate(140%);
    transition: 0.3s;
    z-index: 9;
}

.bar.shrink {
    height: 70px;
}

.navbar.shrink .logo {
    height: 80px;
    width: 270px; /* si quieres que se reduzca también */
}

.logo {
    display: inline-block;
    width: 370px;
    height: 100px;
    background-image: url("./logo.png");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    flex-shrink: 0;
    margin-left: 20px;
    transition: 0.3s;
}

.menu {
    display: flex;
    gap: 0;
}

.menu a {
    position: relative;
    padding: 10px 10px;
    color: white;
    text-decoration: none;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
    margin-right: 50px;
    white-space: nowrap;
    text-decoration: underline;
    overflow: hidden;
    font-weight: 700 !important;
    font-style: normal;
    text-transform: uppercase;
    letter-spacing: 0px;
    font-family: "Montserrat";
}

.menu a span {
    position: relative;
    display: inline-block;
    padding-bottom: 2px;
}

.menu a span::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background-color: #f0c851;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.menu a:hover span::after {
    transform: scaleX(1);
}

.menu a:hover {
    color: #f0c851;
    text-decoration: none;
}

.menu-btn {
    display: none;
    font-size: 32px;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
}

.btn-discord {
    background: #737dec;
    display: flex;
    padding: 10px 15px;
    border-radius: 6px;
    border: none;
    color: white;
    cursor: pointer;
    flex: 0 0 auto;
    line-height: 15px;
    vertical-align: center;
    margin-right: 20px;
}

.btn-discord img {
    width: 20px;
    height: 20px;
}

.btncontainer {
    border-radius: 4px;
    line-height: 38px;
    box-shadow: none;
    font-size: 11.0px;
    min-width: 0;
    font-weight: bold;
    margin-left: 20px;
    overflow: hidden;
    z-index: 0;
    display: block;
}

.overlay {
    color: #fff;
    background: rgba(0, 0, 0, 0.692);
    border: 1px solid rgba(0, 0, 0, 0.5);
    border-radius: 4px;
    box-shadow: 0px 1px 5px rgba(0, 0, 0, 0.4);
    position: relative;
    z-index: 1;
    flex: 1;
    width: 100%;
}

.hero {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 70px;
    height: auto;
    padding: 15px 20px;
    width: 100%;
    background-color: #00b0ff;
    text-align: center;
    font-family: "Montserrat";
    font-weight: 700;
    font-size: 1.3em;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    color: white;
    text-decoration: none;
}

.hero:hover {
    background-color: #eaac00;
}

.overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: inherit;
    backdrop-filter: blur(4px) saturate(140%);
    z-index: -1;
}

.container {
    margin: 0 auto;
    margin-top: 120px;
    position: relative;
    width: 100%;
    flex: 1;
}

.lateral-content {
    display: flex;
    gap: 15px;
}

.under-content {
    color: rgb(191, 191, 191);
    background: rgb(255, 255, 255);
    display: block;
    width: 100%;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

.focus-social {
    display: flex;
    gap: 12px;
    list-style: none;
    padding: 0;
    margin-top: 20px;
}


.focus-social li {
    flex: 0 0 auto;
    list-style: none;
    margin: 0;
    padding: 0;
    width: 30px;
}

.content-area {
    display: block;
    width: auto;
}

.focus-social a {
    width: 32px;
    height: 32px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 4px;
    position: relative;
}

.focus-social a[href*="newgamers."] {
    background: #ff0000;
}

.focus-social a[href*="tiktok."] {
    background: #33c6c2;
}

.focus-social a[href*="instagram."] {
    background: #b41183;
}

.focus-social a[href*="youtube."] {
    background: #ff3a3a;
}



.focus-social a[href*="newgamers."]::before {
    content: "";
    background-image: url("./newgamers.png");
    background-size: 50% auto;
    background-repeat: no-repeat;
    background-position: 50% 50%;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}


.focus-social a[href*="tiktok."]::before {
    content: "";
    background-image: url("./tiktok.png");
    background-size: 50% auto;
    background-repeat: no-repeat;
    background-position: 50% 50%;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.focus-social a[href*="instagram."]::before {
    content: "";
    background-image: url("./instagram.png");
    background-size: 50% auto;
    background-repeat: no-repeat;
    background-position: 50% 50%;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.focus-social a[href*="youtube."]::before {
    content: "";
    background-image: url("./youtube.png");
    background-size: 50% auto;
    background-repeat: no-repeat;
    background-position: 50% 50%;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.focus-social a::after {
    border: inherit;
    border-width: var(--focus-social--border-width);
    box-shadow: inset rgba(255, 255, 255, 0.15) 0px 1px 0px;
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: inherit;
}

.page-loader {
    position: fixed;
    inset: 0;
    background: #000000;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 400ms ease, visibility 400ms ease;
}

.page-loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-anim {
    position: relative;
    width: calc(88px * 1.25);
    height: calc(88px * 1.25);
}

.loader-mask {
    height: 100%;
    width: 100%;
    z-index: 1;
    position: absolute;
    top: 0;
    left: 0;

    -webkit-mask-image: url("logo.svg");
    mask-image: url("logo.svg");

    -webkit-mask-size: cover;
    mask-size: cover;

    background: #222;

    animation-name: anim1;
    animation-duration: 2.15s;
    animation-timing-function: cubic-bezier(.455, .03, .515, .955);
    animation-fill-mode: both;
    animation-iteration-count: infinite;
}

.loader-mask::after {
    content: "";
    background: linear-gradient(232deg, #fff 20%, hsla(0,0%,100%,.35) 70%);
    filter: blur(5px);
    transform: skew(-45deg, 45deg);

    position: absolute;
    top: -40%;
    left: -40%;
    width: 25%;
    height: 60%;
    z-index: -1;

    animation-name: anim2;
    animation-duration: 2.15s;
    animation-timing-function: cubic-bezier(.77, 0, .175, 1);
    animation-fill-mode: both;
    animation-iteration-count: infinite;
}

.loader-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    background: url("logo.svg") no-repeat 50% / cover;

    filter: drop-shadow(0 0 calc(2px * 1.25) #3f3f3f);
    z-index: -2;

    animation-name: anim3;
    animation-duration: 2.15s;
    animation-timing-function: cubic-bezier(.455, .03, .515, .955);
    animation-fill-mode: both;
    animation-iteration-count: infinite;
}

@keyframes anim1 {
    0%   { background: #222; }
    22%  { background: #222; }
    42%  { background: #3f3f3f; }
    92%  { background: #222; }
    100% { background: #222; }
}

@keyframes anim2 {
    0%   { top: -40%; left: -40%; }
    92%  { top: 75%;  left: 100%; }
    100% { top: 75%; left: 100%; }
}

@keyframes anim3 {
    0%   { opacity: .2; }
    22%  { opacity: .2; }
    42%  { opacity: 1; }
    92%  { opacity: .2; }
    100% { opacity: .2; }
}

@media (max-width: 1420px) {

    .menu-btn {
        display: block;
    }

    .menu {
        display: none;
        flex-direction: column;
        width: 100%;
        position: relative; /* para no flotar sobre el navbar */
        top: 0;
        margin-top: 100px; /* separarlo del navbar */
        z-index: 20; /* bajo el navbar */
    }

    .bar.show {
        height: 100%;
        flex-direction: column;
        align-items: flex-start;
    }

    .navbar {
        z-index: 10;
    }

    .menu.show {
        display: flex;
    }

    .menu a {
        margin-right: 0 !important;
        justify-content: space-between;
        z-index: 21;
    }

    .navbar,
    .menu,
    .menu a {
        pointer-events: auto;
    }

}


@media (max-width: 610px) {
  .logo {
    background-image: url("./Sheriff.png");
    max-width: 60px;
    height: 60px;
    margin-left: 20px;
  }
}

@media (max-width: 1078px) {
  .logo-sheriff {
    display: none;
  }
}

.sheriff {
    display: flex;
    flex-direction: row;
    align-items: center;     /* Centra verticalmente */
    justify-content: center; /* Centra horizontalmente */
    text-align: center;
}

@media (max-width: 582px) {
    .sheriff {
        flex-direction: column;
    }

    .sheriff div h3 {
        max-width: 100%;
    }

    .sheriff div {
        margin-top: 20px;
    }
}

@media (max-width: 298px) {
    .sheriff img {
        display: none;
    }
}

.sheriff-links {
    display: flex;
    flex-wrap: wrap;              /* Permite que bajen de línea */
    justify-content: center;
    align-items: center;
    gap: clamp(20px, 5vw, 110px); /* Se adapta al ancho de pantalla */
    padding: 0.818em 1.636em;
}

.sheriff div div a {
    background-color: #00b0ff;
    font-size: 11px;
    color: #fff;
    text-decoration: none;
    padding: 12px 17px;
    transition: background-color 0.3s;
    font-family: "Montserrat";
    font-weight: 600;
}

.sheriff div div a:hover {
    background-color: #eaac00;
}

.sections {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    align-items: stretch;
    justify-content: center;
    gap: 50px;
    padding: 50px 90px;
}

.sections div {
    width: 100%;
    max-width: 400px;
    height: auto;
    background-color: rgb(46, 65, 26);
    border-radius: 15px;
    padding: 20px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.sections div a img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.sections div h1 .link {
    position: relative;
    font-size: 26px;
    color: #fff;
    font-weight: 700;
}

.sections div h1 .link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0px;
    width: 100%;
    height: 2px;
    background-color: #1e73be;
}

.sections div h1 .link:hover::after {
    background-color: transparent;
}

.sections div span {
    margin-top: 15px;
    font-size: 16px;
    color: #ffffff;
    line-height: 30px;
    text-align: center;
}

.link {
    color: inherit;
    text-decoration: none;
    cursor: pointer;
}

@media (max-width: 1355px) {
    .sections {
        display: grid;
        grid-template-columns: repeat(2, auto);
        justify-content: center;
        gap: 50px;
    }
}

@media (max-width: 900px) {
    .sections {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        justify-content: center;
    }
}
