/* Reset y Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background: #181c20;
    color: #e0e0e0;
    background-image: 
        radial-gradient(ellipse at center, rgba(24, 28, 32, 0.3) 0%, rgba(10, 12, 15, 0.95) 70%),
        linear-gradient(rgba(24, 28, 32, 0.85), rgba(24, 28, 32, 0.85)), 
        url('../img/HexTile.png');
    background-size: cover, cover, 1000px;
    background-repeat: no-repeat, no-repeat, repeat;
    background-attachment: fixed;
    line-height: 1.6;
}

code {
    background: rgba(126, 207, 255, 0.15);
    padding: 0.2em 0.5em;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    color: #7ecfff;
    font-size: 0.9em;
}

/* Header Hero */
header {
    background: linear-gradient(rgba(24, 28, 32, 0.75), rgba(24, 28, 32, 0.75)), url('../img/Banner.jpg') center/cover no-repeat;
    padding: 4rem 2rem;
    text-align: center;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    border-bottom: 3px solid #3a8dde;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    color: #7ecfff;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    font-size: 1.4rem;
    margin-bottom: 2rem;
    color: #b0b8c1;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary, .btn-secondary, .btn-asset-store {
    padding: 0.8rem 2rem;
    font-size: 1.1rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-block;
}

.btn-primary {
    background: linear-gradient(90deg, #3a8dde, #7ecfff);
    color: #fff;
    box-shadow: 0 4px 12px rgba(58, 141, 222, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(58, 141, 222, 0.6);
}

.btn-secondary {
    background: rgba(35, 39, 43, 0.8);
    color: #7ecfff;
    border: 2px solid #7ecfff;
}

.btn-secondary:hover {
    background: #7ecfff;
    color: #23272b;
}

.btn-asset-store {
    background: linear-gradient(90deg, #ff8c42, #ffb366);
    color: #fff !important;
    box-shadow: 0 4px 12px rgba(255, 140, 66, 0.4);
    text-decoration: none !important;
    border: none;
}

.btn-asset-store:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 140, 66, 0.6);
    background: linear-gradient(90deg, #ff9d5c, #ffc280);
    color: #fff !important;
    text-decoration: none !important;
}

.btn-asset-store:visited,
.btn-asset-store:link,
.btn-asset-store:active,
.btn-asset-store:focus {
    color: #fff !important;
    text-decoration: none !important;
}

/* Language Selector */
.language-selector {
    display: flex;
    gap: 0.6rem;
    justify-content: center;
    align-items: center;
    margin-top: 1.5rem;
    padding: 0.5rem;
}

.lang-btn {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    background: rgba(35, 39, 43, 0.7);
    border: 2px solid rgba(126, 207, 255, 0.3);
    border-radius: 8px;
    color: #7ecfff;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
}

.lang-btn .flag {
    font-size: 1.3rem;
    line-height: 1;
}

.lang-btn .lang-text {
    font-size: 0.9rem;
    letter-spacing: 0.05em;
}

.lang-btn:hover {
    background: rgba(126, 207, 255, 0.15);
    border-color: #7ecfff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(126, 207, 255, 0.3);
}

.lang-btn.active {
    background: linear-gradient(90deg, #3a8dde, #7ecfff);
    border-color: #7ecfff;
    color: #fff;
    box-shadow: 0 4px 12px rgba(58, 141, 222, 0.5);
}

.lang-btn.active:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(58, 141, 222, 0.6);
}

/* Toggle Sidebar Button */
.toggle-sidebar {
    position: fixed;
    top: 1.5rem;
    left: 1.5rem;
    z-index: 1200;
    background: #23272b;
    color: #7ecfff;
    border: none;
    font-size: 2rem;
    padding: 0.5em 0.8em;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: all 0.3s;
}

.toggle-sidebar:hover {
    background: #7ecfff;
    color: #23272b;
    transform: scale(1.1);
}

/* Container Layout */
.container {
    display: flex;
    min-height: 100vh;
    padding-top: 2rem;
}

/* Sidebar */
.sidebar {
    width: 280px;
    background: rgba(26, 38, 51, 0.95);
    padding: 7rem 1.5rem 2rem 1.5rem;
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.3);
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    z-index: 1000;
    overflow-y: auto;
    transition: transform 0.3s;
    border-top-right-radius: 16px;
    border-bottom-right-radius: 16px;
    backdrop-filter: blur(8px);
}

.sidebar.hidden {
    transform: translateX(-100%);
}

.sidebar-logo {
    display: block;
    position: absolute;
    top: 1.2rem;
    left: 50%;
    transform: translateX(-50%);
    max-width: 150px;
    margin-bottom: 2rem;
    border-radius: 16px;
    background: #181c20;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    z-index: 1001;
}

.sidebar-title {
    text-align: left;
    font-size: 1.3rem;
    color: #7ecfff;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.sidebar nav ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.sidebar nav a {
    display: block;
    color: #7ecfff;
    text-decoration: none;
    font-size: 1.05rem;
    transition: all 0.3s;
    padding: 0.9em 1.2em;
    border-radius: 10px;
    background: rgba(35, 39, 43, 0.9);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    font-weight: 500;
    border: 2px solid transparent;
}

.sidebar nav a:hover {
    color: #fff;
    background: linear-gradient(90deg, #3a8dde 60%, #7ecfff 100%);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    border-color: #7ecfff;
    transform: translateX(5px);
}

/* Main Content */
.content {
    flex: 1;
    max-width: 950px;
    width: 100%;
    margin: 0 auto;
    padding: 2rem;
    min-width: 0;

}

.section-card {
    background: rgba(35, 39, 43, 0.95);
    border-radius: 12px;
    padding: 3rem 2.5rem;
    margin-bottom: 3rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(126, 207, 255, 0.2);
}

.section-title {
    font-size: 2.5rem;
    color: #7ecfff;
    margin-bottom: 1rem;
    border-bottom: 3px solid #3a8dde;
    padding-bottom: 0.5rem;
}

.section-intro {
    font-size: 1.15rem;
    color: #b0b8c1;
    margin-bottom: 2rem;
    line-height: 1.8;
}

/* Accordion */
.accordion {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.accordion-item {
    background: rgba(24, 28, 32, 0.6);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(126, 207, 255, 0.15);
}

.accordion-header {
    width: 100%;
    background: rgba(35, 39, 43, 0.9);
    border: none;
    padding: 1.2rem 1.5rem;
    text-align: left;
    font-size: 1.15rem;
    color: #7ecfff;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 1rem;
    font-weight: 600;
    transition: all 0.3s;
}

.accordion-header:hover {
    background: rgba(58, 141, 222, 0.3);
}

.accordion-icon {
    font-size: 0.8em;
    transition: transform 0.3s;
}

.accordion-header[aria-expanded="true"] .accordion-icon {
    transform: rotate(90deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    padding: 0 1.5rem;
}

.accordion-content.active {
    max-height: 5000px;
    padding: 1.5rem;
}

.accordion-content h4, .accordion-content h5 {
    color: #7ecfff;
    margin-top: 1.5rem;
    margin-bottom: 0.8rem;
}

.accordion-content h4 {
    font-size: 1.3rem;
}

.accordion-content h5 {
    font-size: 1.1rem;
}

.accordion-content ul, .accordion-content ol {
    margin: 1rem 0;
    padding-left: 2rem;
}

.accordion-content li {
    margin-bottom: 0.8rem;
    line-height: 1.7;
}

/* Tabs */
.tabs {
    margin-top: 2rem;
}

.tab-buttons {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.tab-button {
    padding: 0.8rem 1.8rem;
    background: rgba(35, 39, 43, 0.9);
    border: 2px solid rgba(126, 207, 255, 0.3);
    border-radius: 8px;
    color: #7ecfff;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.tab-button:hover {
    background: rgba(58, 141, 222, 0.3);
    border-color: #7ecfff;
}

.tab-button.active {
    background: linear-gradient(90deg, #3a8dde, #7ecfff);
    color: #fff;
    border-color: #7ecfff;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.4s;
}

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

.tab-content h3 {
    font-size: 2rem;
    color: #7ecfff;
    margin-bottom: 1rem;
}

.tab-content p {
    font-size: 1.05rem;
    color: #b0b8c1;
    margin-bottom: 1.5rem;
}

.subsection {
    background: rgba(24, 28, 32, 0.5);
    padding: 2rem;
    border-radius: 8px;
    margin-top: 2rem;
    border-left: 4px solid #3a8dde;
}

/* Cards and Grids */
.mode-grid, .pattern-grid, .use-case-grid, .community-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

/* Component grid con más espacio para menos elementos */
.component-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2.5rem;
    margin: 2rem 0;
}

.mode-card, .pattern-card, .component-card, .use-case-card, .community-card {
    background: rgba(24, 28, 32, 0.7);
    padding: 1.5rem;
    border-radius: 8px;
    border: 2px solid rgba(126, 207, 255, 0.2);
    transition: all 0.3s;
}

/* Más padding para component cards */
.component-card {
    padding: 2rem;
}

/* Subtítulos dentro de component cards con espacio superior */
.component-card p > strong:only-child {
    display: block;
    margin-top: 1.5rem;
}

.component-card p:first-of-type > strong:only-child {
    margin-top: 0;
}

.mode-card:hover, .pattern-card:hover, .component-card:hover, .use-case-card:hover, .community-card:hover {
    border-color: #7ecfff;
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(58, 141, 222, 0.3);
}

.mode-card h5, .pattern-card h5, .component-card h4, .use-case-card h4 {
    color: #7ecfff;
    margin-bottom: 0.8rem;
    font-size: 1.2rem;
}

.component-card ul, .use-case-card ol {
    margin-top: 1rem;
}

.use-case-card ol {
    padding-left: 1.5rem;
}

.community-card {
    text-align: center;
    text-decoration: none;
    color: #e0e0e0;
}

.community-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.community-card h4 {
    color: #7ecfff;
    margin-bottom: 0.5rem;
}

/* Quick Start Tips */
.quick-start-tips {
    background: rgba(58, 141, 222, 0.15);
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #3a8dde;
    margin-top: 2rem;
}

.quick-start-tips h4 {
    color: #7ecfff;
    margin-bottom: 1rem;
}

.quick-start-tips ul {
    list-style: none;
    padding-left: 0;
}

.quick-start-tips li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.quick-start-tips li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #7ecfff;
    font-weight: bold;
}

/* Shortcuts Table */
.shortcuts-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
}

.shortcuts-table th {
    background: rgba(58, 141, 222, 0.3);
    color: #7ecfff;
    padding: 1rem;
    text-align: left;
    border-bottom: 2px solid #3a8dde;
}

.shortcuts-table td {
    padding: 0.8rem 1rem;
    border-bottom: 1px solid rgba(126, 207, 255, 0.15);
}

.shortcuts-table tr:hover {
    background: rgba(58, 141, 222, 0.1);
}

/* Community Links */
.community-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.community-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: rgba(24, 28, 32, 0.7);
    border-radius: 8px;
    border: 2px solid rgba(126, 207, 255, 0.2);
    text-decoration: none;
    color: #7ecfff;
    transition: all 0.3s;
}

.community-link:hover {
    border-color: #7ecfff;
    background: rgba(58, 141, 222, 0.2);
    transform: translateX(5px);
}

.link-icon {
    font-size: 1.5rem;
}

/* Footer */
footer {
    background: rgba(26, 38, 51, 0.95);
    padding: 2rem;
    text-align: center;
    color: #b0b8c1;
    border-top: 3px solid #3a8dde;
    margin-top: 4rem;
}

.footer-content p {
    margin: 0.5rem 0;
}

/* Responsive */
@media (max-width: 900px) {
    .toggle-sidebar {
        top: 1rem;
        left: 1rem;
        font-size: 1.7rem;
    }
    
    .content {
        padding: 1rem 1.5rem;
        max-width: 100%;
        margin-left: 0;
    }
    
    .sidebar.hidden ~ .content {
        margin-left: 0;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .mode-grid, .pattern-grid, .component-grid, .use-case-grid, .community-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .tab-buttons {
        flex-direction: column;
    }
    
    .tab-button {
        width: 100%;
    }
}

html {
    scroll-padding-top: 80px;
    scroll-behavior: smooth;
}