@font-face {
    font-family: 'New York';
    src: url('fonts/NewYork.otf') format('opentype');
}

/* Estilos para el modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: #1c1d23;
    border-radius: 16px;
    padding: 40px;
    max-width: 800px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 30px;
    height: 30px;
    background: #34384C;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: #30E0A1;
}

.modal-title {
    font-family: 'Aileron', sans-serif;
    font-weight: 500;
    font-size: 24px;
    color: #FFFFFF;
    margin-bottom: 20px;
}

.modal-text {
    font-family: 'Abel', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.6;
    color: #E5E6ED;
}

/* Estilos para la información de la empresa en el footer */
.footer-company-info {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.company-info-text {
    font-family: 'Abel', sans-serif;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.5;
}

.know-more-btn {
    color: #30E0A1;
    cursor: pointer;
    text-decoration: underline;
    transition: all 0.3s ease;
}

.know-more-btn:hover {
    color: #28B485;
}

.additional-info {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.3s ease;
    opacity: 0;
}

.additional-info.show {
    max-height: 500px;
    opacity: 1;
}

@media (max-width: 768px) {
    .modal-content {
        padding: 30px 20px;
    }
}

.hero-left {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 3px;
    max-width: 100%;
    width: 100%;
    align-items: center;
}

.hero-subtitle {
    font-family: 'Aileron';
    font-size: 25px;
    line-height: 1.2em;
    margin-bottom: 25px;
}

p.hero-subtitle-1.responsive-hero-subtitle {
    font-size: 24px;
    max-width: 850px;
    line-height: 1.5;
    margin-top: 20px;
}

section.hero-section.responsive-hero {
    background-image: url(../images/academy-hero.png);
    background-position: bottom;
    background-repeat: no-repeat;
    background-size: contain;
    min-height: auto;
}

.hero-content {
    margin: 120px 0 0 0px;
}

/* Stacked Cards Styles para Móviles */
@media (max-width: 991px) {

    /* Ocultar layout original en móvil */
    .social-trading-section .social-trading-container {
        display: none;
    }

    /* Contenedor de tarjetas apiladas */
    .stacked-cards-container {
        padding: 20px 15px;
        max-width: 100%;
        margin: 0 auto;
    }

    .stacked-card {
        background: rgba(47, 50, 65, 0.8);
        backdrop-filter: blur(24px);
        border-radius: 16px;
        margin-bottom: 16px;
        overflow: hidden;
        border: 1px solid rgba(76, 174, 124, 0.2);
        transition: all 0.3s ease;
        position: relative;
    }

    .stacked-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
        border-color: rgba(76, 174, 124, 0.4);
    }

    .card-section {
        padding: 15px;
        position: relative;
    }

    .card-section.left-section {
        background: rgba(30, 30, 30, 0.6);
        border-bottom: 2px solid rgba(76, 174, 124, 0.3);
    }

    .card-section.right-section {
        background: rgba(47, 50, 65, 0.4);
    }

    .card-content {
        display: flex;
        align-items: center;
        gap: 12px;
    }

    .card-icon {
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: #1E1E1E;
        border-radius: 8px;
        flex-shrink: 0;
        margin: 7px 0px;
    }

    .card-icon.arrow {
        background: #4CAE7C;
        width: 28px;
        height: 28px;
    }

    .card-icon img {
        width: 20px;
        height: 20px;
    }

    .card-icon.arrow img {
        width: 14px;
        height: 14px;
    }

    .card-text {
        font-family: "Open Sans", sans-serif;
        font-size: 14px;
        color: #ffffff;
        line-height: 1.4;
        flex-grow: 1;
    }

    .card-label {
        position: absolute;
        top: 6px;
        right: 12px;
        font-size: 10px;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 1px;
        padding: 3px 6px;
        border-radius: 4px;
        background: rgba(76, 174, 124, 0.2);
        color: #4CAE7C;
        display: none;
    }

    .card-connector {
        position: absolute;
        bottom: -11px;
        left: 50%;
        transform: translateX(-50%);
        width: 30px;
        height: 15px;
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 10;
        display: none;
    }

    .card-connector svg {
        width: 30px;
        height: 15px;
    }

    .card-number {
        position: absolute;
        top: 12px;
        left: 12px;
        width: 20px;
        height: 20px;
        background: #4CAE7C;
        color: white;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 10px;
        font-weight: bold;
        display: none;
    }

    /* Progress Indicator */
    .progress-container {
        margin-top: 20px;
        text-align: center;
    }

    .progress-bar {
        width: 100%;
        height: 4px;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 2px;
        overflow: hidden;
        margin-bottom: 10px;
    }

    .progress-fill {
        height: 100%;
        background: linear-gradient(90deg, #4CAE7C, #3da86a);
        width: 0%;
        transition: width 0.3s ease;
    }

    .progress-text {
        font-size: 12px;
        color: rgba(255, 255, 255, 0.7);
    }

    /* Navigation Controls */
    .navigation-controls {
        display: flex;
        justify-content: center;
        gap: 10px;
        margin-top: 20px;
    }

    .nav-btn {
        padding: 8px 16px;
        background: rgba(76, 174, 124, 0.8);
        border: none;
        border-radius: 6px;
        color: white;
        font-family: "Open Sans", sans-serif;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.3s ease;
        font-size: 12px;
    }

    .nav-btn:hover {
        background: #4CAE7C;
        transform: translateY(-2px);
    }

    .nav-btn:disabled {
        opacity: 0.5;
        cursor: not-allowed;
    }

    /* Expand/Collapse Animation */
    .stacked-card.expanded .card-section.right-section {
        max-height: 200px;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .stacked-card:not(.expanded) .card-section.right-section {
        max-height: 0;
        padding: 0 15px;
        overflow: hidden;
        transition: max-height 0.3s ease, padding 0.3s ease;
    }

    .expand-toggle {
        position: absolute;
        top: 31px;
        right: 12px;
        width: 24px;
        height: 24px;
        background: rgba(76, 174, 124, 0.8);
        border: none;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: all 0.3s ease;
        z-index: 20;
    }

    .expand-toggle:hover {
        background: #4CAE7C;
        transform: scale(1.1);
    }

    .expand-toggle svg {
        width: 12px;
        height: 12px;
        color: white;
        transition: transform 0.3s ease;
    }

    .stacked-card.expanded .expand-toggle svg {
        transform: rotate(180deg);
    }

    /* Highlight effect */
    .stacked-card.highlighted {
        border-color: #4CAE7C;
        box-shadow: 0 0 20px rgba(76, 174, 124, 0.3);
    }

    .stacked-card.highlighted .card-number {
        background: #ffffff;
        color: #4CAE7C;
    }
}

/* Asegurar que el layout original se muestre en desktop */
@media (min-width: 992px) {
    .stacked-cards-container {
        display: none !important;
    }
}

@media (max-width: 500px) {
    h2.why-section-title {
        text-align: center;
    }

    .why-invertox-content {
        margin-top: 100px;
    }
}

/* Standardization Styles */
.heading-lg {
    font-family: 'Aileron', sans-serif !important;
    font-size: 36px !important;
    font-weight: 600 !important;
    line-height: 1.1;
    text-transform: uppercase !important;
    margin-top: 65px;
}

@media (min-width:768px) {
    .heading-lg {
        font-size: 36px !important;
        line-height: 1.1;
    }
}

@media (min-width:1024px) {
    .heading-lg {
        font-size: 36px !important;
        line-height: 1.1;
    }
}

.heading-md {
    font-family: 'Aileron', sans-serif !important;
    font-size: 36px !important;
    font-weight: 600 !important;
    line-height: 1.25;
    text-transform: uppercase !important;
}

@media (min-width:768px) {
    .heading-md {
        font-size: 36px !important;
        line-height: 1.1;
    }
}

@media (min-width:1024px) {
    .heading-md {
        font-size: 36px !important;
        line-height: 1;
    }
}

.gradient-text {
    --tw-gradient-from: #5fe4a1 var(--tw-gradient-from-position);
    --tw-gradient-to: rgba(95, 228, 161, 0) var(--tw-gradient-to-position);
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
    --tw-gradient-to: #2ab876 var(--tw-gradient-to-position);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}