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

body {
    font-family: 'Open Sans', sans-serif;
    background-color: #f4f9fc;
    color: #333;
    line-height: 1.6;
    padding: 20px;
}

/* ===================== Header ===================== */
header {
    background: linear-gradient(45deg, #007bff, #0056b3);
    color: white;
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 8px;
}

header .logo h1 {
    font-family: 'Poppins', sans-serif;
    font-size: 2rem;
    text-align: left;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 15px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-size: 1.1rem;
    padding: 10px 20px;
    border-radius: 8px;
    background-color: #0056b3;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

nav ul li a:hover {
    background-color: #003d7a;
    transform: scale(1.05);
}

/* ===================== Main ===================== */
main {
    margin-top: 30px;
}

/* ===================== Section Titles ===================== */
main section h2,
main section h3 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    margin-bottom: 20px;
    text-align: left;
    color: #0056b3;
    font-size: 2rem;
}

main section p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    max-width: 720px;
    text-align: left;
}

/* ===================== Financial Indicators ===================== */
.financial-indicators {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 50px;
}

.indicator {
    background-color: #ffffff;
    padding: 20px 25px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    font-size: 1.5rem;
    flex: 1 1 180px;
    max-width: 260px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: default;
}

.indicator:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.indicator span {
    font-size: 1rem;
    color: #777;
}

/* Iconos indicadores */
.icon {
    flex-shrink: 0;
}

/* ===================== Categories ===================== */
.category-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
}

.card {
    background-color: #ffffff;
    padding: 25px 20px;
    border-radius: 12px;
    box-shadow: 0 6px 16px rgba(0,0,0,0.1);
    text-align: left;
    font-size: 1.25rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.15);
}

.card a {
    text-decoration: none;
    color: #007bff;
    font-weight: 600;
    flex-grow: 1;
}

.card a:hover {
    text-decoration: underline;
}

/* Iconos de tarjetas */
.icon-card {
    flex-shrink: 0;
}

/* ===================== Footer ===================== */
footer {
    margin-top: 70px;
    text-align: center;
    font-size: 1rem;
    color: #777;
    padding-bottom: 20px;
}

/* ===================== CTA Button ===================== */
.cta-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #007bff;
    color: white;
    padding: 18px 28px;
    border-radius: 50px;
    box-shadow: 0 6px 14px rgba(0,0,0,0.15);
    font-size: 1.1rem;
    transition: background-color 0.3s ease;
    z-index: 100;
}

.cta-button a {
    color: white;
    text-decoration: none;
}

.cta-button:hover {
    background-color: #003d7a;
}

/* ===================== Responsive Design ===================== */
@media (max-width: 1024px) {
    header {
        padding: 15px;
    }
    .category-cards {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 767px) {
    body {
        padding: 10px;
    }

    header {
        flex-direction: column;
        align-items: flex-start;
        padding: 15px;
    }

    header .logo h1 {
        font-size: 1.8rem;
        margin-bottom: 10px;
    }

    nav ul {
        flex-direction: column;
        gap: 10px;
    }

    main section h2,
    main section h3 {
        font-size: 1.6rem;
    }

    main section p {
        font-size: 1rem;
        max-width: 100%;
    }

    .financial-indicators {
        flex-direction: column;
        gap: 20px;
    }

    .indicator {
        font-size: 1.3rem;
        max-width: 100%;
    }

    .category-cards {
        grid-template-columns: 1fr;
    }

    .card {
        font-size: 1.15rem;
        padding: 20px 15px;
    }
}

/* ==========================================================
   CRYPTO PAGE STYLING — Modern Cards & Layout
   ========================================================== */

.crypto-page {
    margin-top: 40px;
}

/* Intro */
.crypto-intro h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 2rem;
    color: #0056b3;
    margin-bottom: 15px;
}

.crypto-intro p {
    max-width: 750px;
    font-size: 1.1rem;
    margin-bottom: 40px;
}

/* Grid */
.crypto-grid,
.news-grid,
.tools-grid {
    display: grid;
    gap: 25px;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

/* Crypto Cards */
.crypto-card {
    background: #fff;
    padding: 22px 20px;
    border-radius: 12px;
    box-shadow: 0 6px 16px rgba(0,0,0,0.1);
    transition: 0.3s ease;
    border-left: 4px solid #007bff;
}

.crypto-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.15);
}

.crypto-card h4 {
    font-family: 'Poppins';
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.crypto-change {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.crypto-change.positive {
    color: #28a745;
}

.crypto-change.negative {
    color: #dc3545;
}

.crypto-price {
    font-size: 1.1rem;
    color: #555;
}

/* News Cards */
.news-card {
    background: #fff;
    padding: 25px 20px;
    border-radius: 12px;
    box-shadow: 0 6px 16px rgba(0,0,0,0.1);
    transition: 0.3s ease;
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.15);
}

.news-card h4 {
    font-family: 'Poppins';
    font-size: 1.25rem;
    margin-bottom: 10px;
}

.news-card a {
    color: #007bff;
    font-weight: 600;
}

/* Tools Cards */
.tool-card {
    background: #fff;
    padding: 25px 20px;
    border-radius: 12px;
    box-shadow: 0 6px 16px rgba(0,0,0,0.1);
    transition: 0.3s ease;
}

.tool-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.15);
}

.tool-card h4 {
    font-family: 'Poppins';
    margin-bottom: 10px;
}

.tool-card a {
    color: #007bff;
    font-weight: 600;
}

/* ==========================================================
   FOREX PAGE STYLING — Modern Cards & Layout
   ========================================================== */

.forex-page {
    margin-top: 40px;
}

/* Intro */
.forex-intro h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 2rem;
    color: #0056b3;
    margin-bottom: 15px;
}

.forex-intro p {
    max-width: 750px;
    font-size: 1.1rem;
    margin-bottom: 40px;
}

/* Grid Layout */
.forex-grid,
.news-grid,
.tools-grid {
    display: grid;
    gap: 25px;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

/* Forex Cards */
.forex-card {
    background: #fff;
    padding: 22px 20px;
    border-radius: 12px;
    box-shadow: 0 6px 16px rgba(0,0,0,0.1);
    transition: 0.3s ease;
    border-left: 4px solid #007bff;
}

.forex-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.15);
}

.forex-card h4 {
    font-family: 'Poppins';
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.forex-change {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.forex-change.positive {
    color: #28a745;
}

.forex-change.negative {
    color: #dc3545;
}

.forex-price {
    font-size: 1.1rem;
    color: #555;
}

/* News Cards */
.news-card {
    background: #fff;
    padding: 25px 20px;
    border-radius: 12px;
    box-shadow: 0 6px 16px rgba(0,0,0,0.1);
    transition: 0.3s ease;
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.15);
}

.news-card h4 {
    font-family: 'Poppins';
    font-size: 1.25rem;
    margin-bottom: 10px;
}

.news-card a {
    color: #007bff;
    font-weight: 600;
}

/* Tools Cards */
.tool-card {
    background: #fff;
    padding: 25px 20px;
    border-radius: 12px;
    box-shadow: 0 6px 16px rgba(0,0,0,0.1);
    transition: 0.3s ease;
}

.tool-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.15);
}

.tool-card h4 {
    font-family: 'Poppins';
    margin-bottom: 10px;
}

.tool-card a {
    color: #007bff;
    font-weight: 600;
}

/* ==========================================================
   MACRO PAGE STYLING — Modern Cards & Layout
   ========================================================== */

.macro-page {
    margin-top: 40px;
}

/* Intro */
.intro-macro h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 2rem;
    color: #0056b3;
    margin-bottom: 15px;
}

.intro-macro p {
    max-width: 750px;
    font-size: 1.1rem;
    margin-bottom: 40px;
}

/* Grid Layout */
.indicator-grid,
.news-grid,
.tools-grid {
    display: grid;
    gap: 25px;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

/* Indicator Cards */
.indicator-card {
    background: #fff;
    padding: 22px 20px;
    border-radius: 12px;
    box-shadow: 0 6px 16px rgba(0,0,0,0.1);
    transition: 0.3s ease;
    border-left: 4px solid #007bff;
}

.indicator-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.15);
}

.indicator-card h4 {
    font-family: 'Poppins';
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.indicator-value {
    font-size: 1.2rem;
    font-weight: 600;
}

.indicator-value.positive {
    color: #28a745;
}

.indicator-value.negative {
    color: #dc3545;
}

/* News Cards */
.news-card {
    background: #fff;
    padding: 25px 20px;
    border-radius: 12px;
    box-shadow: 0 6px 16px rgba(0,0,0,0.1);
    transition: 0.3s ease;
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.15);
}

.news-card h4 {
    font-family: 'Poppins';
    font-size: 1.25rem;
    margin-bottom: 10px;
}

.news-card a {
    color: #007bff;
    font-weight: 600;
}

/* Tools Cards */
.tool-card {
    background: #fff;
    padding: 25px 20px;
    border-radius: 12px;
    box-shadow: 0 6px 16px rgba(0,0,0,0.1);
    transition: 0.3s ease;
}

.tool-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.15);
}

.tool-card h4 {
    font-family: 'Poppins';
    margin-bottom: 10px;
}

.tool-card a {
    color: #007bff;
    font-weight: 600;
}

/* ==========================================================
   COMMODITIES PAGE STYLING — Modern Cards & Layout
   ========================================================== */

.commodities-page {
    margin-top: 40px;
}

/* Intro */
.intro-commodities h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 2rem;
    color: #0056b3;
    margin-bottom: 15px;
}

.intro-commodities p {
    max-width: 750px;
    font-size: 1.1rem;
    margin-bottom: 40px;
}

/* Grid Layout */
.commodities-grid,
.news-grid,
.tools-grid {
    display: grid;
    gap: 25px;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

/* Commodity Cards */
.commodity-card {
    background: #fff;
    padding: 22px 20px;
    border-radius: 12px;
    box-shadow: 0 6px 16px rgba(0,0,0,0.1);
    transition: 0.3s ease;
    border-left: 4px solid #007bff;
}

.commodity-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.15);
}

.commodity-card h4 {
    font-family: 'Poppins';
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.commodity-change {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.commodity-change.positive {
    color: #28a745;
}

.commodity-change.negative {
    color: #dc3545;
}

.commodity-price {
    font-size: 1.1rem;
    color: #555;
}

/* News Cards */
.news-card {
    background: #fff;
    padding: 25px 20px;
    border-radius: 12px;
    box-shadow: 0 6px 16px rgba(0,0,0,0.1);
    transition: 0.3s ease;
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.15);
}

.news-card h4 {
    font-family: 'Poppins';
    font-size: 1.25rem;
    margin-bottom: 10px;
}

.news-card a {
    color: #007bff;
    font-weight: 600;
}

/* Tools Cards */
.tool-card {
    background: #fff;
    padding: 25px 20px;
    border-radius: 12px;
    box-shadow: 0 6px 16px rgba(0,0,0,0.1);
    transition: 0.3s ease;
}

.tool-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.15);
}

.tool-card h4 {
    font-family: 'Poppins';
    margin-bottom: 10px;
}

.tool-card a {
    color: #007bff;
    font-weight: 600;
}

/* ==========================================================
   TOOLS PAGE STYLING — Modern Cards & Layout
   ========================================================== */

.tools-page {
    margin-top: 40px;
}

/* Intro */
.intro-tools h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 2rem;
    color: #0056b3;
    margin-bottom: 15px;
}

.intro-tools p {
    max-width: 750px;
    font-size: 1.1rem;
    margin-bottom: 40px;
}

/* Tool Cards */
.tools-grid {
    display: grid;
    gap: 25px;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

/* Tool Card */
.tool-card {
    background: #fff;
    padding: 22px 20px;
    border-radius: 12px;
    box-shadow: 0 6px 16px rgba(0,0,0,0.1);
    transition: 0.3s ease;
    border-left: 4px solid #007bff;
}

.tool-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.15);
}

.tool-card h4 {
    font-family: 'Poppins';
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.tool-card a {
    color: #007bff;
    font-weight: 600;
}

/* Text Adjustments */
.tool-card p {
    font-size: 1.1rem;
    margin-bottom: 15px;
}

/* ==========================================================
   STOCK MARKET PAGE STYLING — Modern Cards & Layout
   ========================================================== */

.stocks-page {
    margin-top: 40px;
}

/* Intro Section */
.intro h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 2rem;
    color: #0056b3;
    margin-bottom: 15px;
}

.intro p {
    max-width: 750px;
    font-size: 1.1rem;
    margin-bottom: 40px;
}

/* Financial Indicators */
.financial-indicators {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
}

.indicator {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 6px 16px rgba(0,0,0,0.1);
    flex: 1;
    max-width: 250px;
    transition: 0.3s ease;
    text-align: center;
}

.indicator:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.15);
}

.indicator h4 {
    font-family: 'Poppins';
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.trend-value {
    font-size: 1.2rem;
    font-weight: 600;
}

.trend-value.positive {
    color: #28a745;
}

.trend-value.negative {
    color: #dc3545;
}

.price {
    font-size: 1.2rem;
    color: #555;
}

/* Market Trends Section */
.market-trends {
    display: grid;
    gap: 25px;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    margin-top: 30px;
}

.trend-item {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 6px 16px rgba(0,0,0,0.1);
    transition: 0.3s ease;
}

.trend-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.15);
}

.trend-item h4 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.trend-item p {
    font-size: 1.1rem;
    color: #555;
}


/* Market Block (News, Trends, Tools) */
.market-block {
    margin-top: 30px;
}

.market-block h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.8rem;
    color: #0056b3;
    margin-bottom: 15px;
}

.market-block p {
    font-size: 1.1rem;
    color: #555;
}

/* News Cards */
.news-cards {
    display: grid;
    gap: 25px;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.news-card {
    background: #fff;
    padding: 22px 20px;
    border-radius: 12px;
    box-shadow: 0 6px 16px rgba(0,0,0,0.1);
    transition: 0.3s ease;
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.15);
}

.news-card h4 {
    font-family: 'Poppins';
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.news-card a {
    color: #007bff;
    font-weight: 600;
}

/* Tools Cards */
.tools-grid {
    display: grid;
    gap: 25px;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.tool-card {
    background: #fff;
    padding: 22px 20px;
    border-radius: 12px;
    box-shadow: 0 6px 16px rgba(0,0,0,0.1);
    transition: 0.3s ease;
}

.tool-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.15);
}

.tool-card h4 {
    font-family: 'Poppins';
    margin-bottom: 10px;
}

.tool-card a {
    color: #007bff;
    font-weight: 600;
}

