:root {
    --primary-color: #000F3F;
    --secondary-color: #FF8448;
    --bg-color: #FFFFFF;
    --surface-color: #F0F0F0;
    --text-color: #222222;
    --font-family: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header & Nav */
.header {
    background-color: var(--primary-color);
    color: #ffffff;
    padding: 15px 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-link {
    text-decoration: none;
}

.logo-container {
    display: flex;
    align-items: center;
    line-height: 1;
    font-size: 2rem; /* Base size for the logo */
}

.logo-brace {
    font-family: 'Imprima', sans-serif;
    color: var(--secondary-color);
    font-weight: 400;
    font-size: 1.5em; /* 1.5x of container font-size (192/128 ratio) */
}

.logo-name {
    font-family: 'Homenaje', sans-serif;
    color: #ffffff;
    font-weight: 400;
    font-size: 1em; /* 1x of container font-size */
    margin: 0 0.3em;
}

.main-nav .nav-list {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-item {
    position: relative;
}

.nav-link {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 10px 0;
    display: block;
}

.nav-link:hover,
.nav-link.active {
    color: var(--secondary-color);
}

/* Section Toggle */
.content-section {
    display: none;
    padding: 60px 0;
}

.content-section.active {
    display: block;
}

.section-layout {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

/* Horizontal Sub-Nav */
.sub-nav-bar {
    background-color: var(--surface-color);
    border-bottom: 1px solid #e0e0e0;
}

.sub-tabs-horizontal {
    list-style: none;
    display: flex;
    justify-content: center;
    overflow-x: auto;
    padding: 0;
    margin: 0;
}

.sub-tabs-horizontal li {
    padding: 15px 25px;
    cursor: pointer;
    font-weight: 500;
    color: #666;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
    white-space: nowrap;
}

.sub-tabs-horizontal li:hover {
    color: var(--primary-color);
    background-color: rgba(0, 15, 63, 0.05);
}

.sub-tabs-horizontal li.active {
    color: var(--primary-color);
    border-bottom-color: var(--secondary-color);
    background-color: #ffffff;
}

/* Section Details */
.section-details {
    background-color: #ffffff;
    border-radius: 8px;
    padding: 40px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.section-details.full-width {
    width: 100%;
}

.sub-content {
    display: none;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.sub-content.active {
    display: flex;
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

.sub-content h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 2rem;
}

.sub-content p {
    font-size: 1.1rem;
    color: #555555;
    margin-bottom: 20px;
    max-width: 700px;
}

.download-buttons {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    justify-content: center;
}

.btn {
    display: inline-flex;
    align-items: center;
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s, transform 0.2s;
    cursor: pointer;
    border: none;
}

.btn:active {
    transform: translateY(2px);
}

.btn-primary {
    background-color: var(--primary-color);
    color: #ffffff;
}

.btn-primary:hover {
    background-color: #000a2a;
    color: #ffffff;
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: #ffffff;
}

.btn-secondary:hover {
    background-color: #e6753c;
    color: #ffffff;
}

/* Markdown Rendering */
.markdown-container {
    max-width: 800px;
    margin: 0 auto;
    background-color: #ffffff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.markdown-container h1 {
    color: var(--primary-color);
    margin-bottom: 25px;
    font-size: 2.5rem;
}

.markdown-container h2 {
    color: var(--primary-color);
    margin-top: 30px;
    margin-bottom: 15px;
    font-size: 1.8rem;
    border-bottom: 1px solid var(--surface-color);
    padding-bottom: 10px;
}

.markdown-container h3 {
    color: var(--primary-color);
    margin-top: 20px;
    margin-bottom: 10px;
    font-size: 1.4rem;
}

.markdown-container p {
    margin-bottom: 15px;
    color: #444;
}

.markdown-container ul, .markdown-container ol {
    margin-bottom: 20px;
    padding-left: 20px;
    color: #444;
}

.markdown-container li {
    margin-bottom: 8px;
}

.markdown-container a {
    color: var(--secondary-color);
    text-decoration: none;
}

.markdown-container a:hover {
    text-decoration: underline;
}

/* Image Slider */
.image-slider {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 20px 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    background-color: var(--surface-color);
}

.slides {
    display: flex;
}

.slide {
    width: 100%;
    display: none;
    object-fit: cover;
}

.slide.active {
    display: block;
    animation: fadeSlide 0.5s ease-in-out;
}

@keyframes fadeSlide {
    from { opacity: 0.5; }
    to { opacity: 1; }
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 15, 63, 0.7);
    color: white;
    border: none;
    padding: 15px;
    cursor: pointer;
    font-size: 1.5rem;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s;
}

.slider-btn:hover {
    background-color: rgba(0, 15, 63, 0.9);
}

.slider-btn.prev {
    left: 10px;
}

.slider-btn.next {
    right: 10px;
}

/* Footer */
.footer {
    background-color: var(--primary-color);
    color: #ffffff;
    padding: 40px 0 20px;
    margin-top: auto;
}

.footer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.footer-logo {
    margin-bottom: 5px;
    font-size: 1.5rem; /* Slightly smaller for the footer */
}

.footer-links {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--secondary-color);
}

.footer-copyright {
    margin-top: 20px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

/* Responsive */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 15px;
    }
    
    .main-nav .nav-list {
        flex-wrap: wrap;
        justify-content: center;
    }

    .dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background-color: rgba(255,255,255,0.1);
        display: none;
        width: 100%;
        margin-top: 10px;
    }

    .nav-item.has-dropdown:hover .dropdown {
        display: block;
    }

    .dropdown li a {
        color: #ffffff;
        text-align: center;
    }
    
    .dropdown li a:hover {
        background-color: rgba(255,255,255,0.2);
        color: #ffffff;
    }
}

