@import url("web2-variables.css");


/*----------NAVBAR-------------*/
.header {
    background-color: var(--header-bg);
    backdrop-filter: blur(2px);
    border-bottom: 1px solid var(--border-glass);
    box-shadow: 0 8px 32px 0 var(--shadow-main);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;

    & .container {
        display: flex;
        align-items: center;
        justify-content: space-between;
        max-width: var(--container-width);
        margin: 0 auto;
        padding: 0 20px;
        height: var(--nav-height);
    }
}

.logo img {
    height: 60px;
}

.nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;

    & .nav-link {
        
        font-family: 'Cinzel', serif;
        font-size: var(--font-size-nav);
        background-image: var(--marco-textos);
        background-position: center;
        background-size: 100% 100%;
        background-repeat: no-repeat;
        padding: 10px 14px;
        color: var(--text-navbar);
        text-decoration: none;
        text-transform: uppercase;
        /*border: 1px solid transparent;*/
        letter-spacing: 1px;
        transition: var(--transition-base);

        &:hover {
            color: var(--text-primary);
            transform: translateY(5%);
        }
    }
}

.nav-login-link {
    display: inline-block;
    padding: 10px 25px;
    color: var(--text-navbar);
    text-decoration: none;
    font-family: 'Cinzel', serif;
    font-size: 14px;
    background-image: var(--marco-textos);
    background-size: 100% 100%;
    transition: var(--transition-base);
    text-align: center;
}

.nav-login-link:hover {
    color: var(--text-primary);
    filter: drop-shadow(0 0 10px var(--text-navbar));
    transform: scale(1.05);
}

/*---------IDIOMAS-----------*/
/* Contenedor del selector */
.lang-dropdown {
    position: relative;
    display: inline-block;
    margin-top: var(--nav-height);
}

/* Estilo del botón principal */
.lang-btn {
    height: 40px;
    background-image: var(--marco-textos);
    background-position: center;
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-color: #1a1a1a;
    color: var(--text-muted);
    padding: 0px 15px;
    font-size: 12px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.lang-btn:hover {
    background-color: #252525;
    border-color: var(--text-navbar);
}

/* El menú oculto */
.lang-content {
    display: none;
    position: absolute;
    background-color: #1a1a1a;
    min-width: 160px;
    box-shadow: 0px 8px 16px rgba(0,0,0,0.5);
    z-index: 100;
    border-radius: 5px;
    border: 1px solid #333;
    
}

/* Enlaces dentro del menú */
.lang-content a {
    color: #ccc;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    font-size: 13px;
    transition: background 0.2s;
}

.lang-content a:hover {
    background-color: #333;
    color: #fff;
}

/* Mostrar el menú al pasar el mouse */
.lang-dropdown:hover .lang-content {
    display: block;
    animation: fadeIn 0.3s;
}

/* Flecha animada */
.lang-dropdown:hover .arrow {
    transform: rotate(180deg);
}

.arrow {
    font-size: 10px;
    transition: transform 0.3s;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}


/*-----------FOOTER GLOBAL---------------*/

.main-footer {
    position: relative;
    background: var(--f-bg);
    padding: 80px 30px;
    margin-top: 100px;
    border-top: 1px solid rgba(255, 0, 0, 0.2);
    overflow: hidden;
    color: white;
}

.footer-glow {
    position: absolute;
    top: -150px;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 300px;
    background: radial-gradient(circle, var(--f-glow) 0%, transparent 70%);
    pointer-events: none;
}

.footer-container {
    max-width: var(--container-width); /* Usamos la variable global */
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    padding: 0 20px;
}

.footer-logo {
    max-width: 160px;
    margin-bottom: 20px;
    
    transition: var(--transition-base);

    &:hover {
        transform: translateY(-5px) scale(1.07);
    }
}

.footer-description {
    color: var(--f-text);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 25px;
}

.footer-socials {
    display: flex;
    gap: 15px;
}

.social-icon {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--f-glass);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%; /* Ahora son circulares */
    color: var(--f-text);
    font-size: 1.2rem; /* Tamaño del ícono */
    transition: var(--transition-base);
    text-decoration: none;
}

.social-icon:hover {
    background: var(--text-navbar);
    color: var(--text-primary);
    box-shadow: 0 0 15px var(--text-navbar), 0 0 30px var(--text-navbar);
    transform: translateY(-5px) scale(1.1);
}

.footer-col h4 {
    font-family: var(--font-title);
    font-size: 1.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 25px;
    color: var(--text-navbar);
    position: relative;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 30px;
    height: 2px;
    background: var(--text-navbar);
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col ul li a {
    text-decoration: none;
    color: var(--f-text);
    font-size: 1.5rem;
    transition: var(--transition-base);
}

.footer-col ul li a:hover {
    color: var(--f-accent);
    padding-left: 5px;
}

.highlight {
    color: #fff;
    font-weight: bold;
}

.footer-bottom {
    max-width: var(--container-width);
    margin: 60px auto 0;
    padding: 30px 20px 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-line {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--f-accent), transparent);
    margin-bottom: 30px;
    opacity: 0.5;
}

.footer-bottom p {
    font-size: 1.35rem;
    color: var(--f-text);
    margin: 5px 0;
}

.disclaimer {
    font-size: 1.2rem !important;
    opacity: 0.5;
    text-transform: uppercase;
    margin-top: 15px !important;
}

/*----------MENU TOGGLE-------*/

.mobile-only { display: none; }

/* Botón Hamburguesa */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    
    width: 20px;
    height: 21px;
    cursor: pointer;
    z-index: 2000;
}

.mobile-menu-btn span {
    width: 100%;
    height: 3px;
    background-color: var(--text-navbar);
    transition: 0.3s;
}

/*-------- MEDIA QUERIES TABLETS ---------*/

@media (max-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer-col h4::after {
        left: 50%;
        transform: translateX(-50%);
    }
    .footer-socials {
        justify-content: center;
    }

    .footer-responsive {
        display: grid;
        grid-template-columns: 1fr 1fr
    }
    .hero-content {
        flex-direction: column;
        text-align: center;
    }
    .personaje-logo {
        display: none;
    }
    
    .events-grid {
        grid-template-columns: 1fr;
        max-width: 740px;
    }

    .event-bar {
        width: 370px;
    }

    .community-boxes {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .news-grid {
        grid-template-columns: 1fr;
    }

    .mobile-menu-btn { 
        display: flex; 
    }
    .mobile-only {
        display: block; 
    }

    .header .container {
        justify-content: space-between;
    }

    .lang-dropdown {
        display: none !important;
    }

    .header .nav {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(10, 10, 15, 0.886);
        flex-direction: column !important;
        align-items: center;
        justify-content: center;
        padding-top: 50px;
        gap: 30px;
        z-index: 1500;
        
    }

    .header .nav.active {
        display: flex;
    }

    .nav-login-link {
        width: 140px;
        font-size: 1rem;
    }

    .img-logo {
        width: 400px;
        animation: LogoFloat 6s ease-in-out infinite;
    }

    @keyframes LogoFloat {
        0%, 100% {
        transform: translateY(-15px);
        }
        50% {
        transform: translateY(-5px);
        }
    }

    .class-section {
        max-width: 700px;
    }

    .class-showcase {
        grid-template-columns: 1fr;

        & .class-info {
            display: flex;
            flex-direction: column;
            align-items: center;
            text-align: center;
        }

        & .class-character img {
            width: 350px;
        }
    }

    /*-- Animación X -------*/
    .mobile-menu-btn.open span:nth-child(1) { 
        transform: translateY(9px) rotate(45deg); 
    }
    .mobile-menu-btn.open span:nth-child(2) { 
        opacity: 0; 
    }
    .mobile-menu-btn.open span:nth-child(3) { 
        transform: translateY(-9px) rotate(-45deg); 
    }
}

/* QUERIES CELULARES */

@media (max-width: 430px) {
    
    /*NAVBAR*/
    .header .container  {
        width: 90%;
        padding: 0 15px 0 0;
        
    }
    
    .img-logo {
        width: 100%;
        max-width: 350px;
    }
    
    .rankings-grid {
        display: flex;
        flex-direction: column;
        gap: 25px;
        width: 410px;
    }
    .ranking-card,
    .castle-siege-card {
        width: 100%;
        padding: 15px;
    }
    .cs-content {
        flex-direction: column !important;
        text-align: center !important;
    }
    .events-section {
        
        grid-template-columns: 1fr;
        justify-items: center;
        max-width: 400px;
    }

    .event-bar {
        width: 60px;
    }
    
    .community-boxes {
        display: grid;
        grid-template-columns: 1fr;
    }

    .news-grid {
        grid-template-columns: 1fr;
    }

    .class-section {
        max-width: 400px;
    }

    .class-showcase {
        grid-template-columns: 1fr;

        & .class-info {
            display: flex;
            flex-direction: column;
            align-items: center;
            text-align: center;
        }

        & .class-character img {
            width: 300px;
        }
    }

    .class-header img {
        width: 50px;
    }

    .class-selector {
        max-width: 400px;
        gap: 10px;
        flex-wrap: wrap;
    }
    .class-btn {
        width: 30px;
        height: 30px;
    }
    .class-icons {
        gap: 8px;
        display: grid;
        grid-template-columns: 1fr 1fr 1fr 1fr;
    }

    .nav-icon {
        width: 35px;
    }
    /*PAGE-FULL*/
    .page-header .container {
        flex-direction: column;
    }

    .page-header .container h1 {
        font-size: 30px;
    }
    .page-header .page-subtitle {
        font-size: 13px;
    }

    .deco-izquierda,
    .deco-derecha {
        display: none;
    }

    /*LOGIN*/
    .login-wrapper {
        max-width: 400px;
    }

    .login-container {
        max-width: 390px;
    }

    /*REGISTER*/
    .register-section {
        width: 410px !important;
        
    }
    .register-grid {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }
    .form-card {
        padding: 20px;
        border-radius: 8px;
    }
    .register-form .form-row {
        grid-template-columns: 1fr !important;
        gap: 15px;
        margin-bottom: 15px;
    }
    .form-title {
        font-size: 16px;
        flex-direction: column;
        align-items: flex-start;
    }
    .form-title .title-line {
        width: 100%;
        margin-top: 10px;
    }
    .terms-text {
        font-size: 12px;
    }
    .btn-submit {
        padding: 18px;
        font-size: 16px;
    }

    /*DOWNLOAD*/
    .full-rankings {
        width: 410px !important;
    }
    .download-main-card {
        flex-direction: column; /* Apilamos contenido y botón */
        padding: 20px;
        text-align: center;
    }
    .download-info {
        flex-direction: column; /* Icono arriba, texto abajo */
        align-items: center;
        gap: 15px;
    }
    .download-icon-large img {
        width: 80px; /* Reducimos el avatar/icono */
        height: 80px;
    }
    .download-details h3 {
        font-size: 18px;
    }
    .download-meta {
        display: flex;
        flex-direction: column; /* Metadatos uno debajo de otro */
        gap: 8px;
        align-items: center;
        font-size: 13px;
    }
    .download-actions {
        width: 100%;
        margin-top: 20px;
    }
    .btn-download-main {
        width: 100%;
        justify-content: center;
        padding: 18px;
        font-size: 16px;
    }
    .download-mirrors {
        justify-content: center;
        flex-wrap: wrap; /* Para que los links de mirrors no se salgan */
        gap: 10px;
        margin-top: 15px;
    }
    .requirements-grid {
        grid-template-columns: 1fr; /* Una tarjeta debajo de otra */
        gap: 20px;
    }
    .requirement-card {
        padding: 15px;
    }
    .req-list li {
        flex-direction: column; /* Etiqueta arriba, valor abajo (ej: OS arriba, Windows abajo) */
        align-items: flex-start;
        gap: 2px;
        padding: 8px 0;
        border-bottom: 1px solid rgba(255,255,255,0.05);
    }
    .req-label {
        font-size: 11px;
        text-transform: uppercase;
        opacity: 0.7;
    }
    .req-value {
        font-size: 14px;
        font-weight: bold;
    }
    .download-item {
        flex-direction: column; /* Apilamos todo en el item */
        text-align: center;
        gap: 15px;
        padding: 20px;
    }
    .download-item-info h4 {
        font-size: 15px;
    }
    .btn-download-small {
        width: 100%;
        text-align: center;
    }
    .steps-grid {
        grid-template-columns: 1fr; /* Pasos en lista vertical */
        gap: 15px;
    }
    .step-card {
        padding: 20px;
    }
    .faq-question {
        padding: 15px;
        font-size: 14px;
    }
    .faq-answer {
        padding: 0 15px 15px;
        font-size: 13px;
    }
    .section-title {
        font-size: 18px;
        margin-bottom: 25px;
    }

    /*RANKINGS*/
    .ranking-page-section {
        width: 400px;
    }
    .page-header .container {
        flex-direction: column;
        text-align: center;
        gap: 15px;
        padding: 40px 20px;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    .ranking-tabs {
        display: flex;
        overflow-x: auto;
        white-space: nowrap;
        gap: 10px;
        padding-bottom: 10px;
        justify-content: flex-start;
        -webkit-overflow-scrolling: touch;
    }

    .tab-btn {
        flex: 0 0 auto;
        padding: 10px 20px;
        font-size: 0.8rem;
    }
    .rankings-filter {
        flex-direction: column;
        gap: 15px;
    }

    .filter-group {
        width: 100%;
    }

    .filter-group select, 
    .filter-group input {
        width: 100%;
        box-sizing: border-box;
    }
    .rankings-table-full thead th:nth-child(3),
    .rankings-table-full tbody td:nth-child(3),
    .rankings-table-full thead th:nth-child(6),
    .rankings-table-full tbody td:nth-child(6) {
        display: none;
    }

    .rankings-table-full {
        font-size: 0.85rem;
    }

    .player-info img {
        width: 30px;
        height: 30px;
    }

    .player-info span {
        max-width: 80px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    .rank-badge {
        width: 25px;
        height: 25px;
        line-height: 25px;
        font-size: 0.8rem;
    }
    .pagination {
        gap: 5px;
        flex-wrap: wrap;
        justify-content: center;
    }
    .page-btn {
        width: 35px;
        height: 35px;
        font-size: 0.8rem;
    }
    /*GUIDE*/
    .featured-guides {
        width: 100%;
        padding: 0 15px; /* Espaciado de seguridad en los bordes */
        box-sizing: border-box;
    }

    .guide-categories {
        display: flex;
        overflow-x: auto;
        gap: 10px;
        padding: 10px 5px;
        justify-content: flex-start;
        -webkit-overflow-scrolling: touch;
    }

    .category-btn {
        flex: 0 0 auto;
        padding: 8px 20px;
        font-size: 0.85rem;
    }

    .section-title {
        font-size: 1.2rem;
        margin: 30px 0 20px;
    }

    .title-line {
        display: flex;
    }

    .guides-grid {
        
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 25px;
    }

    .guide-card.featured {
        flex-direction: column; 
    }

    .guide-image {
        height: 180px;
    }

    .guide-content {
        padding: 15px;
    }

    .guide-content h3 {
        font-size: 1.1rem;
    }

    .guides-list {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }

    .guide-item {
        flex-direction: column;
        align-items: flex-start;
        padding: 15px;
        gap: 15px;
    }

    .guide-item-icon {
        width: 60px;
        height: 60px;
    }

    .guide-item-meta {
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        padding-top: 10px;
    }

    .tips-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .tip-card {
        padding: 20px;
    }

    .submit-guide-cta {
        padding: 30px 20px;
        text-align: center;
    }

    .submit-guide-cta h3 {
        font-size: 1.3rem;
    }

    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .footer-col.branding, 
    .footer-col.links, 
    .footer-col.info {
        align-items: center;
    }

    .footer-socials {
        justify-content: center;
    }

    .footer-bottom {
        padding: 20px;
        font-size: 0.8rem;
    }

    /*ABOUT ME*/
    .about-page-section {
        width: 400px;
    }
    
    .story-section {
        display: flex !important;
        flex-direction: column !important;
        gap: 30px;
    }
    
    .story-content {
        order: 2 !important;
        text-align: center;
    }

    .section-title.left {
        color: var(--text-navbar);
        font-size: 1.5rem;
        text-align: center !important;
        justify-content: center !important;
    }

    .section-title.left .title-line {
        display: none; /* Limpiamos ruido visual */
    }

    .section-title {
        text-align: center;
    }

    .story-image {
        order: 1;
        width: 100%;
    }

    .story-image img {
        border-radius: 10px;
        box-shadow: 0 0 20px rgba(74, 159, 255, 0.2);
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .stat-card {
        padding: 20px 10px;
    }

    .stat-number {
        font-size: 1.5rem;
    }

    .features-grid, 
    .team-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .feature-card, 
    .team-card {
        max-width: 100%;
        margin: 0 auto;
    }

    .server-info-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .info-card h4 {
        text-align: center;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        padding-bottom: 10px;
    }

    .info-list li {
        font-size: 0.9rem;
        padding: 8px 0;
    }

    .cta-buttons {
        flex-direction: column;
        width: 100%;
        gap: 15px;
    }

    .btn-cta-primary, 
    .btn-cta-secondary {
        width: 100%;
        text-align: center;
        padding: 15px;
    }

    /*PROFILE*/
    .profile-card {
        display: flex;
        flex-direction: column;
        margin: 20px auto !important;
        width: 90%; 
        align-items: center;
        text-align: center; 
    }

    .character-viewport {
        width: 100%;
        height: 250px;
        display: flex;
        justify-content: center;
        border-right: none;
        border-bottom: 2px solid var(--primary-color);
    }

    .character-img {
        width: auto;
        height: 110%;
        bottom: -10%; 
    }

    .stats-panel {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .player-header {
        text-align: center;
        margin-bottom: 20px;
    }

    .player-header h1 {
        font-size: 1.8rem;
        margin: 0;
    }

    .stats-grid {
        width: 100%;
        max-width: 320px;
        margin: 0 auto;
    }

    .stat-row {
        width: 100%;
        display: flex;
        justify-content: space-between;
        padding: 8px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .stat-row hr {
        margin: 10px 0;
        opacity: 0.3;
    }

    .guild-name {
        font-size: 0.85rem;
        max-width: 150px;
        white-space: nowrap;
        
        
        text-align: right;
        display: inline-block;
        vertical-align: middle;
    }

    /*GUILD-CARD*/
    .guild-card {
        display: flex !important;
        flex-direction: column !important;
        width: 95% !important;
        max-width: 400px;
        margin: 20px auto !important;
        height: auto !important;
        border-radius: 12px;
        overflow: hidden;
    }

    .guild-identity {
        width: 100% !important;
        padding: 30px 15px !important;
        border-right: none !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .logo-container {
        width: 150px;
        height: 150px;
        margin-bottom: 15px;
    }

    .guild-name {
        font-size: 2rem;
        margin: 10px 0;
    }

    .guild-details {
        width: 100% !important;
        padding: 20px !important;
        box-sizing: border-box;
    }

    .info-header {
        display: flex !important;
        flex-direction: column !important;
        gap: 10px;
        width: 100%;
    }

    .info-box {
        width: 100% !important;
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 12px 15px;
        background: rgba(255, 255, 255, 0.05);
        border-radius: 8px;
    }

    .info-box span {
        font-size: 0.75rem;
        margin-bottom: 0;
    }

    .info-box strong {
        font-size: 1rem;
    }

    .members-section h3 {
        font-size: 1.1rem;
        text-align: center;
        margin-bottom: 15px;
        color: var(--primary-color, #4a9eff);
    }

    .member-item {
        display: grid;
        grid-template-columns: 30px 1fr 40px; /* Icono | Nombre | Clase */
        align-items: center;
        padding: 12px 15px;
        margin-bottom: 8px;
        background: rgba(255, 255, 255, 0.02);
        border-radius: 6px;
    }

    .member-item.master {
        border-left: 3px solid #ffd700; /* Resaltar al Master */
        background: rgba(255, 215, 0, 0.05);
    }

    .member-item .name {
        font-size: 0.95rem;
        font-weight: 700;
    }

    .member-item .class {
        font-size: 0.8rem;
        text-align: right;
        opacity: 0.7;
    }

    /*FOOTER*/
    .footer-responsive {
        
        grid-template-columns: 1fr;
    }

    
}



