#top {
    display: grid;
    background: linear-gradient(59deg, rgb(0 0 0 / 91%) 0%, rgb(0 0 0 / 34%) 100%), url(https://www.latinomegahd.net/wp-content/uploads/2024/12/peliscollage.webp) right;
    border-bottom: 2px solid var(--box-shadow-three);
}

.logo-curved {
  display: inline-block;
  position: relative;
  background: linear-gradient(90deg, #c00 0%, #f00 50%, #c00 100%);
  border-radius: 50px;
  padding: 4px 20px 4px 50px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.5);
  margin-left: 25px; /* ← Mueve a la derecha */
  transform: scale(0.85); /* ← Hace todo más pequeño */
}

.logo-curved::before {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  right: 3px;
  bottom: 3px;
  background: linear-gradient(180deg, #1a1a1a 0%, #000 100%);
  border-radius: 47px;
  z-index: 0;
}

.popcorn-icon {
  position: absolute;
  left: 8px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.popcorn-icon img {
  width: 100%;
  height: 100%;
  filter: drop-shadow(2px 2px 3px rgba(0,0,0,0.5));
}

.logo-wrapper {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
}

.latino-curved {
  color: #fff;
  font-size: 28px;
  font-weight: 900;
  font-family: 'Arial Black', sans-serif;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
  letter-spacing: -1px;
}

.mega-curved {
  font-size: 28px;
  font-weight: 900;
  font-family: 'Arial Black', sans-serif;
  background: linear-gradient(180deg, #FFD700 0%, #FF8C00 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(2px 2px 2px rgba(0,0,0,0.5));
  letter-spacing: -1px;
}

.hd-curved {
  font-size: 28px;
  font-weight: 900;
  font-family: 'Arial Black', sans-serif;
  color: #fff;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
  letter-spacing: -1px;
}

.tagline-curved {
  position: relative;
  z-index: 1;
  display: block;
  color: #FFD700;
  font-size: 10px;
  font-style: italic;
  text-align: center;
  margin-top: -2px;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.9);
  font-family: Arial, sans-serif;
}


#navigation .ge {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

#navigation .ge > li {
    position: relative;
    z-index: 1000;
}

#navigation .ge > li > a {
    color: #fff;
    text-decoration: none;
    padding: 0 12px;
    height: 34px;
    line-height: 34px;
    font-size: 14px;
    border-radius: 4px;
    background: transparent;
    border: 1px solid transparent;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

#navigation .ge > li > a:hover {
    border-color: rgba(255, 0, 0, 0.8);
}

/* Flecha para items con submenú en escritorio */
#navigation .ge .has-submenu > a {
    position: relative;
    padding-right: 28px;
}

#navigation .ge .has-submenu > a::after {
    content: '';
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath d='M29.604 10.528 17.531 23.356a2.102 2.102 0 0 1-3.062 0L2.396 10.528c-.907-.964-.224-2.546 1.1-2.546h25.008c1.324 0 2.007 1.582 1.1 2.546z' fill='%23ffffff'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    transition: transform 0.3s ease;
}

#navigation .ge .has-submenu:hover > a::after {
    transform: translateY(-50%) rotate(180deg);
}

/* Submenús */
#navigation .ge .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 150px;
    padding: 8px;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.25s ease, visibility 0.25s ease;
    border-radius: 6px;
    background: #1a2333;
    display: flex;
    flex-direction: column;
    gap: 2px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    z-index: 9999;
    margin: 0;
    list-style: none;
}

#navigation .ge > li:hover .sub-menu {
    visibility: visible;
    opacity: 1;
}

#navigation .ge .sub-menu li {
    display: block;
    width: 100%;
}

#navigation .ge .sub-menu a {
    color: #fff;
    padding: 8px 12px;
    display: block;
    font-size: 13px;
    text-decoration: none;
    border-radius: 4px;
    border: 1px solid transparent;
    transition: all 0.2s ease;
    white-space: nowrap;
    box-sizing: border-box;
}

#navigation .ge .sub-menu a:hover {
    border-color: rgba(255, 0, 0, 0.8);
}

/* Flecha para submenús anidados en escritorio */
#navigation .ge .sub-menu .has-submenu > a::after {
    transform: translateY(-50%) rotate(-90deg);
}

#navigation .ge .sub-menu .has-submenu:hover > a::after {
    transform: translateY(-50%) rotate(90deg);
}

/* Submenús anidados */
#navigation .ge .sub-menu .sub-menu {
    left: 100%;
    top: 0;
    margin-left: 1px;
    z-index: 10000;
}

/* Media Queries */
@media (max-width: 768px) {
    #navigation.for-mobile {
        margin: 0;
        width: 100%;
    }
    
    #navigation.for-mobile .ge {
        flex-direction: column;
        width: 100%;
        align-items: stretch;
        gap: 0;
    }
    
    #navigation.for-mobile .ge > li > a {
        height: auto;
        line-height: normal;
        width: 100%;
        display: block;
        background: var(--nav-hover-color);
        color: var(--background-color);
        padding: 12px;
        text-shadow: 0 1px 0 var(--box-shadow-three);
        text-align: center;
        box-sizing: border-box;
        transition: all 0.2s ease;
    }
    
    /* Flecha para items con submenú en móvil */
    #navigation.for-mobile .ge .has-submenu > a {
        position: relative;
        padding-right: 40px;
    }
    
    #navigation.for-mobile .ge .has-submenu > a::after {
        content: '';
        position: absolute;
        right: 12px;
        top: 50%;
        transform: translateY(-50%);
        width: 16px;
        height: 16px;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath d='M29.604 10.528 17.531 23.356a2.102 2.102 0 0 1-3.062 0L2.396 10.528c-.907-.964-.224-2.546 1.1-2.546h25.008c1.324 0 2.007 1.582 1.1 2.546z' fill='%23ffffff'/%3E%3C/svg%3E");
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
        transition: transform 0.3s ease;
    }
    
    #navigation.for-mobile .ge .has-submenu.active > a::after {
        transform: translateY(-50%) rotate(180deg);
    }
    
    #navigation.for-mobile .ge .sub-menu {
        position: static;
        visibility: hidden;
        opacity: 0;
        height: 0;
        overflow: hidden;
        min-width: 100%;
        padding: 0;
        box-shadow: none;
        border-radius: 0;
        background: rgba(0, 0, 0, 0.85);
        display: flex;
        flex-direction: column;
        transition: all 0.3s ease;
        margin: 0;
        list-style: none;
    }
    
    #navigation.for-mobile .ge > li.active > .sub-menu {
        visibility: visible;
        opacity: 1;
        height: auto;
        padding: 8px 0;
    }
    
    #navigation.for-mobile .ge .sub-menu a {
        background: rgba(255, 255, 255, 0.08);
        color: #fff;
        padding: 10px 24px;
        text-align: center;
        border: none;
        border-radius: 0;
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
    }
    
    #navigation.for-mobile .ge .sub-menu a:hover {
        background: rgba(255, 255, 255, 0.15);
    }
    
    #navigation.for-mobile .ge .sub-menu .sub-menu {
        margin-left: 0;
        padding-left: 16px;
        background: rgba(0, 0, 0, 0.9);
    }
    
    #navigation.for-mobile .ge .sub-menu li.active > .sub-menu {
        visibility: visible;
        opacity: 1;
        height: auto;
        padding: 8px 0;
    }
    
    /* Flecha para submenús anidados en móvil */
    #navigation.for-mobile .ge .sub-menu .has-submenu > a::after {
        right: 24px;
    }
}

@media only screen and (max-width: 780px) {
    #navigation ul li:hover a, 
    #navigation ul li a {
        background: var(--nav-hover-color);
        color: var(--background-color);
        padding: 12px;
        text-shadow: 0 1px 0 var(--box-shadow-three);
        display: block;
        text-align: center;
        box-sizing: border-box;
        transition: all 0.2s ease;
    }
}