@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700&display=swap');

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* ============================================
   ESTILOS PRINCIPALES - CLUB FINANZAS EXTREMADURA
   ============================================ */

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

:root {
    --primary-color: #1abc9c;
    --secondary-color: #16a085;
    --dark-bg: #1a2332;
    --light-bg: #f8f9fa;
    --text-dark: #2c3e50;
    --text-light: #7f8c8d;
    --white: #ffffff;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
 font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--light-bg);
}

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

/* ============================================
   NAVBAR
   ============================================ */


/* --- Estilos por defecto (PC) --- */
/* Ocultamos el botón hamburguesa en pantallas grandes */
.mobile-menu-btn {
    display: none;
    font-size: 28px;
    background: none;
    border: none;
    color: var(--primary-color, #2e7d32); /* Tu verde oscuro */
    cursor: pointer;
}

/* --- Estilos para Móvil --- */
@media (max-width: 768px) {
    /* 1. Mostramos el botón hamburguesa */
    .mobile-menu-btn {
        display: block;
    }

    /* 2. Ocultamos y reestructuramos los enlaces */
    .nav-links {
        display: none; /* Oculto por defecto en móvil */
        flex-direction: column; /* Apila los enlaces uno debajo de otro */
        position: absolute;
        top: 80px; /* Ajusta esto según la altura de tu cabecera */
        left: 0;
        width: 100%;
        background-color: white;
        box-shadow: 0px 8px 16px rgba(0,0,0,0.1);
        padding: 20px 0;
        text-align: center;
        z-index: 9999 !important;
    }

    /* 3. Estilo para los enlaces en móvil */
    .nav-links a {
        display: block;
        padding: 15px 0;
        border-bottom: 1px solid #f0f0f0;
        width: 100%;
    }

    /* 4. Esta es la clase que JavaScript añadirá para mostrar el menú */
    .nav-links.active {
        display: flex !important;
        z-index: 9999 !important;
    }
}


.navbar {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}

.navbar-brand {
    display: flex;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--text-dark);
}

.logo-icon {
    width: 50px;
    height: 50px;
    object-fit: contain;
    object-position: center;
    border-radius: 50%;
}

.logo-text strong {
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    flex: 1;
    margin-left: 3rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-color);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.cta-button {
    background: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 10px 25px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.cta-button:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(26, 188, 156, 0.3);
}


/* ============================================
   HERO SECTION
   ============================================ */

.hero {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e8f8f5 100%);
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.hero-badge {
    display: inline-block;
    background: #c8e6c9;
    color: #2e7d32;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.hero-content h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.hero-content h1 strong {
    color: var(--primary-color);
}

.hero-content > p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 30px;
    line-height: 1.8;
}

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

.btn {
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

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

.btn-primary:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(26, 188, 156, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--text-dark);
    border: 2px solid var(--text-dark);
}

.btn-secondary:hover {
    background: var(--text-dark);
    color: var(--white);
}

.market-overview {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.market-overview.tradingview-hero-container {
    background: transparent;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
}

.market-overview h3 {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 20px;
    letter-spacing: 1px;
    display: none;
}

.market-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #ecf0f1;
}

.market-item:last-child {
    border-bottom: none;
}

.market-label {
    font-weight: 600;
    color: var(--text-dark);
}

.market-value {
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--text-dark);
}

.market-change {
    font-size: 0.9rem;
    font-weight: 600;
}

.market-change.positive {
    color: #27ae60;
}

/* TradingView Widgets en Hero */
.tradingview-widget-wrapper-small {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    min-height: 350px;
}

.tradingview-widget-wrapper-small:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(26, 188, 156, 0.2);
}

.tradingview-widget-wrapper-small > div {
    width: 100%;
    height: 100%;
    min-height: 350px;
}

/* Responsive market overview */
@media (max-width: 1024px) {
    .market-overview {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .tradingview-widget-wrapper-small {
        min-height: 300px;
    }

    .tradingview-widget-wrapper-small > div {
        min-height: 300px;
    }
}

@media (max-width: 768px) {
    .market-overview {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .tradingview-widget-wrapper-small {
        min-height: 280px;
    }

    .tradingview-widget-wrapper-small > div {
        min-height: 280px;
    }
}

@media (max-width: 600px) {
    .market-overview {
        gap: 10px;
    }

    .tradingview-widget-wrapper-small {
        min-height: 250px;
    }

    .tradingview-widget-wrapper-small > div {
        min-height: 250px;
    }
}

.market-change.negative {
    color: #e74c3c;
}

/* ============================================
   PILLARS SECTION
   ============================================ */

.pillars {
    padding: 80px 0;
    background: var(--white);
}

.pillars .container {
    text-align: center;
}

.pillars h2 {
    font-size: 0.9rem;
    color: var(--primary-color);
    letter-spacing: 2px;
    margin-bottom: 10px;
    font-weight: 700;
}

.pillars h3 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.pillars > .container > p {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto 50px;
}

.pillars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.pillar-card {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 10px;
    transition: var(--transition);
    text-align: center;
}

.pillar-card:hover {
    background: var(--light-bg);
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.pillar-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    display: block;
}

.pillar-card h4 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.pillar-card p {
    color: var(--text-light);
    line-height: 1.7;
}

/* ============================================
   STATS SECTION
   ============================================ */

.stats {
    background: var(--dark-bg);
    color: var(--white);
    padding: 80px 0;
}

.stats .container {
    text-align: center;
}

.stats h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.stats > .container > p {
    font-size: 1.1rem;
    color: #bdc3c7;
    margin-bottom: 50px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
}

.stat-card {
    padding: 40px 20px;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: bold;
    color: var(--primary-color);
    display: block;
}

.stat-label {
    font-size: 0.9rem;
    color: #bdc3c7;
    letter-spacing: 1px;
    margin-top: 10px;
}

/* ============================================
   UPCOMING EVENTS
   ============================================ */

.upcoming-events {
    padding: 80px 0;
    background: var(--white);
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 0.9rem;
    color: var(--primary-color);
    letter-spacing: 2px;
    margin-bottom: 10px;
    font-weight: 700;
}

.section-header h3 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.section-header > p {
    color: var(--text-light);
    margin-bottom: 20px;
}

.view-all {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.view-all:hover {
    color: var(--secondary-color);
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.event-card {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 10px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.event-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.event-card.networking {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
}

.event-card.networking .event-type {
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
}

.event-type {
    display: inline-block;
    background: var(--primary-color);
    color: var(--white);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.event-card h4 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: inherit;
}

.event-date {
    color: inherit;
    font-size: 0.95rem;
}

.event-card.networking .event-date {
    color: rgba(255, 255, 255, 0.9);
}

/* ============================================
   ADMISSION SECTION
   ============================================ */
/* --- ESTRUCTURA GENERAL DE ADMISIONES --- */
.admission-content {
    display: flex;
    flex-direction: column; /* Apila los elementos verticalmente */
    align-items: left; /* Centra todo horizontalmente */
    gap: 37px;
    width: 100%;
}

/* --- ESTILOS DE LA CABECERA (TEXTOS) --- */
.admission-text {
    text-align: left;
    width: 100%;
    max-width: 800px; /* Evita que el texto sea demasiado ancho en pantallas grandes */
}

.admission-text h2 {
    font-size: 2.8rem;
    color: #2c3e50; /* Tono oscuro elegante */
    line-height: 1.3;
    margin-bottom: 20px;
    font-weight: 800;
}

.admission-subtitle {
    font-size: 1.25rem;
    color: #7f8c8d; /* Gris sutil */
    margin-bottom: 30px;
    line-height: 1.5;
}

/* --- AJUSTE DEL ANCHO DEL FORMULARIO --- */
.admission-form {
    width: 100%;
    max-width: 2000px; /* Limita el ancho del formulario para que no se vea desproporcionado */
    background-color: #fcfcfc;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    border: 1px solid #eee;
}

/* --- DISEÑO A DOS COLUMNAS PARA ADMISIONES --- */
.admission-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 70px; /* Espacio entre el texto y el formulario */
    width: 100%;
}

.admission-text {
    flex: 1; /* Ocupa el 50% del espacio */
}

.admission-form {
    flex: 1; /* Ocupa el otro 50% del espacio */
    background-color: #fcfcfc; /* Un fondo muy sutil para destacar el form */
    padding: 35px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05); /* Sombra elegante */
    border: 1px solid #eee;
}

/* --- ESTILOS DEL FORMULARIO --- */
.form-group {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.form-group input, 
.form-group select, 
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus, 
.form-group select:focus, 
.form-group textarea:focus {
    outline: none;
    border-color: #1abc9c; /* Tu color principal */
}
/* ============================================ RESOURCES SECTION ============================================ */ 
.resources { padding: 80px 0; background: var(--white); } 
.resource-icon { font-size: 2.5rem; display: block; margin-bottom: 10px; } 

.resources .section-header { margin-bottom: 60px; } 
.resources-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; } 

.resource-card { background: #f8f9fa; padding: 25px; border-radius: 10px; transition: var(--transition); display: flex; flex-direction: column; } 
.resource-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); } 

.resource-category { display: inline-block; background: var(--primary-color); color: var(--white); padding: 5px 12px; border-radius: 20px; font-size: 0.75rem; font-weight: 700; margin-bottom: 10px; letter-spacing: 1px; width: fit-content; } 
.resource-date { font-size: 0.9rem; color: var(--text-light); margin-bottom: 15px; } 
.resource-card h4 { font-size: 1.3rem; margin-bottom: 15px; color: var(--text-dark); } 
.resource-card p { color: var(--text-light); margin-bottom: 15px; flex-grow: 1; } 

.read-more { color: var(--primary-color); text-decoration: none; font-weight: 600; transition: var(--transition); align-self: flex-start; } 
.read-more:hover { color: var(--secondary-color); }
/* ============================================
   FOOTER
   ============================================ */

.footer {
    background: var(--dark-bg);
    color: var(--white);
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h5 {
    font-size: 1rem;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: bold;
    font-size: 1.1rem;
    margin-bottom: 15px;
}

.footer-logo-img {
    width: 45px;
    height: 45px;
    object-fit: contain;
    object-position: center;
    border-radius: 50%;
}

.footer-section p {
    color: #bdc3c7;
    line-height: 1.7;
    margin-bottom: 15px;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section a {
    color: #bdc3c7;
    text-decoration: none;
    transition: var(--transition);
}

.footer-section a:hover {
    color: var(--primary-color);
}

.social-links {
    display: flex;
    gap: 20px;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    color: var(--white);
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.320, 1);
    box-shadow: 0 8px 20px rgba(26, 188, 156, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.2);
    padding: 0;
}

.social-icon img {
    width: 65%;
    height: 65%;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
    transition: all 0.4s ease;
}

.social-icon:hover {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    transform: translateY(-8px) scale(1.1);
    box-shadow: 0 15px 40px rgba(26, 188, 156, 0.5);
    border-color: var(--white);
}

.social-icon:hover img {
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2)) brightness(1.1);
    transform: scale(1.15);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
    color: #bdc3c7;
}

.footer-bottom p {
    margin-bottom: 10px;
}

.footer-bottom p:last-child {
    margin-bottom: 0;
}

/* ============================================
   MODAL Y GRÁFICAS FINANCIERAS
   ============================================ */

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background-color: var(--white);
    margin: 5% auto;
    padding: 30px;
    border-radius: 10px;
    width: 90%;
    max-width: 900px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative;
    animation: slideUp 0.3s ease-out;
}

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

.modal-close {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 32px;
    font-weight: bold;
    color: #999;
    cursor: pointer;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: #333;
}

.modal-content h2 {
    color: var(--dark-bg);
    margin-bottom: 20px;
    font-size: 1.8rem;
}

.chart-container {
    position: relative;
    height: 400px;
    margin: 20px 0;
    background: var(--light-bg);
    border-radius: 8px;
    padding: 15px;
}

.chart-info {
    text-align: center;
    color: var(--text-light);
    font-size: 0.9rem;
    margin-top: 15px;
    padding: 10px;
    background: var(--light-bg);
    border-radius: 5px;
    line-height: 1.6;
}

/* Hacer índices clickables */
.market-item {
    transition: all 0.3s ease;
}

.market-item[onclick] {
    border-radius: 8px;
    padding: 5px;
}

.market-item[onclick]:hover {
    background-color: rgba(26, 188, 156, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(26, 188, 156, 0.2);
}

/* Responsive modal */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        padding: 20px;
        margin: 20% auto;
    }

    .chart-container {
        height: 300px;
    }

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

    .chart-info {
        font-size: 0.8rem;
    }
}

/* ============================================
   ANÁLISIS TÉCNICO - TRADINGVIEW WIDGETS
   ============================================ */
