* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

h1, h2, h3 {
    font-family: 'Playfair Display', serif;
}

body {
    background-color: #0a1628;
    color: white;
}

nav {
    background-color: #0d1f3c;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    width: 100%;
    top: 0;
    border-bottom: 2px solid #c9a84c;
}

.logo h1 {
    color: white;
    font-size: 24px;
}

.logo span {
    color: #c9a84c;
}

ul {
    list-style: none;
    display: flex;
    gap: 30px;
}

ul a {
    color: white;
    text-decoration: none;
    font-size: 14px;
    font-weight: bold;
}

ul a:hover {
    color: #c9a84c;
}

ul a.activo {
    color: #c9a84c;
    background-color: rgba(201, 168, 76, 0.15);
    padding: 8px 15px;
    border-radius: 5px;
    font-size: 16px;
    border-bottom: 3px solid #c9a84c;
}

#inicio {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    background: linear-gradient(135deg, #0a1628 0%, #0d1f3c 50%, #1a0a0a 100%);
    position: relative;
    overflow: hidden;
}

#inicio::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(201, 168, 76, 0.05) 0%, transparent 60%);
    animation: rotar 20s linear infinite;
}

#inicio::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23c9a84c' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.inicio-contenido {
    position: relative;
    z-index: 1;
}

@keyframes rotar {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.inicio-contenido h2 {
    font-size: 62px;
    color: white;
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 0 0 30px rgba(201, 168, 76, 0.3);
    animation: aparecer 1s ease-in-out;
}

.inicio-contenido p {
    font-size: 18px;
    color: #a0b0c8;
    margin-bottom: 40px;
    animation: aparecer 1.5s ease-in-out;
}

@keyframes aparecer {
    from { 
        opacity: 0; 
        transform: translateY(30px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

.inicio-contenido p {
    font-size: 18px;
    color: #a0b0c8;
    margin-bottom: 40px;
}

.boton {
    background-color: #c0392b;
    color: white;
    padding: 15px 40px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 16px;
}

.boton:hover {
    background-color: #e74c3c;
}

#mercados {
    padding: 100px 40px;
    text-align: center;
}

.seccion-titulo h2 {
    font-size: 42px;
    color: #c9a84c;
    margin-bottom: 15px;
}

.seccion-titulo p {
    font-size: 16px;
    color: #a0b0c8;
    margin-bottom: 60px;
}

.mercados-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.mercado-card {
    background-color: #0d1f3c;
    border: 1px solid #c9a84c;
    border-radius: 10px;
    padding: 30px 20px;
    transition: transform 0.3s;
}

.mercado-card:hover {
    transform: translateY(-10px);
}

.mercado-card h3 {
    font-size: 18px;
    color: white;
    margin-bottom: 15px;
}

.mercado-nombre {
    font-size: 14px;
    color: #a0b0c8;
    margin-bottom: 10px;
}

.mercado-valor {
    font-size: 28px;
    font-weight: bold;
    color: white;
    margin-bottom: 10px;
}

.mercado-subida {
    font-size: 16px;
    color: #2ecc71;
    font-weight: bold;
}

.mercado-bajada {
    font-size: 16px;
    color: #c0392b;
    font-weight: bold;
}

#simulador {
    padding: 100px 40px;
    text-align: center;
    background-color: #0d1f3c;
}

.simulador-contenedor {
    max-width: 800px;
    margin: 0 auto;
}

.simulador-tabs {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    justify-content: center;
}

.simulador-tabs button {
    padding: 12px 30px;
    border: 2px solid #c9a84c;
    background-color: transparent;
    color: #c9a84c;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    width: auto;
    margin-top: 0;
}

.tab-activo {
    background-color: #c9a84c !important;
    color: #0a1628 !important;
}

.simulador-inputs {
    background-color: #0a1628;
    border: 1px solid #c9a84c;
    border-radius: 10px;
    padding: 40px;
    margin-bottom: 40px;
}

.input-grupo {
    margin-bottom: 25px;
    text-align: left;
}

.input-grupo label {
    display: block;
    color: #c9a84c;
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 10px;
}

.input-grupo input {
    width: 100%;
    padding: 15px;
    border-radius: 5px;
    border: 1px solid #c9a84c;
    background-color: #0d1f3c;
    color: white;
    font-size: 16px;
}

.simulador-inputs button {
    width: 100%;
    padding: 15px;
    background-color: #c0392b;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 10px;
}

.simulador-inputs button:hover {
    background-color: #e74c3c;
}

.resultados-mensaje {
    color: #a0b0c8;
    font-size: 16px;
}

.banco-resultado {
    background-color: #0a1628;
    border: 1px solid #c9a84c;
    border-radius: 10px;
    padding: 20px 30px;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
}

.banco-nombre {
    font-size: 18px;
    font-weight: bold;
    color: white;
}

.banco-tasa {
    font-size: 14px;
    color: #a0b0c8;
    margin-top: 5px;
}

.banco-ganancia {
    text-align: right;
}

.banco-ganancia-valor {
    font-size: 24px;
    font-weight: bold;
    color: #2ecc71;
}

.banco-total {
    font-size: 14px;
    color: #a0b0c8;
    margin-top: 5px;
}

.mejor-banco {
    border: 2px solid #c0392b;
}

.banco-consejo {
    font-size: 13px;
    color: #a0b0c8;
    margin-top: 8px;
    font-style: italic;
}

.banco-riesgo {
    font-size: 13px;
    color: #2ecc71;
    margin-top: 5px;
}

#consejos {
    padding: 120px 40px;
    text-align: center;
}

.consejos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.consejo-card {
    background-color: #0d1f3c;
    border: 1px solid #c9a84c;
    border-radius: 10px;
    padding: 35px 25px;
    text-align: left;
    transition: transform 0.3s;
}

.consejo-card:hover {
    transform: translateY(-10px);
}

.consejo-icono {
    font-size: 40px;
    margin-bottom: 20px;
}

.consejo-card h3 {
    font-size: 20px;
    color: #c9a84c;
    margin-bottom: 15px;
}

.consejo-card p {
    font-size: 15px;
    color: #a0b0c8;
    line-height: 1.7;
}

#negocios {
    padding: 120px 40px;
    text-align: center;
    background-color: #0d1f3c;
}

.negocios-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.negocio-card {
    background-color: #0a1628;
    border: 1px solid #c9a84c;
    border-radius: 10px;
    padding: 35px 25px;
    text-align: left;
    transition: transform 0.3s;
}

.negocio-card:hover {
    transform: translateY(-10px);
}

.negocio-icono {
    font-size: 40px;
    margin-bottom: 15px;
}

.negocio-tag {
    display: inline-block;
    background-color: #c0392b;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    margin-bottom: 15px;
}

.negocio-card h3 {
    font-size: 20px;
    color: #c9a84c;
    margin-bottom: 15px;
}

.negocio-card p {
    font-size: 15px;
    color: #a0b0c8;
    line-height: 1.7;
}

.negocio-inversion {
    margin-top: 15px !important;
    color: #2ecc71 !important;
    font-weight: bold;
}

#sobre-mi {
    padding: 120px 40px;
    text-align: center;
}

.sobre-contenedor {
    max-width: 800px;
    margin: 0 auto;
}

.sobre-texto h2 {
    font-size: 42px;
    color: #c9a84c;
    margin-bottom: 20px;
}

.sobre-saludo {
    font-size: 22px;
    color: white;
    margin-bottom: 25px;
}

.sobre-texto p {
    font-size: 16px;
    color: #a0b0c8;
    line-height: 1.8;
    margin-bottom: 20px;
    text-align: left;
}

.sobre-texto strong {
    color: #c9a84c;
}

.sobre-datos {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-top: 50px;
}

.dato {
    text-align: center;
}

.dato-numero {
    font-size: 48px;
    font-weight: bold;
    color: #c0392b;
    margin-bottom: 10px;
}

.dato-texto {
    font-size: 14px;
    color: #a0b0c8;
}

#contacto {
    padding: 120px 40px;
    text-align: center;
}

.contacto-contenedor {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 50px;
    max-width: 1000px;
    margin: 0 auto;
    text-align: left;
}

.contacto-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
    color: #a0b0c8;
    font-size: 16px;
}

.contacto-item span {
    font-size: 28px;
}

.contacto-form textarea {
    width: 100%;
    padding: 15px;
    border-radius: 5px;
    border: 1px solid #c9a84c;
    background-color: #0d1f3c;
    color: white;
    font-size: 16px;
    resize: none;
}

.boton-enviar {
    width: 100%;
    padding: 15px;
    background-color: #c0392b;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 10px;
}

.boton-enviar:hover {
    background-color: #e74c3c;
}

footer {
    background-color: #0d1f3c;
    border-top: 2px solid #c9a84c;
    padding: 60px 40px 20px 40px;
    margin-top: 60px;
}

.footer-contenido {
    display: grid;
    grid-template-columns: 2fr 1fr 2fr;
    gap: 50px;
    max-width: 1200px;
    margin: 0 auto;
    padding-bottom: 40px;
    border-bottom: 1px solid #1e3a5f;
}

.footer-logo h2 {
    font-size: 24px;
    color: white;
    margin-bottom: 15px;
}

.footer-logo span {
    color: #c9a84c;
}

.footer-logo p {
    font-size: 14px;
    color: #a0b0c8;
    line-height: 1.7;
}

.footer-links h3 {
    color: #c9a84c;
    font-size: 16px;
    margin-bottom: 20px;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links ul a {
    color: #a0b0c8;
    text-decoration: none;
    font-size: 14px;
    font-weight: normal;
}

.footer-links ul a:hover {
    color: #c9a84c;
}

.footer-info h3 {
    color: #c9a84c;
    font-size: 16px;
    margin-bottom: 20px;
}

.footer-info p {
    font-size: 14px;
    color: #a0b0c8;
    line-height: 1.7;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    color: #a0b0c8;
    font-size: 13px;
}

@media (max-width: 768px) {

    nav {
        flex-direction: column;
        padding: 15px 20px;
        gap: 15px;
    }

    ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }

    ul a {
        font-size: 12px;
    }

    .inicio-contenido h2 {
        font-size: 32px;
    }

    .inicio-contenido p {
        font-size: 16px;
    }

    .mercados-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .consejos-grid {
        grid-template-columns: 1fr;
    }

    .negocios-grid {
        grid-template-columns: 1fr;
    }

    .footer-contenido {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .sobre-datos {
        flex-direction: column;
        gap: 30px;
    }

    .contacto-contenedor {
        grid-template-columns: 1fr;
    }

    .simulador-tabs button {
        padding: 10px 20px !important;
        font-size: 14px !important;
    }

    .banco-resultado {
        flex-direction: column;
        text-align: center;
    }

    .banco-ganancia {
        text-align: center;
        margin-top: 15px;
    }
}

/* Animación de entrada para las tarjetas */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mercado-card {
    animation: fadeInUp 1.2s ease forwards;
    opacity: 0;
}

.mercado-card:nth-child(1) { animation-delay: 0.3s; }
.mercado-card:nth-child(2) { animation-delay: 0.5s; }
.mercado-card:nth-child(3) { animation-delay: 0.7s; }
.mercado-card:nth-child(4) { animation-delay: 0.9s; }

.consejo-card {
    animation: fadeInUp 1.2s ease forwards;
    opacity: 0;
}

.consejo-card:nth-child(1) { animation-delay: 0.3s; }
.consejo-card:nth-child(2) { animation-delay: 0.5s; }
.consejo-card:nth-child(3) { animation-delay: 0.7s; }
.consejo-card:nth-child(4) { animation-delay: 0.9s; }
.consejo-card:nth-child(5) { animation-delay: 1.1s; }
.consejo-card:nth-child(6) { animation-delay: 1.3s; }

.negocio-card {
    animation: fadeInUp 1.2s ease forwards;
    opacity: 0;
}

.negocio-card:nth-child(1) { animation-delay: 0.3s; }
.negocio-card:nth-child(2) { animation-delay: 0.5s; }
.negocio-card:nth-child(3) { animation-delay: 0.7s; }
.negocio-card:nth-child(4) { animation-delay: 0.9s; }
.negocio-card:nth-child(5) { animation-delay: 1.1s; }
.negocio-card:nth-child(6) { animation-delay: 1.3s; }

/* Efecto brillo en el botón */
.boton {
    position: relative;
    overflow: hidden;
}

.boton::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -60%;
    width: 30%;
    height: 200%;
    background: rgba(255, 255, 255, 0.2);
    transform: skewX(-20deg);
    animation: brillo 3s infinite;
}

@keyframes brillo {
    0% { left: -60%; }
    100% { left: 150%; }
}

/* Efecto pulso en los valores de mercado */
.mercado-valor {
    animation: pulso 2s infinite;
}

@keyframes pulso {
    0% { opacity: 1; }
    50% { opacity: 0.8; }
    100% { opacity: 1; }
}

.graficos-contenedor {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 40px auto 0 auto;
}

.grafico-card {
    background-color: #0d1f3c;
    border: 1px solid #c9a84c;
    border-radius: 10px;
    padding: 25px;
}

.grafico-card h3 {
    color: #c9a84c;
    font-size: 16px;
    margin-bottom: 20px;
    text-align: center;
}

@media (max-width: 768px) {
    .graficos-contenedor {
        grid-template-columns: 1fr;
    }
}

.comision-resultado {
    background-color: #0a1628;
    border: 1px solid #c9a84c;
    border-radius: 10px;
    padding: 30px;
    text-align: left;
}

.comision-resultado h3 {
    color: #c9a84c;
    font-size: 20px;
    margin-bottom: 25px;
    text-align: center;
}

.comision-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #1e3a5f;
    color: #a0b0c8;
    font-size: 15px;
}

.comision-valor-positivo {
    color: #2ecc71;
    font-weight: bold;
    font-size: 18px;
}

.comision-valor-negativo {
    color: #c0392b;
    font-weight: bold;
    font-size: 16px;
}

.comision-total {
    margin-top: 10px;
    border-top: 2px solid #c9a84c;
    border-bottom: none;
}

.comision-final {
    margin-top: 5px;
    border-bottom: none;
}

.comision-valor-final {
    color: #2ecc71;
    font-weight: bold;
    font-size: 24px;
}

.comision-nota {
    margin-top: 20px;
    color: #a0b0c8;
    font-size: 13px;
    font-style: italic;
    text-align: center;
}

#inputs-comisiones select {
    width: 100%;
    padding: 15px;
    border-radius: 5px;
    border: 1px solid #c9a84c;
    background-color: #0d1f3c;
    color: white;
    font-size: 16px;
}

.banco-gastos {
    font-size: 12px;
    color: #c0392b;
    margin-top: 4px;
}

.banco-real {
    font-size: 16px;
    font-weight: bold;
    color: #2ecc71;
    margin-top: 8px;
}

.boton-banco {
    display: inline-block;
    margin-top: 12px;
    padding: 8px 20px;
    background-color: #c9a84c;
    color: #0a1628;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 13px;
}

.boton-banco:hover {
    background-color: #e0c068;
}

.ticker-widget {
    position: fixed;
    top: 80px;
    width: 100%;
    z-index: 999;
    background-color: #0d1f3c;
    border-bottom: 1px solid #c9a84c;
}

.widget-contenedor {
    max-width: 1200px;
    margin: 40px auto;
    background-color: #0d1f3c;
    border: 1px solid #c9a84c;
    border-radius: 10px;
    padding: 25px;
    overflow: hidden;
}

.widget-titulo {
    color: #c9a84c;
    font-size: 20px;
    margin-bottom: 20px;
    text-align: center;
}

#mercados {
    padding-top: 160px;
}

.noticias-contenedor {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.noticias-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-top: 20px;
}

.noticia-card {
    background-color: #0d1f3c;
    border: 1px solid #1e3a5f;
    border-radius: 10px;
    padding: 25px;
    transition: transform 0.3s;
}

.noticia-card:hover {
    transform: translateY(-5px);
    border-color: #c9a84c;
}

.noticia-tag {
    display: inline-block;
    background-color: #c0392b;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    margin-bottom: 12px;
}

.noticia-card h4 {
    color: #c9a84c;
    font-size: 16px;
    margin-bottom: 10px;
    line-height: 1.4;
}

.noticia-card p {
    color: #a0b0c8;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 15px;
}

.noticia-link {
    color: #c9a84c;
    text-decoration: none;
    font-size: 14px;
    font-weight: bold;
}

.noticia-link:hover {
    color: white;
}

.noticias-nota {
    text-align: center;
    color: #a0b0c8;
    font-size: 13px;
    margin-top: 25px;
}

@media (max-width: 768px) {
    .noticias-grid {
        grid-template-columns: 1fr;
    }
}

/* Widgets de TradingView */
.widget-contenedor .tradingview-widget-container {
    width: 100%;
}

.widget-contenedor .tradingview-widget-container iframe {
    width: 100% !important;
    display: block;
}

.widget-mercados-globales .tradingview-widget-container,
.widget-mercados-globales .tradingview-widget-container iframe {
    height: 600px !important;
}

.widget-grafico .tradingview-widget-container,
.widget-grafico .tradingview-widget-container iframe {
    height: 700px !important;
}

.widget-cripto .tradingview-widget-container,
.widget-cripto .tradingview-widget-container iframe {
    height: 600px !important;
}

.widget-divisas .tradingview-widget-container,
.widget-divisas .tradingview-widget-container iframe {
    height: 500px !important;
}

.widget-calendario .tradingview-widget-container,
.widget-calendario .tradingview-widget-container iframe {
    height: 600px !important;
}