/* Fuentes personalizadas */
@font-face {
    font-family: 'Franchise';
    src: url('Franchise.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Basic Comical';
    src: url('Basic Comical Regular NC.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Bangers';
    src: url('../fonts/Bangers-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Comic Neue';
    src: url('../fonts/ComicNeue-Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Comic Neue';
    src: url('../fonts/ComicNeue-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Comic Neue';
    src: url('../fonts/ComicNeue-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Comic Neue';
    src: url('../fonts/ComicNeue-Italic.ttf') format('truetype');
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Comic Neue';
    src: url('../fonts/ComicNeue-BoldItalic.ttf') format('truetype');
    font-weight: 700;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Permanent Marker';
    src: url('../fonts/PermanentMarker-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

body {
    background-color: black;
    background-image: linear-gradient(rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.55)), url('../img/background.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    color:white;
    font-family: 'Arial', 'Comic Neue', 'Basic Comical', 'Comic Sans MS', sans-serif;
    margin: 0;
    padding-top: 60px;
}

.main-grid {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.main-grid-content {
    flex: 1;
}

.nav_top {
    background-color: rgba(0, 0, 0, 0.7);
    padding: 3px;
    height: 40px;
    width: 100%;
    top: 0;
    position: fixed;
    z-index: 1000;
}

.logo {
    color: white;
    font-weight: bold;
    font-size: 30px;
    text-decoration: none;
    position: relative;
    left: 12px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8), 0 0 10px rgba(0, 0, 0, 0.6);
}

.logo img {
    width: 100px;
}
.logo:visited {
    color: white;
    text-decoration: none;
}

/* Links de navegación */
.nav-links {
    display: flex;
    gap: 2rem;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.nav-link {
    color: white;
    text-decoration: none;
    font-size: 16px;
    font-weight: bold;
    text-transform: uppercase;
    transition: all 0.3s ease;
    white-space: nowrap;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8), 0 0 10px rgba(0, 0, 0, 0.6);
    position: relative;
    z-index: 10;
}

.nav-link:visited {
    color: white;
}

.nav-link:hover,
.nav-link:visited:hover {
    color: #ffcc00 !important;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.9), 0 0 15px rgba(255, 204, 0, 0.5);
}

.cart-link {
    color: white;
    text-decoration: none;
    position: absolute;
    right: 60px;
    font-size: 14px;
}

.cart-link img {
    width: 35px;
    height: auto;
}

.cart-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: #e63946;
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85em;
    font-weight: bold;
}

.language {
    color: white;
    background-color: transparent;
    position: absolute;
    border: none;
    right: 12px; /* Adjust this value to position it next to the cart */
    top: 20px;
    font-size: 14px;
    line-height: 35px; /* Aligns it vertically with the cart icon */
}
.formal-title {
    font-family: arial, serif;
    font-size: 4.5rem;
    font-weight: normal;
    text-align: center;
    text-transform: uppercase;
    margin: 40px auto 12px auto;
}

.site-footer {
    padding: 1rem 1.5rem 1.5rem;
    text-align: center;
    background-color: rgba(0, 0, 0, 0.75);
}

.site-footer p {
    margin: 0;
}

.footer-link {
    color: white;
    text-decoration: underline;
    font-weight: 700;
}

.footer-link:hover,
.footer-link:focus-visible {
    color: #ffcc00;
}

/* Botón hamburguesa - oculto por defecto */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    position: absolute;
    right: 120px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1001;
}

.hamburger-line {
    width: 25px;
    height: 3px;
    background-color: white;
    transition: all 0.3s ease;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
}

/* Animación del botón hamburguesa cuando está activo */
.hamburger.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.hamburger.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Responsive - Menú hamburguesa para pantallas menores o iguales a 1100px */
@media (max-width: 1100px) {
    .hamburger {
        display: flex;
        right: 55px;
    }
    
    .nav-links {
        position: fixed;
        top: 60px;
        left: 0;
        width: 100%;
        height: calc(100vh - 60px);
        background-color: rgba(0, 0, 0, 0.95);
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding-top: 2rem;
        gap: 1.5rem;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }
    
    .nav-links.active {
        transform: translateX(0);
    }
    
    .nav-link {
        font-size: 18px;
        padding: 10px 20px;
    }
    
    .cart-link {
        right: 120px;
    }
    
    .language {
        right: 12px;
    }
}