/* Import Google Fonts - Press Start 2P for retro gaming aesthetic */
@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');

/* CSS Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

:root {
    --header-divider-thickness: 0px;
    --header-offset: calc(4rem + 80px);
    --retro-font: 'Press Start 2P', cursive;
    --bg-color: #000000;
    --text-color: #ffffff;
    --text-muted: #888888;
}

body {
    font-family: var(--retro-font);
    background-color: var(--bg-color);
    color: var(--text-color);
    overflow-x: hidden;
    line-height: 1.8;
}

body:not(.centered-layout) {
    padding-top: 0;
}

body.centered-layout {
    padding-top: 120px;
}

/* Header Styles */
header {
    position: relative;
    width: 100%;
    padding: 0;
    z-index: 10;
    text-align: center;
    border-bottom: none;
    background-color: var(--bg-color);
}

.centered-layout header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 120px;
    padding: 0 5vw;
    border-bottom: none;
    background-color: var(--bg-color);
    margin-bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 50;
}

.main-title {
    font-family: var(--retro-font);
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 400;
    letter-spacing: 0;
    color: var(--text-color);
    -webkit-text-stroke: 0;
    cursor: pointer;
    opacity: 1;
    transition: all 0.3s ease;
    display: inline-block;
}

.main-title:hover {
    opacity: 0.8;
}

/* Language Switcher */
.language-switcher {
    position: fixed;
    top: 0;
    right: 30px;
    height: 120px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.7rem;
    z-index: 100;
    font-weight: 400;
    font-family: var(--retro-font);
}

.language-switcher a {
    color: #666;
    text-decoration: none;
    transition: color 0.2s ease;
}

.language-switcher a:hover {
    color: #999;
}

.language-switcher a.active {
    color: #999;
}

.language-switcher span {
    color: #444;
}

@media (max-width: 768px) {
    .language-switcher {
        display: none !important;
    }
}

/* Navigation Menu Styles - Retro Game Menu */
.navigation-menu {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 0 5vw;
    width: 100%;
    gap: 0;
}

.nav-box {
    text-decoration: none;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    position: relative;
    padding: 12px 0;
    width: auto;
}

/* Retro cursor selector */
.nav-box::before {
    content: '►';
    font-family: var(--retro-font);
    font-size: clamp(0.8rem, 2vw, 1.2rem);
    margin-right: 16px;
    opacity: 0;
    transition: opacity 0.15s ease;
    color: var(--text-color);
}

.nav-box:hover::before,
.nav-box:focus::before,
.nav-box.active::before {
    opacity: 1;
}

.nav-content {
    font-family: var(--retro-font);
    border: none;
    padding: 8px 0;
    text-align: left;
    font-size: clamp(1rem, 3vw, 1.5rem);
    background-color: transparent;
    font-weight: 400;
    letter-spacing: 0;
    transition: all 0.15s ease;
    color: var(--text-color);
    -webkit-text-stroke: 0;
    line-height: 1.6;
}

.nav-box:hover .nav-content,
.nav-box:focus .nav-content {
    opacity: 1;
}

/* Remove old 3D effect for 3D Cards - keep it clean retro */
.nav-box:nth-child(3):hover .nav-content {
    color: #fff;
    -webkit-text-stroke: 0;
    text-shadow: none;
    transform: none;
}

.nav-box.active .nav-content {
    color: #fff;
}

/* Content Sections */
main {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

.centered-layout main {
    padding-top: 0;
}

body.asesorias-page main {
    padding-top: 0;
}

.content-section {
    min-height: auto;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 40px 20px;
}

.centered-layout .content-section {
    min-height: auto;
    align-items: flex-start;
    padding: 0 20px 48px;
}

body.asesorias-page .content-section {
    padding: 0 20px 40px;
}

.section-box {
    background-color: var(--bg-color);
    border-left: 2px solid #333;
    padding: 40px;
    max-width: 900px;
    width: 100%;
}

.section-box h2 {
    font-family: var(--retro-font);
    font-size: clamp(0.9rem, 2vw, 1.3rem);
    margin-bottom: 40px;
    font-weight: 400;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1.8;
}

.section-box p {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 24px;
    color: #aaa;
    font-weight: 400;
    max-width: 700px;
}

.section-box ul {
    list-style: none;
    padding: 0;
    margin: 30px 0;
}

.section-box ul li {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 1rem;
    padding: 15px 0;
    padding-left: 24px;
    position: relative;
    color: #aaa;
    font-weight: 400;
    border-bottom: 1px solid #222;
    line-height: 1.6;
}

.section-box ul li::before {
    content: '►';
    font-family: var(--retro-font);
    font-size: 0.6rem;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    color: #555;
}

.contact-info {
    margin-top: 60px;
    padding-top: 30px;
    border-top: 2px solid #333;
}

/* Centered Layout Override for Content Pages */
.centered-layout .section-box {
    border-left: none;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.centered-layout .section-box p,
.centered-layout .section-box ul,
.centered-layout .section-box .service-grid,
.centered-layout .section-box .pricing-section,
.centered-layout .section-box .about-section {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.centered-layout .section-box h2 {
    text-transform: none;
}

.centered-layout .section-box ul li {
    text-align: left;
}

/* Responsive Design */
@media (max-width: 768px) {
    :root {
        --header-offset: calc(4rem + 40px);
    }

    header {
        padding: 20px;
    }

    .navigation-menu {
        padding: 40px 20px;
        min-height: 100vh;
    }

    .nav-content {
        font-size: 0.9rem;
    }

    .nav-box::before {
        font-size: 0.7rem;
        margin-right: 12px;
    }

    .section-box {
        padding: 20px;
        border-left: 2px solid #333;
    }
    
    .centered-layout .section-box {
        border-left: none;
    }

    body::after {
        bottom: 20px;
        right: 20px;
        width: 18px;
        height: 18px;
    }
}

/* Retro Headings for Content Pages */
.content-text h3 {
    font-family: var(--retro-font);
    color: #fff;
    font-size: clamp(0.7rem, 1.5vw, 0.9rem);
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    font-weight: 400;
    letter-spacing: 0;
    line-height: 1.8;
}

.content-text strong {
    color: #fff;
    font-weight: 700;
}

.content-text em {
    color: #ddd;
    font-style: italic;
}

/* Back Button - Retro Style */
.back-button {
    position: fixed;
    top: 0;
    left: 30px;
    height: 120px;
    z-index: 100;
    color: #666;
    text-decoration: none;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 400;
    font-size: 0.6rem;
    font-family: var(--retro-font);
}

.back-button:hover {
    color: #fff;
}

.back-button svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.back-button span {
    display: inline;
}

@media (max-width: 768px) {
    .back-button {
        left: 20px;
        height: 80px;
    }
    .back-button span {
        display: none;
    }
    
    .centered-layout header {
        height: 80px;
    }
    
    body.centered-layout {
        padding-top: 80px;
    }
    
    .language-switcher {
        height: 80px;
    }
}
