/*--------------------------------------------------*
 * CSS: css/tasa-efectiva-personal.css                *
 * Versión: 1.5 - Unificado con estilos de invertir  *
 *--------------------------------------------------*/
.tep-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    padding: 20px;
    text-align: center;
    max-width: 300px;
    margin: 0 auto;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Altura fija para escritorio */
    height: 340px;
    min-height: 340px;
    font-family: 'Montserrat', 'Segoe UI', system-ui, -apple-system, sans-serif;
    box-sizing: border-box;
}

.tep-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 15px;
    color: #0F52AA; /* Color azul unificado */
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.tep-amount {
    font-size: 28px;
    font-weight: 600;
    color: #000;
    margin-bottom: 5px;
    line-height: 1.2;
    font-family: 'Montserrat', 'Segoe UI', system-ui, -apple-system, sans-serif;
}

/* Estilo para el texto de apalancamiento */
.apalancamiento-text {
    font-size: 0.5em;
    font-weight: 500;
    color: #666;
    margin-left: 4px;
    vertical-align: middle;
    font-family: 'Montserrat', 'Segoe UI', system-ui, -apple-system, sans-serif;
}

/* Contenedor flexible para el texto */
.tep-text-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-bottom: 15px;
}

.tep-text {
    font-size: 16px;
    color: #666;
    font-weight: 500;
    margin: 0;
    font-family: 'Montserrat', 'Segoe UI', system-ui, -apple-system, sans-serif;
}

/* Botón - UNIFICADO COMPLETAMENTE CON INVERTIR-BTN */
.tep-btn-info {
    display: inline-block;
    padding: 0.75rem 0.8rem;
    font-size: 11px;
    font-weight: 600;
    border: 2px solid #ffffff;
    border-radius: 36px;
    background: linear-gradient(135deg, #0F52AA 0%, #0F52AA 100%);
    color: #ffffff;
    text-decoration: none;
    cursor: pointer;
    transition: all 1s ease !important;
    text-align: center;
    box-sizing: border-box;
    width: 100%;
    box-shadow: none !important;
    margin-top: auto;
    font-family: 'Montserrat', 'Segoe UI', system-ui, -apple-system, sans-serif;
}

.tep-btn-info:hover {
    background: linear-gradient(135deg, #167BFF 0%, #167BFF 100%);
    box-shadow: none !important;
    border: 2px solid #ffffff;
    color: #ffffff;
    text-decoration: none;
    transform: translateY(-2px);
}

.tep-btn-info:active {
    box-shadow: none !important;
    border: 2px solid #ffffff;
    transform: translateY(0);
}

/* Modal */
.tep-modal-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.tep-modal-content {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    max-width: 90%;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    text-align: left;
    font-family: 'Montserrat', 'Segoe UI', system-ui, -apple-system, sans-serif;
}

.tep-close {
    margin-top: 15px;
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    background: #0F52AA; /* Color azul unificado */
    color: #fff;
    font-family: 'Montserrat', 'Segoe UI', system-ui, -apple-system, sans-serif;
}

/* Responsive - UNIFICADO CON INVERTIR-CARD */
@media (max-width: 480px) {
    .tep-card { 
        padding: 1rem;
        height: auto;
        min-height: auto;
    }
    .tep-icon { 
        width: 42px; 
        height: 42px; 
    }
    .tep-amount { 
        font-size: 24px; 
    }
    .apalancamiento-text {
        font-size: 0.45em;
    }
    .tep-text { 
        font-size: 15px; 
    }
    .tep-btn-info {
        font-size: 0.9rem;
        padding: 0.7rem 1rem;
        border: 2px solid #ffffff;
    }
}

@media (min-width: 481px) and (max-width: 768px) {
    .tep-btn-info {
        font-size: 10px;
        padding: 0.7rem 0.6rem;
        border: 2px solid #ffffff;
    }
}

@media (min-width: 769px) {
    .tep-btn-info {
        font-size: 11px;
        padding: 0.75rem 1rem;
        border: 2px solid #ffffff;
    }
}