/* ========================================
   Rivalo Colombia - Main Styles
   ======================================== */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #ffffff;
    color: #333333;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
}

ul, ol {
    padding-left: 20px;
}

/* ========================================
   Header - Dark Blue
   ======================================== */
header {
    background-color: #0d1b2a;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo, .logo-img {
    display: none; /* или через media-query */
    visibility: hidden;
    opacity: 0;
}

.header-buttons {
    display: flex;
    gap: 15px;
}

.desktop-buttons {
    display: flex;
}

/* Buttons - Yellow */
.btn {
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    display: inline-block;
}

.btn-register {
    background-color: #ffc107;
    color: #000000;
    border: 2px solid #ffc107;
}

.btn-register:hover {
    background-color: #ffca2c;
    border-color: #ffca2c;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.4);
}

.btn-login {
    background-color: transparent;
    color: #ffffff;
    border: 2px solid #ffc107;
}

.btn-login:hover {
    background-color: #ffc107;
    color: #000000;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: #ffc107;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Navigation */
.mobile-nav {
    display: none;
    background-color: #0d1b2a;
    padding: 20px;
    border-top: 1px solid rgba(255, 193, 7, 0.2);
}

.mobile-nav.active {
    display: block;
}

.mobile-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mobile-buttons .btn {
    width: 100%;
    text-align: center;
}

/* ========================================
   Main Content
   ======================================== */
main {
    flex: 1;
    padding: 40px 0;
}

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

.content-section {
    background-color: #ffffff;
}

.content-section h1 {
    font-size: 2.2rem;
    color: #0d1b2a;
    margin-bottom: 20px;
    line-height: 1.3;
}

.content-section h2 {
    font-size: 1.7rem;
    color: #0d1b2a;
    margin: 35px 0 15px;
    padding-top: 20px;
    border-top: 2px solid #ffc107;
}

.content-section h3 {
    font-size: 1.3rem;
    color: #1a365d;
    margin: 25px 0 12px;
}

.content-section p {
    margin-bottom: 15px;
    color: #444444;
}

.content-section ul,
.content-section ol {
    margin-bottom: 20px;
}

.content-section li {
    margin-bottom: 8px;
    color: #444444;
}

.content-section img {
    border-radius: 10px;
    margin: 20px 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Content Buttons */
.content-buttons {
    display: flex;
    gap: 15px;
    margin: 25px 0;
    flex-wrap: wrap;
}

/* Table of Contents Toggle */
.content-toggle-btn {
    background-color: #0d1b2a;
    color: #ffc107;
    border: 2px solid #ffc107;
    padding: 12px 25px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    margin-bottom: 15px;
}

.content-toggle-btn:hover,
.content-toggle-btn.active {
    background-color: #ffc107;
    color: #0d1b2a;
}

/* Table of Contents */
.table-of-contents {
    display: none;
    background-color: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 20px 25px;
    margin-bottom: 30px;
}

.table-of-contents.active {
    display: block;
}

.toc-title {
    font-weight: 700;
    color: #0d1b2a;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.toc-list {
    list-style: none;
    padding-left: 0;
}

.toc-list li {
    margin-bottom: 10px;
}

.toc-list a {
    color: #1a365d;
    transition: color 0.3s ease;
    display: block;
    padding: 5px 0;
}

.toc-list a:hover {
    color: #ffc107;
}

/* ========================================
   Tables
   ======================================== */
.table-wrapper {
    overflow-x: auto;
    margin: 20px 0;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

table {
    width: 100%;
    border-collapse: collapse;
    background-color: #ffffff;
}

table td {
    padding: 12px 15px;
    border: 1px solid #e0e0e0;
    text-align: left;
}

table tr:first-child td {
    background-color: #0d1b2a;
    color: #ffffff;
    font-weight: 600;
}

table tr:nth-child(even) {
    background-color: #f8f9fa;
}

table tr:hover:not(:first-child) {
    background-color: #fff8e1;
}

/* ========================================
   FAQ Section
   ======================================== */
.faq-container {
    margin: 30px 0;
}

.faq-item {
    margin-bottom: 10px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    background-color: #f8f9fa;
    border: none;
    padding: 18px 20px;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.faq-question:hover {
    background-color: #fff8e1;
}

.faq-question.active {
    background-color: #0d1b2a;
}

.faq-question h3 {
    margin: 0;
    font-size: 1rem;
    color: #0d1b2a;
    font-weight: 600;
}

.faq-question.active h3 {
    color: #ffc107;
}

.faq-icon {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffc107;
    transition: transform 0.3s ease;
}

.faq-question.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    display: none;
    padding: 0;
    background-color: #ffffff;
}

.faq-answer.active {
    display: block;
    padding: 20px;
    border-top: 2px solid #ffc107;
}

.faq-answer p {
    margin: 0;
}

/* ========================================
   Reviews Section
   ======================================== */
.reviews-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin: 25px 0;
}

.review-card {
    background-color: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.review-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.review-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    flex-wrap: wrap;
    gap: 5px;
}

.review-author {
    font-weight: 700;
    color: #0d1b2a;
}

.review-date {
    font-size: 0.85rem;
    color: #888888;
}

.review-text {
    color: #555555;
    font-size: 0.95rem;
    margin: 0;
}

/* ========================================
   Footer - Black
   ======================================== */
footer {
    background-color: #000000;
    color: #ffffff;
    padding: 40px 0 30px;
    margin-top: auto;
}

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

.footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.footer-links a {
    color: #ffc107;
    transition: color 0.3s ease;
    font-weight: 500;
}

.footer-links a:hover {
    color: #ffca2c;
    text-decoration: underline;
}

.footer-container p {
    color: #aaaaaa;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .desktop-buttons {
        display: none;
    }

    .content-section h1 {
        font-size: 1.7rem;
    }

    .content-section h2 {
        font-size: 1.4rem;
    }

    .content-section h3 {
        font-size: 1.15rem;
    }

    .content-buttons {
        flex-direction: column;
    }

    .content-buttons .btn {
        width: 100%;
    }

    .footer-links {
        flex-direction: column;
        gap: 15px;
    }

    table {
        font-size: 0.9rem;
    }

    table td {
        padding: 10px;
    }
}

@media (max-width: 480px) {
    .header-container {
        padding: 0 15px;
    }

    .logo-img {
        height: 32px;
    }

    .main-container {
        padding: 0 15px;
    }

    main {
        padding: 25px 0;
    }

    .content-section h1 {
        font-size: 1.5rem;
    }

    .btn {
        padding: 10px 20px;
        font-size: 13px;
    }
}